Bugs item #909473, was opened at 2004-03-03 17:20
Message generated for change (Comment added) made by mpanzitta
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=909473&group_id=22866
Category: JBossMX
Group: v3.2
Status: Open
Resolution: Accepted
Priority: 5
Submitted By: Mike Panzitta (mpanzitta)
Assigned to: Scott M Stark (starksm)
Summary: NullPointerException in LoadMgr3
Initial Comment:
This appears to be the same problem as issue 877172
but manifested by jasper JSP compiles. This is running
JBoss 3.2.3 using the stock embedded Tomcat. It is
running under WinXP on Sun Java 1.4.2
The application (an EAR containing a simple WAR file)
runs properly when the app is deployed for the first time
or when JBoss has been restarted. When it is
redeployed, the NPE occurs when the JSP display is
attempted. This is highly reproducible and consistent.
Simply restarting JBoss at this point resolves the issue;
however, this will be difficult to support in both a
development and production environment.
I'd be happy to provide additional information to assist in
resolving this issue.
Thanks,
-Mike
----------------------------------------------------------------------
>Comment By: Mike Panzitta (mpanzitta)
Date: 2004-03-25 14:16
Message:
Logged In: YES
user_id=766595
The HtmlUiWebTest.war isn't part of JBoss...it's a webapp
that reproduces the problem. Among the contents of WEB-
INF/lib are the Ant files ant.jar, optional.jar, and ant-contrib-
0.5.jar; it's optional.jar that seems to cause the problem. I'm
attempting to see if the webapp is functional without those
jars, though I think they may be required for Cactus (which is
why they would have been included).
Thanks for checking out the first workaround; I haven't had a
chance to test it yet.
----------------------------------------------------------------------
Comment By: georke (jdwn)
Date: 2004-03-24 23:57
Message:
Logged In: YES
user_id=993121
I'm having the same problem. This is my cionfiguration JBoss
3.2.3 with wasp 4.6.1 integration. I tried your first
workaround but after restart of JBoss I got folowing exception:
ERROR [Engine] StandardContext[/wasp]: Servlet /wasp
threw load() exception
javax.servlet.ServletException: WaspInternalException:
java.lang.ClassNotFoundException: No ClassLoaders found for:
com.systinet.wasp.WaspImpl
at com.idoox.transport.servlet.server.Servlet.init
(Unknown Source)
at
org.apache.catalina.core.StandardWrapper.loadServlet
(StandardWrapper.java:935)
at org.apache.catalina.core.StandardWrapper.load
(StandardWrapper.java:823)
at
org.apache.catalina.core.StandardContext.loadOnStartup
(StandardContext.java:3422)
at org.apache.catalina.core.StandardContext.start
(StandardContext.java:3623)
at
org.apache.catalina.core.ContainerBase.addChildInternal
(ContainerBase.java:821)
at org.apache.catalina.core.ContainerBase.addChild
(ContainerBase.java:807)
at org.apache.catalina.core.StandardHost.addChild
(StandardHost.java:595)
at
org.jboss.web.tomcat.tc4.EmbeddedTomcatService.createWeb
Context(EmbeddedTomcatService.java:549)
at
org.jboss.web.tomcat.tc4.EmbeddedTomcatService.performDe
ploy(EmbeddedTomcatService.java:309)
at org.jboss.web.AbstractWebContainer.start
(AbstractWebContainer.java:428)
at org.jboss.deployment.MainDeployer.start
(MainDeployer.java:832)
at org.jboss.deployment.MainDeployer.deploy
(MainDeployer.java:642)
at org.jboss.deployment.MainDeployer.deploy
(MainDeployer.java:605)
So it looks like my wasp integration is not working anymore
then.
The other workaround, I can't find the HtmlUiWebTest.war, so
I can't remove the ant jars.
I'm having this problem allready for a long time, so any help
would be welcome.
----------------------------------------------------------------------
Comment By: Scott M Stark (starksm)
Date: 2004-03-24 22:05
Message:
Logged In: YES
user_id=175228
One workaround for the test.ear is to disable the war level
jboss class loader by setting UseJBossWebLoader to false in
jbossweb-tomcat41.sar/META-INF/jboss-service.xml:
<attribute name="UseJBossWebLoader">false</attribute>
Another is to remove the ant jars from the
HtmlUiWebTest.war/WEB-INF/lib directory.
----------------------------------------------------------------------
Comment By: Scott M Stark (starksm)
Date: 2004-03-20 10:33
Message:
Logged In: YES
user_id=175228
I have looked at the testcase and the problem is that the
Ant Project is using a Class.forName call to load the javac
compiler task. This ends up using the class loader of the
previous deployment which has been destroyed and is the
reason for the NPE. I'm looking into how to correct the
class loader that Ant is using.
----------------------------------------------------------------------
Comment By: Scott M Stark (starksm)
Date: 2004-03-15 21:05
Message:
Logged In: YES
user_id=175228
Send it to [EMAIL PROTECTED]
----------------------------------------------------------------------
Comment By: Mike Panzitta (mpanzitta)
Date: 2004-03-15 19:58
Message:
Logged In: YES
user_id=766595
I'm unable to upload the test case since it's at 1.2 MB. I can
e-mail it or upload it to another location....please advise.
----------------------------------------------------------------------
Comment By: Mike Panzitta (mpanzitta)
Date: 2004-03-15 19:55
Message:
Logged In: YES
user_id=766595
Attempting to upload new test case...
----------------------------------------------------------------------
Comment By: Mike Panzitta (mpanzitta)
Date: 2004-03-15 19:44
Message:
Logged In: YES
user_id=766595
After having difficulty in uploading the test case, I tried to
remove extraneous libs for the test case. After removing the
optional.jar (from Ant 1.5.4) from the WAR file's WEB-INF/lib
directory, the issue went away, so it appears that this file is
the culprit. I believe the file is required for in-container
Cactus testing, which is why it is in the build. In any case, it
should not give the classloaders grief.
I will attempt to upload the test case again with this jar still
in the lib.
----------------------------------------------------------------------
Comment By: Mike Panzitta (mpanzitta)
Date: 2004-03-15 19:22
Message:
Logged In: YES
user_id=766595
Trouble uploading file....
----------------------------------------------------------------------
Comment By: Mike Panzitta (mpanzitta)
Date: 2004-03-15 19:21
Message:
Logged In: YES
user_id=766595
Trouble uploading file....
----------------------------------------------------------------------
Comment By: Mike Panzitta (mpanzitta)
Date: 2004-03-15 19:14
Message:
Logged In: YES
user_id=766595
Sorry for the delay...wanted to make sure there weren't huge
dependencies to make the debugging insane.
To reproduce the error:
1. start JBoss 3.2.3 (Tomcat HTTP connector enabled on port
8080)
2. deploy the attached EAR file (HtmlUiWebTest.ear)
3. make the following request:
http://localhost:8080/HtmlUiWebTest/Common/TestPage1.jsp
(replace localhost with name/IP of JBoss server)
4. simple JSP displays
5. undeploy the EAR file
6. when undeployed, redeploy the same EAR file
7. make the same request from step 3
8. NPE occurs in LoadMgr3
9. restart JBoss
10. make the same request from step 3
11. simple JSP displays
Let me know if you need any other config info. It is a slightly
modified default server configuration (examples and JMS
removed).
----------------------------------------------------------------------
Comment By: Mike Panzitta (mpanzitta)
Date: 2004-03-15 19:10
Message:
Logged In: YES
user_id=766595
Sorry for the delay...wanted to make sure there weren't huge
dependencies to make the debugging insane.
To reproduce the error:
1. start JBoss 3.2.3 (Tomcat HTTP connector enabled on port
8080)
2. deploy the attached EAR file (HtmlUiWebTest.ear)
3. make the following request:
http://localhost:8080/HtmlUiWebTest/Common/TestPage1.jsp
(replace localhost with name/IP of JBoss server)
4. simple JSP displays
5. undeploy the EAR file
6. when undeployed, redeploy the same EAR file
7. make the same request from step 3
8. NPE occurs in LoadMgr3
9. restart JBoss
10. make the same request from step 3
11. simple JSP displays
Let me know if you need any other config info. It is a slightly
modified default server configuration (examples and JMS
removed).
----------------------------------------------------------------------
Comment By: Scott M Stark (starksm)
Date: 2004-03-04 12:28
Message:
Logged In: YES
user_id=175228
I need a reproducible testcase.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=909473&group_id=22866
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development