Typo
<tomcat_home>/webapps/stru
also check your capitalization
Main Topics
Browse All TopicsHi All
I'm new to struts framework, I've written a sample program, where UserRegistration.java is the Action class, also written the UserRegistration.jsp.
I've included the following lines in the struts-config.xml, in the action-mapping section
<action path="/userRegistration"
type="strutsTutorial.UserR
<forward name="success" path="/regSuccess.jsp"/>
</action>
I've build and deployed the application in the tomcat 4.1, when I hit the url http://localhost:8080/stru
I get the following error. could anyone pls help in fixing the issue.
SEVERE: No action instance for path /userRegistration could be created
java.lang.NullPointerExcep
at java.net.URLClassLoader$1.
at java.security.AccessContro
at java.net.URLClassLoader.fi
at java.lang.ClassLoader.load
at java.lang.ClassLoader.load
at sun.misc.Launcher$AppClass
at java.lang.ClassLoader.load
at org.apache.catalina.loader
der.java:1340)
at org.apache.catalina.loader
der.java:1274)
at org.apache.struts.util.Req
a:117)
at org.apache.struts.util.Req
java:143)
at org.apache.struts.action.R
Processor.java:280)
at org.apache.struts.action.R
va:218)
at org.apache.struts.action.A
4)
at org.apache.struts.action.A
at javax.servlet.http.HttpSer
at javax.servlet.http.HttpSer
at org.apache.catalina.core.A
icationFilterChain.java:24
at org.apache.catalina.core.A
ilterChain.java:193)
at org.apache.catalina.core.S
alve.java:260)
at org.apache.catalina.core.S
t.invokeNext(StandardPipel
at org.apache.catalina.core.S
a:480)
at org.apache.catalina.core.C
at org.apache.catalina.core.S
alve.java:191)
at org.apache.catalina.core.S
t.invokeNext(StandardPipel
at org.apache.catalina.core.S
a:480)
at org.apache.catalina.core.C
at org.apache.catalina.core.S
2396)
at org.apache.catalina.core.S
ava:180)
at org.apache.catalina.core.S
t.invokeNext(StandardPipel
at org.apache.catalina.valves
rValve.java:170)
at org.apache.catalina.core.S
t.invokeNext(StandardPipel
at org.apache.catalina.valves
ava:172)
at org.apache.catalina.core.S
t.invokeNext(StandardPipel
at org.apache.catalina.core.S
a:480)
at org.apache.catalina.core.C
at org.apache.catalina.core.S
ve.java:174)
at org.apache.catalina.core.S
t.invokeNext(StandardPipel
at org.apache.catalina.core.S
a:480)
at org.apache.catalina.core.C
at org.apache.coyote.tomcat4.
3)
at org.apache.coyote.http11.H
:405)
at org.apache.coyote.http11.H
ssConnection(Http11Protoco
at org.apache.tomcat.util.net
:508)
at org.apache.tomcat.util.thr
ool.java:533)
at java.lang.Thread.run(Threa
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Business Accounts
Answer for Membership
by: bloodredsunPosted on 2005-12-04 at 13:20:37ID: 15416023
make sure that the class file is in this folder: <tomcat_home>/strutsTutori al/WEB-INF /classes/s trutsTutor ial/ and then restart the webapp as it looks as thought the class is in the wrong place.