Ted Husted strut by strut tutorial in weblogic5.1/jbuilder

2002-01-31 Thread Knoll, Zach

Hi I am just starting to learn about Struts and see how it can be used. I
tried starting with Ted Husted's strut by strut tutorial. I have weblogic5.1
integrated with Jbuilder4 enterprise. I downloaded the struts-stub.war and
edited my weblogic.properties file as follows 
weblogic.httpd.webApp.struts1=C:/Jakarta/struts_husted_tutorial/struts-stub.
war
upon restarting the server I tried going to the URL
http://localhost:7001/struts1. It compiles the index jsp so it seems that
the war file was deployed somewhat correctly but it cant find the needed
classes. My weblogic.out log is posted below but the main error seems to be
action: Error creating ActionForm instance of class 'ext.stub.samples.Form'
java.lang.ClassNotFoundException: ext.stub.samples.Form .I would manually
add these classes to my jbuilder classpath if they were in some kind of jar
(which I could go through the trouble of doing) but I want to know first if
this should be neccessary every time I want to deploy a war file on
weblogic?   


Thu Jan 31 12:48:40 PST 2002:I WebAppServletContext-struts1 *.jsp: init
Thu Jan 31 12:48:40 PST 2002:I WebAppServletContext-struts1 *.jsp: param
verbose initialized to: true Thu Jan 31 12:48:40 PST 2002:I
WebAppServletContext-struts1 *.jsp: param packagePrefix initialized to:
jsp_servlet Thu Jan 31 12:48:41 PST 2002:I WebAppServletContext-struts1
*.jsp: param compileCommand initialized to: javac Thu Jan 31 12:48:41 PST
2002:I WebAppServletContext-struts1 *.jsp: param srcCompiler initialized
to weblogic.jspc Thu Jan 31 12:48:41 PST 2002:I
WebAppServletContext-struts1 *.jsp: param superclass initialized to null
Thu Jan 31 12:48:41 PST 2002:I WebAppServletContext-struts1 *.jsp: param
workingDir initialized to:
C:\Jakarta\struts_husted_tutorial\WEB-INF\_tmp_war_struts1 Thu Jan 31
12:48:41 PST 2002:I WebAppServletContext-struts1 *.jsp: param
pageCheckSeconds initialized to: 1 Thu Jan 31 12:48:41 PST 2002:I
WebAppServletContext-struts1 *.jsp: initialization complete Thu Jan 31
12:48:41 PST 2002:I WebAppServletContext-struts1 *.jsp: 
##


##
pageCheckSeconds over-ruled in JSPServlet to : 1
##


##
 Thu Jan 31 12:48:41 PST 2002:I WebAppServletContext-struts1 action:
Processing a GET for /stub/Input Thu Jan 31 12:48:41 PST 2002:I
WebAppServletContext-struts1 action: Setting locale 'en_US' Thu Jan 31
12:48:42 PST 2002:I WebAppServletContext-struts1 action:  Looking for
ActionForm bean under attribute 'stubForm' Thu Jan 31 12:48:42 PST 2002:I
WebAppServletContext-struts1 action:  Creating new ActionForm instance of
class 'ext.stub.samples.Form' Thu Jan 31 12:48:42 PST 2002:E
WebAppServletContext-struts1 action: Error creating ActionForm instance of
class 'ext.stub.samples.Form' java.lang.ClassNotFoundException:
ext.stub.samples.Form   at
java.net.URLClassLoader$1.run(URLClassLoader.java:200)  at
java.security.AccessController.doPrivileged(Native Method)  at
java.net.URLClassLoader.findClass(URLClassLoader.java:188)  at
java.lang.ClassLoader.loadClass(ClassLoader.java:297)   at
sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:286)   at
java.lang.ClassLoader.loadClass(ClassLoader.java:253)   at
java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)   at
java.lang.Class.forName0(Native Method) at
java.lang.Class.forName(Class.java:120) at
org.apache.struts.action.ActionServlet.processActionForm(ActionServlet.java:
1700)   at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1562)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:491)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at
javax.servlet.http.HttpServlet.service(HttpServlet.java:865)at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:120)   at
weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImp
l.java:158) at
weblogic.servlet.jsp.PageContextImpl.forward(PageContextImpl.java:109)  at
org.apache.struts.taglib.logic.ForwardTag.doEndTag(ForwardTag.java:173)
at jsp_servlet._index._jspService(_index.java:96)   at
weblogic.servlet.jsp.JspBase.service(JspBase.java:27)   at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:120)   at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:138)   at
weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
l.java:915) at
weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
l.java:879) at
weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContext
Manager.java:269)   at
weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:365)
at weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:253)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:129) 


**
This email and any files

RE: How to use struts in the weblogic5.1

2001-06-11 Thread Kiet Nguyen



I had 
problemswith wls sp8. It worked with sp9. I'm using struts 
beta3.


  -Original Message-From: zhongqing 
  [mailto:[EMAIL PROTECTED]]Sent: Thursday, June 08, 2000 11:34 
  PMTo: [EMAIL PROTECTED]Subject: How to use 
  struts in the weblogic5.1
  can somebody share some experiences in using 
  struts in the weblogic5.1?


How to use struts in the weblogic5.1

2001-06-09 Thread zhongqing



can somebody share some experiences in using struts 
in the weblogic5.1?


RE: Problems in setting up Weblogic5.1 + SP8 + Jakarta-Struts

2001-04-10 Thread Brett Ramdeen
Title: RE: Problems in setting up Weblogic5.1 + SP8 + Jakarta-Struts





Struts with Weblogic 5.1 SP8 on NT or Unix (Linux or Solaris) can be set up as follows:


1. Make sure that struts.jar is NOT in your classpath or your JRE ext directory.


2. Copy struts.jar to the WEB-INF/lib directory of your web app.


3. Add the following to your web.xml:
 context-param
  param-nameweblogic.jsp.precompile/param-name
  param-valuetrue/param-value
 /context-param


4. Make sure that the load order for the servlets defined in web.xml is set. IE:
 servlet
  .
  . (other stuff here)
  .
  load-on-startup2/load-on-startup
 /servlet


Hope this helps,


Brett


 -Original Message-
 From: Brian Knorr [mailto:[EMAIL PROTECTED]]
 Sent: Monday, April 09, 2001 8:08 PM
 To: [EMAIL PROTECTED]
 Subject: RE: Problems in setting up Weblogic5.1 + SP8 + 
 Jakarta-Struts
 
 
 My experience with WLS 5.1 sp8 has been very tiresome... 
 many days of trial and error getting it to work with struts 
 (and yes I followed the directions on the struts page for 
 wls sp8 -- maybe this works on Windows but definitely not on 
 unix)... 
 
 Anyway -- the only way to get around the issue you are 
 encountering is to take out the following line in your web.xml:
 
 load-on-startup1/load-on-startup
 
 Now as a consequence of doing this you will need to follow 
 these two steps every time you restart your weblogic instance:
 
 1. Load a jsp page through your browser before doing 
 anything else (especially a post). This fixes the 
 classloader problem with weblogic 5.1.
 2. Next, load the ActionServlet by posting to an action 
 class. This will also load your application.properties. 
 
 
 Also I found with this fix you don't have to set the WL 
 classpath as it is stated in the instructions.
 
 Hope this helps...
 
 --Brian 
 
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]
 Sent: Monday, April 09, 2001 1:58 PM
 To: [EMAIL PROTECTED]
 Subject: RE: Problems in setting up Weblogic5.1 + SP8 + 
 Jakarta-Struts
 
 
 
 This is the error you will see when WL can't find the 
 properties file. You
 are positive that the properties file is in the proper 
 directory? Also you
 must restart WL after you copy the file.
 
 If this still doesn't work then I am sorry I don't have any other
 suggestions for deploying in the WAR :( However, another 
 option is to
 expand the WAR file and set the WL classpath- see the instructions.
 
 -Bob 
 
 
 -Original Message-
 From: Lu, Wei [mailto:[EMAIL PROTECTED]]
 Sent: Monday, April 09, 2001 2:19 PM
 To: '[EMAIL PROTECTED]'
 Subject: RE: Problems in setting up Weblogic5.1 + SP8 + 
 Jakarta-Struts
 
 
 
 Thank you very much ofr your response. 
 
 The class package reads org.apache.struts.example. So I opened the 
 struts-example.war file and copied 
 ApplicationResources.properties and 
 appended in the folder example. However, I still got the 
 enclosed 
 error message. Thank you for help. Wei Lu
 
 Mon Apr 09 14:14:31 EDT 2001:I 
 ServletContext-struts-example *.jsp:
 param wo
 rkingDir initialized to: C:\jakarta-struts\webapps\_tmp_war
 Mon Apr 09 14:14:31 EDT 2001:I 
 ServletContext-struts-example *.jsp:
 param pa
 geCheckSeconds initialized to: 1
 Mon Apr 09 14:14:31 EDT 2001:I 
 ServletContext-struts-example *.jsp:
 initiali
 zation complete
 Mon Apr 09 14:14:31 EDT 2001:I 
 ServletContext-struts-example *.jsp:
 ##
 
 
 ##
 pageCheckSeconds over-ruled in JSPServlet to : 1
 ##
 
 
 ##
 
 Mon Apr 09 14:14:32 EDT 2001:E 
 ServletContext-struts-example Servlet
 failed
 with Exception
 javax.servlet.ServletException: runtime failure in custom tag 'html'
 at jsp_servlet._index._jspService(_index.java:449)
 at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
 at
 weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
 pl.java:105)
 at
 weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
 pl.java:123)
 at
 weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletCon
 textImpl.java:742)
 at
 weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletCon
 textImpl.java:686)
 at
 weblogic.servlet.internal.ServletContextManager.invokeServlet(Servlet
 ContextManager.java:247)
 at
 weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.jav
 a:361)
 at
 weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:261)
 
 at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
 
 Mon Apr 09 14:14:32 EDT 2001:E 
 ServletContext-struts-example root cause
 of S
 ervletException
 javax.servlet.ServletException: runtime failure in custom 
 tag 'message'
 at jsp_servlet._index._jspService(_index.java:105)
 at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
 at
 weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
 pl.java:105)
 at
 weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
 pl.java:123

RE: Problems in setting up Weblogic5.1 + SP8 + Jakarta-Struts

2001-04-09 Thread Nanduri, Amarnath

Hello,

In the jakarta website there is information about deploying struts
applications on weblogic. Follow the instructions and you will achieve
success.
I know this from experience :)

cheers,
Amar..
 

-Original Message-
From: Lu, Wei [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 09, 2001 1:08 PM
To: '[EMAIL PROTECTED]'
Subject: Problems in setting up Weblogic5.1 + SP8 + Jakarta-Struts


Hello, 

I got in trouble in setting up Weblogic5.1 + SP8 + Jakarta-Struts.  I
followed  the instruction 
in the INSTALL file and tried to deploy struts-example.war.  But I failed.
Could anybody tell me where I should put 
that ApplicationResources.properties file? The INSTALL file said it should
be at C:\jakart-struts\webapps\WEB-INF\_tem_war,
but it seems to be not to work. 

Thank you. 

Wei Lu



RE: Problems in setting up Weblogic5.1 + SP8 + Jakarta-Struts

2001-04-09 Thread rhayden


This was just an example (specific to where I installed Struts), the path
will most likely be different on your machine. You will need to see where WL
creates the temp directory for the application and then copy the properties
file to this location. The properties file must also be placed in the
appropriate directory structure (corresponding to the full package name).


-Original Message-
From: Lu, Wei [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 09, 2001 1:08 PM
To: '[EMAIL PROTECTED]'
Subject: Problems in setting up Weblogic5.1 + SP8 + Jakarta-Struts


Hello, 

I got in trouble in setting up Weblogic5.1 + SP8 + Jakarta-Struts.  I
followed  the instruction 
in the INSTALL file and tried to deploy struts-example.war.  But I failed.
Could anybody tell me where I should put 
that ApplicationResources.properties file? The INSTALL file said it should
be at C:\jakart-struts\webapps\WEB-INF\_tem_war,
but it seems to be not to work. 

Thank you. 

Wei Lu



RE: Problems in setting up Weblogic5.1 + SP8 + Jakarta-Struts

2001-04-09 Thread Deadman, Hal

What's the error that you are getting?

 -Original Message-
 From: Lu, Wei [mailto:[EMAIL PROTECTED]]
 Sent: Monday, April 09, 2001 1:08 PM
 To: '[EMAIL PROTECTED]'
 Subject: Problems in setting up Weblogic5.1 + SP8 + Jakarta-Struts
 
 
 Hello, 
 
 I got in trouble in setting up Weblogic5.1 + SP8 + Jakarta-Struts.  I
 followed  the instruction 
 in the INSTALL file and tried to deploy struts-example.war.  
 But I failed.
 Could anybody tell me where I should put 
 that ApplicationResources.properties file? The INSTALL file 
 said it should
 be at C:\jakart-struts\webapps\WEB-INF\_tem_war,
 but it seems to be not to work. 
 
 Thank you. 
 
 Wei Lu
 



RE: Problems in setting up Weblogic5.1 + SP8 + Jakarta-Struts

2001-04-09 Thread Lu, Wei


Thank you very much ofr your response. 

The class package reads org.apache.struts.example. So I opened the 
struts-example.war file and copied ApplicationResources.properties and 
appended in the folder "example".  However, I  still got the enclosed 
error message. Thank you for help.  Wei Lu

Mon Apr 09 14:14:31 EDT 2001:I ServletContext-struts-example *.jsp:
param wo
rkingDir initialized to: C:\jakarta-struts\webapps\_tmp_war
Mon Apr 09 14:14:31 EDT 2001:I ServletContext-struts-example *.jsp:
param pa
geCheckSeconds initialized to: 1
Mon Apr 09 14:14:31 EDT 2001:I ServletContext-struts-example *.jsp:
initiali
zation complete
Mon Apr 09 14:14:31 EDT 2001:I ServletContext-struts-example *.jsp:
##


##
pageCheckSeconds over-ruled in JSPServlet to : 1
##


##

Mon Apr 09 14:14:32 EDT 2001:E ServletContext-struts-example Servlet
failed
with Exception
javax.servlet.ServletException: runtime failure in custom tag 'html'
at jsp_servlet._index._jspService(_index.java:449)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:105)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:123)
at
weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletCon
textImpl.java:742)
at
weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletCon
textImpl.java:686)
at
weblogic.servlet.internal.ServletContextManager.invokeServlet(Servlet
ContextManager.java:247)
at
weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.jav
a:361)
at
weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:261)

at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)

Mon Apr 09 14:14:32 EDT 2001:E ServletContext-struts-example root cause
of S
ervletException
javax.servlet.ServletException: runtime failure in custom tag 'message'
at jsp_servlet._index._jspService(_index.java:105)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:105)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:123)
at
weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletCon
textImpl.java:742)
at
weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletCon
textImpl.java:686)
at
weblogic.servlet.internal.ServletContextManager.invokeServlet(Servlet
ContextManager.java:247)
at
weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.jav
a:361)
at
weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:261)

at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)



RE: Problems in setting up Weblogic5.1 + SP8 + Jakarta-Struts

2001-04-09 Thread rhayden


This is the error you will see when WL can't find the properties file. You
are positive that the properties file is in the proper directory? Also you
must restart WL after you copy the file.

If this still doesn't work then I am sorry I don't have any other
suggestions for deploying in the WAR :(   However, another option is to
expand the WAR file and set the WL classpath- see the instructions.

-Bob 


-Original Message-
From: Lu, Wei [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 09, 2001 2:19 PM
To: '[EMAIL PROTECTED]'
Subject: RE: Problems in setting up Weblogic5.1 + SP8 + Jakarta-Struts



Thank you very much ofr your response. 

The class package reads org.apache.struts.example. So I opened the 
struts-example.war file and copied ApplicationResources.properties and 
appended in the folder "example".  However, I  still got the enclosed 
error message. Thank you for help.  Wei Lu

Mon Apr 09 14:14:31 EDT 2001:I ServletContext-struts-example *.jsp:
param wo
rkingDir initialized to: C:\jakarta-struts\webapps\_tmp_war
Mon Apr 09 14:14:31 EDT 2001:I ServletContext-struts-example *.jsp:
param pa
geCheckSeconds initialized to: 1
Mon Apr 09 14:14:31 EDT 2001:I ServletContext-struts-example *.jsp:
initiali
zation complete
Mon Apr 09 14:14:31 EDT 2001:I ServletContext-struts-example *.jsp:
##


##
pageCheckSeconds over-ruled in JSPServlet to : 1
##


##

Mon Apr 09 14:14:32 EDT 2001:E ServletContext-struts-example Servlet
failed
with Exception
javax.servlet.ServletException: runtime failure in custom tag 'html'
at jsp_servlet._index._jspService(_index.java:449)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:105)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:123)
at
weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletCon
textImpl.java:742)
at
weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletCon
textImpl.java:686)
at
weblogic.servlet.internal.ServletContextManager.invokeServlet(Servlet
ContextManager.java:247)
at
weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.jav
a:361)
at
weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:261)

at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)

Mon Apr 09 14:14:32 EDT 2001:E ServletContext-struts-example root cause
of S
ervletException
javax.servlet.ServletException: runtime failure in custom tag 'message'
at jsp_servlet._index._jspService(_index.java:105)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:105)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:123)
at
weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletCon
textImpl.java:742)
at
weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletCon
textImpl.java:686)
at
weblogic.servlet.internal.ServletContextManager.invokeServlet(Servlet
ContextManager.java:247)
at
weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.jav
a:361)
at
weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:261)

at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)



RE: Problems in setting up Weblogic5.1 + SP8 + Jakarta-Struts

2001-04-09 Thread Brian Knorr

My experience with WLS 5.1 sp8 has been very tiresome... many days of trial and error 
getting it to work with struts (and yes I followed the directions on the struts page 
for wls sp8 -- maybe this works on Windows but definitely not on unix)... 

Anyway -- the only way to get around the issue you are encountering is to take out the 
following line in your web.xml:

load-on-startup1/load-on-startup

Now as a consequence of doing this you will need to follow these two steps every time 
you restart your weblogic instance:

1.  Load a jsp page through your browser before doing anything else (especially a 
post).  This fixes the classloader problem with weblogic 5.1.
2.  Next, load the ActionServlet by posting to an action class.  This will also load 
your application.properties. 


Also I found with this fix you don't have to set the WL classpath as it is stated in 
the instructions.

Hope this helps...

--Brian 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sent: Monday, April 09, 2001 1:58 PM
To: [EMAIL PROTECTED]
Subject: RE: Problems in setting up Weblogic5.1 + SP8 + Jakarta-Struts



This is the error you will see when WL can't find the properties file. You
are positive that the properties file is in the proper directory? Also you
must restart WL after you copy the file.

If this still doesn't work then I am sorry I don't have any other
suggestions for deploying in the WAR :(   However, another option is to
expand the WAR file and set the WL classpath- see the instructions.

-Bob 


-Original Message-
From: Lu, Wei [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 09, 2001 2:19 PM
To: '[EMAIL PROTECTED]'
Subject: RE: Problems in setting up Weblogic5.1 + SP8 + Jakarta-Struts



Thank you very much ofr your response. 

The class package reads org.apache.struts.example. So I opened the 
struts-example.war file and copied ApplicationResources.properties and 
appended in the folder "example".  However, I  still got the enclosed 
error message. Thank you for help.  Wei Lu

Mon Apr 09 14:14:31 EDT 2001:I ServletContext-struts-example *.jsp:
param wo
rkingDir initialized to: C:\jakarta-struts\webapps\_tmp_war
Mon Apr 09 14:14:31 EDT 2001:I ServletContext-struts-example *.jsp:
param pa
geCheckSeconds initialized to: 1
Mon Apr 09 14:14:31 EDT 2001:I ServletContext-struts-example *.jsp:
initiali
zation complete
Mon Apr 09 14:14:31 EDT 2001:I ServletContext-struts-example *.jsp:
##


##
pageCheckSeconds over-ruled in JSPServlet to : 1
##


##

Mon Apr 09 14:14:32 EDT 2001:E ServletContext-struts-example Servlet
failed
with Exception
javax.servlet.ServletException: runtime failure in custom tag 'html'
at jsp_servlet._index._jspService(_index.java:449)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:105)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:123)
at
weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletCon
textImpl.java:742)
at
weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletCon
textImpl.java:686)
at
weblogic.servlet.internal.ServletContextManager.invokeServlet(Servlet
ContextManager.java:247)
at
weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.jav
a:361)
at
weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:261)

at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)

Mon Apr 09 14:14:32 EDT 2001:E ServletContext-struts-example root cause
of S
ervletException
javax.servlet.ServletException: runtime failure in custom tag 'message'
at jsp_servlet._index._jspService(_index.java:105)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:105)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:123)
at
weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletCon
textImpl.java:742)
at
weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletCon
textImpl.java:686)
at
weblogic.servlet.internal.ServletContextManager.invokeServlet(Servlet
ContextManager.java:247)
at
weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.jav
a:361)
at
weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:261)

at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)



(Clarification) RE: Problems in setting up Weblogic5.1 + SP8 + Jakarta-Struts

2001-04-09 Thread Brian Knorr

Just wanted to clarify a couple of things... 

You must remove the load-on-startup tag from under the "Action Servlet 
Configuration" section of your web.xml.

Also... the struts-example will still not work as I described below, because every jsp 
page in this example requires the application.properties to be loaded already by the 
action servlet.  But you can't load the action servlet first, you must hit a jsp.

I wouldn't worry about getting the example to work, just forge ahead... but if you 
really truely desire to get the example working, just unwar the stuts-example (don't 
forget to update your weblogic.properties -- it's not a .war anymore) and add your own 
test.jsp page (doesn't even need any content) under the strut-example directory.  Load 
test.jsp in your browser, then load the action servlet by submiting to the action path 
"logoff.do".  Example:

"http://[SERVER_NAME]:PORT/struts-example/test.jsp

"http://[SERVER_NAME]:PORT/struts-example/logoff.do

Thanks,

Brian

-Original Message-
From: Brian Knorr 
Sent: Monday, April 09, 2001 7:08 PM
To: [EMAIL PROTECTED]
Subject: RE: Problems in setting up Weblogic5.1 + SP8 + Jakarta-Struts


My experience with WLS 5.1 sp8 has been very tiresome... many days of trial and error 
getting it to work with struts (and yes I followed the directions on the struts page 
for wls sp8 -- maybe this works on Windows but definitely not on unix)... 

Anyway -- the only way to get around the issue you are encountering is to take out the 
following line in your web.xml:

load-on-startup1/load-on-startup

Now as a consequence of doing this you will need to follow these two steps every time 
you restart your weblogic instance:

1.  Load a jsp page through your browser before doing anything else (especially a 
post).  This fixes the classloader problem with weblogic 5.1.
2.  Next, load the ActionServlet by posting to an action class.  This will also load 
your application.properties. 


Also I found with this fix you don't have to set the WL classpath as it is stated in 
the instructions.

Hope this helps...

--Brian 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sent: Monday, April 09, 2001 1:58 PM
To: [EMAIL PROTECTED]
Subject: RE: Problems in setting up Weblogic5.1 + SP8 + Jakarta-Struts



This is the error you will see when WL can't find the properties file. You
are positive that the properties file is in the proper directory? Also you
must restart WL after you copy the file.

If this still doesn't work then I am sorry I don't have any other
suggestions for deploying in the WAR :(   However, another option is to
expand the WAR file and set the WL classpath- see the instructions.

-Bob 


-Original Message-
From: Lu, Wei [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 09, 2001 2:19 PM
To: '[EMAIL PROTECTED]'
Subject: RE: Problems in setting up Weblogic5.1 + SP8 + Jakarta-Struts



Thank you very much ofr your response. 

The class package reads org.apache.struts.example. So I opened the 
struts-example.war file and copied ApplicationResources.properties and 
appended in the folder "example".  However, I  still got the enclosed 
error message. Thank you for help.  Wei Lu

Mon Apr 09 14:14:31 EDT 2001:I ServletContext-struts-example *.jsp:
param wo
rkingDir initialized to: C:\jakarta-struts\webapps\_tmp_war
Mon Apr 09 14:14:31 EDT 2001:I ServletContext-struts-example *.jsp:
param pa
geCheckSeconds initialized to: 1
Mon Apr 09 14:14:31 EDT 2001:I ServletContext-struts-example *.jsp:
initiali
zation complete
Mon Apr 09 14:14:31 EDT 2001:I ServletContext-struts-example *.jsp:
##


##
pageCheckSeconds over-ruled in JSPServlet to : 1
##


##

Mon Apr 09 14:14:32 EDT 2001:E ServletContext-struts-example Servlet
failed
with Exception
javax.servlet.ServletException: runtime failure in custom tag 'html'
at jsp_servlet._index._jspService(_index.java:449)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:105)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:123)
at
weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletCon
textImpl.java:742)
at
weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletCon
textImpl.java:686)
at
weblogic.servlet.internal.ServletContextManager.invokeServlet(Servlet
ContextManager.java:247)
at
weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.jav
a:361)
at
weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:261)

at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)

Mon Apr 09 14:14:32 EDT 2001:E ServletContext-struts-example root cause
of S
ervletException
javax.servlet.ServletException: runtime failure in custom tag 'message'
 

workaround for weblogic5.1 cast exception doesn´t work for HP-UNIX

2001-03-21 Thread maarten ectors


We have no problems running Struts on out NT version
of weblogic but despite all suggested fixes weblogic
keeps throwing the class cast exception on out HP-UNIX
version.

To summarize:

We did no put struts in the weblogic classpath.
We did add to the web.xml the code to precompile JSPs
We tried copying the .properties.
We tried unzipping .war

Is there some additional configuration needed for
HP-UNIX?

Thanks,

Maarten


__
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/



Re: workaround for weblogic5.1 cast exception

2001-01-29 Thread renzo estrella

I forgot to mention another step that may be needed to

 make 0.5 struts-example work with weblogic5.1:
  If you call a *.jsp page before the ActionServlet
  init() method ever gets called you will get the
  following exception:
 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)

 e.g. If you use the url "http://.../struts_example/"
you're web.xml has 
 welcome-file-list
   welcome-fileindex.jsp/welcome-file
 /welcome-file-list
 This bypasses the ActionServlet  calls the *.jsp
 directly. But if ActionServlet.init() method has 
 never been called then it hasn't had a chance to  
 insert the ResourceBundle into servletContext.Now 
 when the jsp calls the MessageTag custom tag handler,
 MessageTag tries to get the ResourceBundle from
 the servletContext but it doesn't find it cause
 its not there yet.To fix this just make sure the
 ActionServlet gets called at least once.Either
 when weblogic startsup or manually e.g.
 if you've mapped the ActionServlet to be called for
 a *.do file just use a url like 
 "http://../struts_example/x.do".
 The example should now work correctly assuming you
 have done the other two steps I mentioned before:
  1) unjar the war file cause weblogic5.1 can't handle
  resource bundles in *.war.
  2) add the jps-precompile section to web.xml
 param-nameweblogic.jsp.precompile/param-name
   param-valuetrue/param-value
 /context-param
 
 This leads to a question I have:
  How do you prevent people from bypassing your 
  ActionServlet and going directly to a *.jsp
  without putting extra logic in the jsp.
  E.g. I may not want people to bookmark a jsp
  because I want security/authentication/session
  management to be done in my central servlet.
  It seems to me that I have to insert logic into
  ALL my JSPs (e.g. by calling a bean) to make sure   
  that a person has logged in or has a valid 
  session.   But I do not want to put 
  this logic in a jsp I want to handle it from a  
  central servlet. Is there a way to do this or am I 
  stuck putting the logic in each jsp ?



--- renzo estrella [EMAIL PROTECTED] wrote:
 I made the struts-example  struts-documentation
 demo
  apps work by doing the following 2 steps:
  
 1. For cast exception added this section to web.xml:
  context-param
  
 param-nameweblogic.jsp.precompile/param-name
   param-valuetrue/param-value
 /context-param
 2. For missing resource exception:
I had to unjar the *.war files to the directorie
    because weblogic5.1 can't find resource in *.war 
files.  
 I'm using weblogic5.1 service pack 8
 I get a different problem for the struts-test demo:
  "weblogic.servlet.jsp.JspException: (line 25): 
   sess is not defined as bean
   at weblogic.servlet.jsp.JspLexer.jspException  
(JspLexer.java:665)"
 
 Any help with the struts-test demo app would be
 appreciated.
 
 
 
 __
 Do You Yahoo!?
 Yahoo! Auctions - Buy the things you want at great
 prices. 
 http://auctions.yahoo.com/


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



workaround for weblogic5.1 cast exception

2001-01-25 Thread renzo estrella

I made the struts-example  struts-documentation demo
 apps work by doing the following 2 steps:
 
1. For cast exception added this section to web.xml:
 context-param
  param-nameweblogic.jsp.precompile/param-name
  param-valuetrue/param-value
/context-param
2. For missing resource exception:
   I had to unjar the *.war files to the directorie
   because weblogic5.1 can't find resource in *.war 
   files.  
I'm using weblogic5.1 service pack 8
I get a different problem for the struts-test demo:
 "weblogic.servlet.jsp.JspException: (line 25): 
  sess is not defined as bean
  at weblogic.servlet.jsp.JspLexer.jspException  
   (JspLexer.java:665)"

Any help with the struts-test demo app would be
appreciated.



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



RE: workaround for weblogic5.1 cast exception

2001-01-25 Thread rhayden
workaround for weblogic5.1 cast exception 


I made the struts-example  struts-documentation demo
 apps work by doing the following 2 steps:
 
1. For cast exception added this section to web.xml:
 context-param
  param-nameweblogic.jsp.precompile/param-name
  param-valuetrue/param-value
/context-param
2. For missing resource exception:
   I had to unjar the *.war files to the directorie
   because weblogic5.1 can't find resource in *.war 
   files.  
I'm using weblogic5.1 service pack 8
I get a different problem for the struts-test demo:
 "weblogic.servlet.jsp.JspException: (line 25): 
  sess is not defined as bean
  at weblogic.servlet.jsp.JspLexer.jspException  
   (JspLexer.java:665)"

Any help with the struts-test demo app would be
appreciated.



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



Struts on a WebLogic5.1 Cluster

2001-01-24 Thread Martin Habermann

Hi,

has anybody expiriences in running struts on a weblogic5.1 clustered 
environment.I would appreciate any hint or suggestion on that topic...


_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.




RE: Struts on a WebLogic5.1 Cluster

2001-01-24 Thread Abraham Kang

Martin,

   Off the top of my head.  If you are going to be relying on HttpSession
failover and in-memory replication you have to call
session.setAttribute(...,...) after changing any of the HttpSession objects.
This pushes changes of a session object to a back up server.  If you change
an object in the HttpSession and do not call session.setAttribute(  ) then
when you failover to the backup machine the objects in the HttpSession
object will be missing alot of the stuff you changed.

   If you are using database persistence then it does not matter because
every call to getSession pulls all of the Ojects from the database and
writes the changes when you are finished.  This is also the reason database
session persistence is 10 times slower than in-memory relication.

   I don't know if the Struts source code needs to take this into
consideration.

   If you are using EJBs there are other things non-struts related that you
will have to be aware of.

--Abraham

 -Original Message-
 From: Martin Habermann [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, January 24, 2001 1:50 AM
 To: [EMAIL PROTECTED]
 Subject: Struts on a WebLogic5.1 Cluster


 Hi,

 has anybody expiriences in running struts on a weblogic5.1 clustered
 environment.I would appreciate any hint or suggestion on that topic...


 _
 Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.






My fix for Weblogic5.1 and struts example

2000-12-27 Thread HT Levine

Having suffered through this problem this morning, here is what I added to
my weblogic.properties file to successfully get the ActionServlet to
initialize at the startup of Weblogic.  this works like a charm and is way
better than rewriting code?  and browsing to a .do?   Thanks for the help
everyone gave me.

=  paste below into weblogic.properties ===

#setup struts control
weblogic.httpd.register.ActionServlet=org.apache.struts.action.ActionServlet
weblogic.system.startupClass.StartMyServlet=weblogic.servlet.utils.ServletSt
artup
weblogic.system.startupArgs.StartMyServlet=servlet=ActionServlet



Re: WebLogic5.1

2000-12-18 Thread maarten ectors


Is this a problem of weblogic and if so did any body
report it to Bea already?

--- Wong Kok Wai [EMAIL PROTECTED] wrote:
 WLS 5.1 SP 7 has been released and Struts example
 almost work of the box except the
 ApplicationResources.properties is not unjarred from
 the WAR lke the class files. So the work around is
 to
 first run WLS once to create the tmp_war_xx
 directory
 and add the ApplicationResources.properties to the
 correct path and restart WLS.
 
 
 
 
 __
 Do You Yahoo!?
 Yahoo! Shopping - Thousands of Stores. Millions of
 Products.
 http://shopping.yahoo.com/


__
Do You Yahoo!?
Yahoo! Shopping - Thousands of Stores. Millions of Products.
http://shopping.yahoo.com/