Two Laptop Bag*
The moose likes Struts and the fly likes Struts and WTE 4.0 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts and WTE 4.0" Watch "Struts and WTE 4.0" New topic
Author

Struts and WTE 4.0

Conie Ooi
Ranch Hand

Joined: Jun 09, 2002
Posts: 31
Hi, I've downloaded a file called RunningStrutsVAJ.doc from the net and followed the instructions in the document. I received the following error message when I was trying to load the page:
Error 503
An error has occured while processing request:http://localhost:8080/strutsexample/
Message: Application is currently unavailable for service
Target Servlet: null
StackTrace:
--------------------------------------------------
Root Error-1: Application is currently unavailable for service
com.ibm.servlet.engine.webapp.ApplicationUnavailableException: Application is currently unavailable for service
java.lang.Throwable(java.lang.String)
java.lang.Exception(java.lang.String)
javax.servlet.ServletException(java.lang.String)
com.ibm.websphere.servlet.error.ServletErrorReport(java.lang.String)
com.ibm.servlet.engine.webapp.WebAppErrorReport(java.lang.String)
com.ibm.servlet.engine.webapp.ApplicationUnavailableException(com.ibm.servlet.engine.webapp.WebApp)
void com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handleWebAppDispatch(com.ibm.servlet.engine.webapp.WebAppRequest, javax.servlet.http.HttpServletResponse, boolean)
void com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.dispatch(javax.servlet.ServletRequest, javax.servlet.ServletResponse, boolean)
void com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.forward(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
void com.ibm.servlet.engine.srt.WebAppInvoker.handleInvocationHook(java.lang.Object)
void com.ibm.servlet.engine.invocation.CachedInvocation.handleInvocation(java.lang.Object)
void com.ibm.servlet.engine.srp.ServletRequestProcessor.dispatchByURI(java.lang.String, com.ibm.servlet.engine.srp.ISRPConnection)
void com.ibm.servlet.engine.oselistener.OSEListenerDispatcher.service(com.ibm.servlet.engine.oselistener.api.IOSEConnection)
void com.ibm.servlet.engine.http_transport.HttpTransportHandler.handleConnection(java.net.Socket)
void com.ibm.servlet.engine.http_transport.HttpTransportHandler.run()
void java.lang.Thread.run()

The following is the part of the message I received in the WTE console:
[02.07.16 14:50:43:351 CST] 6a77 ServletHost A Loading group: "strutsexample"
[02.07.16 14:50:43:632 CST] 6a77 ServletInstan A SRVE0048I: Loading servlet: "ErrorReporter"
[02.07.16 14:50:43:632 CST] 6a77 WebGroup A SRVE0091I: [Servlet LOG]: "ErrorReporter: init"
[02.07.16 14:50:43:648 CST] 6a77 ServletInstan A SRVE0130I: Servlet available for service: "ErrorReporter"
[02.07.16 14:50:43:695 CST] 6a77 ServletInstan A SRVE0048I: Loading servlet: "HelloWorld"
[02.07.16 14:50:43:851 CST] 6a77 WebGroup A SRVE0091I: [Servlet LOG]: "HelloWorld: init"
In HelloWorldServlet init
[02.07.16 14:50:43:867 CST] 6a77 ServletInstan A SRVE0130I: Servlet available for service: "HelloWorld"
[02.07.16 14:50:44:148 CST] 6a77 ServletInstan A SRVE0048I: Loading servlet: "action"
[02.07.16 14:50:44:445 CST] 6a77 WebGroup A SRVE0091I: [Servlet LOG]: "action: init"
[02.07.16 14:50:44:554 CST] 6a77 WebGroup A SRVE0091I: [Servlet LOG]: "action: null"
[02.07.16 14:50:44:554 CST] 6a77 WebGroup A SRVE0091I: [Servlet LOG]: "action: null"
resolveEntity('-//Apache Software Foundation//DTD Struts Configuration 1.0//EN', 'http://localhost/struts/dtds/struts-config_1_0.dtd')
Not registered, use system identifier
Parse Fatal Error at line 5 column -1: External entity not found: "http://localhost/struts/dtds/struts-config_1_0.dtd".
java.net.ConnectException: Connection refused: no further information
java.lang.Throwable(java.lang.String)
java.lang.Exception(java.lang.String)
org.xml.sax.SAXException(java.lang.String, java.lang.Exception)
org.xml.sax.SAXParseException(java.lang.String, org.xml.sax.Locator, java.lang.Exception)
void org.apache.crimson.parser.Parser2.fatal(java.lang.String, java.lang.Object [], java.lang.Exception)
void org.apache.crimson.parser.Parser2.externalParameterEntity(org.apache.crimson.parser.ExternalEntity)
boolean org.apache.crimson.parser.Parser2.maybeDoctypeDecl()
void org.apache.crimson.parser.Parser2.parseInternal(org.xml.sax.InputSource)
void org.apache.crimson.parser.Parser2.parse(org.xml.sax.InputSource)
void org.apache.crimson.parser.XMLReaderImpl.parse(org.xml.sax.InputSource)
void org.xml.sax.helpers.XMLReaderAdapter.parse(org.xml.sax.InputSource)
void javax.xml.parsers.SAXParser.parse(org.xml.sax.InputSource, org.xml.sax.HandlerBase)
void javax.xml.parsers.SAXParser.parse(java.io.InputStream, org.xml.sax.HandlerBase)
java.lang.Object org.apache.struts.digester.Digester.parse(java.io.InputStream)
void org.apache.struts.action.ActionServlet.initMapping()
void org.apache.struts.action.ActionServlet.init()
void javax.servlet.GenericServlet.init(javax.servlet.ServletConfig)
void com.ibm.servlet.engine.webapp.StrictServletInstance.doInit()
void com.ibm.servlet.engine.webapp.StrictLifecycleServlet._init(javax.servlet.ServletConfig)
void com.ibm.servlet.engine.webapp.PreInitializedServletState.init(com.ibm.servlet.engine.webapp.StrictLifecycleServlet, javax.servlet.ServletConfig)
void com.ibm.servlet.engine.webapp.StrictLifecycleServlet.init(javax.servlet.ServletConfig)
void com.ibm.servlet.engine.webapp.ServletInstance.init()
void javax.servlet.GenericServlet.init(javax.servlet.ServletConfig)
void com.ibm.servlet.engine.webapp.ServletManager.addServlet(java.lang.String, javax.servlet.Servlet, java.util.Properties)
void com.ibm.servlet.engine.webapp.WebAppServletManager.loadServlet(java.lang.String)
void com.ibm.servlet.engine.webapp.WebAppServletManager.loadAutoLoadServlets()
void com.ibm.servlet.engine.webapp.WebApp.loadServletManager()
void com.ibm.servlet.engine.webapp.WebApp.init(com.ibm.servlet.engine.config.WebAppInfo, com.ibm.servlet.engine.webapp.WebAppContext)
void com.ibm.servlet.engine.srt.WebGroup.loadWebApp()
void com.ibm.servlet.engine.srt.WebGroup.init(com.ibm.servlet.engine.ServletHost, com.ibm.servlet.engine.config.WebGroupInfo)
void com.ibm.servlet.engine.ServletHost.loadWebGroups()
void com.ibm.servlet.engine.ServletHost.init(com.ibm.servlet.engine.ServletEngine, com.ibm.servlet.engine.config.ServletHostInfo)
void com.ibm.servlet.engine.ServletEngine.loadServletHosts()
void com.ibm.servlet.engine.ServletEngine.init(com.ibm.servlet.engine.config.ServletEngineInfo)
com.ibm.servlet.engine.ServletEngine com.ibm.servlet.engine.ServletEngine.getEngine()
void com.ibm.ivj.control.node.ServletEngineRunner.startServletEngine(boolean)
boolean com.ibm.ivj.control.node.ServletEngineRunner.startServer()
void com.ibm.ivj.control.node.ServletEngineRunner.main(java.lang.String [])
java.lang.Object java.lang.reflect.Method.invoke(java.lang.Object, java.lang.Object [])
[02.07.16 14:50:48:773 CST] 6a77 ServletInstan X Uncaught init() exception thrown by servlet {0}: {1}
"action"
javax.servlet.ServletException
java.lang.Throwable(java.lang.String)
java.lang.Exception(java.lang.String)
javax.servlet.ServletException(java.lang.String, java.lang.Throwable)
void org.apache.struts.action.ActionServlet.initMapping()
void org.apache.struts.action.ActionServlet.init()
void javax.servlet.GenericServlet.init(javax.servlet.ServletConfig)
void com.ibm.servlet.engine.webapp.StrictServletInstance.doInit()
void com.ibm.servlet.engine.webapp.StrictLifecycleServlet._init(javax.servlet.ServletConfig)
void com.ibm.servlet.engine.webapp.PreInitializedServletState.init(com.ibm.servlet.engine.webapp.StrictLifecycleServlet, javax.servlet.ServletConfig)
void com.ibm.servlet.engine.webapp.StrictLifecycleServlet.init(javax.servlet.ServletConfig)
void com.ibm.servlet.engine.webapp.ServletInstance.init()
void javax.servlet.GenericServlet.init(javax.servlet.ServletConfig)
void com.ibm.servlet.engine.webapp.ServletManager.addServlet(java.lang.String, javax.servlet.Servlet, java.util.Properties)
void com.ibm.servlet.engine.webapp.WebAppServletManager.loadServlet(java.lang.String)
void com.ibm.servlet.engine.webapp.WebAppServletManager.loadAutoLoadServlets()
void com.ibm.servlet.engine.webapp.WebApp.loadServletManager()
void com.ibm.servlet.engine.webapp.WebApp.init(com.ibm.servlet.engine.config.WebAppInfo, com.ibm.servlet.engine.webapp.WebAppContext)
void com.ibm.servlet.engine.srt.WebGroup.loadWebApp()
void com.ibm.servlet.engine.srt.WebGroup.init(com.ibm.servlet.engine.ServletHost, com.ibm.servlet.engine.config.WebGroupInfo)
void com.ibm.servlet.engine.ServletHost.loadWebGroups()
void com.ibm.servlet.engine.ServletHost.init(com.ibm.servlet.engine.ServletEngine, com.ibm.servlet.engine.config.ServletHostInfo)
void com.ibm.servlet.engine.ServletEngine.loadServletHosts()
void com.ibm.servlet.engine.ServletEngine.init(com.ibm.servlet.engine.config.ServletEngineInfo)
com.ibm.servlet.engine.ServletEngine com.ibm.servlet.engine.ServletEngine.getEngine()
void com.ibm.ivj.control.node.ServletEngineRunner.startServletEngine(boolean)
boolean com.ibm.ivj.control.node.ServletEngineRunner.startServer()
void com.ibm.ivj.control.node.ServletEngineRunner.main(java.lang.String [])
java.lang.Object java.lang.reflect.Method.invoke(java.lang.Object, java.lang.Object [])

[02.07.16 14:50:48:851 CST] 6a77 WebGroup X [Servlet Error]-[{0}]: {1}: {2}
"action"
"Failed to load servlet"
javax.servlet.ServletException
java.lang.Throwable(java.lang.String)
java.lang.Exception(java.lang.String)
javax.servlet.ServletException(java.lang.String, java.lang.Throwable)
void org.apache.struts.action.ActionServlet.initMapping()
void org.apache.struts.action.ActionServlet.init()
void javax.servlet.GenericServlet.init(javax.servlet.ServletConfig)
void com.ibm.servlet.engine.webapp.StrictServletInstance.doInit()
void com.ibm.servlet.engine.webapp.StrictLifecycleServlet._init(javax.servlet.ServletConfig)
void com.ibm.servlet.engine.webapp.PreInitializedServletState.init(com.ibm.servlet.engine.webapp.StrictLifecycleServlet, javax.servlet.ServletConfig)
void com.ibm.servlet.engine.webapp.StrictLifecycleServlet.init(javax.servlet.ServletConfig)
void com.ibm.servlet.engine.webapp.ServletInstance.init()
void javax.servlet.GenericServlet.init(javax.servlet.ServletConfig)
void com.ibm.servlet.engine.webapp.ServletManager.addServlet(java.lang.String, javax.servlet.Servlet, java.util.Properties)
void com.ibm.servlet.engine.webapp.WebAppServletManager.loadServlet(java.lang.String)
void com.ibm.servlet.engine.webapp.WebAppServletManager.loadAutoLoadServlets()
void com.ibm.servlet.engine.webapp.WebApp.loadServletManager()
void com.ibm.servlet.engine.webapp.WebApp.init(com.ibm.servlet.engine.config.WebAppInfo, com.ibm.servlet.engine.webapp.WebAppContext)
void com.ibm.servlet.engine.srt.WebGroup.loadWebApp()
void com.ibm.servlet.engine.srt.WebGroup.init(com.ibm.servlet.engine.ServletHost, com.ibm.servlet.engine.config.WebGroupInfo)
void com.ibm.servlet.engine.ServletHost.loadWebGroups()
void com.ibm.servlet.engine.ServletHost.init(com.ibm.servlet.engine.ServletEngine, com.ibm.servlet.engine.config.ServletHostInfo)
void com.ibm.servlet.engine.ServletEngine.loadServletHosts()
void com.ibm.servlet.engine.ServletEngine.init(com.ibm.servlet.engine.config.ServletEngineInfo)
com.ibm.servlet.engine.ServletEngine com.ibm.servlet.engine.ServletEngine.getEngine()
void com.ibm.ivj.control.node.ServletEngineRunner.startServletEngine(boolean)
boolean com.ibm.ivj.control.node.ServletEngineRunner.startServer()
void com.ibm.ivj.control.node.ServletEngineRunner.main(java.lang.String [])
java.lang.Object java.lang.reflect.Method.invoke(java.lang.Object, java.lang.Object [])

[02.07.16 14:50:48:898 CST] 6a77 WebApp X Failed.to.initialize.webapp.{0}
"strutsexample"
javax.servlet.ServletException
java.lang.Throwable(java.lang.String)
java.lang.Exception(java.lang.String)
javax.servlet.ServletException(java.lang.String, java.lang.Throwable)
void org.apache.struts.action.ActionServlet.initMapping()
void org.apache.struts.action.ActionServlet.init()
void javax.servlet.GenericServlet.init(javax.servlet.ServletConfig)
void com.ibm.servlet.engine.webapp.StrictServletInstance.doInit()
void com.ibm.servlet.engine.webapp.StrictLifecycleServlet._init(javax.servlet.ServletConfig)
void com.ibm.servlet.engine.webapp.PreInitializedServletState.init(com.ibm.servlet.engine.webapp.StrictLifecycleServlet, javax.servlet.ServletConfig)
void com.ibm.servlet.engine.webapp.StrictLifecycleServlet.init(javax.servlet.ServletConfig)
void com.ibm.servlet.engine.webapp.ServletInstance.init()
void javax.servlet.GenericServlet.init(javax.servlet.ServletConfig)
void com.ibm.servlet.engine.webapp.ServletManager.addServlet(java.lang.String, javax.servlet.Servlet, java.util.Properties)
void com.ibm.servlet.engine.webapp.WebAppServletManager.loadServlet(java.lang.String)
void com.ibm.servlet.engine.webapp.WebAppServletManager.loadAutoLoadServlets()
void com.ibm.servlet.engine.webapp.WebApp.loadServletManager()
void com.ibm.servlet.engine.webapp.WebApp.init(com.ibm.servlet.engine.config.WebAppInfo, com.ibm.servlet.engine.webapp.WebAppContext)
void com.ibm.servlet.engine.srt.WebGroup.loadWebApp()
void com.ibm.servlet.engine.srt.WebGroup.init(com.ibm.servlet.engine.ServletHost, com.ibm.servlet.engine.config.WebGroupInfo)
void com.ibm.servlet.engine.ServletHost.loadWebGroups()
void com.ibm.servlet.engine.ServletHost.init(com.ibm.servlet.engine.ServletEngine, com.ibm.servlet.engine.config.ServletHostInfo)
void com.ibm.servlet.engine.ServletEngine.loadServletHosts()
void com.ibm.servlet.engine.ServletEngine.init(com.ibm.servlet.engine.config.ServletEngineInfo)
com.ibm.servlet.engine.ServletEngine com.ibm.servlet.engine.ServletEngine.getEngine()
void com.ibm.ivj.control.node.ServletEngineRunner.startServletEngine(boolean)
boolean com.ibm.ivj.control.node.ServletEngineRunner.startServer()
void com.ibm.ivj.control.node.ServletEngineRunner.main(java.lang.String [])
java.lang.Object java.lang.reflect.Method.invoke(java.lang.Object, java.lang.Object [])

In JGuru forum, found the same question and the answer asked to test the WTE by calling http://localhost:8080/servlet/pakagename.servletname. So I've created a simple servlet, and I manage to load that server by calling http://localhost:8080/servlet/paskage1.HelloWorld but I still have problem in loading the http://localhost:8080/strutsexample
I really do not have any idea why this happen. Search for the solution in the newsgroup and forum, found someone posted the same question but nobody reply.
Any help will be appreciated.
Thank you in advanced.
Matthew Phillips
Ranch Hand

Joined: Mar 09, 2001
Posts: 2676
conio,
JavaRanch has a naming policy which is strictly enforced. Please change your display name to conform with this policy. Thanks.


Matthew Phillips
Conie Ooi
Ranch Hand

Joined: Jun 09, 2002
Posts: 31
Just changed the display name, thank you for informing me.
Roger Graff
Ranch Hand

Joined: May 29, 2001
Posts: 112
I would check to see if your *.webapp file is configured correctly.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Struts and WTE 4.0