-
15. Re: Deploying Seam 2.2 app in AS7 Fails w/RESTEasy Error
robwms63 Jul 13, 2011 1:38 AM (in response to jaikiran)Kind of big to attach here, happy to share it privately. I could drop it in a dropbox folder for you.. ?
Tomorrow, I was going to try and do the deploy on another machine. The pom is definitely right now. Really almost there.. I was wondering if there was any way that the jar was hanging around, but I nuked the server and reinstalled so that's out.
-
16. Re: Deploying Seam 2.2 app in AS7 Fails w/RESTEasy Error
jaikiran Jul 13, 2011 2:02 AM (in response to robwms63)Rob Williams wrote:
happy to share it privately. I could drop it in a dropbox folder for you.. ?
Yes, please share the final generated .war that you are deploying and let me know the URL (you can PM me the details). I'll take a look.
-
17. Re: Deploying Seam 2.2 app in AS7 Fails w/RESTEasy Error
jaikiran Jul 13, 2011 4:50 AM (in response to robwms63)Rob, thanks for sharing the application.
Rob Williams wrote:
I went back to it tonight and found the new 'Explore' option on the app, which is really great! Not the least reason being that I drilled into it and down into WEB-INF/lib and found the jars all lined up there (in alphabetical order!) and there is no jaxrs-api.jar, so whatever is left is something with deploy because yes I am getting the same trace:
12:45:16,178 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-10) MSC00001: Failed to start service jboss.deployment.unit."opportunity-miner.war".INSTALL: org.jboss.msc.ser
vice.StartException in service jboss.deployment.unit."opportunity-miner.war".INSTALL: Failed to process phase INSTALL of deployment "opportunity-miner.war"
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:121)
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1765)
at org.jboss.msc.service.ServiceControllerImpl$ClearTCCLTask.run(ServiceControllerImpl.java:2291)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [:1.6.0_26]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [:1.6.0_26]
at java.lang.Thread.run(Thread.java:680) [:1.6.0_26]
Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: No Servlet mappings found for JAX-RS application: org.jboss.seam.resteasy.Application either annotate i
t with @ApplicationPath or add a servlet-mapping in web.xml
at org.jboss.as.jaxrs.deployment.JaxrsIntegrationProcessor.deploy(JaxrsIntegrationProcessor.java:193)
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:115)
... 5 more
I deployed the application against AS 7.0 Final and I don't see this exception, which is obvious because we no longer throw this exception in AS7 Final. Instead, we just log a WARN message:
13:44:00,829 WARN [org.jboss.jaxrs] (MSC service thread 1-2) No Servlet mappings found for JAX-RS application: org.jboss.seam.resteasy.Application either annotate it with @ApplicationPath or add a servlet-mapping in web.xml
This is a valid WARN message, since JaxRS spec 1.1 (the version which AS7 implements) has this in the spec, section 2.3.2:
If the Application subclass is not annotated with @ApplicationPath then the application MUST be packaged with a web.xml that specifies a servlet mapping for the added servlet.
Are you sure you are using AS 7.0 Final? Where did you get the AS7 binary from?
-
18. Re: Deploying Seam 2.2 app in AS7 Fails w/RESTEasy Error
robwms63 Jul 13, 2011 11:47 AM (in response to jaikiran)Ok, thanks Guys, figured this out: I had a link setup to my install of 7. When I got the final, I changed the link, but eclipse's reference was to the old directory. (You were right, Jaikiran, throws just a warning now and then gets to trying to load the data source..!)
Awesome! Thanks!!