Problem running on Jboos 5.1.0.GA with Ubuntu and amd64bit JDK 1.6.0.27

92 views
Skip to first unread message

Paolo Gronchi

unread,
Apr 15, 2011, 3:10:56 AM4/15/11
to psi-probe-discuss
Hi,
I've a problem to run psi-probe on my enviroment.
* jboss 5.1.0.GA
* Ubuntu 64 bit
* Java 1.6.0.27 64bit

I made the suggested changes to war file (deleting .jar already
present in jboss library), and add these instruction to may JAVA_OPT:
-Dcom.sun.management.jmxremote -
Dcom.sun.management.jmxremote.authenticate=true -
Dcom.sun.management.jmxremote.ssl=false

I've made the probe-roles.properties and probe-users.properties files
in my jboss-5.0.0-GA/server/yourconf/conf/props

I've added these code on my jboss-5.0.0-GA/server/yourconf/conf/login-
config.xml
<application-policy name = "probe">
<authentication>
<login-module
code="org.jboss.security.auth.spi.UsersRolesLoginModule" flag =
"required">
<module-option name="usersProperties">props/probe-users.properties</
module-option>
<module-option name="rolesProperties">props/probe-roles.properties</
module-option>
</login-module>
</authentication>
</application-policy>

When I call the probe home I get this error:
nulljava.lang.NullPointerException at
com.googlecode.psiprobe.controllers.ListWebappsController.handleRequestInternal(ListWebappsController.java:
37) at
org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:
153) at
org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:
48) at
org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:
875) at
com.googlecode.psiprobe.ProbeServlet.doDispatch(ProbeServlet.java:53)
at
org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:
807) at
org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:
571) at
org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:
501) at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:
290) at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:
206) at
com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:
39) 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.ApplicationDispatcher.invoke(ApplicationDispatcher.java:
638) at
org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:
444) at
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:
382) at
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:
310) at
org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java:
696) at
org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:
667) at jsp.index_jsp._jspService(jsp.index_jsp:43)
....
....

Can you help me to solve this problem?

Thanks and regards, Paolo

Mark

unread,
Apr 15, 2011, 11:15:03 AM4/15/11
to psi-prob...@googlegroups.com
You mention making changes to the .war file.  What .jar file did you delete?

I'm also noticing that the paths you reference all include "jboss-5.0.0-GA," yet you mention jboss 5.1.0.GA in the subject and at the beginning of your post.  Do you have both installed?  Is it possible you've applied some of these changes to the wrong server?

Paolo Gronchi

unread,
Apr 18, 2011, 3:14:17 AM4/18/11
to psi-probe-discuss
Hi Marc,
thanks for reply.
In my war file I've removed these files: jmxri-1.2.1.jar and xml-
apis-1.3.03.jar
If I put this file on my war the jboss deplyment fails with this
errors:
Failed to create Resource probe_new.war - cause:
java.lang.RuntimeException:org.jboss.deployers.client.spi.IncompleteDeploymentException:
Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):
*** DEPLOYMENTS IN ERROR: Name -> Error vfszip:/usr/bin/jboss/
jboss-5.1.0.GA/server/default/deploy/probe_new.war/ ->
org.jboss.deployers.spi.DeploymentException: URL file:/usr/bin/jboss/
jboss-5.1.0.GA/server/default/tmp/4sj2i1u-bt5ntc-gmj6z45z-1-gmn2fee2-
aqc/probe_new.war/ deployment failed DEPLOYMENTS IN ERROR: Deployment
"vfszip:/usr/bin/jboss/jboss-5.1.0.GA/server/default/deploy/
probe_new.war/" is in error due to the following reason(s):
org.jboss.deployers.spi.DeploymentException: URL file:/usr/bin/jboss/
jboss-5.1.0.GA/server/default/tmp/4sj2i1u-bt5ntc-gmj6z45z-1-gmn2fee2-
aqc/probe_new.war/ deployment failed ->
org.jboss.deployers.client.spi.IncompleteDeploymentException:Summary
of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS): ***
DEPLOYMENTS IN ERROR: Name -> Error vfszip:/usr/bin/jboss/
jboss-5.1.0.GA/server/default/deploy/probe_new.war/ ->
org.jboss.deployers.spi.DeploymentException: URL file:/usr/bin/jboss/
jboss-5.1.0.GA/server/default/tmp/4sj2i1u-bt5ntc-gmj6z45z-1-gmn2fee2-
aqc/probe_new.war/ deployment failed DEPLOYMENTS IN ERROR: Deployment
"vfszip:/usr/bin/jboss/jboss-5.1.0.GA/server/default/deploy/
probe_new.war/" is in error due to the following reason(s):
org.jboss.deployers.spi.DeploymentException: URL file:/usr/bin/jboss/
jboss-5.1.0.GA/server/default/tmp/4sj2i1u-bt5ntc-gmj6z45z-1-gmn2fee2-
aqc/probe_new.war/ deployment failed

If I remove these files the deployment is OK but after calling the web
applications I get the Null pointer exception error described in my
first post.

Do you have any ideas?
Many thanks, Paolo.

P.S. I apologize for my english.

Mark

unread,
Apr 18, 2011, 10:07:04 AM4/18/11
to psi-prob...@googlegroups.com
Your English is fine, better than many native speakers I know.  :)

This looks similar to issue 196 (http://code.google.com/p/psi-probe/issues/detail?id=196).  Can you try PSI Probe 2.2.0 (just released) and see if you get the same error?

Paolo Gronchi

unread,
Apr 19, 2011, 2:09:24 AM4/19/11
to psi-probe-discuss
Hi.
I tried to deploy your new war but I haven't the apache logger and the
deploy fails.
I remove the logger instruction from /META-INF/context.xml e /WEB-INF/
context.xml files and deploy without errors and this warnings:

2011-04-19 07:55:40,736 WARN
[org.jboss.managed.plugins.factory.AbstractManagedObjectPopulator]
(ResourceContainer.invoker.daemon-6) Cannot create String name from
non-Simple property:
ManagedProperty{JNDIName,JNDIName,metaType=SimpleMetaType:java.lang.String},
value=null
2011-04-19 07:55:40,741 WARN
[org.jboss.managed.plugins.factory.AbstractManagedObjectPopulator]
(ResourceContainer.invoker.daemon-6) Cannot create String name from
non-Simple property:
ManagedProperty{JNDIName,JNDIName,metaType=SimpleMetaType:java.lang.String},
value=null


After calling the probe's home page I got this errors:

2011-04-19 07:56:08,820 ERROR [org.apache.catalina.core.ContainerBase.
[jboss.web].[localhost].[/probe].[probe]] (http-0.0.0.0-8080-1)
Servlet.service() for servlet probe threw exception
java.lang.NullPointerException
at
com.googlecode.psiprobe.controllers.apps.ListWebappsController.handleRequestInternal(ListWebappsController.java:
38)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:
290)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:
206)
at
com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(PageFilter.java:
118)
at
com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:
52)
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:
235)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:
191)
at
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:
190)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:
525)
at
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:
92)
at
org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:
126)
at
org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:
70)
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:
158)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:
109)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:
330)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:
829)
at org.apache.coyote.http11.Http11Protocol
$Http11ConnectionHandler.process(Http11Protocol.java:598)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:
447)
at java.lang.Thread.run(Thread.java:662)
2011-04-19 07:56:08,824 ERROR [org.apache.catalina.core.ContainerBase.
[jboss.web].[localhost].[/probe].[jsp.index_jsp]]
(http-0.0.0.0-8080-1) Servlet.service() for servlet jsp.index_jsp
threw exception
java.lang.NullPointerException
at
com.googlecode.psiprobe.controllers.apps.ListWebappsController.handleRequestInternal(ListWebappsController.java:
38)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:
290)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:
206)
at
com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(PageFilter.java:
118)
at
com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:
52)
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:
235)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:
191)
at
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:
190)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:
525)
at
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:
92)
at
org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:
126)
at
org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:
70)
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:
158)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:
109)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:
330)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:
829)
at org.apache.coyote.http11.Http11Protocol
$Http11ConnectionHandler.process(Http11Protocol.java:598)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:
447)
at java.lang.Thread.run(Thread.java:662)

On my jboss 5.1.0.GA installation I've removed from lib/endorsed
folder these files: activation.jar, jaxb-api.jar resolver.jar and stax-
api.jar.
In the folder /lib/endorsed I left these files: serializer.jar,
xalan.jar and xerces.jar

Many thanks for your interesting, Paolo

Mark

unread,
Apr 19, 2011, 10:40:02 AM4/19/11
to psi-prob...@googlegroups.com
Thanks for being patient with me.  Can you try PSI Probe 2.1.1 and see if it has the same error?  You can find it here:

(You may get another error related to statistics collection, but that was fixed in 2.1.2.)

Paolo Gronchi

unread,
Apr 20, 2011, 2:29:55 AM4/20/11
to psi-probe-discuss
Hi Mark,
I've tried all yours war file.

With Probe 2.1.1 I got this error: nulljava.lang.NullPointerException
at
com.googlecode.psiprobe.controllers.ListWebappsController.handleRequestInternal(ListWebappsController.java:
37)

With Probe 2.2.0 I got this error: nulljava.lang.NullPointerException
at
com.googlecode.psiprobe.controllers.apps.ListWebappsController.handleRequestInternal(ListWebappsController.java:
38)

Is the same problem in different package.
Is it possible that the error is relative to create file permission
deny on ubuntu?
I comment the Logger section in context.xml file to deploy without
errors.

Psi probe is open-source? If I'll have the source code I'll compile
on my machine to make many tests.

Thanks, Paolo

Mark

unread,
Apr 20, 2011, 10:23:54 AM4/20/11
to psi-prob...@googlegroups.com
Yes, you can get the source from here:

I really don't know why you're getting this error, but I'm not very familiar with JBoss either.  I will also download JBoss 5.1.0 GA and run some tests myself too.  Thanks for your help!
Reply all
Reply to author
Forward
0 new messages