Websphere problem running struts 1.1b1

2002-04-10 Thread Marcelo Caldas

Hi guys, I'm trying to run my application in Websphere 4.0 (redHat 7.2),
but I keep getting always the same error... All the action goes ok, but
when it's ready to show the JSP page, it complains with the following
error:
on the browser: Error 500: org/apache/struts/taglib/html/BaseHandlerTag
on default stdOut.log:


[4/10/02 14:18:25:789 EDT] 19f4c66c WebGroup  X SRVE0026E: [Servlet
Error]-[JSP 1.1 Processor]:
com.ibm.servlet.engine.webapp.WebAppErrorReport:org/apache/struts/taglib/html/BaseHandlerTag
at
com.ibm.servlet.engine.webapp.WebAppDispatcherResponse.sendError(WebAppDispatcherResponse.java:85)
at
org.apache.jasper.runtime.JspServlet.unknownException(JspServlet.java:467)
at org.apache.jasper.runtime.JspServlet.service(JspServlet.java:573)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
com.ibm.servlet.engine.webapp.StrictServletInstance.doService(ServletManager.java:827)
at
com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service(StrictLifecycleServlet.java:167)
at
com.ibm.servlet.engine.webapp.IdleServletState.service(StrictLifecycleServlet.java:297)
at
com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service(StrictLifecycleServlet.java:110)
at
com.ibm.servlet.engine.webapp.ServletInstance.service(ServletManager.java:472)
at
com.ibm.servlet.engine.webapp.ValidServletReferenceState.dispatch(ServletManager.java:1012)
at
com.ibm.servlet.engine.webapp.ServletInstanceReference.dispatch(ServletManager.java:913)
at
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:523)
at
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:282)
at
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:112)
at
org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:972)
at
org.apache.struts.action.RequestProcessor.processActionForward(RequestProcessor.java:408)
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:269)
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1109)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:452)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
com.ibm.servlet.engine.webapp.StrictServletInstance.doService(ServletManager.java:827)
at
com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service(StrictLifecycleServlet.java:167)
at
com.ibm.servlet.engine.webapp.IdleServletState.service(StrictLifecycleServlet.java:297)
at
com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service(StrictLifecycleServlet.java:110)
at
com.ibm.servlet.engine.webapp.ServletInstance.service(ServletManager.java:472)
at
com.ibm.servlet.engine.webapp.ValidServletReferenceState.dispatch(ServletManager.java:1012)
at
com.ibm.servlet.engine.webapp.ServletInstanceReference.dispatch(ServletManager.java:913)
at
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:523)
at
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:282)
at
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:112)
at
com.ibm.servlet.engine.srt.WebAppInvoker.doForward(WebAppInvoker.java:91)
at
com.ibm.servlet.engine.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:184)
at
com.ibm.servlet.engine.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:67)
at
com.ibm.servlet.engine.invocation.CacheableInvocationContext.invoke(CacheableInvocationContext.java:106)
at
com.ibm.servlet.engine.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:125)
at
com.ibm.servlet.engine.oselistener.OSEListenerDispatcher.service(OSEListener.java:315)
at
com.ibm.servlet.engine.http11.HttpConnection.handleRequest(HttpConnection.java:60)
at
com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:323)
at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:252)
at com.ibm.ws.util.CachedThread.run(ThreadPool.java:122)


Any help is great appreciated.



--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: WebSphere problem

2001-03-16 Thread Bernard Genin



[EMAIL PROTECTED] wrote:

 Can anyone provide a stack trace?


here it is.

 We're about to move to 3.5.3 from a working 3.5.2, so I'd appreciate a head
 start. As the author of the 3.5.2 instructions, I'd like to know that you
 changed the ActionServlet class and stored it in the servlet directory of
 your web app.


I'm already on 3.5.3 and I've changed the ActionServlet class as you specified
it in the installations notes, before trying struts.


Bernard.


[01.03.15 17:03:24:187 GMT+01:00] 882a2f98 DrAdminServer A SMTL0018I: DrAdmin 
disponible sur le port 3,550

[01.03.15 17:03:27:250 GMT+01:00] 8871af98 ServletEngine A IBM WebSphere Application 
Server - Web Container.  Copyright IBM Corp. 1998-2000

[01.03.15 17:03:27:578 GMT+01:00] 8871af98 ServletEngine A Servlet Specification 
Level: 2.2 - Full Servlet 2.2 Compliance Mode

[01.03.15 17:03:28:078 GMT+01:00] 8871af98 ServletEngine A Supported JSP Specification 
Levels: 1.1, 1.0, 0.91

[01.03.15 17:03:28:484 GMT+01:00] 8871af98 ServletHost   A Loading group: "struts-ex"

[01.03.15 17:03:28:890 GMT+01:00] 8871af98 CacheManager  A 
Servlet.cache.file."/dynacache.xml".not.found.Caching.is.disabled

[01.03.15 17:03:29:046 GMT+01:00] 8871af98 ServletInstan A SRVE0048I: Chargement du 
servlet : "database"

[01.03.15 17:03:29:187 GMT+01:00] 8871af98 WebGroup  A SRVE0091I: [Servlet LOG] : 
"database: init"

[01.03.15 17:03:29:281 GMT+01:00] 8871af98 WebGroup  A SRVE0091I: [Servlet LOG] : 
"database: Initializing database servlet"

[01.03.15 17:03:29:312 GMT+01:00] 8871af98 WebGroup  A SRVE0091I: [Servlet LOG] : 
"database: Loading database from '/WEB-INF/database.xml'"

[01.03.15 17:03:29:375 GMT+01:00] 8871af98 WebGroup  A SRVE0091I: [Servlet LOG] : 
"database: No such resource available - loading empty database"

[01.03.15 17:03:29:421 GMT+01:00] 8871af98 ServletInstan A SRVE0130I: Servlet 
disponible pour le service : "database"

[01.03.15 17:03:29:531 GMT+01:00] 8871af98 ServletInstan A SRVE0048I: Chargement du 
servlet : "action"

[01.03.15 17:03:29:703 GMT+01:00] 8871af98 WebGroup  A SRVE0091I: [Servlet LOG] : 
"action: init"

[01.03.15 17:03:29:781 GMT+01:00] 8871af98 WebGroup  A SRVE0091I: [Servlet LOG] : 
"action: Loading application resources from resource 
org.apache.struts.example.ApplicationResources"

[01.03.15 17:03:29:843 GMT+01:00] 8871af98 WebGroup  A SRVE0091I: [Servlet LOG] : 
"action: Initializing configuration from resource path /WEB-INF/struts-config.xml"

register('-//Apache Software Foundation//DTD Struts Configuration 1.0//EN', 
'classloader:C:\WebSphere\AppServer\hosts\default_host\struts-example\servlets\org\apache\struts\resources\struts-config_1_0.dtd'

register('-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN', 
'classloader:C:\WebSphere\AppServer\hosts\default_host\struts-example\servlets\org\apache\struts\resources\web-app_2_2.dtd'

register('-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN', 
'classloader:C:\WebSphere\AppServer\hosts\default_host\struts-example\servlets\org\apache\struts\resources\web-app_2_3.dtd'

[01.03.15 17:03:30:375 GMT+01:00] 8871af98 ServletInstan X Uncaught init() exception 
thrown by servlet {0}: {1}

 "action"

 javax.servlet.ServletException: Parsing error 
processing resource path /WEB-INF/struts-config.xml

at 
com.ibm.servlet.engine.webapp.StrictLifecycleServlet._init(StrictLifecycleServlet.java:142)

at 
com.ibm.servlet.engine.webapp.PreInitializedServletState.init(StrictLifecycleServlet.java:244)

at 
com.ibm.servlet.engine.webapp.StrictLifecycleServlet.init(StrictLifecycleServlet.java:102)

at com.ibm.servlet.engine.webapp.ServletInstance.init(ServletManager.java:284)

at javax.servlet.GenericServlet.init(GenericServlet.java:258)

at 
com.ibm.servlet.engine.webapp.ServletManager.addServlet(ServletManager.java:76)

at 
com.ibm.servlet.engine.webapp.WebAppServletManager.loadServlet(WebAppServletManager.java:91)

at 
com.ibm.servlet.engine.webapp.WebAppServletManager.loadAutoLoadServlets(WebAppServletManager.java:158)

at com.ibm.servlet.engine.webapp.WebApp.loadServletManager(WebApp.java:802)

at com.ibm.servlet.engine.webapp.WebApp.init(WebApp.java:89)

at com.ibm.servlet.engine.srt.WebGroup.loadWebApp(WebGroup.java:121)

at com.ibm.servlet.engine.srt.WebGroup.init(WebGroup.java:82)

at com.ibm.servlet.engine.ServletHost.addWebGroup(ServletHost.java:109)

at 
com.ibm.servlet.engine.ServletEngineDynamicUpdateSupport.addWebGroup(ServletEngineDynamicUpdateSupport.java:126)

at 
com.ibm.ejs.sm.active.ActiveServletGroup.startAction(ActiveServletGroup.java:76)

at com.ibm.ejs.sm.active.ActiveObject.startObject(ActiveObject.java:682)

at com.ibm.ejs.sm.active.ActiveObject.start(ActiveObject.java:117)

at 

RE: WebSphere problem

2001-03-16 Thread Markus Torpvret

We're running struts on WebSphere 3.5.3 and don't have any problems parsing
the config file. We have not made any modifications at all to the
ActionServlet class, it runs just fine out of the box.

Maybe you could turn up the debug and detail init args to the ActionServlet
to get a more specific trace, it's kind of hard to see what's going on. Are
you sure that there's nothing wrong with the config file?

On a side note:
The only exception I've had during init was due to the fact that we had no
web.xml file. Since that particular message seems to be missing from the
ActionResources.properties file in struts 1.0 beta1 it was kind of hard to
find... It cleared up fine when I created an empty web.xml file (or rather
one containing web-app/)

Why does Struts try to read web.xml? Shouldn't that be left to the servlet
container? All init information is stored in the WebSphere database, so we
don't really need a web.xml file...

/Markus


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: Friday, March 16, 2001 10:31 AM
 To: [EMAIL PROTECTED]
 Subject: Re: WebSphere problem
 
 
 
 
 [EMAIL PROTECTED] wrote:
 
  Can anyone provide a stack trace?
 
 
 here it is.
 
  We're about to move to 3.5.3 from a working 3.5.2, so I'd 
 appreciate a head
  start. As the author of the 3.5.2 instructions, I'd like to 
 know that you
  changed the ActionServlet class and stored it in the 
 servlet directory of
  your web app.
 
 
 I'm already on 3.5.3 and I've changed the ActionServlet class 
 as you specified
 it in the installations notes, before trying struts.
 
 
 Bernard.
 



RE: WebSphere problem

2001-03-16 Thread Craig R. McClanahan



On Fri, 16 Mar 2001, Markus Torpvret wrote:

 We're running struts on WebSphere 3.5.3 and don't have any problems parsing
 the config file. We have not made any modifications at all to the
 ActionServlet class, it runs just fine out of the box.
 
 Maybe you could turn up the debug and detail init args to the ActionServlet
 to get a more specific trace, it's kind of hard to see what's going on. Are
 you sure that there's nothing wrong with the config file?
 
 On a side note:
 The only exception I've had during init was due to the fact that we had no
 web.xml file. Since that particular message seems to be missing from the
 ActionResources.properties file in struts 1.0 beta1 it was kind of hard to
 find... It cleared up fine when I created an empty web.xml file (or rather
 one containing web-app/)
 
Oops ... that is a bug.

 Why does Struts try to read web.xml? Shouldn't that be left to the servlet
 container? All init information is stored in the WebSphere database, so we
 don't really need a web.xml file...
 

Struts needs to read the web.xml file to figure out what kind of servlet
mapping you are using -- path-mapped or extension-mapped.  This is needed
in order to construct correct URLs in the html:form tag, when you just
include the action name:

html:form action="/logon"
...
/html:form

This will be translated into "/myapp/logon.do" if you are using extension
mapping, or "/myapp/perform/logon" if you are using path mapping to
"/perform/*".

 /Markus
 

Craig McClanahan




WebSphere problem

2001-03-15 Thread Bernard Genin


Hello list,

I'm trying to install struts in a websphere servlet container. I have
followed all the steps required figuring in the installation notes (on
the jakarta site).
WebSphere throws errors of parsing on struts-config.xml (during the init

pass of the action servlet).

Any hint ?

Bernard.






RE: WebSphere problem

2001-03-15 Thread dion

Can anyone provide a stack trace?

We're about to move to 3.5.3 from a working 3.5.2, so I'd appreciate a head
start. As the author of the 3.5.2 instructions, I'd like to know that you
changed the ActionServlet class and stored it in the servlet directory of
your web app.

--
dIon Gillard, Multitask Consulting
Work:  http://www.multitask.com.au
NetRexx: http://www.multitask.com.au/NetRexx.nsf
- Forwarded by dIon Gillard/Multitask Consulting/AU on 16/03/2001 01:13
PM -
RE: WebSphere problem


I have had the exact same problem with WebSphere App Server Advanced
Edition
V3.5.3!!

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 15, 2001 9:31 AM
To: [EMAIL PROTECTED]
Subject: WebSphere problem



Hello list,

I'm trying to install struts in a websphere servlet container. I have
followed all the steps required figuring in the installation notes (on
the jakarta site).
WebSphere throws errors of parsing on struts-config.xml (during the init

pass of the action servlet).

Any hint ?

Bernard.




   
   
   
  Previous Document (Embe (Embe Next Document  
dded   dded
image image
moved moved
to   to
file: file:
pic00 pic18
041.p 467.p
cx) cx)
   
Return to View 
   
(Embedded image moved to   
  file: pic06334.pcx)  
   



 pic00041.pcx
 pic18467.pcx
 pic06334.pcx