File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes HI Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "HI" Watch "HI" New topic
Author

HI

kiran boddu
Greenhorn

Joined: Jun 05, 2008
Posts: 1
,

I'm new in sturuts.I'm use Tomacat 6.0. can any body help me to give some suggestion where i'can solve my problem.

java.lang.ClassNotFoundException: com.nit.struts.LoginAction
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1360)
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1206)
org.apache.struts.chain.commands.util.ClassUtils.getApplicationClass(ClassUtils.java:54)
org.apache.struts.chain.commands.util.ClassUtils.getApplicationInstance(ClassUtils.java:71)
org.apache.struts.chain.commands.servlet.CreateAction.createAction(CreateAction.java:98)
org.apache.struts.chain.commands.servlet.CreateAction.getAction(CreateAction.java:68)
org.apache.struts.chain.commands.AbstractCreateAction.execute(AbstractCreateAction.java:90)
org.apache.struts.chain.commands.ActionCommandBase.execute(ActionCommandBase.java:51)
org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:190)
org.apache.commons.chain.generic.LookupCommand.execute(LookupCommand.java:304)
org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:190)
org.apache.struts.chain.ComposableRequestProcessor.process(ComposableRequestProcessor.java:283)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:449)
javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)


My Struts-Config-XML file is

<!DOCTYPE struts-config PUBLIC
"-// Apache Software Foundation//DTD Struts Configuration 1.3//EN"
"http://struts.apache.org/dtds/struts-config_1_3.dtd">
<struts-config>
<action-mappings>
<action type="com.nit.struts.LoginAction" path="/login">
<forward name="notValid" path="/Login.html"/>
<forward name="admin" path="/AdminHome.jsp"/>
<forward name="user" path="/UserHome.jsp"/>
</action>
</action-mappings>
</struts-config>
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

Not an ORM question. I'll move this...


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
Karthikeyan Ramaswamy
Ranch Hand

Joined: Apr 30, 2008
Posts: 41
hi,

make sure LoginAction.class file in under folder directory

WEB-INF -> com -> nit -> struts -> LoginAction.class


-----------------------------------------
Reshma Reddy
Ranch Hand

Joined: Dec 21, 2006
Posts: 197
Hi,
Please go throuth this uls and you can find good guidlines

web page

Regards,
vardhan
Sunny Gibbony
Ranch Hand

Joined: May 14, 2008
Posts: 39
Originally posted by Paul Sturrock:
Not an ORM question. I'll move this...


So where did the post get moved to? Just curious.

Ashlon
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8836
    
    7

Originally posted by Ashlon Hill:


So where did the post get moved to? Just curious.

Ashlon


It was moved FROM the Object Relational Mapping Forum to here (Struts).


"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
Harish Maridi
Ranch Hand

Joined: May 20, 2008
Posts: 60
check the jars, jars related to action are missing (Hope so)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: HI
 
Similar Threads
Exception in ForwardAction
glassfish vs. Hibernate: JNDI configuration
Problem running a simple webapplication in struts
how will arrange in the action mapping in the strut-config.xml?
Cancel problem in struts