[Beginners Corner] - Re: Scoped class service
by mabc101
I am include the following abbreviated version of the following:
- the deployment war file tree
- the jboss-web.xml file that specifies the scoped class loader.
Please let me know how I can view the scoped classes from the JMX console.
Thanks a lot for your help.
jboss-web.xml
<jboss-web>
<loader-repository>
com.test:loader=testmanager
</loader-repository>
</jboss-web>
===========================================
Deployment war file tree:
0 Wed Sep 20 09:09:24 EST 2006 META-INF/
388 Wed Sep 20 09:09:22 EST 2006 META-INF/MANIFEST.MF
0 Wed Sep 20 09:09:24 EST 2006 WEB-INF/
0 Wed Sep 20 09:09:24 EST 2006 WEB-INF/classes/
0 Wed Sep 20 09:09:24 EST 2006 WEB-INF/classes/com/
0 Wed Sep 20 09:09:24 EST 2006 WEB-INF/classes/com/testmanager/
0 Wed Sep 20 09:09:24 EST 2006 WEB-INF/classes/com/testmanager/jsptaglib/
0 Wed Sep 20 09:09:24 EST 2006 WEB-INF/classes/com/testmanager/manager/
0 Wed Sep 20 09:09:24 EST 2006 WEB-INF/classes/com/testmanager/manager/action/
0 Wed Sep 20 09:09:24 EST 2006 WEB-INF/classes/com/testmanager/manager/bean/
0 Wed Sep 20 09:09:24 EST 2006 WEB-INF/classes/com/testmanager/manager/utils/
917 Wed Sep 20 09:09:24 EST 2006 WEB-INF/generic.tld
277 Wed Sep 20 09:09:24 EST 2006 WEB-INF/jboss-web.xml
0 Wed Sep 20 09:09:24 EST 2006 WEB-INF/lib/
... (edited for space)
320 Wed Sep 20 09:09:24 EST 2006 mytest/u_list.jsp
2492 Wed Sep 20 09:09:24 EST 2006 manager/error.jsp
3845 Wed Sep 20 09:09:24 EST 2006 manager/s_s.jsp
10892 Wed Sep 20 09:09:24 EST 2006 manager/_info.jsp
...(edited for space)
2983 Wed Sep 20 09:09:24 EST 2006 WEB-INF/lib/activation-1.1.jar
1653 Wed Sep 20 09:09:24 EST 2006 WEB-INF/web.xml
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3974972#3974972
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3974972
19 years, 6 months
[JBoss Seam] - NumberFormatException on inputTextArea?
by sjmenden
I am having a strange problem I am not sure how to fix, possibly a customer converter?
I have an inputTextArea which I allow the user to input any text, later to be parsed, the text can contain any characters necessarily:
| <!-- Input the parameters for the Job -->
| <tr>
| <td width="20%" align="right" id="header-label">
| Job Parameters:
| </td>
| <td width="80%" align="left">
| <h:inputTextarea
| rows="25" cols="60"
| value="#{createPluginJob.parameterText}"/>
| </td>
| </tr>
|
The EJB looks like this:
| @Name("createPluginJob")
| @Stateless
| public class CreatePluginJobBean implements CreatePluginJob {
|
| ...
|
| private String parameterText;
| public String getParameterText() {return parameterText;}
| public void setParameterText(String parameterText) {this.parameterText = parameterText;}
|
| ...
|
| public String create() {
| PluginCommand networkCommand = new PluginCommand();
| networkCommand.setFqClassName(fqcn);
|
| StringReader stringReader = new StringReader(parameterText.trim());
| BufferedReader reader = new BufferedReader(stringReader);
|
| String line = null;
| try {
| log.info("Parsing parameterText: \n" + parameterText); //NumberFormatException happening here
| while((line = reader.readLine()) != null) {
| log.info("extracted line: " + line);
| networkCommand.getParameters().put(StringUtils.substringBefore(line, "="), StringUtils.substringAfter(line, "="));
| }
| } catch(IOException e) {
| log.error(e.getMessage());
| }
| log.info("Extracted parameters: " + networkCommand.getParameters());
|
| job.setNetworkCommand(networkCommand.buildCommand());
| em.persist(job);
| FacesMessages.instance().add("Successfully created job");
| return "createPluginJob";
| }
| }
|
It seems as though the NumberFormatException is happening the first time I try to do anything with the parameterText value. The exception is as follows:
| Caused by: javax.faces.el.EvaluationException: /createPluginJob.xhtml @50,93 action="#{createPluginJob.create}": javax.ejb.EJBTransactionRolledbackException: java.lang.NumberFormatException: For input string: "H"
| at com.sun.facelets.el.LegacyMethodBinding.invoke(LegacyMethodBinding.java:73)
| at org.apache.myfaces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:63)
| ... 27 more
| Caused by: javax.ejb.EJBTransactionRolledbackException: java.lang.NumberFormatException: For input string: "H"
| at org.jboss.ejb3.tx.Ejb3TxPolicy.handleInCallerTx(Ejb3TxPolicy.java:93)
| at org.jboss.aspects.tx.TxPolicy.invokeInCallerTx(TxPolicy.java:130)
| at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:201)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:76)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(StatelessInstanceInterceptor.java:62)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:78)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:47)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.ejb3.stateless.StatelessContainer.localInvoke(StatelessContainer.java:181)
| at org.jboss.ejb3.stateless.StatelessLocalProxy.invoke(StatelessLocalProxy.java:79)
| at $Proxy104.create(Unknown Source)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:589)
| at com.sun.el.parser.AstValue.invoke(AstValue.java:151)
| at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:283)
| at com.sun.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:68)
| at com.sun.facelets.el.LegacyMethodBinding.invoke(LegacyMethodBinding.java:69)
| ... 28 more
|
And the input I was providing
| nmapOptions=#HOST# -T5 -O -oX #HOST#_#TIME#.xml
| HOST=localhost
| TIME=09-27-2006
|
So it seems as though something is choking on the pound signs or new lines, I'm not sure which. Is there anyway to circumvent this problem?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3974970#3974970
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3974970
19 years, 6 months
[Installation, Configuration & Deployment] - My JBoss takes more than 6 minutes to stop ...
by sylobsa
Hi,
I just installed a JBoss 3.2.6 on my new Linux Box.
To test it, I just started jboss with :
run.sh -c default
JBoss starts in about 20s.
Then I do a to stop JBoss. It takes more than 6 minutes.
I get the following trace.
Can anybody explain what happens and how to remedy to this too long shutdown time.
Trace :
--------
18:49:59,333 INFO [TomcatDeployer] undeploy, ctxPath=/web-console, warUrl=file:/usr/local/jboss-3.2.6/server/default/deploy/management/web-console.war/
18:49:59,349 INFO [TomcatDeployer] undeploy, ctxPath=/jmx-console, warUrl=file:/usr/local/jboss-3.2.6/server/default/deploy/jmx-console.war/
18:53:09,232 INFO [Http11Protocol] Suspension de Coyote HTTP/1.1 sur http-0.0.0.0-8080
18:56:19,142 ERROR [CoyoteConnector] Protocol handler pause failed
java.net.ConnectException: Connection timed out
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
at java.net.Socket.connect(Socket.java:516)
at java.net.Socket.connect(Socket.java:466)
at java.net.Socket.(Socket.java:366)
at java.net.Socket.(Socket.java:208)
at org.apache.jk.common.ChannelSocket.unLockSocket(ChannelSocket.java:460)
at org.apache.jk.common.ChannelSocket.pause(ChannelSocket.java:272)
at org.apache.jk.server.JkMain.pause(JkMain.java:657)
at org.apache.jk.server.JkCoyoteHandler.pause(JkCoyoteHandler.java:202)
at org.apache.coyote.tomcat5.CoyoteConnector.pause(CoyoteConnector.java:1444)
at org.jboss.web.tomcat.tc5.StandardService.stop(StandardService.java:583)
at org.apache.catalina.core.StandardServer.stop(StandardServer.java:2347)
at org.apache.catalina.startup.Catalina.stop(Catalina.java:605)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503)
at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:149)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
at org.jboss.web.tomcat.tc5.Tomcat5.stopService(Tomcat5.java:398)
at org.jboss.system.ServiceMBeanSupport.jbossInternalStop(ServiceMBeanSupport.java:319)
at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:223)
at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:60)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:62)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:54)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:82)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:197)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:884)
at $Proxy18.stop(Unknown Source)
at org.jboss.system.ServiceController.stop(ServiceController.java:496)
at org.jboss.system.ServiceController.stop(ServiceController.java:487)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:60)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:62)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:54)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:82)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:197)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
at $Proxy4.stop(Unknown Source)
at org.jboss.deployment.SARDeployer.stop(SARDeployer.java:285)
at org.jboss.deployment.MainDeployer.stop(MainDeployer.java:498)
at org.jboss.deployment.MainDeployer.undeploy(MainDeployer.java:471)
at org.jboss.deployment.MainDeployer.shutdown(MainDeployer.java:358)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:60)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:62)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:54)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:82)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:197)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
at org.jboss.system.server.ServerImpl$ShutdownHook.shutdownDeployments(ServerImpl.java:903)
at org.jboss.system.server.ServerImpl$ShutdownHook.shutdown(ServerImpl.java:878)
at org.jboss.system.server.ServerImpl$ShutdownHook.run(ServerImpl.java:865)
18:56:20,146 INFO [StandardService] Stopping service jboss.web
18:56:20,147 INFO [StandardHost] Create Host deployer for direct deployment ( non-jmx )
18:56:20,153 INFO [StandardHostDeployer] Removing web application at context path /jbossmq-httpil
18:56:20,155 INFO [StandardHostDeployer] Removing web application at context path /invoker
18:56:20,158 INFO [StandardHostDeployer] Removing web application at context path
18:56:20,161 INFO [Http11Protocol] Arrêt de Coyote HTTP/1.1 sur http-0.0.0.0-8080
18:56:20,165 INFO [TomcatDeployer] undeploy, ctxPath=/invoker, warUrl=file:/usr/local/jboss-3.2.6/server/default/deploy/http-invoker.sar/invoker.war/
18:56:20,168 INFO [TomcatDeployer] undeploy, ctxPath=/, warUrl=file:/usr/local/jboss-3.2.6/server/default/deploy/jbossweb-tomcat50.sar/ROOT.war/
18:56:20,169 INFO [TomcatDeployer] undeploy, ctxPath=/jbossmq-httpil, warUrl=file:/usr/local/jboss-3.2.6/server/default/deploy/jms/jbossmq-httpil.sar/jbossmq-httpil.war/
18:56:20,230 INFO [MailService] Mail service 'java:/Mail' removed from JNDI
18:56:21,070 INFO [HypersonicDatabase] Database standalone closed clean
Shutting down
Shutdown complete
Halting VM
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3974968#3974968
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3974968
19 years, 6 months