1. #61
    Sencha Premium Member
    Join Date
    Apr 2010
    Posts
    101
    Vote Rating
    7
    ralscha will become famous soon enough

      0  

    Default


    Not sure about what application do you talk. e4ds-template or the starter-app?
    e4ds-template ist the one on e4ds.rasc.ch

    If you get a 404 then most of the time there is an error during startup. Do you see some stacktrackes in the output?

  2. #62
    Sencha Premium Member
    Join Date
    Mar 2012
    Posts
    16
    Vote Rating
    0
    gmui is on a distinguished road

      0  

    Default


    I'm talking about the ralscha-e4ds-template sample app. I downloaded the source as zip and am trying to run it. Here's my console output when starting. I don't see any exceptions or stack traces:

    C:\build\extjs\ralscha-e4ds-template-946274b>mvn tomcat7:run
    [INFO] Scanning for projects...
    [INFO]
    [INFO] ------------------------------------------------------------------------
    [INFO] Building e4ds-template 1.0.0
    [INFO] ------------------------------------------------------------------------
    [INFO]
    [INFO] >>> tomcat7-maven-plugin:2.0-beta-1:run (default-cli) @ e4ds-template >>>
    [INFO]
    [INFO] --- maven-apt-plugin:1.0.2:process (default) @ e4ds-template ---
    [INFO]
    [INFO] --- build-helper-maven-plugin:1.7:add-source (add-source) @ e4ds-template ---
    [INFO] Source directory: C:\build\extjs\ralscha-e4ds-template-946274b\target\generated-sources\java added.
    [INFO]
    [INFO] --- maven-antrun-plugin:1.7:run (generate-resources) @ e4ds-template ---
    [INFO] Executing tasks


    main:
    [smartsprites] INFO: Reading sprite image directives from C:\build\extjs\ralscha-e4ds-template-946274b\src\main\webapp\resources\css\app-sprite.css
    [smartsprites] INFO: Reading sprite image directives from C:\build\extjs\ralscha-e4ds-template-946274b\src\main\webapp\resources\css\app.css
    [smartsprites] INFO: Reading sprite reference directives from C:\build\extjs\ralscha-e4ds-template-946274b\src\main\webapp\resources\css\app-sprite.css
    [smartsprites] INFO: Reading sprite reference directives from C:\build\extjs\ralscha-e4ds-template-946274b\src\main\webapp\resources\css\app.css
    [smartsprites] INFO: Reading image from C:\build\extjs\ralscha-e4ds-template-946274b\src\main\webapp\resources\images\add.png (C:\build\extjs\ralscha-e4ds-template-946274b\src\main
    \webapp\resources\css\app.css, line: 26)
    [smartsprites] INFO: Reading image from C:\build\extjs\ralscha-e4ds-template-946274b\src\main\webapp\resources\images\eraser.png (C:\build\extjs\ralscha-e4ds-template-946274b\src\m
    ain\webapp\resources\css\app.css, line: 30)
    [smartsprites] INFO: Reading image from C:\build\extjs\ralscha-e4ds-template-946274b\src\main\webapp\resources\images\data_scroll.png (C:\build\extjs\ralscha-e4ds-template-946274b\
    src\main\webapp\resources\css\app.css, line: 34)
    [smartsprites] INFO: Reading image from C:\build\extjs\ralscha-e4ds-template-946274b\src\main\webapp\resources\images\application_server.png (C:\build\extjs\ralscha-e4ds-template-9
    46274b\src\main\webapp\resources\css\app.css, line: 38)
    [smartsprites] INFO: Reading image from C:\build\extjs\ralscha-e4ds-template-946274b\src\main\webapp\resources\images\user_add.png (C:\build\extjs\ralscha-e4ds-template-946274b\src
    \main\webapp\resources\css\app.css, line: 42)
    [smartsprites] INFO: Reading image from C:\build\extjs\ralscha-e4ds-template-946274b\src\main\webapp\resources\images\user_edit.png (C:\build\extjs\ralscha-e4ds-template-946274b\sr
    c\main\webapp\resources\css\app.css, line: 46)
    [smartsprites] INFO: Reading image from C:\build\extjs\ralscha-e4ds-template-946274b\src\main\webapp\resources\images\user_delete.png (C:\build\extjs\ralscha-e4ds-template-946274b\
    src\main\webapp\resources\css\app.css, line: 50)
    [smartsprites] INFO: Reading image from C:\build\extjs\ralscha-e4ds-template-946274b\src\main\webapp\resources\images\users.png (C:\build\extjs\ralscha-e4ds-template-946274b\src\ma
    in\webapp\resources\css\app.css, line: 54)
    [smartsprites] INFO: Reading image from C:\build\extjs\ralscha-e4ds-template-946274b\src\main\webapp\resources\images\gear.png (C:\build\extjs\ralscha-e4ds-template-946274b\src\mai
    n\webapp\resources\css\app.css, line: 58)
    [smartsprites] INFO: Reading image from C:\build\extjs\ralscha-e4ds-template-946274b\src\main\webapp\resources\images\administration.png (C:\build\extjs\ralscha-e4ds-template-94627
    4b\src\main\webapp\resources\css\app.css, line: 62)
    [smartsprites] INFO: Reading image from C:\build\extjs\ralscha-e4ds-template-946274b\src\main\webapp\resources\images\business.png (C:\build\extjs\ralscha-e4ds-template-946274b\src
    \main\webapp\resources\css\app.css, line: 66)
    [smartsprites] INFO: Reading image from C:\build\extjs\ralscha-e4ds-template-946274b\src\main\webapp\resources\images\save.png (C:\build\extjs\ralscha-e4ds-template-946274b\src\mai
    n\webapp\resources\css\app.css, line: 70)
    [smartsprites] INFO: Reading image from C:\build\extjs\ralscha-e4ds-template-946274b\src\main\webapp\resources\images\cancel.png (C:\build\extjs\ralscha-e4ds-template-946274b\src\m
    ain\webapp\resources\css\app.css, line: 74)
    [smartsprites] INFO: Reading image from C:\build\extjs\ralscha-e4ds-template-946274b\src\main\webapp\resources\images\logout.png (C:\build\extjs\ralscha-e4ds-template-946274b\src\m
    ain\webapp\resources\css\app.css, line: 78)
    [smartsprites] INFO: Reading image from C:\build\extjs\ralscha-e4ds-template-946274b\src\main\webapp\resources\images\login.png (C:\build\extjs\ralscha-e4ds-template-946274b\src\ma
    in\webapp\resources\css\app.css, line: 82)
    [smartsprites] INFO: Reading image from C:\build\extjs\ralscha-e4ds-template-946274b\src\main\webapp\resources\images\start.png (C:\build\extjs\ralscha-e4ds-template-946274b\src\ma
    in\webapp\resources\css\app.css, line: 86)
    [smartsprites] INFO: Reading image from C:\build\extjs\ralscha-e4ds-template-946274b\src\main\webapp\resources\images\stop.png (C:\build\extjs\ralscha-e4ds-template-946274b\src\mai
    n\webapp\resources\css\app.css, line: 90)
    [smartsprites] INFO: Reading image from C:\build\extjs\ralscha-e4ds-template-946274b\src\main\webapp\resources\images\excel.gif (C:\build\extjs\ralscha-e4ds-template-946274b\src\ma
    in\webapp\resources\css\app.css, line: 94)
    [smartsprites] INFO: Writing sprite image of size 16 x 288 for sprite 'sprites' to C:\build\extjs\ralscha-e4ds-template-946274b\src\main\webapp\resources\images\sprites.png
    [smartsprites] INFO: Creating CSS style sheet: C:\build\extjs\ralscha-e4ds-template-946274b\src\main\webapp\resources\css\app-sprite.css
    [smartsprites] INFO: Reading CSS from C:\build\extjs\ralscha-e4ds-template-946274b\src\main\webapp\resources\css\app.css
    [smartsprites] INFO: Writing CSS to C:\build\extjs\ralscha-e4ds-template-946274b\src\main\webapp\resources\css\app-sprite.css
    [smartsprites] STATUS: SmartSprites processing completed in 590 ms
    [INFO] Executed tasks
    [INFO]
    [INFO] --- maven-resources-plugin:2.5:resources (default-resources) @ e4ds-template ---
    [debug] execute contextualize
    [INFO] Using 'UTF-8' encoding to copy filtered resources.
    [INFO] Copying 2 resources
    [INFO] Copying 6 resources
    [INFO] Copying 1 resource
    [INFO]
    [INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ e4ds-template ---
    [INFO] Compiling 7 source files to C:\build\extjs\ralscha-e4ds-template-946274b\target\classes
    [INFO]
    [INFO] <<< tomcat7-maven-plugin:2.0-beta-1:run (default-cli) @ e4ds-template <<<
    [INFO]
    [INFO] --- tomcat7-maven-plugin:2.0-beta-1:run (default-cli) @ e4ds-template ---
    [INFO] Running war on http://localhost:8080/
    [INFO] Using existing Tomcat server configuration at C:\build\extjs\ralscha-e4ds-template-946274b\target\tomcat
    Apr 26, 2012 1:36:21 PM org.apache.coyote.AbstractProtocol init
    INFO: Initializing ProtocolHandler ["http-bio-8080"]
    Apr 26, 2012 1:36:21 PM org.apache.catalina.core.StandardService startInternal
    INFO: Starting service Tomcat
    Apr 26, 2012 1:36:21 PM org.apache.catalina.core.StandardEngine startInternal
    INFO: Starting Servlet Engine: Apache Tomcat/7.0.25
    Apr 26, 2012 1:36:22 PM org.apache.catalina.startup.ContextConfig getDefaultWebXmlFragment
    INFO: No global web.xml found
    Apr 26, 2012 1:36:24 PM org.apache.catalina.core.ApplicationContext log
    INFO: Initializing Spring root WebApplicationContext
    INFO 4/26/12 1:36 PM:liquibase: Successfully acquired change log lock
    INFO 4/26/12 1:36 PM:liquibase: Reading from DATABASECHANGELOG
    INFO 4/26/12 1:36 PM:liquibase: Reading from DATABASECHANGELOG
    INFO 4/26/12 1:36 PM:liquibase: Successfully released change log lock
    INFO 4/26/12 1:36 PM:liquibase: Successfully released change log lock
    Apr 26, 2012 1:36:46 PM org.apache.catalina.core.ApplicationContext log
    INFO: Initializing Spring FrameworkServlet 'appServlet'
    Apr 26, 2012 1:36:47 PM org.apache.coyote.AbstractProtocol start
    INFO: Starting ProtocolHandler ["http-bio-8080"]

  3. #63
    Sencha Premium Member
    Join Date
    Apr 2010
    Posts
    101
    Vote Rating
    7
    ralscha will become famous soon enough

      0  

    Default


    Looks fine.
    I also downloaded the zip and run mvn tomcat7:run and then went to http://localhost:8080
    It works on my machine. I have no clue what could be wrong with your installation.
    Sorry that I'm not able to help you

  4. #64
    Sencha Premium Member
    Join Date
    Mar 2012
    Posts
    16
    Vote Rating
    0
    gmui is on a distinguished road

      0  

    Default


    Sorry if it's just me, but I'm still a little stumped. Just want to verify that it is the zip off this page I should be getting: https://github.com/ralscha/e4ds-template

    a
    nd that no other steps are required? I don't see any index.html or index.jsp file in there that should be in the context root and the web.xml seems to only have the DefaultServlet registered. Also, it looks like the extjs folder isn't there but has a 'Replace with ExtJS' or something like that. Are there some common-sense steps I'm missing?

    This is the zip I downloaded: ralscha-e4ds-template-extjs-4.0.7-50-g09ab893.zip and it's 141kb.

    Thanks!

  5. #65
    Sencha Premium Member
    Join Date
    Mar 2012
    Posts
    16
    Vote Rating
    0
    gmui is on a distinguished road

      0  

    Default


    Ok - problem solved. I'm almost too embarrassed to say what the problem was, but I don't want to leave you curious. I just had a tomcat instance working in Eclipse that already had the port opened. There were no error messages upon starting up the demo so I didn't realize.

  6. #66
    Sencha Premium Member
    Join Date
    Apr 2010
    Posts
    101
    Vote Rating
    7
    ralscha will become famous soon enough

      0  

    Default


    Thanks for the feedback. Maybe this is something we should report to the Apache Tomcat Maven Plugin guys. Would be nice if the plugin shows a error message "port is already in use".

    If you are still looking for the html files they are in this folder: src\main\webapp\WEB-INF\jsp
    The extjs folder is only needed if you want to use your own commercial licensed extjs or you want to use a different version. Right now, if you look inside index.jsp and login.jsp, both files point to the gpl version of extjs 4.0.7
    http://cdn.sencha.io/ext-4.0.7-gpl

    There is also a forum for ExtDirectSpring: https://groups.google.com/forum/?fromgroups#!forum/extdirectspring
    Maybe this forum is better suited for questions about the library.

  7. #67
    Sencha User
    Join Date
    Jul 2009
    Location
    Bangkok, Thailand
    Posts
    10
    Vote Rating
    0
    Pock is on a distinguished road

      0  

    Default


    Anyone have problem with Unicode characters?

    I used Form-Post and everything was fine. Just found out today that my database contain some ugly characters eg. "ดกหดห".

    On client side, using Firebug, the Post request is fine. no ugly chars.
    On server side, method's parameters contain ugly chars.

    I'm not sure this is something about Direct Spring's binding? Still trying to figure it out...

    Thanks

  8. #68
    Sencha Premium Member
    Join Date
    Apr 2010
    Posts
    101
    Vote Rating
    7
    ralscha will become famous soon enough

      0  

    Default


    Hi. Is this a normal form or multipart form (with upload)?
    Just found out that one of the demo applications (http://e4ds.rasc.ch/eds-starter-simple/) has the same problem with a multipart form.
    But a normal form post works: http://eds.rasc.ch/demo/extjs41/form.html


  9. #69
    Sencha User
    Join Date
    Jul 2009
    Location
    Bangkok, Thailand
    Posts
    10
    Vote Rating
    0
    Pock is on a distinguished road

      0  

    Default


    Hi, Thanks you for quick reponse.
    it is a multipart form with upload. Do you find any work around?

    Thanks

  10. #70
    Sencha Premium Member
    Join Date
    Apr 2010
    Posts
    101
    Vote Rating
    7
    ralscha will become famous soon enough

      0  

    Default


    Yes. I switched back from the StandardMultipartResolver to the CommonsMultipartResolver.

    http://stackoverflow.com/questions/9055025/how-to-change-the-character-encoding-for-servlet-3-0-spring-mvc-multipart-upload


Similar Threads

  1. Ext + Java + Spring + DWR
    By sfwalter in forum Community Discussion
    Replies: 59
    Last Post: 13 Dec 2010, 3:31 AM
  2. Ext JS 3.1 And Spring Webflow 2.0.8 Integration
    By erosszz in forum Ext 3.x: Help & Discussion
    Replies: 2
    Last Post: 2 Feb 2010, 11:33 PM
  3. Ext.Direct width Spring??
    By jonathanlarav in forum Ext.Direct
    Replies: 0
    Last Post: 1 Jun 2009, 5:10 PM
  4. Ext GWT and Spring MVC
    By Ivan Polak in forum Community Discussion
    Replies: 4
    Last Post: 12 May 2009, 10:55 PM
  5. Spring with EXT
    By sshah in forum Ext 2.x: Help & Discussion
    Replies: 0
    Last Post: 11 May 2008, 12:53 PM

Thread Participants: 13

Tags for this Thread