Weblogic 5.1 and Struts 1.0, Classpath question

2001-01-25 Thread rhayden

Well,

After much frustration the past few nights I have finally managed to get the
Struts 1.0 example application to work on WL5.1. The majority of my problems
had to do with the classpath, which I never thought could be so irritating
(Thierry Cools suggested not to put struts.jar in the classpath, so I did
this and then it worked... Thanks!). My other problem was that I was using
the JAXP parser from Sun, which apparently is not appropriate for Struts 1.0
and WL5.1. It was fine with 0.5, but 1.0 failed to load with many errors.
Now I am using Xerces and things are much better.

However, there is still a problem. If I put struts.jar in the WL classpath,
the example application will not work. The app deploys and loads without
errors, but when the first JSP is executed I get a "runtime failure in
custom tag 'message'" error (see below). So the easy solution is just don't
put struts.jar in the classpath. The problem is that it needs to be included
because my session beans need a few classes that are included with
struts.jar (probably not the ideal design, but this how I am doing things)
such as ValidatingActionForm. Before I unzip things and try to include just
what I need, I just wanted to see if anyone had any ideas why including this
in the classpath is causing these problems. Both *.jars are identical, so I
don't see why this makes a difference.  I am not sure what this error means
so I don't know where to begin.

Any ideas?

Thanks
-Bob

BTW - has anyone written (or in process or writing) installation notes
regarding Struts1.0 and WL5.1? If not, I would be happy to help out and do
this. 


Thu Jan 25 21:32:15 EST 2001:E WebAppServletContext-strutsexample Root
cause of ServletException
javax.servlet.ServletException: runtime failure in custom tag 'message'
at jsp_servlet._index._jspService(_index.java, Compiled Code)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:106)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:124)
at
weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
l.java:907)
at
weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
l.java:851)
at
weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContext
Manager.java:252)
at
weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:364)
at
weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:252)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java, Compiled
Code)




Re: Weblogic 5.1 and Struts 1.0, Classpath question

2001-01-25 Thread renzo estrella

This may be caused by the cast exception problem:
  MessageTag code first gets tries to get 
  the MessageResources from 
  servletContext.getAttribute()
  It then cast the object returned to MessageResources
   this failure may be leading to your problem
   so I would suggest you try including the following
   sectoin into web.xml:

   context-param
param-nameweblogic.jsp.precompile/param-name
 param-valuetrue/param-value
   /context-param


--- Harit Nanavati [EMAIL PROTECTED] wrote:
 I have been trying the same thing. Getting the
 examples to work with
 Weblogic 5.1. I did get pass though the problem of
 runtime failur by
 un-jar-ing the classes and then included in WL
 classpath.
 I still get following exception. Can anyone please
 explain. I really want
 struts to get working in our current development.
 Thanx
 -Harit
 Exception

--
 Thu Jan 25 19:22:58 PST 2001:E
 WebAppServletContext-struts Root cause of
 ServletException
 javax.servlet.jsp.JspException: Missing resources
 attribute
 org.apache.struts.action.MESSAGE
 at

org.apache.struts.taglib.MessageTag.doStartTag(MessageTag.java:360)
 at
 jsp_servlet._index._jspService(_index.java:82)
 at

weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
 at

weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
 :124)
 at

weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
 :142)
 at

weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
 l.java:760)
 - Original Message -
 From: [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Thursday, January 25, 2001 7:05 PM
 Subject: Weblogic 5.1 and Struts 1.0, Classpath
 question
 
 
  Well,
 
  After much frustration the past few nights I have
 finally managed to get
 the
  Struts 1.0 example application to work on WL5.1.
 The majority of my
 problems
  had to do with the classpath, which I never
 thought could be so irritating
  (Thierry Cools suggested not to put struts.jar in
 the classpath, so I did
  this and then it worked... Thanks!). My other
 problem was that I was using
  the JAXP parser from Sun, which apparently is not
 appropriate for Struts
 1.0
  and WL5.1. It was fine with 0.5, but 1.0 failed to
 load with many errors.
  Now I am using Xerces and things are much better.
 
  However, there is still a problem. If I put
 struts.jar in the WL
 classpath,
  the example application will not work. The app
 deploys and loads without
  errors, but when the first JSP is executed I get a
 "runtime failure in
  custom tag 'message'" error (see below). So the
 easy solution is just
 don't
  put struts.jar in the classpath. The problem is
 that it needs to be
 included
  because my session beans need a few classes that
 are included with
  struts.jar (probably not the ideal design, but
 this how I am doing things)
  such as ValidatingActionForm. Before I unzip
 things and try to include
 just
  what I need, I just wanted to see if anyone had
 any ideas why including
 this
  in the classpath is causing these problems. Both
 *.jars are identical, so
 I
  don't see why this makes a difference.  I am not
 sure what this error
 means
  so I don't know where to begin.
 
  Any ideas?
 
  Thanks
  -Bob
 
  BTW - has anyone written (or in process or
 writing) installation notes
  regarding Struts1.0 and WL5.1? If not, I would be
 happy to help out and do
  this.
 
 
  Thu Jan 25 21:32:15 EST 2001:E
 WebAppServletContext-strutsexample Root
  cause of ServletException
  javax.servlet.ServletException: runtime failure in
 custom tag 'message'
  at
 jsp_servlet._index._jspService(_index.java, Compiled
 Code)
  at

weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
  at
 

weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
  :106)
  at
 

weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
  :124)
  at
 

weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
  l.java:907)
  at
 

weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
  l.java:851)
  at
 

weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContext
  Manager.java:252)
  at
 

weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:364)
  at
 

weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:252)
  at

weblogic.kernel.ExecuteThread.run(ExecuteThread.java,
 Compiled
  Code)
 
 
 
 
 Confidential Information. This email is for intended
 recipient only.
 
 
 


__
Do You Yahoo!?
Yahoo! Auctions - Buy the things you want at great prices. 
http://auctions.yahoo.com/



Re: Weblogic 5.1 and Struts 1.0, Classpath question

2001-01-25 Thread Harit Nanavati

Just did that ..
sturts.jar extracted. directory in WL classpath
war file extrected.
deleted starts.jar from lib directory
added the addtional precomple lines in web.xml
All the jsp compiles without problem.
But same error again !!..
 Missing resources attribute org.apache.struts.action.MESSAGE

No luck here !

-Harit
- Original Message -
From: "renzo estrella" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, January 25, 2001 7:27 PM
Subject: Re: Weblogic 5.1 and Struts 1.0, Classpath question


 This may be caused by the cast exception problem:
   MessageTag code first gets tries to get
   the MessageResources from
   servletContext.getAttribute()
   It then cast the object returned to MessageResources
this failure may be leading to your problem
so I would suggest you try including the following
sectoin into web.xml:

context-param
 param-nameweblogic.jsp.precompile/param-name
  param-valuetrue/param-value
/context-param


 --- Harit Nanavati [EMAIL PROTECTED] wrote:
  I have been trying the same thing. Getting the
  examples to work with
  Weblogic 5.1. I did get pass though the problem of
  runtime failur by
  un-jar-ing the classes and then included in WL
  classpath.
  I still get following exception. Can anyone please
  explain. I really want
  struts to get working in our current development.
  Thanx
  -Harit
  Exception
 
 --
  Thu Jan 25 19:22:58 PST 2001:E
  WebAppServletContext-struts Root cause of
  ServletException
  javax.servlet.jsp.JspException: Missing resources
  attribute
  org.apache.struts.action.MESSAGE
  at
 
 org.apache.struts.taglib.MessageTag.doStartTag(MessageTag.java:360)
  at
  jsp_servlet._index._jspService(_index.java:82)
  at
 
 weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
  at
 

weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
  :124)
  at
 

weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
  :142)
  at
 

weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
  l.java:760)
  - Original Message -
  From: [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Thursday, January 25, 2001 7:05 PM
  Subject: Weblogic 5.1 and Struts 1.0, Classpath
  question
 
 
   Well,
  
   After much frustration the past few nights I have
  finally managed to get
  the
   Struts 1.0 example application to work on WL5.1.
  The majority of my
  problems
   had to do with the classpath, which I never
  thought could be so irritating
   (Thierry Cools suggested not to put struts.jar in
  the classpath, so I did
   this and then it worked... Thanks!). My other
  problem was that I was using
   the JAXP parser from Sun, which apparently is not
  appropriate for Struts
  1.0
   and WL5.1. It was fine with 0.5, but 1.0 failed to
  load with many errors.
   Now I am using Xerces and things are much better.
  
   However, there is still a problem. If I put
  struts.jar in the WL
  classpath,
   the example application will not work. The app
  deploys and loads without
   errors, but when the first JSP is executed I get a
  "runtime failure in
   custom tag 'message'" error (see below). So the
  easy solution is just
  don't
   put struts.jar in the classpath. The problem is
  that it needs to be
  included
   because my session beans need a few classes that
  are included with
   struts.jar (probably not the ideal design, but
  this how I am doing things)
   such as ValidatingActionForm. Before I unzip
  things and try to include
  just
   what I need, I just wanted to see if anyone had
  any ideas why including
  this
   in the classpath is causing these problems. Both
  *.jars are identical, so
  I
   don't see why this makes a difference.  I am not
  sure what this error
  means
   so I don't know where to begin.
  
   Any ideas?
  
   Thanks
   -Bob
  
   BTW - has anyone written (or in process or
  writing) installation notes
   regarding Struts1.0 and WL5.1? If not, I would be
  happy to help out and do
   this.
  
  
   Thu Jan 25 21:32:15 EST 2001:E
  WebAppServletContext-strutsexample Root
   cause of ServletException
   javax.servlet.ServletException: runtime failure in
  custom tag 'message'
   at
  jsp_servlet._index._jspService(_index.java, Compiled
  Code)
   at
 
 weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
   at
  
 

weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
   :106)
   at
  
 

weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
   :124)
   at
  
 

weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
   l.java:907)
   at
  
 

weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
   l.java:851)
   at
  
 

weblogic.servlet.internal.ServletContextManager.invokeSe

Re: Weblogic 5.1 and Struts 1.0, Classpath question

2001-01-25 Thread renzo estrella

I was using the struts 0.5 examples I did not unjar
the
 main struts.jar file, I left that in the lib 
 directory. 
 Instead I unjarred the struts-example.war file   
 modified the web.xml for the struts-example demo.
 Weblogic5.1 doesn't seem able to read ResourceBundles
 from a *.war file.
 I have not tried the 1.0 examples, if you are using
 those perhaps what I did those not apply.

--- Harit Nanavati [EMAIL PROTECTED] wrote:
 Just did that ..
 sturts.jar extracted. directory in WL classpath
 war file extrected.
 deleted starts.jar from lib directory
 added the addtional precomple lines in web.xml
 All the jsp compiles without problem.
 But same error again !!..
  Missing resources attribute
 org.apache.struts.action.MESSAGE
 
 No luck here !
 
 -Harit
 - Original Message -
 From: "renzo estrella" [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Thursday, January 25, 2001 7:27 PM
 Subject: Re: Weblogic 5.1 and Struts 1.0, Classpath
 question
 
 
  This may be caused by the cast exception problem:
MessageTag code first gets tries to get
the MessageResources from
servletContext.getAttribute()
It then cast the object returned to
 MessageResources
 this failure may be leading to your problem
 so I would suggest you try including the
 following
 sectoin into web.xml:
 
 context-param
 
 param-nameweblogic.jsp.precompile/param-name
   param-valuetrue/param-value
 /context-param
 
 
  --- Harit Nanavati [EMAIL PROTECTED]
 wrote:
   I have been trying the same thing. Getting the
   examples to work with
   Weblogic 5.1. I did get pass though the problem
 of
   runtime failur by
   un-jar-ing the classes and then included in WL
   classpath.
   I still get following exception. Can anyone
 please
   explain. I really want
   struts to get working in our current
 development.
   Thanx
   -Harit
   Exception
  
 

--
   Thu Jan 25 19:22:58 PST 2001:E
   WebAppServletContext-struts Root cause of
   ServletException
   javax.servlet.jsp.JspException: Missing
 resources
   attribute
   org.apache.struts.action.MESSAGE
   at
  
 

org.apache.struts.taglib.MessageTag.doStartTag(MessageTag.java:360)
   at
   jsp_servlet._index._jspService(_index.java:82)
   at
  
 

weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
   at
  
 

weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
   :124)
   at
  
 

weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
   :142)
   at
  
 

weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
   l.java:760)
   - Original Message -
   From: [EMAIL PROTECTED]
   To: [EMAIL PROTECTED]
   Sent: Thursday, January 25, 2001 7:05 PM
   Subject: Weblogic 5.1 and Struts 1.0, Classpath
   question
  
  
Well,
   
After much frustration the past few nights I
 have
   finally managed to get
   the
Struts 1.0 example application to work on
 WL5.1.
   The majority of my
   problems
had to do with the classpath, which I never
   thought could be so irritating
(Thierry Cools suggested not to put struts.jar
 in
   the classpath, so I did
this and then it worked... Thanks!). My other
   problem was that I was using
the JAXP parser from Sun, which apparently is
 not
   appropriate for Struts
   1.0
and WL5.1. It was fine with 0.5, but 1.0
 failed to
   load with many errors.
Now I am using Xerces and things are much
 better.
   
However, there is still a problem. If I put
   struts.jar in the WL
   classpath,
the example application will not work. The app
   deploys and loads without
errors, but when the first JSP is executed I
 get a
   "runtime failure in
custom tag 'message'" error (see below). So
 the
   easy solution is just
   don't
put struts.jar in the classpath. The problem
 is
   that it needs to be
   included
because my session beans need a few classes
 that
   are included with
struts.jar (probably not the ideal design, but
   this how I am doing things)
such as ValidatingActionForm. Before I unzip
   things and try to include
   just
what I need, I just wanted to see if anyone
 had
   any ideas why including
   this
in the classpath is causing these problems.
 Both
   *.jars are identical, so
   I
don't see why this makes a difference.  I am
 not
   sure what this error
   means
so I don't know where to begin.
   
Any ideas?
   
Thanks
-Bob
   
BTW - has anyone written (or in process or
   writing) installation notes
regarding Struts1.0 and WL5.1? If not, I would
 be
   happy to help out and do
this.
   
   
Thu Jan 25 21:32:15 EST 2001:E
   WebAppServletContext-strutsexample Root
cause of ServletException
javax.servlet.ServletException: runtime
 failure in
   custom tag 'message'
at
   jsp_servlet._index._js

RE: Weblogic 5.1 and Struts 1.0, Classpath question

2001-01-25 Thread rhayden


Harit,

2) Do not unjar-the-war, or struts.jar :)

1) Do not put struts.jar in the weblogic classpath... Here is my output from
wlconfig:

WebLogic startup settings are presently:

CLASSPATH Prefix
c:\weblogic\lib\weblogic510sp8boot.jar;c:\java\xerces-1_2_3\tools\xerces.jar
CLASSPATH
c:\weblogic\lib\weblogic510sp8boot.jar;c:\java\xerces-1_2_3\tools\xerces.jar
;c:\weblogic\jre1_2\lib\tools.jar;c:\weblogic\jre1_2\jre\lib\rt.jar;c:\weblo
gic\jre1_2\jre\lib\i18n.jar;C:\weblogic\license;C:\weblogic\classes\boot;C:\
weblogic\classes;C:\weblogic\lib\weblogicaux.jar;C:\weblogic\eval\cloudscape
\lib\cloudscape.jar
JAVA_HOME   c:\weblogic\jre1_2
WEBLOGIC_LICENSEDIR C:\weblogic\license
WEBLOGIC_HOME   C:\weblogic
system properties:
java.security.manager
java.security.policy==C:\weblogic\weblogic.policy
weblogic.system.home=C:\weblogic
java.compiler=symcjit
 
weblogic.class.path=c:\weblogic\lib\weblogic510sp8.jar;C:\weblogic\license;C
:\weblogic\classes;C:\weblogic\myserver\serverclasses;C:\weblogic\lib\weblog
icaux.jar;
INITIAL_HEAP8 MB
MAX_HEAP32 MB
SERVERCLASSPATH
c:\weblogic\lib\weblogic510sp8boot.jar;c:\java\xerces-1_2_3\tools\xerces.jar
;c:\weblogic\jre1_2\jre\lib\rt.jar;c:\weblogic\jre1_2\jre\lib\i18n.jar;C:\we
blogic\classes\boot;C:\weblogic\eval\cloudscape\lib\cloudscape.jar


4) You have added an entry in weblogic.properties for each application,
right? i.e.

weblogic.httpd.webApp.strutsexample=c:/java/jakarta-struts10/webapps/struts-
example.war
weblogic.httpd.webApp.strutsdocs=c:/java/jakarta-struts10/webapps/struts-doc
umentation.war
weblogic.httpd.webApp.strutstest=c:/java/jakarta-struts10/webapps/struts-tes
t.war 

5) Now start WL and let it extract the classes from the wars, then you need
to open the war with winzip and extract only ApplicationResources.properties
and put this with the other class files in the _tmp_war.

6) Restart WL and it should work.


Good luck :)



-Original Message-
From: Harit Nanavati [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 25, 2001 10:51 PM
To: [EMAIL PROTECTED]
Subject: Re: Weblogic 5.1 and Struts 1.0, Classpath question


Just did that ..
sturts.jar extracted. directory in WL classpath
war file extrected.
deleted starts.jar from lib directory
added the addtional precomple lines in web.xml
All the jsp compiles without problem.
But same error again !!..
 Missing resources attribute org.apache.struts.action.MESSAGE

No luck here !