This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Struts and the fly likes Exception running Struts1.1 samples. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Exception running Struts1.1 samples." Watch "Exception running Struts1.1 samples." New topic
Author

Exception running Struts1.1 samples.

Adnan Badar
Greenhorn

Joined: May 07, 2003
Posts: 6
Hello there
I am trying to Run struts 1.1 samples. I am using JRUN1 1.0 and have deployed
struts examples by deplying war files provided in struts1.1
documentation(struts-example.war).
I have found following files and think are correct:
**files in /web-inf
app.tld
struts-bean.tld
struts-html.tld
struts-logic.tld
struts-nested.tld
struts-template.tld
struts-tiles.tld

** files in /web-inf/lib
commons-beanutils.jar
commons-collections.jar
commons-dbcp.jar
commons-digester.jar
commons-fileupload.jar
commons-lang.jar
commons-logging.jar
commons-pool.jar
commons-resources.jar
commons-validator.jar
jakarta-oro.jar
struts.jar
But I am unable to run the samples index.jsp .I have found that whenever server
process any struts tag it throws exeption. Here struts 1.0 is
working perfect with JRUN3.0 without any problem.
HERE IS THE EXCEPTION::::

500 Internal Server Error
/struts-example/index.jsp:
javax.servlet.ServletException: Exception thrown on line '7' from page
'C:\\AdnanWork\\JavaStuff\\deployed struts-examples\\index.jsp'.
java.lang.ExceptionInInitializerError
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessor
Impl.java:39)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructor
AccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
at java.lang.Class.newInstance0(Class.java:306)
at java.lang.Class.newInstance(Class.java:259)
at
allaire.jrun.jsp.JRunJSPStaticHelpers.createTagHandler(../jsp/JRunJSPStaticHelp
ers.java:47)
at jrun__index2ejsp8._jspService(jrun__index2ejsp8.java:39)
at
allaire.jrun.jsp.HttpJSPServlet.service(../jsp/HttpJSPServlet.java:40)
at allaire.jrun.servlet.JRunSE.service(../servlet/JRunSE.java:1013)
at allaire.jrun.servlet.JRunSE.runServlet(../servlet/JRunSE.java:925)
at
allaire.jrun.servlet.JRunNamedDispatcher.forward(../servlet/JRunNamedDispatcher
.java:34)
at allaire.jrun.jsp.JSPServlet.service(../jsp/JSPServlet.java:175)
at allaire.jrun.servlet.JRunSE.service(../servlet/JRunSE.java:1013)
at allaire.jrun.servlet.JRunSE.runServlet(../servlet/JRunSE.java:925)
at
allaire.jrun.servlet.JRunRequestDispatcher.forward(../servlet/JRunRequestDispat
cher.java:88)
at allaire.jrun.servlet.JRunSE.service(../servlet/JRunSE.java:1131)
at
allaire.jrun.servlet.JvmContext.dispatch(../servlet/JvmContext.java:330)
at allaire.jrun.jrpp.ProxyEndpoint.run(../jrpp/ProxyEndpoint.java:382)
at allaire.jrun.ThreadPool.run(../ThreadPool.java:272)
at allaire.jrun.WorkerThread.run(../WorkerThread.java:75)
Caused by: java.lang.NullPointerException
at
org.apache.struts.util.MessageResources.getMessageResources(MessageResources.ja
va:577)
at org.apache.struts.taglib.bean.MessageTag.(MessageTag.java:256)
... 21 more

Help to any extent would be very helpful. Thanks in advance.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Exception running Struts1.1 samples.
 
Similar Threads
IllegalAccessError
JSP NullPointerException in the next morning
Problem with Jrun
JRUN & XML
JRun struts