[Management, JMX/JBoss] - Re: STARTED Notification delayed until redeploy?
by daniel.gaiottino
Since I could not find an answer looking through the Forums or the Wiki I resorted to downloading the source code.
Basically my goal is to be able to receive STARTED and FAILED notifications when an ear has actually started or failed. Currently these notifications are not sent. STARTED is sent once you redeploy the app as I have showed in the previous post, and the FAILED notification isn't sent at all.
I've been remote debugging the deployers and it seems these are just not sent when you expect them. To solve the problem I've had to modify some of the JBoss code.
EARDeployer.java
| public void start(DeploymentInfo di) throws DeploymentException
| {
| ...
| log.info("Started J2EE application: " + di.url);
| }
|
As you can see above, the start method ends with a log.info. This is where I would have expected a STARTED notification to be sent. There is none, and there is none in the ServiceController.start method which is also called by EARDeployer.start.
I modified the code to be
| public void start(DeploymentInfo di) throws DeploymentException
| {
| ...
| log.info("Started J2EE application: " + di.url);
|
| di.state = DeploymentState.STARTED;
| Notification notification = new Notification(
| di.state.toString(),
| di.deployer.getServiceName(),
| super.nextNotificationSequenceNumber()
| );
| notification.setUserData(di);
| sendNotification(notification);
| }
|
To receive FAILED notifications, I added code to EARDeployer to 4 methods: init, create, start, stop. Depending on what is wrong with the ear, a deployement can fail in any of these method. All these methods begin with a try/catch so the code is the same for each method.
Current code
| public void init(DeploymentInfo di) throws DeploymentException
| {
| try
| {
| ...
| } catch (Exception e)
| {
| DeploymentException.rethrowAsDeploymentException("Error in accessing application metadata: ", e);
| }
| ...
| }
|
Modified to receive FAILED notifications
| public void init(DeploymentInfo di) throws DeploymentException
| {
| try
| {
| ...
| } catch (Exception e)
| {
| di.state = DeploymentState.FAILED;
| Notification notification = new Notification(
| di.state.toString(),
| di.deployer.getServiceName(),
| super.nextNotificationSequenceNumber()
| );
| notification.setUserData(di);
| sendNotification(notification);
|
| DeploymentException.rethrowAsDeploymentException("Error in accessing application metadata: ", e);
| }
| ...
| }
|
|
The create, start, stop methods are modified similarly to the init method above.
Unless someone can show me a different way of getting these notifications, I'm going to add my findings to a JIRA ticket since not getting the STARTED and FAILED notifications limits the usefulness of being able to create NotificationListeners.
I've only been interested in the EARDeployer but the same bug exists for the other deployers such as JARDeployer.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4220088#4220088
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4220088
17 years, 1 month
[JBoss Tools (users)] - Cannot run EAR seam project building from
by edmanlee
I followed "New Seam Project" Wizard to create a seam project and chose below options
Target Runtime = JBoss 4.2 Runtime
Dynamic Web Module version = 2.5
Taget Server = JBoss 4.2 Server
COnfiguration = Dynamic Web Project with Seam 2.0
Seam Runtime = jboss-seam-2.0.2.SP1
Deploy As = EAR
Another options remain unchanged.
After project was created, I started JBoss Server and right click on home.xhtml to select RUN AS -> RUN on Server.
It could not run and display JBoss Seam Debug. The console found error meesage as shown below.
However, if I choose deployment as "WAR" instead of "EAR", it can run without this problem.
Can anyone help me to reslove this?
version I use:
Eclipse JEE ganymede SR2 + JBoss Tools 3.0 GA
JBOss 4.2.3
Error Message:
23:56:56,423 ERROR [SeamPhaseListener] uncaught exception
java.lang.IllegalStateException: No phase id bound to current thread (make sure you do not have two SeamPhaseListener instances installed)
at org.jboss.seam.contexts.PageContext.getPhaseId(PageContext.java:162)
at org.jboss.seam.contexts.PageContext.isBeforeInvokeApplicationPhase(PageContext.java:174)
at org.jboss.seam.contexts.PageContext.getCurrentWritableMap(PageContext.java:90)
at org.jboss.seam.contexts.PageContext.remove(PageContext.java:104)
at org.jboss.seam.Component.newInstance(Component.java:1984)
at org.jboss.seam.Component.getInstance(Component.java:1876)
at org.jboss.seam.Component.getInstance(Component.java:1855)
at org.jboss.seam.Component.getInstance(Component.java:1832)
at org.jboss.seam.Component.getInstance(Component.java:1827)
at org.jboss.seam.faces.FacesPage.instance(FacesPage.java:92)
at org.jboss.seam.core.ConversationPropagation.restorePageContextConversationId(ConversationPropagation.java:85)
at org.jboss.seam.core.ConversationPropagation.restoreConversationId(ConversationPropagation.java:58)
at org.jboss.seam.jsf.SeamPhaseListener.afterRestoreView(SeamPhaseListener.java:387)
at org.jboss.seam.jsf.SeamPhaseListener.afterServletPhase(SeamPhaseListener.java:226)
at org.jboss.seam.jsf.SeamPhaseListener.afterPhase(SeamPhaseListener.java:192)
at com.sun.faces.lifecycle.Phase.handleAfterPhase(Phase.java:175)
at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:114)
at com.sun.faces.lifecycle.RestoreViewPhase.doPhase(RestoreViewPhase.java:104)
at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)
at org.jboss.seam.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.java:68)
at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:85)
at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)
at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:141)
at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:281)
at org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:60)
at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:58)
at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:182)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
at java.lang.Thread.run(Unknown Source)
23:56:56,892 ERROR [STDERR] 2009??????3??????22?????? ????????????11:56:56 com.sun.facelets.compiler.TagLibraryConfig loadImplicit
????????????: Added Library from: jar:file:/D:/Users/Edmond/devSpaces/Seam.02/wks/test01/.metadata/.plugins/org.jboss.ide.eclipse.as.core/JBoss_4.2_Server/deploy/app01-ear.ear/app01.war/WEB-INF/lib/jboss-seam-mail.jar!/META-INF/seam-mail.taglib.xml
23:56:56,892 ERROR [STDERR] 2009??????3??????22?????? ????????????11:56:56 com.sun.facelets.compiler.TagLibraryConfig loadImplicit
????????????: Added Library from: jar:file:/D:/Users/Edmond/devSpaces/Seam.02/wks/test01/.metadata/.plugins/org.jboss.ide.eclipse.as.core/JBoss_4.2_Server/deploy/app01-ear.ear/app01.war/WEB-INF/lib/jboss-seam-pdf.jar!/META-INF/seam-pdf.taglib.xml
23:56:56,908 ERROR [STDERR] 2009??????3??????22?????? ????????????11:56:56 com.sun.facelets.compiler.TagLibraryConfig loadImplicit
????????????: Added Library from: jar:file:/D:/Users/Edmond/devSpaces/Seam.02/wks/test01/.metadata/.plugins/org.jboss.ide.eclipse.as.core/JBoss_4.2_Server/deploy/app01-ear.ear/app01.war/WEB-INF/lib/jboss-seam-ui.jar!/META-INF/s.taglib.xml
23:56:56,923 ERROR [STDERR] 2009??????3??????22?????? ????????????11:56:56 com.sun.facelets.compiler.TagLibraryConfig loadImplicit
????????????: Added Library from: jar:file:/D:/Users/Edmond/devSpaces/Seam.02/wks/test01/.metadata/.plugins/org.jboss.ide.eclipse.as.core/JBoss_4.2_Server/deploy/app01-ear.ear/app01.war/WEB-INF/lib/jsf-facelets.jar!/META-INF/jsf-core.taglib.xml
23:56:56,939 ERROR [STDERR] 2009??????3??????22?????? ????????????11:56:56 com.sun.facelets.compiler.TagLibraryConfig loadImplicit
????????????: Added Library from: jar:file:/D:/Users/Edmond/devSpaces/Seam.02/wks/test01/.metadata/.plugins/org.jboss.ide.eclipse.as.core/JBoss_4.2_Server/deploy/app01-ear.ear/app01.war/WEB-INF/lib/jsf-facelets.jar!/META-INF/jsf-html.taglib.xml
23:56:56,939 ERROR [STDERR] 2009??????3??????22?????? ????????????11:56:56 com.sun.facelets.compiler.TagLibraryConfig loadImplicit
????????????: Added Library from: jar:file:/D:/Users/Edmond/devSpaces/Seam.02/wks/test01/.metadata/.plugins/org.jboss.ide.eclipse.as.core/JBoss_4.2_Server/deploy/app01-ear.ear/app01.war/WEB-INF/lib/jsf-facelets.jar!/META-INF/jsf-ui.taglib.xml
23:56:56,954 ERROR [STDERR] 2009??????3??????22?????? ????????????11:56:56 com.sun.facelets.compiler.TagLibraryConfig loadImplicit
????????????: Added Library from: jar:file:/D:/Users/Edmond/devSpaces/Seam.02/wks/test01/.metadata/.plugins/org.jboss.ide.eclipse.as.core/JBoss_4.2_Server/deploy/app01-ear.ear/app01.war/WEB-INF/lib/jsf-facelets.jar!/META-INF/jstl-core.taglib.xml
23:56:56,954 ERROR [STDERR] 2009??????3??????22?????? ????????????11:56:56 com.sun.facelets.compiler.TagLibraryConfig loadImplicit
????????????: Added Library from: jar:file:/D:/Users/Edmond/devSpaces/Seam.02/wks/test01/.metadata/.plugins/org.jboss.ide.eclipse.as.core/JBoss_4.2_Server/deploy/app01-ear.ear/app01.war/WEB-INF/lib/jsf-facelets.jar!/META-INF/jstl-fn.taglib.xml
23:56:56,970 ERROR [STDERR] 2009??????3??????22?????? ????????????11:56:56 com.sun.facelets.compiler.TagLibraryConfig loadImplicit
????????????: Added Library from: jar:file:/D:/Users/Edmond/devSpaces/Seam.02/wks/test01/.metadata/.plugins/org.jboss.ide.eclipse.as.core/JBoss_4.2_Server/deploy/app01-ear.ear/app01.war/WEB-INF/lib/richfaces-ui.jar!/META-INF/a4j.taglib.xml
23:56:56,970 ERROR [STDERR] 2009??????3??????22?????? ????????????11:56:56 com.sun.facelets.compiler.TagLibraryConfig loadImplicit
????????????: Added Library from: jar:file:/D:/Users/Edmond/devSpaces/Seam.02/wks/test01/.metadata/.plugins/org.jboss.ide.eclipse.as.core/JBoss_4.2_Server/deploy/app01-ear.ear/app01.war/WEB-INF/lib/richfaces-ui.jar!/META-INF/ajax4jsf.taglib.xml
23:56:57,001 ERROR [STDERR] 2009??????3??????22?????? ????????????11:56:57 com.sun.facelets.compiler.TagLibraryConfig loadImplicit
????????????: Added Library from: jar:file:/D:/Users/Edmond/devSpaces/Seam.02/wks/test01/.metadata/.plugins/org.jboss.ide.eclipse.as.core/JBoss_4.2_Server/deploy/app01-ear.ear/app01.war/WEB-INF/lib/richfaces-ui.jar!/META-INF/rich.taglib.xml
23:56:57,001 ERROR [STDERR] 2009??????3??????22?????? ????????????11:56:57 com.sun.facelets.compiler.TagLibraryConfig loadImplicit
????????????: Added Library from: jar:file:/D:/Users/Edmond/devSpaces/Seam.02/wks/test01/.metadata/.plugins/org.jboss.ide.eclipse.as.core/JBoss_4.2_Server/deploy/app01-ear.ear/app01.war/WEB-INF/lib/richfaces-ui.jar!/META-INF/richfaces.taglib.xml
23:56:57,329 ERROR [SeamPhaseListener] uncaught exception
java.lang.IllegalStateException: No active application scope
at org.jboss.seam.core.Init.instance(Init.java:76)
at org.jboss.seam.jsf.SeamPhaseListener.handleTransactionsAfterPhase(SeamPhaseListener.java:330)
at org.jboss.seam.jsf.SeamPhaseListener.afterServletPhase(SeamPhaseListener.java:241)
at org.jboss.seam.jsf.SeamPhaseListener.afterPhase(SeamPhaseListener.java:192)
at com.sun.faces.lifecycle.Phase.handleAfterPhase(Phase.java:175)
at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:114)
at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:266)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)
at org.jboss.seam.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.java:68)
at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:85)
at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)
at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:141)
at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:281)
at org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:60)
at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:58)
at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:182)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
at java.lang.Thread.run(Unknown Source)
23:56:57,329 ERROR [SeamPhaseListener] swallowing exception
java.lang.IllegalStateException: No active application scope
at org.jboss.seam.core.Init.instance(Init.java:76)
at org.jboss.seam.jsf.SeamPhaseListener.handleTransactionsAfterPhase(SeamPhaseListener.java:330)
at org.jboss.seam.jsf.SeamPhaseListener.afterServletPhase(SeamPhaseListener.java:241)
at org.jboss.seam.jsf.SeamPhaseListener.afterPhase(SeamPhaseListener.java:192)
at com.sun.faces.lifecycle.Phase.handleAfterPhase(Phase.java:175)
at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:114)
at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:266)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)
at org.jboss.seam.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.java:68)
at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:85)
at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)
at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:141)
at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:281)
at org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:60)
at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:58)
at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:182)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
at java.lang.Thread.run(Unknown Source)
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4220087#4220087
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4220087
17 years, 1 month
[Tomcat, HTTPD, Servlets & JSP] - Re:
by jaikiran
I think this folder name/location is not controlled by JBoss but is controlled by Tomcat/JBossWeb. The tomcat documentation http://tomcat.apache.org/tomcat-5.5-doc/config/context.html helped. Search for workDir on that page.
So all you have to do is edit the %JBOSS_HOME%/server/< serverName>/deploy/jboss-web.deployer/context.xml as follows:
<Context cookies="true" crossContext="true" workDir="/home/jaikiran/myworkfolder" >
| .... other stuff that's already in that file
|
|
The path is the absolute path. So in this case, the work folder will be configured to /home/jaikiran/myworkfolder.
For JBoss 4.0.4, the location of the context.xml will be %JBOSS_HOME%/server/< serverName>/deploy/*tomcat*.sar/context.xml.
P.S: I also found another way to configure this in the %JBOSS_HOME%/server/< serverName>/deploy/jboss-web.deployer/conf/web.xml file, by passing as init-param a "scratchdir" property (search for scratchdir in that file) to the org.apache.jasper.servlet.JspServlet. But that one assumes that the folder will be present by default and it will not create one if the folder does not exist.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4220077#4220077
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4220077
17 years, 1 month
[Installation, Configuration & DEPLOYMENT] - Deployment error with JBoss 5.0.1, NetBeans 6.5 and JAX-WS 2
by aojensen
Hi all,
I am encountering a very odd problem when deploying a vanilla EJB 3.0 web service using the JAX-WS on JBoss 5.0.1 from NetBeans 6.5. The problem also occurs on JBoss 5.0.0, so upgrading from the older version would not fix the problem for me.
I have created the following test web service implementation:
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package dk.ejb;
|
| import javax.jws.WebMethod;
| import javax.jws.WebParam;
| import javax.jws.WebService;
| import javax.ejb.Stateless;
|
| /**
| *
| * @author aj
| */
| @WebService()
| @Stateless()
| public class TestWS {
|
| /**
| * Web service operation
| */
| @WebMethod(operationName = "add")
| public int add(@WebParam(name = "a")
| final int a, @WebParam(name = "b")
| final int b) {
| //TODO write your implementation code here:
| return a + b;
| }
| }
And I have added the JAX-WS 2.1 RI to the project classpath from NetBeans. Adding the latest nightly build from Sun wouldn't fix the problem either.
The problem is that I encounter the following stack trace when deploying the EJB jar:
| 11:28:26,328 INFO [Ejb3DependenciesDeployer] Encountered deployment AbstractVFSDeploymentContext@10249484{vfszip:/Users/aj/jboss-5.0.1.GA/server/default/deploy/EJBModule2.jar/}
| 11:28:26,328 INFO [Ejb3DependenciesDeployer] Encountered deployment AbstractVFSDeploymentContext@10249484{vfszip:/Users/aj/jboss-5.0.1.GA/server/default/deploy/EJBModule2.jar/}
| 11:28:26,328 INFO [Ejb3DependenciesDeployer] Encountered deployment AbstractVFSDeploymentContext@10249484{vfszip:/Users/aj/jboss-5.0.1.GA/server/default/deploy/EJBModule2.jar/}
| 11:28:26,328 INFO [Ejb3DependenciesDeployer] Encountered deployment AbstractVFSDeploymentContext@10249484{vfszip:/Users/aj/jboss-5.0.1.GA/server/default/deploy/EJBModule2.jar/}
| 11:28:26,370 INFO [JBossASKernel] Created KernelDeployment for: jaxb-xjc.jar
| 11:28:26,370 INFO [JBossASKernel] installing bean: jboss.j2ee:ear=EJBModule2.jar,jar=jaxb-xjc.jar,name=jaxb-xjc,service=EJB3
| 11:28:26,370 INFO [JBossASKernel] with dependencies:
| 11:28:26,370 INFO [JBossASKernel] and demands:
| 11:28:26,370 INFO [JBossASKernel] and supplies:
| 11:28:26,370 INFO [JBossASKernel] Added bean(jboss.j2ee:ear=EJBModule2.jar,jar=jaxb-xjc.jar,name=jaxb-xjc,service=EJB3) to KernelDeployment of: jaxb-xjc.jar
| 11:28:26,371 ERROR [AbstractKernelController] Error installing to Real: name=vfszip:/Users/aj/jboss-5.0.1.GA/server/default/deploy/EJBModule2.jar/ state=PreReal mode=Manual requiredState=Real
| org.jboss.deployers.spi.DeploymentException: Error during deploy: vfszip:/Users/aj/jboss-5.0.1.GA/server/default/deploy/EJBModule2.jar/jaxb-xjc.jar/1.0/
| at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49)
| at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:177)
| at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439)
| at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157)
| at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1210)
| at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1210)
| at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098)
| at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
| at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1598)
| at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
| at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062)
| at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
| at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
| at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
| at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781)
| at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:698)
| at org.jboss.system.server.profileservice.hotdeploy.HDScanner.scan(HDScanner.java:290)
| at org.jboss.system.server.profileservice.hotdeploy.HDScanner.run(HDScanner.java:221)
| at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:417)
| at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:280)
| at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:135)
| at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:65)
| at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:142)
| at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:166)
| at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
| at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
| at java.lang.Thread.run(Thread.java:613)
| Caused by: java.lang.IllegalStateException: Expected either '.jar' or '.jar/' at the end of 1.0
| at org.jboss.ejb3.deployers.Ejb3ClientDeployer.getDeploymentJndiName(Ejb3ClientDeployer.java:214)
| at org.jboss.ejb3.deployers.Ejb3ClientDeployer.deploy(Ejb3ClientDeployer.java:104)
| at org.jboss.ejb3.deployers.Ejb3ClientDeployer.deploy(Ejb3ClientDeployer.java:61)
| at org.jboss.deployers.vfs.spi.deployer.AbstractSimpleVFSRealDeployer.deploy(AbstractSimpleVFSRealDeployer.java:56)
| at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62)
| at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)
| at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)
| ... 25 more
| 11:28:26,381 WARN [HDScanner] Failed to process changes
| org.jboss.deployers.client.spi.IncompleteDeploymentException: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):
|
| DEPLOYMENTS IN ERROR:
| Deployment "vfszip:/Users/aj/jboss-5.0.1.GA/server/default/deploy/xmir2-ejb.jar/" is in error due to the following reason(s): java.lang.IllegalStateException: Expected either '.jar' or '.jar/' at the end of 1.0
| Deployment "vfszip:/Users/aj/jboss-5.0.1.GA/server/default/deploy/EJBModule2.jar/" is in error due to the following reason(s): java.lang.IllegalStateException: Expected either '.jar' or '.jar/' at the end of 1.0
|
| at org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(DeployersImpl.java:863)
| at org.jboss.deployers.plugins.main.MainDeployerImpl.checkComplete(MainDeployerImpl.java:806)
| at org.jboss.system.server.profileservice.hotdeploy.HDScanner.scan(HDScanner.java:293)
| at org.jboss.system.server.profileservice.hotdeploy.HDScanner.run(HDScanner.java:221)
| at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:417)
| at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:280)
| at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:135)
| at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:65)
| at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:142)
| at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:166)
| at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
| at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
| at java.lang.Thread.run(Thread.java:613)
The server bootstraps with the following output:
| run.sh: Could not set maximum file descriptor limit: unlimited
| =========================================================================
|
| JBoss Bootstrap Environment
|
| JBOSS_HOME: /Users/aj/jboss-5.0.1.GA
|
| JAVA: /System/Library/Frameworks/JavaVM.framework/Versions/1.5/Home/bin/java
|
| JAVA_OPTS: -Dprogram.name=run.sh -Xms128m -Xmx512m
|
| CLASSPATH: /Users/aj/jboss-5.0.1.GA/bin/run.jar
|
| =========================================================================
|
| /Users/aj/jboss-5.0.1.GA/bin/run.sh: line 89: ulimit: open files: cannot modify limit: Invalid argument
| 11:24:55,376 INFO [ServerImpl] Starting JBoss (Microcontainer)...
| 11:24:55,377 INFO [ServerImpl] Release ID: JBoss [Morpheus] 5.0.1.GA (build: SVNTag=JBoss_5_0_1_GA date=200902231221)
| 11:24:55,378 INFO [ServerImpl] Bootstrap URL: null
| 11:24:55,378 INFO [ServerImpl] Home Dir: /Users/aj/jboss-5.0.1.GA
| 11:24:55,378 INFO [ServerImpl] Home URL: file:/Users/aj/jboss-5.0.1.GA/
| 11:24:55,378 INFO [ServerImpl] Library URL: file:/Users/aj/jboss-5.0.1.GA/lib/
| 11:24:55,379 INFO [ServerImpl] Patch URL: null
| 11:24:55,379 INFO [ServerImpl] Common Base URL: file:/Users/aj/jboss-5.0.1.GA/common/
| 11:24:55,379 INFO [ServerImpl] Common Library URL: file:/Users/aj/jboss-5.0.1.GA/common/lib/
| 11:24:55,383 INFO [ServerImpl] Server Name: default
| 11:24:55,383 INFO [ServerImpl] Server Base Dir: /Users/aj/jboss-5.0.1.GA/server
| 11:24:55,384 INFO [ServerImpl] Server Base URL: file:/Users/aj/jboss-5.0.1.GA/server/
| 11:24:55,384 INFO [ServerImpl] Server Config URL: file:/Users/aj/jboss-5.0.1.GA/server/default/conf/
| 11:24:55,384 INFO [ServerImpl] Server Home Dir: /Users/aj/jboss-5.0.1.GA/server/default
| 11:24:55,384 INFO [ServerImpl] Server Home URL: file:/Users/aj/jboss-5.0.1.GA/server/default/
| 11:24:55,384 INFO [ServerImpl] Server Data Dir: /Users/aj/jboss-5.0.1.GA/server/default/data
| 11:24:55,384 INFO [ServerImpl] Server Library URL: file:/Users/aj/jboss-5.0.1.GA/server/default/lib/
| 11:24:55,384 INFO [ServerImpl] Server Log Dir: /Users/aj/jboss-5.0.1.GA/server/default/log
| 11:24:55,384 INFO [ServerImpl] Server Native Dir: /Users/aj/jboss-5.0.1.GA/server/default/tmp/native
| 11:24:55,384 INFO [ServerImpl] Server Temp Dir: /Users/aj/jboss-5.0.1.GA/server/default/tmp
| 11:24:55,384 INFO [ServerImpl] Server Temp Deploy Dir: /Users/aj/jboss-5.0.1.GA/server/default/tmp/deploy
| 11:24:55,901 INFO [ServerImpl] Starting Microcontainer, bootstrapURL=file:/Users/aj/jboss-5.0.1.GA/server/default/conf/bootstrap.xml
| 11:24:56,336 INFO [VFSCacheFactory] Initializing VFSCache [org.jboss.virtual.plugins.cache.CombinedVFSCache]
| 11:24:56,338 INFO [VFSCacheFactory] Using VFSCache [CombinedVFSCache[real-cache: null]]
| 11:24:56,588 INFO [CopyMechanism] VFS temp dir: /Users/aj/jboss-5.0.1.GA/server/default/tmp
| 11:24:56,588 INFO [ZipEntryContext] VFS force nested jars copy-mode is enabled.
| 11:24:57,442 INFO [ServerInfo] Java version: 1.5.0_16,Apple Inc.
| 11:24:57,442 INFO [ServerInfo] Java Runtime: Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_16-b06-284)
| 11:24:57,442 INFO [ServerInfo] Java VM: Java HotSpot(TM) Client VM 1.5.0_16-133,Apple Inc.
| 11:24:57,442 INFO [ServerInfo] OS-System: Mac OS X 10.5.6,i386
| 11:24:57,477 INFO [JMXKernel] Legacy JMX core initialized
| 11:24:59,082 INFO [ProfileServiceImpl] Loading profile: default from: org.jboss.system.server.profileservice.repository.SerializableDeploymentRepository(a)4847ca(root=/Users/aj/jboss-5.0.1.GA/server, key=org.jboss.profileservice.spi.ProfileKey@143b82c3[domain=default,server=default,name=default])
| 11:24:59,084 INFO [ProfileImpl] Using repository:org.jboss.system.server.profileservice.repository.SerializableDeploymentRepository@4847ca(root=/Users/aj/jboss-5.0.1.GA/server, key=org.jboss.profileservice.spi.ProfileKey@143b82c3[domain=default,server=default,name=default])
| 11:24:59,084 INFO [ProfileServiceImpl] Loaded profile: ProfileImpl@74784{key=org.jboss.profileservice.spi.ProfileKey(a)143b82c3[domain=default,server=default,name=default]}
| 11:25:00,206 INFO [WebService] Using RMI server codebase: http://127.0.0.1:8083/
| 11:25:04,808 INFO [NativeServerConfig] JBoss Web Services - Stack Native Core
| 11:25:04,808 INFO [NativeServerConfig] 3.0.5.GA
| 11:25:11,922 INFO [JMXConnectorServerService] JMX Connector server: service:jmx:rmi://127.0.0.1/jndi/rmi://127.0.0.1:1090/jmxconnector
| 11:25:12,061 INFO [MailService] Mail Service bound to java:/Mail
| 11:25:13,502 WARN [JBossASSecurityMetadataStore] WARNING! POTENTIAL SECURITY RISK. It has been detected that the MessageSucker component which sucks messages from one node to another has not had its password changed from the installation default. Please see the JBoss Messaging user guide for instructions on how to do this.
| 11:25:13,523 WARN [AnnotationCreator] No ClassLoader provided, using TCCL: org.jboss.managed.api.annotation.ManagementComponent
| 11:25:13,675 INFO [TransactionManagerService] JBossTS Transaction Service (JTA version) - JBoss Inc.
| 11:25:13,675 INFO [TransactionManagerService] Setting up property manager MBean and JMX layer
| 11:25:14,277 INFO [TransactionManagerService] Initializing recovery manager
| 11:25:14,413 INFO [TransactionManagerService] Recovery manager configured
| 11:25:14,413 INFO [TransactionManagerService] Binding TransactionManager JNDI Reference
| 11:25:14,437 INFO [TransactionManagerService] Starting transaction recovery manager
| 11:25:14,921 INFO [Http11Protocol] Initializing Coyote HTTP/1.1 on http-127.0.0.1-8080
| 11:25:14,922 INFO [AjpProtocol] Initializing Coyote AJP/1.3 on ajp-127.0.0.1-8009
| 11:25:14,922 INFO [StandardService] Starting service jboss.web
| 11:25:14,924 INFO [StandardEngine] Starting Servlet Engine: JBoss Web/2.1.2.GA
| 11:25:14,976 INFO [Catalina] Server startup in 153 ms
| 11:25:14,990 INFO [TomcatDeployment] deploy, ctxPath=/invoker
| 11:25:15,520 INFO [TomcatDeployment] deploy, ctxPath=/jbossws
| 11:25:15,559 INFO [TomcatDeployment] deploy, ctxPath=/web-console
| 11:25:15,877 INFO [RARDeployment] Required license terms exist, view vfszip:/Users/aj/jboss-5.0.1.GA/server/default/deploy/jboss-local-jdbc.rar/META-INF/ra.xml
| 11:25:15,915 INFO [RARDeployment] Required license terms exist, view vfszip:/Users/aj/jboss-5.0.1.GA/server/default/deploy/jboss-xa-jdbc.rar/META-INF/ra.xml
| 11:25:15,943 INFO [RARDeployment] Required license terms exist, view vfszip:/Users/aj/jboss-5.0.1.GA/server/default/deploy/jms-ra.rar/META-INF/ra.xml
| 11:25:15,965 INFO [RARDeployment] Required license terms exist, view vfszip:/Users/aj/jboss-5.0.1.GA/server/default/deploy/mail-ra.rar/META-INF/ra.xml
| 11:25:15,990 INFO [RARDeployment] Required license terms exist, view vfszip:/Users/aj/jboss-5.0.1.GA/server/default/deploy/quartz-ra.rar/META-INF/ra.xml
| 11:25:16,565 INFO [SimpleThreadPool] Job execution threads will use class loader of thread: main
| 11:25:16,588 INFO [QuartzScheduler] Quartz Scheduler v.1.5.2 created.
| 11:25:16,590 INFO [RAMJobStore] RAMJobStore initialized.
| 11:25:16,590 INFO [StdSchedulerFactory] Quartz scheduler 'DefaultQuartzScheduler' initialized from default resource file in Quartz package: 'quartz.properties'
| 11:25:16,590 INFO [StdSchedulerFactory] Quartz scheduler version: 1.5.2
| 11:25:16,591 INFO [QuartzScheduler] Scheduler DefaultQuartzScheduler_$_NON_CLUSTERED started.
| 11:25:16,996 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=DefaultDS' to JNDI name 'java:DefaultDS'
| 11:25:17,382 INFO [ServerPeer] JBoss Messaging 1.4.1.GA server [0] started
| 11:25:17,488 INFO [ConnectionFactory] Connector bisocket://127.0.0.1:4457 has leasing enabled, lease period 10000 milliseconds
| 11:25:17,488 INFO [ConnectionFactory] org.jboss.jms.server.connectionfactory.ConnectionFactory@9af180 started
| 11:25:17,489 WARN [ConnectionFactoryJNDIMapper] supportsFailover attribute is true on connection factory: jboss.messaging.connectionfactory:service=ClusteredConnectionFactory but post office is non clustered. So connection factory will *not* support failover
| 11:25:17,489 WARN [ConnectionFactoryJNDIMapper] supportsLoadBalancing attribute is true on connection factory: jboss.messaging.connectionfactory:service=ClusteredConnectionFactory but post office is non clustered. So connection factory will *not* support load balancing
| 11:25:17,497 INFO [ConnectionFactory] Connector bisocket://127.0.0.1:4457 has leasing enabled, lease period 10000 milliseconds
| 11:25:17,497 INFO [ConnectionFactory] org.jboss.jms.server.connectionfactory.ConnectionFactory@66e02f started
| 11:25:17,499 INFO [ConnectionFactory] Connector bisocket://127.0.0.1:4457 has leasing enabled, lease period 10000 milliseconds
| 11:25:17,499 INFO [ConnectionFactory] org.jboss.jms.server.connectionfactory.ConnectionFactory@79d75c started
| 11:25:17,539 INFO [QueueService] Queue[/queue/DLQ] started, fullSize=200000, pageSize=2000, downCacheSize=2000
| 11:25:17,542 INFO [QueueService] Queue[/queue/ExpiryQueue] started, fullSize=200000, pageSize=2000, downCacheSize=2000
| 11:25:17,656 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=ConnectionFactoryBinding,name=JmsXA' to JNDI name 'java:JmsXA'
| 11:25:17,669 INFO [TomcatDeployment] deploy, ctxPath=/
| 11:25:17,737 INFO [TomcatDeployment] deploy, ctxPath=/jmx-console
| 11:25:17,798 INFO [Http11Protocol] Starting Coyote HTTP/1.1 on http-127.0.0.1-8080
| 11:25:17,818 INFO [AjpProtocol] Starting Coyote AJP/1.3 on ajp-127.0.0.1-8009
| 11:25:17,827 INFO [ServerImpl] JBoss (Microcontainer) [5.0.1.GA (build: SVNTag=JBoss_5_0_1_GA date=200902231221)] Started in 22s:441ms
|
I really hope that you can help me, as I've been stuck with this problem for a very long time now.
Regards,
Anders
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4220074#4220074
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4220074
17 years, 1 month