java - Deploying jspresso helloworld webapp (5min tutorial) to tomcat6/tomcat7 fails -


after jspresso 10min tutorial went fine start trying 5min tutorial cannnot work. i'm getting following exception when deploying webapp tomcat6/tomcat7.

**** messagebrokerservlet in application 'example application' failed initialize due runtime exception:   exception: flex.messaging.config.configurationexception: please specify valid 'services.configuration.file' in web.xml.  specified '/web-inf/flex/services-config.xml'.  not valid file system path reachable via app server , not path resource in j2ee application archive. @ flex.messaging.config.servletresourceresolver.isavailable(servletresourceresolver.java:54) @ flex.messaging.config.flexconfigurationmanager.setupconfigurationpathandresolver(flexconfigurationmanager.java:202) @ flex.messaging.config.flexconfigurationmanager.getmessagingconfiguration(flexconfigurationmanager.java:78) @ flex.messaging.messagebrokerservlet.init(messagebrokerservlet.java:109) @ org.apache.catalina.core.standardwrapper.loadservlet(standardwrapper.java:1213) @ org.apache.catalina.core.standardwrapper.load(standardwrapper.java:1026) @ org.apache.catalina.core.standardcontext.loadonstartup(standardcontext.java:4421) @ org.apache.catalina.core.standardcontext.start(standardcontext.java:4734) @ org.apache.catalina.core.containerbase.start(containerbase.java:1057) @ org.apache.catalina.core.standardhost.start(standardhost.java:840) @ org.apache.catalina.core.containerbase.start(containerbase.java:1057) @ org.apache.catalina.core.standardengine.start(standardengine.java:463) @ org.apache.catalina.core.standardservice.start(standardservice.java:525) @ org.apache.catalina.core.standardserver.start(standardserver.java:754) @ org.apache.catalina.startup.catalina.start(catalina.java:595) @ sun.reflect.nativemethodaccessorimpl.invoke0(native method) @ sun.reflect.nativemethodaccessorimpl.invoke(nativemethodaccessorimpl.java:57) @ sun.reflect.delegatingmethodaccessorimpl.invoke(delegatingmethodaccessorimpl.java:43) @ java.lang.reflect.method.invoke(method.java:606) @ org.apache.catalina.startup.bootstrap.start(bootstrap.java:289) @ org.apache.catalina.startup.bootstrap.main(bootstrap.java:414) 

my setup: win7, jdk1.7.0_55, eclipse luna service release 2 (4.4.2), jspresso developer studio www.jspresso.org/external/updates/e44/

i'm new jspresso , unfortunately not used maven. hints me?

update: answer vincent right , fixed deployment problem there empty page when open localhost:8080/helloworld-webapp/flex/index.html , when try localhost:8080/helloworld-webapp/html5/index.html 404. @vincent: ideas problem, too?

update2: did mvn package on console (in eclipse not successful) , somehow had start applicaiton once mvn jetty:run-exploded. after deployment tomcat6 inside eclipse successful , it's working.

there problem on jspresso 4.0.7 regarding eclipse project import didn't map correctly flex config directory on webapp web-inf/flex.

this bug has been fixed in 4.0.8 online jspresso archetype catalog still points 4.0.7. i've updated online archetype catalog , pointing 4.0.8, problem should fixed now.
restart project generation , should fine.

update: eclipse won't trigger flex nor qooxdoo compilation in build; have once either command line (mvn package project root directory) or eclipse (right-click on project root, run > maven build... > package). since flex / qooxdoo client not depend on application server code, won't have again during development (unless want customize client ui integrate custom components instance, advanced usage).

once done, refresh eclipse project , restart tomcat.

update 2: can test-drive bleeding-edge jspresso version (4.1-snapshot includes new theme, mongodb support, ...) generating project snapshot maven repository, i.e. :
mvn archetype:generate -darchetypecatalog=http://repository.jspresso.org/maven2-snapshots/


Comments