It's not a secret anymore!*
The moose likes Struts and the fly likes Unable to Run Struts based JSPs in WSAD 5.0. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Unable to Run Struts based JSPs in WSAD 5.0. " Watch "Unable to Run Struts based JSPs in WSAD 5.0. " New topic
Author

Unable to Run Struts based JSPs in WSAD 5.0.

Tarun Dewan
Greenhorn

Joined: Sep 05, 2002
Posts: 21
Hi All,
I'm currently using WSAD 5.0 and in my Web Project Struts jars are available
and it compiles fine. But when i try to execute the same in a server, i get
following error.
[6/20/03 9:54:32:938 IST] 13ad2d27 WebGroup E SRVE0026E: [Servlet
Error]-[org/apache/struts/taglib/html/TextTag]:
java.lang.NoClassDefFoundError: org/apache/struts/taglib/html/TextTag
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java(Compiled Code))
at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java(Compiled
Code))

If i add struts.jar in classpath of my server then while server is starting
i'm getting following error :
[6/20/03 9:49:24:641 IST] 560dadde WebGroup I SRVE0180I: [poclosWeb]
[/POCLOSWeb] [Servlet.LOG]: action: Initializing configuration from resource
path /WEB-INF/struts-config.xml
[6/20/03 9:49:24:672 IST] 560dadde SystemOut O resolveEntity('-//Apache
Software Foundation//DTD Struts Configuration 1.1//EN',
'http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd')
[6/20/03 9:49:24:672 IST] 560dadde SystemOut O Not registered, use
system identifier
[6/20/03 9:49:45:859 IST] 560dadde ServletInstan E SRVE0100E: Did not
realize init() exception thrown by servlet action:
javax.servlet.UnavailableException: Input/output error reading configuration
from resource path /WEB-INF/struts-config.xml
at org.apache.struts.action.ActionServlet.init(ActionServlet.java:468)
at javax.servlet.GenericServlet.init(GenericServlet.java:258)
at
com.ibm.ws.webcontainer.servlet.StrictServletInstance.doInit(StrictServletIn
stance.java:82)
at
com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._init(StrictLifecycle
Servlet.java:147)
at
com.ibm.ws.webcontainer.servlet.PreInitializedServletState.init(StrictLifecy
cleServlet.java:270)
at
com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.init(StrictLifecycleS
ervlet.java:113)
at
com.ibm.ws.webcontainer.servlet.ServletInstance.init(ServletInstance.java:17
5)
at javax.servlet.GenericServlet.init(GenericServlet.java:258)

Eagerly waiting for any resolution for the above issue.
Thanks & regards,
Tarun Dewan.
Amy Smith
Greenhorn

Joined: Jul 26, 2001
Posts: 24
Hi,
I had 1.0 and have 1.1rc1 running in WSAD. If you use the struts provided with WSAD, it is 1.0.
Just making a guess from your error messages: It looks like your struts_config.xml is 1.1. There is no dtd in the WSAD struts.jar for 1.1. Change the struts_config.xml to say 1.0 or install 1.1.
>[6/20/03 9:49:24:672 IST] 560dadde SystemOut O >resolveEntity('-//Apache
>Software Foundation//DTD Struts Configuration >1.1//EN',
>'http://jakarta.apache.org/struts/dtds/struts->config_1_1.dtd')
GL -- Amy


Amy Smith<br />Java Developer<br />Haworth, Inc.<br />amy.smith@haworth.com
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Unable to Run Struts based JSPs in WSAD 5.0.
 
Similar Threads
Unable to Run Struts based JSPs in WSAD 5.0.
Can someone help me with this exception
Unable to Run Struts based JSPs in WSAD 5.0.
Classloader problem whileInstalling ear having struts version 1.1 on webpshere 5.0.2
Problem in websphere Struts / Server config