Is it possible to use struts 1.1 with WebSphere 4?

2003-06-11 Thread Andrew Hill
We need to see if its possible to make our big complex application work on
WebSphere 4. We had it working on 5.
The ui is done in struts and it was suggested that struts1.1 couldnt be used
with WepSphere 4 as WS4 uses the 2.2 servlet API. I figured this shouldnt be
a problem as struts supports 2.2 and doesnt need 2.3

Nevertheless I havent even been able to get a simple test application to run
on WAS4. (Something of a struts equivalent to hello world. - One action
that does a println to the response to prove you reached it)

This test app deploys and runs just fine in tomcat 3.3.1a (a servlet api 2.2
container) and of course in 4.0.6, but on websphere the ActionServlet dies
in the init method with:

SRVE0100E: Did not realize  init() exception thrown by servlet action:
javax.servlet.UnavailableException: Parsing error processing resource path
at
org.apache.struts.action.ActionServlet.initModuleConfig(ActionServlet.java:9
52)
at org.apache.struts.action.ActionServlet.init(ActionServlet.java:468)
at javax.servlet.GenericServlet.init(GenericServlet.java:258)
at
com.ibm.servlet.engine.webapp.StrictServletInstance.doInit(ServletManager.ja
va:802)
at
com.ibm.servlet.engine.webapp.StrictLifecycleServlet._init(StrictLifecycleSe
rvlet.java:137)
at
com.ibm.servlet.engine.webapp.PreInitializedServletState.init(StrictLifecycl
eServlet.java:243)
at
com.ibm.servlet.engine.webapp.StrictLifecycleServlet.init(StrictLifecycleSer
vlet.java:103)
at
com.ibm.servlet.engine.webapp.ServletInstance.init(ServletManager.java:388)
at javax.servlet.GenericServlet.init(GenericServlet.java:258)
at
com.ibm.servlet.engine.webapp.ServletManager.addServlet(ServletManager.java:
84)
at
com.ibm.servlet.engine.webapp.WebAppServletManager.loadServlet(WebAppServlet
Manager.java:226)
at
com.ibm.servlet.engine.webapp.WebAppServletManager.loadAutoLoadServlets(WebA
ppServletManager.java:357)
at
com.ibm.servlet.engine.webapp.WebApp.loadServletManager(WebApp.java:1001)
at com.ibm.servlet.engine.webapp.WebApp.init(WebApp.java:133)
at com.ibm.servlet.engine.srt.WebGroup.loadWebApp(WebGroup.java:234)
at com.ibm.servlet.engine.srt.WebGroup.init(WebGroup.java:139)
at
com.ibm.servlet.engine.ServletEngine.addWebApplication(ServletEngine.java:63
3)
at com.ibm.ws.runtime.WebContainer.install(WebContainer.java:36)
at com.ibm.ws.runtime.Server.startModule(Server.java:615)
at com.ibm.ejs.sm.active.ActiveModule.startModule(ActiveModule.java:509)
at com.ibm.ejs.sm.active.ActiveModule.startAction(ActiveModule.java:355)
at com.ibm.ejs.sm.active.ActiveObject.startObject(ActiveObject.java:709)
at com.ibm.ejs.sm.active.ActiveObject.start(ActiveObject.java:131)
at java.lang.reflect.Method.invoke(Native Method)
at
com.ibm.ejs.sm.agent.AdminAgentImpl.activeObjectInvocation(AdminAgentImpl.ja
va:93)
at
com.ibm.ejs.sm.active.ActiveObject.invokeContainedObject(ActiveObject.java:5
12)
at
com.ibm.ejs.sm.agent.AdminAgentImpl.activeObjectInvocation(AdminAgentImpl.ja
va:110)
at
com.ibm.ejs.sm.agent.AdminAgentImpl.invokeActiveObject(AdminAgentImpl.java:6
2)
at
com.ibm.ejs.sm.agent._AdminAgentImpl_Tie._invoke(_AdminAgentImpl_Tie.java:80
)
at
com.ibm.CORBA.iiop.ExtendedServerDelegate.dispatch(ExtendedServerDelegate.ja
va:506)
at com.ibm.CORBA.iiop.ORB.process(ORB.java:2294)
at com.ibm.CORBA.iiop.OrbWorker.run(OrbWorker.java:185)
at com.ibm.ejs.oa.pool.ThreadPool$PooledWorker.run(ThreadPool.java:95)
at com.ibm.ws.util.CachedThread.run(ThreadPool.java:122)

Is this just something Im doing wrong (ideas on what would be appreciated!),
or is it really true that you cant use struts 1.1 with websphere 4?




useless-information
Its a simple app I banged together with one action that writes a string
directly to the response.
Its got a whole bunch of libs in WEB-INF/lib as Im not sure what struts
needs and doesnt:
ie:
commons-beanutils.jar
commons-collections.jar
commons-dbcp.jar
commons-digester.jar
commons-fileuplaod.jar
commons-lang.jar
commons-logging.jar
commons-pool.jar
commons-resources.jar
commons-validator.jar
jakarta-oro.jar
jdbc2_0-stdext.jar
log4j-1.2.7.jar
struts.jar

My logging properties are set up to use log4j, though Im not calling the log
in my action.
Various config files are in my WEB-INF
struts-config.xml
tiles-def.xml
validation.xml
web.xml

struts-config has been set up as simple as possible - just maps one path to
one action. The other files are untouched and would be same as whats in the
struts blank war.
/useless-information


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



Re: Is it possible to use struts 1.1 with WebSphere 4?

2003-06-11 Thread Dirk Markert
Do you have logging enabled? From looking at the struts source, I
would guess you will get more detailed information regarding the
exception. Currently it is not clear where exactly the exception
happens. Knowing the exact line we can perhaps locate the error.

***

AH We need to see if its possible to make our big complex application work on
AH WebSphere 4. We had it working on 5.
AH The ui is done in struts and it was suggested that struts1.1 couldnt be used
AH with WepSphere 4 as WS4 uses the 2.2 servlet API. I figured this shouldnt be
AH a problem as struts supports 2.2 and doesnt need 2.3

AH Nevertheless I havent even been able to get a simple test application to run
AH on WAS4. (Something of a struts equivalent to hello world. - One action
AH that does a println to the response to prove you reached it)

AH This test app deploys and runs just fine in tomcat 3.3.1a (a servlet api 2.2
AH container) and of course in 4.0.6, but on websphere the ActionServlet dies
AH in the init method with:

AH SRVE0100E: Did not realize  init() exception thrown by servlet action:
AH javax.servlet.UnavailableException: Parsing error processing resource path
AH at
AH org.apache.struts.action.ActionServlet.initModuleConfig(ActionServlet.java:9
AH 52)
AH at org.apache.struts.action.ActionServlet.init(ActionServlet.java:468)
AH at javax.servlet.GenericServlet.init(GenericServlet.java:258)
AH at
AH com.ibm.servlet.engine.webapp.StrictServletInstance.doInit(ServletManager.ja
AH va:802)
AH at
AH com.ibm.servlet.engine.webapp.StrictLifecycleServlet._init(StrictLifecycleSe
AH rvlet.java:137)
AH at
AH com.ibm.servlet.engine.webapp.PreInitializedServletState.init(StrictLifecycl
AH eServlet.java:243)
AH at
AH com.ibm.servlet.engine.webapp.StrictLifecycleServlet.init(StrictLifecycleSer
AH vlet.java:103)
AH at
AH com.ibm.servlet.engine.webapp.ServletInstance.init(ServletManager.java:388)
AH at javax.servlet.GenericServlet.init(GenericServlet.java:258)
AH at
AH com.ibm.servlet.engine.webapp.ServletManager.addServlet(ServletManager.java:
AH 84)
AH at
AH com.ibm.servlet.engine.webapp.WebAppServletManager.loadServlet(WebAppServlet
AH Manager.java:226)
AH at
AH com.ibm.servlet.engine.webapp.WebAppServletManager.loadAutoLoadServlets(WebA
AH ppServletManager.java:357)
AH at
AH com.ibm.servlet.engine.webapp.WebApp.loadServletManager(WebApp.java:1001)
AH at com.ibm.servlet.engine.webapp.WebApp.init(WebApp.java:133)
AH at com.ibm.servlet.engine.srt.WebGroup.loadWebApp(WebGroup.java:234)
AH at com.ibm.servlet.engine.srt.WebGroup.init(WebGroup.java:139)
AH at
AH com.ibm.servlet.engine.ServletEngine.addWebApplication(ServletEngine.java:63
AH 3)
AH at com.ibm.ws.runtime.WebContainer.install(WebContainer.java:36)
AH at com.ibm.ws.runtime.Server.startModule(Server.java:615)
AH at com.ibm.ejs.sm.active.ActiveModule.startModule(ActiveModule.java:509)
AH at com.ibm.ejs.sm.active.ActiveModule.startAction(ActiveModule.java:355)
AH at com.ibm.ejs.sm.active.ActiveObject.startObject(ActiveObject.java:709)
AH at com.ibm.ejs.sm.active.ActiveObject.start(ActiveObject.java:131)
AH at java.lang.reflect.Method.invoke(Native Method)
AH at
AH com.ibm.ejs.sm.agent.AdminAgentImpl.activeObjectInvocation(AdminAgentImpl.ja
AH va:93)
AH at
AH com.ibm.ejs.sm.active.ActiveObject.invokeContainedObject(ActiveObject.java:5
AH 12)
AH at
AH com.ibm.ejs.sm.agent.AdminAgentImpl.activeObjectInvocation(AdminAgentImpl.ja
AH va:110)
AH at
AH com.ibm.ejs.sm.agent.AdminAgentImpl.invokeActiveObject(AdminAgentImpl.java:6
AH 2)
AH at
AH com.ibm.ejs.sm.agent._AdminAgentImpl_Tie._invoke(_AdminAgentImpl_Tie.java:80
AH )
AH at
AH com.ibm.CORBA.iiop.ExtendedServerDelegate.dispatch(ExtendedServerDelegate.ja
AH va:506)
AH at com.ibm.CORBA.iiop.ORB.process(ORB.java:2294)
AH at com.ibm.CORBA.iiop.OrbWorker.run(OrbWorker.java:185)
AH at com.ibm.ejs.oa.pool.ThreadPool$PooledWorker.run(ThreadPool.java:95)
AH at com.ibm.ws.util.CachedThread.run(ThreadPool.java:122)

AH Is this just something Im doing wrong (ideas on what would be appreciated!),
AH or is it really true that you cant use struts 1.1 with websphere 4?




AH useless-information
AH Its a simple app I banged together with one action that writes a string
AH directly to the response.
AH Its got a whole bunch of libs in WEB-INF/lib as Im not sure what struts
AH needs and doesnt:
AH ie:
AH commons-beanutils.jar
AH commons-collections.jar
AH commons-dbcp.jar
AH commons-digester.jar
AH commons-fileuplaod.jar
AH commons-lang.jar
AH commons-logging.jar
AH commons-pool.jar
AH commons-resources.jar
AH commons-validator.jar
AH jakarta-oro.jar
AH jdbc2_0-stdext.jar
AH log4j-1.2.7.jar
AH struts.jar

AH My logging properties are 

Re: Is it possible to use struts 1.1 with WebSphere 4?

2003-06-11 Thread Susan Bradeen
Andrew, 

Sounds like something is amiss in your test app. I have been running my 
app built around Struts 1.1 with WebSphere 4 for a long time. Are you are 
using the latest jar files  ... RC2? Even with the trouble I ran into 
yesterday with the RC2 struts.jar, I can get my app to load and do most 
things. 

Susan

On 06/11/2003 07:25:57 AM Andrew Hill wrote:

 We need to see if its possible to make our big complex application work 
on
 WebSphere 4. We had it working on 5.
 The ui is done in struts and it was suggested that struts1.1 couldnt be 
used
 with WepSphere 4 as WS4 uses the 2.2 servlet API. I figured this 
shouldnt be
 a problem as struts supports 2.2 and doesnt need 2.3
 
 Nevertheless I havent even been able to get a simple test application to 
run
 on WAS4. (Something of a struts equivalent to hello world. - One action
 that does a println to the response to prove you reached it)
 
 This test app deploys and runs just fine in tomcat 3.3.1a (a servlet api 
2.2
 container) and of course in 4.0.6, but on websphere the ActionServlet 
dies
 in the init method with:
 
 SRVE0100E: Did not realize  init() exception thrown by servlet action:
 javax.servlet.UnavailableException: Parsing error processing resource 
path
 at
 
org.apache.struts.action.ActionServlet.initModuleConfig(ActionServlet.java:9
 52)

 snip/

 Is this just something Im doing wrong (ideas on what would be 
appreciated!),
 or is it really true that you cant use struts 1.1 with websphere 4?
 
 
 
 
 useless-information
 Its a simple app I banged together with one action that writes a string
 directly to the response.
 Its got a whole bunch of libs in WEB-INF/lib as Im not sure what struts
 needs and doesnt:
 ie:
 commons-beanutils.jar
 commons-collections.jar
 commons-dbcp.jar
 commons-digester.jar
 commons-fileuplaod.jar
 commons-lang.jar
 commons-logging.jar
 commons-pool.jar
 commons-resources.jar
 commons-validator.jar
 jakarta-oro.jar
 jdbc2_0-stdext.jar
 log4j-1.2.7.jar
 struts.jar
 
 My logging properties are set up to use log4j, though Im not calling the 
log
 in my action.
 Various config files are in my WEB-INF
 struts-config.xml
 tiles-def.xml
 validation.xml
 web.xml
 
 struts-config has been set up as simple as possible - just maps one path 
to
 one action. The other files are untouched and would be same as whats in 
the
 struts blank war.
 /useless-information
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 

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



RE: Is it possible to use struts 1.1 with WebSphere 4?

2003-06-11 Thread Andrew Hill
Its b3 if I recall rightly. Ill download rc2 and have another shot in the
morning.

Just wierd that it works in tomcat but fails in WS. I recall seing something
that said for WS3 you needed to change struts use of
ServletContext.getResourceAsStream() - does that still apply in WS4?

-Original Message-
From: Susan Bradeen [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 11 June 2003 19:57
To: Struts Users Mailing List
Subject: Re: Is it possible to use struts 1.1 with WebSphere 4?


Andrew,

Sounds like something is amiss in your test app. I have been running my
app built around Struts 1.1 with WebSphere 4 for a long time. Are you are
using the latest jar files  ... RC2? Even with the trouble I ran into
yesterday with the RC2 struts.jar, I can get my app to load and do most
things.

Susan

On 06/11/2003 07:25:57 AM Andrew Hill wrote:

 We need to see if its possible to make our big complex application work
on
 WebSphere 4. We had it working on 5.
 The ui is done in struts and it was suggested that struts1.1 couldnt be
used
 with WepSphere 4 as WS4 uses the 2.2 servlet API. I figured this
shouldnt be
 a problem as struts supports 2.2 and doesnt need 2.3

 Nevertheless I havent even been able to get a simple test application to
run
 on WAS4. (Something of a struts equivalent to hello world. - One action
 that does a println to the response to prove you reached it)

 This test app deploys and runs just fine in tomcat 3.3.1a (a servlet api
2.2
 container) and of course in 4.0.6, but on websphere the ActionServlet
dies
 in the init method with:

 SRVE0100E: Did not realize  init() exception thrown by servlet action:
 javax.servlet.UnavailableException: Parsing error processing resource
path
 at

org.apache.struts.action.ActionServlet.initModuleConfig(ActionServlet.java:9
 52)

 snip/

 Is this just something Im doing wrong (ideas on what would be
appreciated!),
 or is it really true that you cant use struts 1.1 with websphere 4?




 useless-information
 Its a simple app I banged together with one action that writes a string
 directly to the response.
 Its got a whole bunch of libs in WEB-INF/lib as Im not sure what struts
 needs and doesnt:
 ie:
 commons-beanutils.jar
 commons-collections.jar
 commons-dbcp.jar
 commons-digester.jar
 commons-fileuplaod.jar
 commons-lang.jar
 commons-logging.jar
 commons-pool.jar
 commons-resources.jar
 commons-validator.jar
 jakarta-oro.jar
 jdbc2_0-stdext.jar
 log4j-1.2.7.jar
 struts.jar

 My logging properties are set up to use log4j, though Im not calling the
log
 in my action.
 Various config files are in my WEB-INF
 struts-config.xml
 tiles-def.xml
 validation.xml
 web.xml

 struts-config has been set up as simple as possible - just maps one path
to
 one action. The other files are untouched and would be same as whats in
the
 struts blank war.
 /useless-information


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


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


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



RE: Is it possible to use struts 1.1 with WebSphere 4?

2003-06-11 Thread Andrew Hill
Ive got commons-logging in there. But dont think its setup properly though
ill go take another look. That stacktrace comes from websphere, but there
doesnt seem to be any other info about the error logged anywhere. Ill check
my logging properties again in the morning and see if I can get it to give
me some more .


-Original Message-
From: Dirk Markert [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 11 June 2003 19:49
To: Struts Users Mailing List; [EMAIL PROTECTED]
Subject: Re: Is it possible to use struts 1.1 with WebSphere 4?


Do you have logging enabled? From looking at the struts source, I
would guess you will get more detailed information regarding the
exception. Currently it is not clear where exactly the exception
happens. Knowing the exact line we can perhaps locate the error.

***

AH We need to see if its possible to make our big complex application work
on
AH WebSphere 4. We had it working on 5.
AH The ui is done in struts and it was suggested that struts1.1 couldnt be
used
AH with WepSphere 4 as WS4 uses the 2.2 servlet API. I figured this
shouldnt be
AH a problem as struts supports 2.2 and doesnt need 2.3

AH Nevertheless I havent even been able to get a simple test application to
run
AH on WAS4. (Something of a struts equivalent to hello world. - One action
AH that does a println to the response to prove you reached it)

AH This test app deploys and runs just fine in tomcat 3.3.1a (a servlet api
2.2
AH container) and of course in 4.0.6, but on websphere the ActionServlet
dies
AH in the init method with:

AH SRVE0100E: Did not realize  init() exception thrown by servlet action:
AH javax.servlet.UnavailableException: Parsing error processing resource
path
AH at
AH
org.apache.struts.action.ActionServlet.initModuleConfig(ActionServlet.java:9
AH 52)
AH at
org.apache.struts.action.ActionServlet.init(ActionServlet.java:468)
AH at javax.servlet.GenericServlet.init(GenericServlet.java:258)
AH at
AH
com.ibm.servlet.engine.webapp.StrictServletInstance.doInit(ServletManager.ja
AH va:802)
AH at
AH
com.ibm.servlet.engine.webapp.StrictLifecycleServlet._init(StrictLifecycleSe
AH rvlet.java:137)
AH at
AH
com.ibm.servlet.engine.webapp.PreInitializedServletState.init(StrictLifecycl
AH eServlet.java:243)
AH at
AH
com.ibm.servlet.engine.webapp.StrictLifecycleServlet.init(StrictLifecycleSer
AH vlet.java:103)
AH at
AH
com.ibm.servlet.engine.webapp.ServletInstance.init(ServletManager.java:388)
AH at javax.servlet.GenericServlet.init(GenericServlet.java:258)
AH at
AH
com.ibm.servlet.engine.webapp.ServletManager.addServlet(ServletManager.java:
AH 84)
AH at
AH
com.ibm.servlet.engine.webapp.WebAppServletManager.loadServlet(WebAppServlet
AH Manager.java:226)
AH at
AH
com.ibm.servlet.engine.webapp.WebAppServletManager.loadAutoLoadServlets(WebA
AH ppServletManager.java:357)
AH at
AH
com.ibm.servlet.engine.webapp.WebApp.loadServletManager(WebApp.java:1001)
AH at com.ibm.servlet.engine.webapp.WebApp.init(WebApp.java:133)
AH at
com.ibm.servlet.engine.srt.WebGroup.loadWebApp(WebGroup.java:234)
AH at com.ibm.servlet.engine.srt.WebGroup.init(WebGroup.java:139)
AH at
AH
com.ibm.servlet.engine.ServletEngine.addWebApplication(ServletEngine.java:63
AH 3)
AH at com.ibm.ws.runtime.WebContainer.install(WebContainer.java:36)
AH at com.ibm.ws.runtime.Server.startModule(Server.java:615)
AH at
com.ibm.ejs.sm.active.ActiveModule.startModule(ActiveModule.java:509)
AH at
com.ibm.ejs.sm.active.ActiveModule.startAction(ActiveModule.java:355)
AH at
com.ibm.ejs.sm.active.ActiveObject.startObject(ActiveObject.java:709)
AH at
com.ibm.ejs.sm.active.ActiveObject.start(ActiveObject.java:131)
AH at java.lang.reflect.Method.invoke(Native Method)
AH at
AH
com.ibm.ejs.sm.agent.AdminAgentImpl.activeObjectInvocation(AdminAgentImpl.ja
AH va:93)
AH at
AH
com.ibm.ejs.sm.active.ActiveObject.invokeContainedObject(ActiveObject.java:5
AH 12)
AH at
AH
com.ibm.ejs.sm.agent.AdminAgentImpl.activeObjectInvocation(AdminAgentImpl.ja
AH va:110)
AH at
AH
com.ibm.ejs.sm.agent.AdminAgentImpl.invokeActiveObject(AdminAgentImpl.java:6
AH 2)
AH at
AH
com.ibm.ejs.sm.agent._AdminAgentImpl_Tie._invoke(_AdminAgentImpl_Tie.java:80
AH )
AH at
AH
com.ibm.CORBA.iiop.ExtendedServerDelegate.dispatch(ExtendedServerDelegate.ja
AH va:506)
AH at com.ibm.CORBA.iiop.ORB.process(ORB.java:2294)
AH at com.ibm.CORBA.iiop.OrbWorker.run(OrbWorker.java:185)
AH at
com.ibm.ejs.oa.pool.ThreadPool$PooledWorker.run(ThreadPool.java:95)
AH at com.ibm.ws.util.CachedThread.run(ThreadPool.java:122)

AH Is this just something Im doing wrong (ideas on what would be
appreciated!),
AH or is it really true that you cant use struts 1.1 with websphere 4?




AH useless-information
AH

RE: Is it possible to use struts 1.1 with WebSphere 4?

2003-06-11 Thread Hibbs, David
I've got production apps running on 1.1 RC2 on WAS 4, so I would hope that
means it is possible to do so. ;^)  

BTW, I didn't make any changes to the struts code for WAS 4, so that's not
your problem.

OTOH, looking at my copy of the RC2 source it would seem you are indeed
running a later version than I am, so try the RC2 build and see what
happens.

Looking at the error, I would say something is wrong with your
configuration.  For brevity, I will assume your XML syntax and
struts-config.xml content are OK, but this could still be a couple things...
a) Your properties files are not on your classpath
b) It can't locate the DTD, although this is more likely to throw a SAX
exception.  You can eliminate this factor at any rate by keeping a copy of
the DTD in your WEB-INF folder and chainging your DOCTYPE declaration as
follows:
!DOCTYPE struts-config PUBLIC -//Apache Software Foundation//DTD Struts
Configuration 1.1//EN struts-config_1_1.dtd

David Hibbs
Staff Programmer / Analyst
Distributed Applications Development and Support
American National Insurance Company

 -Original Message-
 From: Andrew Hill [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, June 11, 2003 7:22 AM
 To: Struts Users Mailing List
 Subject: RE: Is it possible to use struts 1.1 with WebSphere 4?
 
 
 Its b3 if I recall rightly. Ill download rc2 and have another 
 shot in the
 morning.
 
 Just wierd that it works in tomcat but fails in WS. I recall 
 seing something
 that said for WS3 you needed to change struts use of
 ServletContext.getResourceAsStream() - does that still apply in WS4?
 
 -Original Message-
 From: Susan Bradeen [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, 11 June 2003 19:57
 To: Struts Users Mailing List
 Subject: Re: Is it possible to use struts 1.1 with WebSphere 4?
 
 
 Andrew,
 
 Sounds like something is amiss in your test app. I have been 
 running my
 app built around Struts 1.1 with WebSphere 4 for a long time. 
 Are you are
 using the latest jar files  ... RC2? Even with the trouble I ran into
 yesterday with the RC2 struts.jar, I can get my app to load 
 and do most
 things.
 
 Susan
 
 On 06/11/2003 07:25:57 AM Andrew Hill wrote:
 
  We need to see if its possible to make our big complex 
 application work
 on
  WebSphere 4. We had it working on 5.
  The ui is done in struts and it was suggested that 
 struts1.1 couldnt be
 used
  with WepSphere 4 as WS4 uses the 2.2 servlet API. I figured this
 shouldnt be
  a problem as struts supports 2.2 and doesnt need 2.3
 
  Nevertheless I havent even been able to get a simple test 
 application to
 run
  on WAS4. (Something of a struts equivalent to hello world. 
 - One action
  that does a println to the response to prove you reached it)
 
  This test app deploys and runs just fine in tomcat 3.3.1a 
 (a servlet api
 2.2
  container) and of course in 4.0.6, but on websphere the 
 ActionServlet
 dies
  in the init method with:
 
  SRVE0100E: Did not realize  init() exception thrown by 
 servlet action:
  javax.servlet.UnavailableException: Parsing error 
 processing resource
 path
  at
 
 org.apache.struts.action.ActionServlet.initModuleConfig(Action
 Servlet.java:9
  52)
 
  snip/
 
  Is this just something Im doing wrong (ideas on what would be
 appreciated!),
  or is it really true that you cant use struts 1.1 with websphere 4?
 
 
 
 
  useless-information
  Its a simple app I banged together with one action that 
 writes a string
  directly to the response.
  Its got a whole bunch of libs in WEB-INF/lib as Im not sure 
 what struts
  needs and doesnt:
  ie:
  commons-beanutils.jar
  commons-collections.jar
  commons-dbcp.jar
  commons-digester.jar
  commons-fileuplaod.jar
  commons-lang.jar
  commons-logging.jar
  commons-pool.jar
  commons-resources.jar
  commons-validator.jar
  jakarta-oro.jar
  jdbc2_0-stdext.jar
  log4j-1.2.7.jar
  struts.jar
 
  My logging properties are set up to use log4j, though Im 
 not calling the
 log
  in my action.
  Various config files are in my WEB-INF
  struts-config.xml
  tiles-def.xml
  validation.xml
  web.xml
 
  struts-config has been set up as simple as possible - just 
 maps one path
 to
  one action. The other files are untouched and would be same 
 as whats in
 the
  struts blank war.
  /useless-information
 
 
  
 -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 

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



RE: Is it possible to use struts 1.1 with WebSphere 4?

2003-06-11 Thread Andrew Hill
Thanks David.
Ill take a look at these possibilities and see how it goes.


-Original Message-
From: Hibbs, David [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 11 June 2003 21:34
To: Struts-Users (E-mail)
Subject: RE: Is it possible to use struts 1.1 with WebSphere 4?


I've got production apps running on 1.1 RC2 on WAS 4, so I would hope that
means it is possible to do so. ;^)

BTW, I didn't make any changes to the struts code for WAS 4, so that's not
your problem.

OTOH, looking at my copy of the RC2 source it would seem you are indeed
running a later version than I am, so try the RC2 build and see what
happens.

Looking at the error, I would say something is wrong with your
configuration.  For brevity, I will assume your XML syntax and
struts-config.xml content are OK, but this could still be a couple things...
a) Your properties files are not on your classpath
b) It can't locate the DTD, although this is more likely to throw a SAX
exception.  You can eliminate this factor at any rate by keeping a copy of
the DTD in your WEB-INF folder and chainging your DOCTYPE declaration as
follows:
!DOCTYPE struts-config PUBLIC -//Apache Software Foundation//DTD Struts
Configuration 1.1//EN struts-config_1_1.dtd

David Hibbs
Staff Programmer / Analyst
Distributed Applications Development and Support
American National Insurance Company

 -Original Message-
 From: Andrew Hill [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, June 11, 2003 7:22 AM
 To: Struts Users Mailing List
 Subject: RE: Is it possible to use struts 1.1 with WebSphere 4?


 Its b3 if I recall rightly. Ill download rc2 and have another
 shot in the
 morning.

 Just wierd that it works in tomcat but fails in WS. I recall
 seing something
 that said for WS3 you needed to change struts use of
 ServletContext.getResourceAsStream() - does that still apply in WS4?

 -Original Message-
 From: Susan Bradeen [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, 11 June 2003 19:57
 To: Struts Users Mailing List
 Subject: Re: Is it possible to use struts 1.1 with WebSphere 4?


 Andrew,

 Sounds like something is amiss in your test app. I have been
 running my
 app built around Struts 1.1 with WebSphere 4 for a long time.
 Are you are
 using the latest jar files  ... RC2? Even with the trouble I ran into
 yesterday with the RC2 struts.jar, I can get my app to load
 and do most
 things.

 Susan

 On 06/11/2003 07:25:57 AM Andrew Hill wrote:

  We need to see if its possible to make our big complex
 application work
 on
  WebSphere 4. We had it working on 5.
  The ui is done in struts and it was suggested that
 struts1.1 couldnt be
 used
  with WepSphere 4 as WS4 uses the 2.2 servlet API. I figured this
 shouldnt be
  a problem as struts supports 2.2 and doesnt need 2.3
 
  Nevertheless I havent even been able to get a simple test
 application to
 run
  on WAS4. (Something of a struts equivalent to hello world.
 - One action
  that does a println to the response to prove you reached it)
 
  This test app deploys and runs just fine in tomcat 3.3.1a
 (a servlet api
 2.2
  container) and of course in 4.0.6, but on websphere the
 ActionServlet
 dies
  in the init method with:
 
  SRVE0100E: Did not realize  init() exception thrown by
 servlet action:
  javax.servlet.UnavailableException: Parsing error
 processing resource
 path
  at
 
 org.apache.struts.action.ActionServlet.initModuleConfig(Action
 Servlet.java:9
  52)

  snip/

  Is this just something Im doing wrong (ideas on what would be
 appreciated!),
  or is it really true that you cant use struts 1.1 with websphere 4?
 
 
 
 
  useless-information
  Its a simple app I banged together with one action that
 writes a string
  directly to the response.
  Its got a whole bunch of libs in WEB-INF/lib as Im not sure
 what struts
  needs and doesnt:
  ie:
  commons-beanutils.jar
  commons-collections.jar
  commons-dbcp.jar
  commons-digester.jar
  commons-fileuplaod.jar
  commons-lang.jar
  commons-logging.jar
  commons-pool.jar
  commons-resources.jar
  commons-validator.jar
  jakarta-oro.jar
  jdbc2_0-stdext.jar
  log4j-1.2.7.jar
  struts.jar
 
  My logging properties are set up to use log4j, though Im
 not calling the
 log
  in my action.
  Various config files are in my WEB-INF
  struts-config.xml
  tiles-def.xml
  validation.xml
  web.xml
 
  struts-config has been set up as simple as possible - just
 maps one path
 to
  one action. The other files are untouched and would be same
 as whats in
 the
  struts blank war.
  /useless-information
 
 
 
 -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 

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



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

[OT] RE: Is it possible to use struts 1.1 with WebSphere 4?

2003-06-11 Thread Susan Bradeen
David, 

I am having limited issues with WAS 4 and RC2, looks the html:rewrite 
tags are not resolving correctly. Are you using the system property 
com.ibm.websphere.sendredirect.compliance=true for WAS 4?

Susan Bradeen

On 06/11/2003 09:33:57 AM Hibbs, David wrote:

 I've got production apps running on 1.1 RC2 on WAS 4, so I would hope 
that
 means it is possible to do so. ;^)
 
 BTW, I didn't make any changes to the struts code for WAS 4, so that's 
not
 your problem.
 
 OTOH, looking at my copy of the RC2 source it would seem you are indeed
 running a later version than I am, so try the RC2 build and see what
 happens.
 
 Looking at the error, I would say something is wrong with your
 configuration.  For brevity, I will assume your XML syntax and
 struts-config.xml content are OK, but this could still be a couple 
things...
 a) Your properties files are not on your classpath
 b) It can't locate the DTD, although this is more likely to throw a SAX
 exception.  You can eliminate this factor at any rate by keeping a copy 
of
 the DTD in your WEB-INF folder and chainging your DOCTYPE declaration as
 follows:
 !DOCTYPE struts-config PUBLIC -//Apache Software Foundation//DTD 
Struts
 Configuration 1.1//EN struts-config_1_1.dtd
 
 David Hibbs
 Staff Programmer / Analyst
 Distributed Applications Development and Support
 American National Insurance Company
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 

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



RE: Is it possible to use struts 1.1 with WebSphere 4?

2003-06-11 Thread Jarnot Kari Contr HQ SSG/SWDUF
Be sure to have xercesImpl.jar and xml-apis.jar in your lib, as well.
That's what solved that parsing error I had with WAS 4.
Kari

-Original Message-
From: Andrew Hill [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 11, 2003 8:45 AM
To: Struts Users Mailing List
Subject: RE: Is it possible to use struts 1.1 with WebSphere 4?


Thanks David.
Ill take a look at these possibilities and see how it goes.


-Original Message-
From: Hibbs, David [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 11 June 2003 21:34
To: Struts-Users (E-mail)
Subject: RE: Is it possible to use struts 1.1 with WebSphere 4?


I've got production apps running on 1.1 RC2 on WAS 4, so I would hope
that means it is possible to do so. ;^)

BTW, I didn't make any changes to the struts code for WAS 4, so that's
not your problem.

OTOH, looking at my copy of the RC2 source it would seem you are indeed
running a later version than I am, so try the RC2 build and see what
happens.

Looking at the error, I would say something is wrong with your
configuration.  For brevity, I will assume your XML syntax and
struts-config.xml content are OK, but this could still be a couple
things...
a) Your properties files are not on your classpath
b) It can't locate the DTD, although this is more likely to throw a SAX
exception.  You can eliminate this factor at any rate by keeping a copy
of the DTD in your WEB-INF folder and chainging your DOCTYPE declaration
as
follows:
!DOCTYPE struts-config PUBLIC -//Apache Software Foundation//DTD
Struts Configuration 1.1//EN struts-config_1_1.dtd

David Hibbs
Staff Programmer / Analyst
Distributed Applications Development and Support
American National Insurance Company

 -Original Message-
 From: Andrew Hill [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, June 11, 2003 7:22 AM
 To: Struts Users Mailing List
 Subject: RE: Is it possible to use struts 1.1 with WebSphere 4?


 Its b3 if I recall rightly. Ill download rc2 and have another shot in 
 the morning.

 Just wierd that it works in tomcat but fails in WS. I recall seing 
 something that said for WS3 you needed to change struts use of
 ServletContext.getResourceAsStream() - does that still apply in WS4?

 -Original Message-
 From: Susan Bradeen [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, 11 June 2003 19:57
 To: Struts Users Mailing List
 Subject: Re: Is it possible to use struts 1.1 with WebSphere 4?


 Andrew,

 Sounds like something is amiss in your test app. I have been running 
 my app built around Struts 1.1 with WebSphere 4 for a long time.
 Are you are
 using the latest jar files  ... RC2? Even with the trouble I ran into
 yesterday with the RC2 struts.jar, I can get my app to load
 and do most
 things.

 Susan

 On 06/11/2003 07:25:57 AM Andrew Hill wrote:

  We need to see if its possible to make our big complex
 application work
 on
  WebSphere 4. We had it working on 5.
  The ui is done in struts and it was suggested that
 struts1.1 couldnt be
 used
  with WepSphere 4 as WS4 uses the 2.2 servlet API. I figured this
 shouldnt be
  a problem as struts supports 2.2 and doesnt need 2.3
 
  Nevertheless I havent even been able to get a simple test
 application to
 run
  on WAS4. (Something of a struts equivalent to hello world.
 - One action
  that does a println to the response to prove you reached it)
 
  This test app deploys and runs just fine in tomcat 3.3.1a
 (a servlet api
 2.2
  container) and of course in 4.0.6, but on websphere the
 ActionServlet
 dies
  in the init method with:
 
  SRVE0100E: Did not realize  init() exception thrown by
 servlet action:
  javax.servlet.UnavailableException: Parsing error
 processing resource
 path
  at
 
 org.apache.struts.action.ActionServlet.initModuleConfig(Action
 Servlet.java:9
  52)

  snip/

  Is this just something Im doing wrong (ideas on what would be
 appreciated!),
  or is it really true that you cant use struts 1.1 with websphere 4?
 
 
 
 
  useless-information
  Its a simple app I banged together with one action that
 writes a string
  directly to the response.
  Its got a whole bunch of libs in WEB-INF/lib as Im not sure
 what struts
  needs and doesnt:
  ie:
  commons-beanutils.jar
  commons-collections.jar
  commons-dbcp.jar
  commons-digester.jar
  commons-fileuplaod.jar
  commons-lang.jar
  commons-logging.jar
  commons-pool.jar
  commons-resources.jar
  commons-validator.jar
  jakarta-oro.jar
  jdbc2_0-stdext.jar
  log4j-1.2.7.jar
  struts.jar
 
  My logging properties are set up to use log4j, though Im
 not calling the
 log
  in my action.
  Various config files are in my WEB-INF
  struts-config.xml
  tiles-def.xml
  validation.xml
  web.xml
 
  struts-config has been set up as simple as possible - just
 maps one path
 to
  one action. The other files are untouched and would be same
 as whats in
 the
  struts blank war.
  /useless-information
 
 
 
 -
  To unsubscribe, e-mail: [EMAIL PROTECTED

RE: [OT] RE: Is it possible to use struts 1.1 with WebSphere 4?

2003-06-11 Thread Hibbs, David
Please define not resolving correctly -- if you do a view source,
does your link look right?  What exactly are you putting in the rewrite tag,
etc?  Give us some more information so we can answer better! =)

I doubt the compliance property you mention has any effect on the
rewrite tag.  Of course, I'm not using the tag anywhere, either, so I could
be off-base on that anyway. =)

--David

 -Original Message-
 From: Susan Bradeen [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, June 11, 2003 9:32 AM
 To: Struts Users Mailing List
 Subject: [OT] RE: Is it possible to use struts 1.1 with WebSphere 4?
 
 
 David, 
 
 I am having limited issues with WAS 4 and RC2, looks the 
 html:rewrite 
 tags are not resolving correctly. Are you using the system property 
 com.ibm.websphere.sendredirect.compliance=true for WAS 4?
 
 Susan Bradeen

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



RE: [OT] RE: Is it possible to use struts 1.1 with WebSphere 4?

2003-06-11 Thread Susan Bradeen
Thank you for replying, and I apologize for the brevity of my last 
message. I was more focused on the fact that you are running WAS 4.0 with 
RC2 without trouble. I had posted my problem yesterday, but I wasn't 
entirely sure of the cause at the that time, so it was probably badly 
explained. As it happens, setting the compliance property does appear to 
make the problem go away, but I don't have the option of using it (or 
mandating that people who use this app have to set this property in order 
for the app to work correctly).

For my problem, as an example, in a JSP I have 
  html:rewrite page=/change.do / 

In RC1, this generates a href=/myApp/change.do , which forwards 
correctly.
In RC2, this generates a href=/myApp/myApp/change.do , which gives me 
a 404 error, since the myApp gets appended to the path twice.

I noticed today that a bugzilla report has been filed for this. At least 
that gave me some confidence that it wasn't happening in just my web 
application.

Thanks again.
Susan 

On 06/11/2003 01:04:46 PM Hibbs, David wrote:

 Please define not resolving correctly -- if you do a view source,
 does your link look right?  What exactly are you putting in the rewrite 
tag,
 etc?  Give us some more information so we can answer better! =)
 
 I doubt the compliance property you mention has any effect on the
 rewrite tag.  Of course, I'm not using the tag anywhere, either, so I 
could
 be off-base on that anyway. =)
 
 --David
 
  -Original Message-
  From: Susan Bradeen [mailto:[EMAIL PROTECTED]
  Sent: Wednesday, June 11, 2003 9:32 AM
  To: Struts Users Mailing List
  Subject: [OT] RE: Is it possible to use struts 1.1 with WebSphere 4?
 
 
  David,
 
  I am having limited issues with WAS 4 and RC2, looks the
  html:rewrite
  tags are not resolving correctly. Are you using the system property
  com.ibm.websphere.sendredirect.compliance=true for WAS 4?
 
  Susan Bradeen
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 

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



RE: [OT] RE: Is it possible to use struts 1.1 with WebSphere 4?

2003-06-11 Thread Hibbs, David
Have you tried using html:rewrite href=/change.do/ ?

--David

 -Original Message-
 From: Susan Bradeen [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, June 11, 2003 12:54 PM
 To: Struts Users Mailing List
 Subject: RE: [OT] RE: Is it possible to use struts 1.1 with 
 WebSphere 4?
 
 
 Thank you for replying, and I apologize for the brevity of my last 
 message. I was more focused on the fact that you are running 
 WAS 4.0 with 
 RC2 without trouble. I had posted my problem yesterday, but I wasn't 
 entirely sure of the cause at the that time, so it was probably badly 
 explained. As it happens, setting the compliance property 
 does appear to 
 make the problem go away, but I don't have the option of using it (or 
 mandating that people who use this app have to set this 
 property in order 
 for the app to work correctly).
 
 For my problem, as an example, in a JSP I have 
   html:rewrite page=/change.do / 
 
 In RC1, this generates a href=/myApp/change.do , which forwards 
 correctly.
 In RC2, this generates a href=/myApp/myApp/change.do , 
 which gives me 
 a 404 error, since the myApp gets appended to the path twice.
 
 I noticed today that a bugzilla report has been filed for 
 this. At least 
 that gave me some confidence that it wasn't happening in just my web 
 application.
 
 Thanks again.
 Susan 
 
 On 06/11/2003 01:04:46 PM Hibbs, David wrote:
 
  Please define not resolving correctly -- if you do a view source,
  does your link look right?  What exactly are you putting in 
 the rewrite 
 tag,
  etc?  Give us some more information so we can answer better! =)
  
  I doubt the compliance property you mention has any effect on the
  rewrite tag.  Of course, I'm not using the tag anywhere, 
 either, so I 
 could
  be off-base on that anyway. =)
  
  --David
  
   -Original Message-
   From: Susan Bradeen [mailto:[EMAIL PROTECTED]
   Sent: Wednesday, June 11, 2003 9:32 AM
   To: Struts Users Mailing List
   Subject: [OT] RE: Is it possible to use struts 1.1 with 
 WebSphere 4?
  
  
   David,
  
   I am having limited issues with WAS 4 and RC2, looks the
   html:rewrite
   tags are not resolving correctly. Are you using the 
 system property
   com.ibm.websphere.sendredirect.compliance=true for WAS 4?
  
   Susan Bradeen
  
  
 -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  
 

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



RE: [OT] RE: Is it possible to use struts 1.1 with WebSphere 4?

2003-06-11 Thread Susan Bradeen
On 06/11/2003 02:33:46 PM Hibbs, David wrote:

 Have you tried using html:rewrite href=/change.do/ ?


I am under the impression that href won't append the myApp piece (the 
context root?) automatically, like the page attribute does. Under RC1 
(I've switched back now), the above generates a href=/change.do , 
which isn't right either. Although, you might be right that it could work 
under my RC2 conditions. :) 

Thanks, David.

Susan


 --David
 
  -Original Message-
  From: Susan Bradeen [mailto:[EMAIL PROTECTED]
  Sent: Wednesday, June 11, 2003 12:54 PM
  To: Struts Users Mailing List
  Subject: RE: [OT] RE: Is it possible to use struts 1.1 with
  WebSphere 4?
 
 
  Thank you for replying, and I apologize for the brevity of my last
  message. I was more focused on the fact that you are running
  WAS 4.0 with
  RC2 without trouble. I had posted my problem yesterday, but I wasn't
  entirely sure of the cause at the that time, so it was probably badly
  explained. As it happens, setting the compliance property
  does appear to
  make the problem go away, but I don't have the option of using it (or
  mandating that people who use this app have to set this
  property in order
  for the app to work correctly).
 
  For my problem, as an example, in a JSP I have
html:rewrite page=/change.do /
 
  In RC1, this generates a href=/myApp/change.do , which forwards
  correctly.
  In RC2, this generates a href=/myApp/myApp/change.do ,
  which gives me
  a 404 error, since the myApp gets appended to the path twice.
 
  I noticed today that a bugzilla report has been filed for
  this. At least
  that gave me some confidence that it wasn't happening in just my web
  application.
 
  Thanks again.
  Susan
 
  On 06/11/2003 01:04:46 PM Hibbs, David wrote:
 
   Please define not resolving correctly -- if you do a view source,
   does your link look right?  What exactly are you putting in
  the rewrite
  tag,
   etc?  Give us some more information so we can answer better! =)
  
   I doubt the compliance property you mention has any effect on the
   rewrite tag.  Of course, I'm not using the tag anywhere,
  either, so I
  could
   be off-base on that anyway. =)
  
   --David
  
-Original Message-
From: Susan Bradeen [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 11, 2003 9:32 AM
To: Struts Users Mailing List
Subject: [OT] RE: Is it possible to use struts 1.1 with
  WebSphere 4?
   
   
David,
   
I am having limited issues with WAS 4 and RC2, looks the
html:rewrite
tags are not resolving correctly. Are you using the
  system property
com.ibm.websphere.sendredirect.compliance=true for WAS 4?
   
Susan Bradeen
  
  
  -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 

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