JRUN 3.1/Struts 1.1 : struts-example.war - ClassNotFoundException

2003-08-18 Thread jason . p . king
Hi,

The following error appears many times in the mailing list archive for
various containers , and I am also getting it in the following environment
when attempting a clean deployment of Struts 1.1. struts-example.war to
JRUN 3.1

I would be very grateful if someone could summarise what the specific
problem is ( i.e BUG in container version etc ) and provide any
configuration steps that I can perform to rectify this problem.
I have noted that it is perhaps possible to work around this issue by
copying JARS to the /lib/ext dir of the container. In our case,  we require
to deploy a warfile only. Any workaounds must affect only our server
instance ( which is referred to as myApp below ).

struts.jar is only located in the WEB-INF/lib dir of my application and is
not on the classpath elsewhere.

Regards
Jason

JRun 3.1 3.1.26414.
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1_01-b01)
SunOS 5.6 Generic_105181-33

Aug 18, 2003 10:12:06 AM org.apache.struts.util.MessageResourcesFactory
createFactory
SEVERE: MessageResourcesFactory.createFactory
java.lang.ClassNotFoundException:
org.apache.struts.util.PropertyMessageResourcesFactory
...
Aug 18, 2003 10:12:06 AM org.apache.struts.util.MessageResourcesFactory
createFactory
SEVERE: MessageResourcesFactory.createFactory
java.lang.ExceptionInInitializerError
at
org.apache.struts.util.MessageResourcesFactory.createFactory(MessageResourcesFactory.java:192)
at
org.apache.struts.util.MessageResources.getMessageResources(MessageResources.java:576)
at
org.apache.struts.action.ActionServlet.initInternal(ActionServlet.java:1329)
at
org.apache.struts.action.ActionServlet.init(ActionServlet.java:464)
...
Caused by: java.lang.NullPointerException
at
org.apache.struts.util.MessageResources.getMessageResources(MessageResources.java:577)
at
org.apache.struts.util.RequestUtils.clinit(RequestUtils.java:134)
... 22 more

Container classpath:

jrun.rootdir is /export/opt/jrun31/bin/..
$APPDIR is /export/opt/jrun31/servers/myApp
Starting myApp
Getting CLASSPATH with: /export/opt/jrun31/bin/../bin/getprop
java.classpath -v jrun.rootdir=/export/opt/jrun31/bin/.. -v
jrun.server.name=myApp -v
jrun.server.rootdir=/export/opt/jrun31/servers/myApp
/export/opt/jrun31/servers/myApp/local.properties
/export/opt/jrun31/bin/../lib/global.properties
CLASSPATH=/export/opt/jrun31/bin/../lib/ext:/export/opt/jrun31/bin/../lib/ext/US_export_policy.jar:/export/opt/jrun31/bin/../lib/ext/activation.jar:/export/opt/jrun31/bin/../lib/ext/ejb.jar:/export/opt/jrun31/bin/../lib/ext/iioprt.jar:/export/opt/jrun31/bin/../lib/ext/jaxp.jar:/export/opt/jrun31/bin/../lib/ext/jce1_2_1.jar:/export/opt/jrun31/bin/../lib/ext/jcert.jar:/export/opt/jrun31/bin/../lib/ext/jdbc.jar:/export/opt/jrun31/bin/../lib/ext/jms.jar:/export/opt/jrun31/bin/../lib/ext/jndi.jar:/export/opt/jrun31/bin/../lib/ext/jnet.jar:/export/opt/jrun31/bin/../lib/ext/jsse.jar:/export/opt/jrun31/bin/../lib/ext/jta.jar:/export/opt/jrun31/bin/../lib/ext/local_policy.jar:/export/opt/jrun31/bin/../lib/ext/mail.jar:/export/opt/jrun31/bin/../lib/ext/parser.jar:/export/opt/jrun31/bin/../lib/ext/pop3.jar:/export/opt/jrun31/bin/../lib/ext/servlet.jar:/export/opt/jrun31/bin/../lib/ext/sunjce_provider.jar:/export/opt/jrun31/bin/../lib/jrun.jar:/export/opt/jrun31/bin/../lib/install.jar:/ex!
port/opt/jrun31/bin/../lib/ejipt.jar:/export/opt/jrun31/bin/../lib/ejipt_client.jar:/export/opt/jrun31/bin/../lib/ejipt_tools.jar:/opt/jdk/1.3.0.2/solaris/lib/tools.jar:/export/opt/jrun31/bin/../lib/jsp.jar:/export/opt/jrun31/bin/../lib/ssi.jar:/export/opt/jrun31/bin/../lib/wddx.jar:/export/opt/jrun31/bin/../lib/xt.jar:/export/opt/jrun31/bin/../lib/rhino.jar:/export/opt/jrun31/bin/../servers/lib:/export/opt/jrun31/bin/../servers/lib/jrun_drivers.jar:/export/opt/jrun31/bin/../servers/lib/jruntags.jar:/export/opt/jrun31/bin/../servers/lib/pbembedded35RE.jar:/export/opt/jrun31/servers/myApp/lib

debug /opt/jdk/1.4.1_01/solaris/bin/java
-Djrun.rootdir=/export/opt/jrun31/bin/.. -Xms256M -Xmx256M
-Djava.awt.headless=true  -Duser.language=en -Duser.timezone=Europe/London
JRun -start .

( /export/opt/jrun31/servers/myApp/lib is empty ).


This communication is for informational purposes only.  It is not intended as
an offer or solicitation for the purchase or sale of any financial instrument
or as an official confirmation of any transaction. All market prices, data
and other information are not warranted as to completeness or accuracy and
are subject to change without notice. Any comments or statements made herein
do not necessarily reflect those of J.P. Morgan Chase  Co., its
subsidiaries and affiliates.


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



RE: JRUN 3.1/Struts 1.1 : struts-example.war - ClassNotFoundException

2003-08-18 Thread Mark Galbreath
First, JDK 1.4..1_01 is unstable; Second, JRun 3.1 does not support 1.4.

You need to upgrade to JRun 4.0 SP2 and JDK 1.4.1_02 or higher.

Mark

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Monday, August 18, 2003 7:00 AM
To: [EMAIL PROTECTED]
Subject: JRUN 3.1/Struts 1.1 : struts-example.war - ClassNotFoundException


Hi,

The following error appears many times in the mailing list archive for
various containers , and I am also getting it in the following environment
when attempting a clean deployment of Struts 1.1. struts-example.war to JRUN
3.1

I would be very grateful if someone could summarise what the specific
problem is ( i.e BUG in container version etc ) and provide any
configuration steps that I can perform to rectify this problem. I have noted
that it is perhaps possible to work around this issue by copying JARS to the
/lib/ext dir of the container. In our case,  we require to deploy a warfile
only. Any workaounds must affect only our server instance ( which is
referred to as myApp below ).

struts.jar is only located in the WEB-INF/lib dir of my application and is
not on the classpath elsewhere.

Regards
Jason

JRun 3.1 3.1.26414.
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1_01-b01) SunOS
5.6 Generic_105181-33

Aug 18, 2003 10:12:06 AM org.apache.struts.util.MessageResourcesFactory
createFactory
SEVERE: MessageResourcesFactory.createFactory
java.lang.ClassNotFoundException:
org.apache.struts.util.PropertyMessageResourcesFactory
...
Aug 18, 2003 10:12:06 AM org.apache.struts.util.MessageResourcesFactory
createFactory
SEVERE: MessageResourcesFactory.createFactory
java.lang.ExceptionInInitializerError
at
org.apache.struts.util.MessageResourcesFactory.createFactory(MessageResource
sFactory.java:192)
at
org.apache.struts.util.MessageResources.getMessageResources(MessageResources
.java:576)
at
org.apache.struts.action.ActionServlet.initInternal(ActionServlet.java:1329)
at
org.apache.struts.action.ActionServlet.init(ActionServlet.java:464)
...
Caused by: java.lang.NullPointerException
at
org.apache.struts.util.MessageResources.getMessageResources(MessageResources
.java:577)
at
org.apache.struts.util.RequestUtils.clinit(RequestUtils.java:134)
... 22 more

Container classpath:

jrun.rootdir is /export/opt/jrun31/bin/..
$APPDIR is /export/opt/jrun31/servers/myApp
Starting myApp
Getting CLASSPATH with: /export/opt/jrun31/bin/../bin/getprop
java.classpath -v jrun.rootdir=/export/opt/jrun31/bin/.. -v
jrun.server.name=myApp -v
jrun.server.rootdir=/export/opt/jrun31/servers/myApp
/export/opt/jrun31/servers/myApp/local.properties
/export/opt/jrun31/bin/../lib/global.properties
CLASSPATH=/export/opt/jrun31/bin/../lib/ext:/export/opt/jrun31/bin/../lib/ex
t/US_export_policy.jar:/export/opt/jrun31/bin/../lib/ext/activation.jar:/exp
ort/opt/jrun31/bin/../lib/ext/ejb.jar:/export/opt/jrun31/bin/../lib/ext/iiop
rt.jar:/export/opt/jrun31/bin/../lib/ext/jaxp.jar:/export/opt/jrun31/bin/../
lib/ext/jce1_2_1.jar:/export/opt/jrun31/bin/../lib/ext/jcert.jar:/export/opt
/jrun31/bin/../lib/ext/jdbc.jar:/export/opt/jrun31/bin/../lib/ext/jms.jar:/e
xport/opt/jrun31/bin/../lib/ext/jndi.jar:/export/opt/jrun31/bin/../lib/ext/j
net.jar:/export/opt/jrun31/bin/../lib/ext/jsse.jar:/export/opt/jrun31/bin/..
/lib/ext/jta.jar:/export/opt/jrun31/bin/../lib/ext/local_policy.jar:/export/
opt/jrun31/bin/../lib/ext/mail.jar:/export/opt/jrun31/bin/../lib/ext/parser.
jar:/export/opt/jrun31/bin/../lib/ext/pop3.jar:/export/opt/jrun31/bin/../lib
/ext/servlet.jar:/export/opt/jrun31/bin/../lib/ext/sunjce_provider.jar:/expo
rt/opt/jrun31/bin/../lib/jrun.jar:/export/opt/jrun31/bin/../lib/install.jar:
/ex!
port/opt/jrun31/bin/../lib/ejipt.jar:/export/opt/jrun31/bin/../lib/ejipt_cli
ent.jar:/export/opt/jrun31/bin/../lib/ejipt_tools.jar:/opt/jdk/1.3.0.2/solar
is/lib/tools.jar:/export/opt/jrun31/bin/../lib/jsp.jar:/export/opt/jrun31/bi
n/../lib/ssi.jar:/export/opt/jrun31/bin/../lib/wddx.jar:/export/opt/jrun31/b
in/../lib/xt.jar:/export/opt/jrun31/bin/../lib/rhino.jar:/export/opt/jrun31/
bin/../servers/lib:/export/opt/jrun31/bin/../servers/lib/jrun_drivers.jar:/e
xport/opt/jrun31/bin/../servers/lib/jruntags.jar:/export/opt/jrun31/bin/../s
ervers/lib/pbembedded35RE.jar:/export/opt/jrun31/servers/myApp/lib

debug /opt/jdk/1.4.1_01/solaris/bin/java
-Djrun.rootdir=/export/opt/jrun31/bin/.. -Xms256M -Xmx256M
-Djava.awt.headless=true  -Duser.language=en -Duser.timezone=Europe/London
JRun -start .

( /export/opt/jrun31/servers/myApp/lib is empty ).


This communication is for informational purposes only.  It is not intended
as an offer or solicitation for the purchase or sale of any financial
instrument or as an official confirmation of any transaction. All market
prices, data and other information are not warranted as to completeness or
accuracy and are subject to change without notice. Any comments or
statements made herein do not necessarily reflect those

Re: JRUN 3.1/Struts 1.1 : struts-example.war - ClassNotFoundException

2003-08-18 Thread Dan Tran
Jason, take a look at the below discussion link. It may help

http://article.gmane.org/gmane.comp.jakarta.struts.user/24178

-Dan
- Original Message - 
From: Mark Galbreath [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Monday, August 18, 2003 5:11 AM
Subject: RE: JRUN 3.1/Struts 1.1 : struts-example.war -
ClassNotFoundException


First, JDK 1.4..1_01 is unstable; Second, JRun 3.1 does not support 1.4.

You need to upgrade to JRun 4.0 SP2 and JDK 1.4.1_02 or higher.

Mark

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Monday, August 18, 2003 7:00 AM
To: [EMAIL PROTECTED]
Subject: JRUN 3.1/Struts 1.1 : struts-example.war - ClassNotFoundException


Hi,

The following error appears many times in the mailing list archive for
various containers , and I am also getting it in the following environment
when attempting a clean deployment of Struts 1.1. struts-example.war to JRUN
3.1

I would be very grateful if someone could summarise what the specific
problem is ( i.e BUG in container version etc ) and provide any
configuration steps that I can perform to rectify this problem. I have noted
that it is perhaps possible to work around this issue by copying JARS to the
/lib/ext dir of the container. In our case,  we require to deploy a warfile
only. Any workaounds must affect only our server instance ( which is
referred to as myApp below ).

struts.jar is only located in the WEB-INF/lib dir of my application and is
not on the classpath elsewhere.

Regards
Jason

JRun 3.1 3.1.26414.
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1_01-b01) SunOS
5.6 Generic_105181-33

Aug 18, 2003 10:12:06 AM org.apache.struts.util.MessageResourcesFactory
createFactory
SEVERE: MessageResourcesFactory.createFactory
java.lang.ClassNotFoundException:
org.apache.struts.util.PropertyMessageResourcesFactory
...
Aug 18, 2003 10:12:06 AM org.apache.struts.util.MessageResourcesFactory
createFactory
SEVERE: MessageResourcesFactory.createFactory
java.lang.ExceptionInInitializerError
at
org.apache.struts.util.MessageResourcesFactory.createFactory(MessageResource
sFactory.java:192)
at
org.apache.struts.util.MessageResources.getMessageResources(MessageResources
.java:576)
at
org.apache.struts.action.ActionServlet.initInternal(ActionServlet.java:1329)
at
org.apache.struts.action.ActionServlet.init(ActionServlet.java:464)
...
Caused by: java.lang.NullPointerException
at
org.apache.struts.util.MessageResources.getMessageResources(MessageResources
.java:577)
at
org.apache.struts.util.RequestUtils.clinit(RequestUtils.java:134)
... 22 more

Container classpath:

jrun.rootdir is /export/opt/jrun31/bin/..
$APPDIR is /export/opt/jrun31/servers/myApp
Starting myApp
Getting CLASSPATH with: /export/opt/jrun31/bin/../bin/getprop
java.classpath -v jrun.rootdir=/export/opt/jrun31/bin/.. -v
jrun.server.name=myApp -v
jrun.server.rootdir=/export/opt/jrun31/servers/myApp
/export/opt/jrun31/servers/myApp/local.properties
/export/opt/jrun31/bin/../lib/global.properties
CLASSPATH=/export/opt/jrun31/bin/../lib/ext:/export/opt/jrun31/bin/../lib/ex
t/US_export_policy.jar:/export/opt/jrun31/bin/../lib/ext/activation.jar:/exp
ort/opt/jrun31/bin/../lib/ext/ejb.jar:/export/opt/jrun31/bin/../lib/ext/iiop
rt.jar:/export/opt/jrun31/bin/../lib/ext/jaxp.jar:/export/opt/jrun31/bin/../
lib/ext/jce1_2_1.jar:/export/opt/jrun31/bin/../lib/ext/jcert.jar:/export/opt
/jrun31/bin/../lib/ext/jdbc.jar:/export/opt/jrun31/bin/../lib/ext/jms.jar:/e
xport/opt/jrun31/bin/../lib/ext/jndi.jar:/export/opt/jrun31/bin/../lib/ext/j
net.jar:/export/opt/jrun31/bin/../lib/ext/jsse.jar:/export/opt/jrun31/bin/..
/lib/ext/jta.jar:/export/opt/jrun31/bin/../lib/ext/local_policy.jar:/export/
opt/jrun31/bin/../lib/ext/mail.jar:/export/opt/jrun31/bin/../lib/ext/parser.
jar:/export/opt/jrun31/bin/../lib/ext/pop3.jar:/export/opt/jrun31/bin/../lib

/ext/servlet.jar:/export/opt/jrun31/bin/../lib/ext/sunjce_provider.jar:/expo
rt/opt/jrun31/bin/../lib/jrun.jar:/export/opt/jrun31/bin/../lib/install.jar:
/ex!
port/opt/jrun31/bin/../lib/ejipt.jar:/export/opt/jrun31/bin/../lib/ejipt_cli
ent.jar:/export/opt/jrun31/bin/../lib/ejipt_tools.jar:/opt/jdk/1.3.0.2/solar
is/lib/tools.jar:/export/opt/jrun31/bin/../lib/jsp.jar:/export/opt/jrun31/bi
n/../lib/ssi.jar:/export/opt/jrun31/bin/../lib/wddx.jar:/export/opt/jrun31/b
in/../lib/xt.jar:/export/opt/jrun31/bin/../lib/rhino.jar:/export/opt/jrun31/
bin/../servers/lib:/export/opt/jrun31/bin/../servers/lib/jrun_drivers.jar:/e
xport/opt/jrun31/bin/../servers/lib/jruntags.jar:/export/opt/jrun31/bin/../s
ervers/lib/pbembedded35RE.jar:/export/opt/jrun31/servers/myApp/lib

debug /opt/jdk/1.4.1_01/solaris/bin/java
-Djrun.rootdir=/export/opt/jrun31/bin/.. -Xms256M -Xmx256M
-Djava.awt.headless=true  -Duser.language=en -Duser.timezone=Europe/London
JRun -start .

( /export/opt/jrun31/servers/myApp/lib is empty ).


This communication is for informational purposes

Re: JRUN 3.1/Struts 1.1 : struts-example.war - ClassNotFoundException

2003-08-18 Thread jason . p . king

Thanks Dan,

We already route all requests in our application though an subclass of
ActionServlet.
Therefore the following 1 liner ( from the link ) fixed the problem first
time.

-- Added to Subclass of ActionServlet that intercepts struts requests:

public void init() throws ServletException
{
   Thread.currentThread().setContextClassLoader( this.getClass
().getClassLoader() );  // JRUN ClassLoader workaround
   super.init();
   ...
}

protected void process( HttpServletRequest request, HttpServletResponse
response )  // Overrides superclass method.
throws IOException, ServletException
{
   try
   {
  configureCachingPolicy( request, response ); // Private method
omitted here.
  super.process( request, response );
   }
}

I also agree with Mark that upgrading from Jrun 3.1 is the preferred way
forward.
We probably will this year, but not to Jrun 4.

Many thanks
Jas


This communication is for informational purposes only.  It is not intended as
an offer or solicitation for the purchase or sale of any financial instrument
or as an official confirmation of any transaction. All market prices, data
and other information are not warranted as to completeness or accuracy and
are subject to change without notice. Any comments or statements made herein
do not necessarily reflect those of J.P. Morgan Chase  Co., its
subsidiaries and affiliates.


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



RE: JRUN 3.1/Struts 1.1 : struts-example.war - ClassNotFoundException

2003-08-18 Thread Mark Galbreath
heh heh - I actually upgraded to BEA WebLogic 6.2SP3  :-)  I'm back with
JRun because my current consulting gig requires it - but it sucks!

Mark

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Monday, August 18, 2003 10:51 AM

I also agree with Mark that upgrading from Jrun 3.1 is the preferred way
forward. We probably will this year, but not to Jrun 4.

Many thanks
Jas



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



RE: [struts-example.war] Cannot find message resources under keyorg.apache.struts.action.MESSAGE

2002-09-05 Thread Victor CHEVALIER

I remember this message. Are you sure that struts is correctly initialized ?

-Message d'origine-
De : Brian Holzer [mailto:[EMAIL PROTECTED]]
Envoye : mercredi 4 septembre 2002 23:59
A : 
Objet : [struts-example.war] Cannot find message resources under
keyorg.apache.struts.action.MESSAGE


Hi all,
   Excuse me for posting this again, but I posted it on Friday and the whole
[VOTE] thing was dominating the list, and I receieved no responses.
   I am using Silverstream version 3.7.3 and in searching the mail archive
to try to solve this problem I have only seen reference to Tomcat and
Weblogic (in regards to the struts-example app), and they were both version
problems.
   I tried to find the fix for this in the mail archive but was
unsuccessful.  I downloaded the nightly build from 20020904 and deployed the
struts-example.war successfully.  However when I try to access the app I am
getting the following exception.

javax.servlet.ServletException: Cannot find message resources under key
org.apache.struts.action.MESSAGE
at
com.sssw.srv.jsp.AgoJspPageContext.handlePageException(AgoJspPageContext.jav
a:725)
at
com.sssw.srv.jsp.AgoJspPageContext.handlePageException(AgoJspPageContext.jav
a:667)
at
com.sssw.gen.jsp.index_jsp_808651477._jspService(index_jsp_808651477.java:64
6)
at com.sssw.srv.jsp.AgoHttpJspPage.service(AgoHttpJspPage.java:92)
at
com.sssw.srv.resources.AgWarResource.doServletDispatch(AgWarResource.java:93
6)
at
com.sssw.srv.busobj.AgoWarServletRequestDispatcher.dispatch(AgoWarServletReq
uestDispatcher.java:50)
at
com.sssw.srv.busobj.AgoWarRequestDispatcher.forward(AgoWarRequestDispatcher.
java:92)
at
com.sssw.srv.resources.AgWarResource.handleDirectoryRequest(AgWarResource.ja
va:1672)
at com.sssw.srv.resources.AgWarResource.service(AgWarResource.java:661)
at
com.sssw.srv.resources.AgWarURLResource.perform(AgWarURLResource.java:114)
at com.sssw.srv.http.httpd.perform(httpd.java:4568)
at com.sssw.srv.http.Client.processRequest(Client.java)
at com.sssw.srv.http.Client.loop(Client.java)
at com.sssw.srv.http.Client.runConnection(Client.java)
at com.sssw.srv.http.Client.run(Client.java)
at java.lang.Thread.run(Thread.java:484)


I took a look at the struts-config.xml file and the
message-resources element is there and appears okay.

Has anyone had this same problem with this version of the nightly build.

Brian


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




RE: [struts-example.war] Cannot find message resources under keyorg.apache.struts.action.MESSAGE

2002-09-05 Thread Bill Willis

Hi Brian,

I get the exact same error when not using *any* message resources in a
Struts app. After I add the following message resource in the Struts
configuration file, the problem goes away:
 
parameter: ApplicationResources 
key: org.apache.struts.action.MESSAGE

I still don't understand why this is necessary. I always assumed it was
something silly I missed, but nobody has pointed that something out to
me as of yet. A number of our customers also have this problem...

Regards,
Bill Willis
ObjectVenture Inc.


-Original Message-
From: Brian Holzer [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, September 04, 2002 5:59 PM
To: 
Subject: [struts-example.war] Cannot find message resources under
keyorg.apache.struts.action.MESSAGE

Hi all,
   Excuse me for posting this again, but I posted it on Friday and the
whole [VOTE] thing was dominating the list, and I receieved no
responses.
   I am using Silverstream version 3.7.3 and in searching the mail
archive to try to solve this problem I have only seen reference to
Tomcat and Weblogic (in regards to the struts-example app), and they
were both version problems.
   I tried to find the fix for this in the mail archive but was
unsuccessful.  I downloaded the nightly build from 20020904 and deployed
the struts-example.war successfully.  However when I try to access the
app I am getting the following exception.

javax.servlet.ServletException: snip...
 
I took a look at the struts-config.xml file and the 
message-resources element is there and appears okay.

Has anyone had this same problem with this version of the nightly build.

Brian



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




[struts-example.war] Cannot find message resources under keyorg.apache.struts.action.MESSAGE

2002-09-04 Thread Brian Holzer

Hi all,
   Excuse me for posting this again, but I posted it on Friday and the whole [VOTE] 
thing was dominating the list, and I receieved no responses.
   I am using Silverstream version 3.7.3 and in searching the mail archive to try to 
solve this problem I have only seen reference to Tomcat and Weblogic (in regards to 
the struts-example app), and they were both version problems.
   I tried to find the fix for this in the mail archive but was unsuccessful.  I 
downloaded the nightly build from 20020904 and deployed the struts-example.war 
successfully.  However when I try to access the app I am getting the following 
exception.

javax.servlet.ServletException: Cannot find message resources under key 
org.apache.struts.action.MESSAGE
at com.sssw.srv.jsp.AgoJspPageContext.handlePageException(AgoJspPageContext.java:725)
at com.sssw.srv.jsp.AgoJspPageContext.handlePageException(AgoJspPageContext.java:667)
at com.sssw.gen.jsp.index_jsp_808651477._jspService(index_jsp_808651477.java:646)
at com.sssw.srv.jsp.AgoHttpJspPage.service(AgoHttpJspPage.java:92)
at com.sssw.srv.resources.AgWarResource.doServletDispatch(AgWarResource.java:936)
at 
com.sssw.srv.busobj.AgoWarServletRequestDispatcher.dispatch(AgoWarServletRequestDispatcher.java:50)
at com.sssw.srv.busobj.AgoWarRequestDispatcher.forward(AgoWarRequestDispatcher.java:92)
at com.sssw.srv.resources.AgWarResource.handleDirectoryRequest(AgWarResource.java:1672)
at com.sssw.srv.resources.AgWarResource.service(AgWarResource.java:661)
at com.sssw.srv.resources.AgWarURLResource.perform(AgWarURLResource.java:114)
at com.sssw.srv.http.httpd.perform(httpd.java:4568)
at com.sssw.srv.http.Client.processRequest(Client.java)
at com.sssw.srv.http.Client.loop(Client.java)
at com.sssw.srv.http.Client.runConnection(Client.java)
at com.sssw.srv.http.Client.run(Client.java)
at java.lang.Thread.run(Thread.java:484)

 
I took a look at the struts-config.xml file and the 
message-resources element is there and appears okay.

Has anyone had this same problem with this version of the nightly build.

Brian



[struts-example.war] Cannot find message resources under keyorg.apache.struts.action.MESSAGE

2002-08-30 Thread Brian Holzer

** High Priority **

Hi all,
   I tried to find the fix for this in the mail archive but was unsuccessful.  I 
downloaded the nightly build from 20020829 and deployed the struts-example.war 
successfully.  However when I try to access the app I am getting the following 
exception.

javax.servlet.ServletException: Cannot find message resources under key 
org.apache.struts.action.MESSAGE
at 
com.sssw.srv.jsp.AgoJspPageContext.handlePageException(AgoJspPageContext.java:725)
at 
com.sssw.srv.jsp.AgoJspPageContext.handlePageException(AgoJspPageContext.java:667)
at 
com.sssw.gen.jsp.index_jsp_808651477._jspService(index_jsp_808651477.java:646)
at com.sssw.srv.jsp.AgoHttpJspPage.service(AgoHttpJspPage.java:92)
at 
com.sssw.srv.resources.AgWarResource.doServletDispatch(AgWarResource.java:936)
at 
com.sssw.srv.busobj.AgoWarServletRequestDispatcher.dispatch(AgoWarServletRequestDispatcher.java:50)
at 
com.sssw.srv.busobj.AgoWarRequestDispatcher.forward(AgoWarRequestDispatcher.java:92)
at 
com.sssw.srv.resources.AgWarResource.handleDirectoryRequest(AgWarResource.java:1672)
at com.sssw.srv.resources.AgWarResource.service(AgWarResource.java:661)
at com.sssw.srv.resources.AgWarURLResource.perform(AgWarURLResource.java:114)
at com.sssw.srv.http.httpd.perform(httpd.java:4568)
at com.sssw.srv.http.Client.processRequest(Client.java)
at com.sssw.srv.http.Client.loop(Client.java)
at com.sssw.srv.http.Client.runConnection(Client.java)
at com.sssw.srv.http.Client.run(Client.java)
at java.lang.Thread.run(Thread.java:484)

I am using Silverstream 3.7.3
I took a peek at the struts-config.xml file and the 
message-resources element is there and appears okay.
Has anyone had this same problem with any version of 1.1b2?
Brian



RE: struts-example.war

2002-08-19 Thread Kwang-Shi Shu

I had the same problem with Weblogic 6.1 SP 2 for Struts 1.1b1.

It could not find the MessageResource file at runtime. Here is the error
message:

Aug 16, 2002 6:08:16 PM EDT Error HTTP
[WebAppServletContext(593524,strut
s-example,/struts-example)] Root cause of ServletException
javax.servlet.jsp.JspException: Missing message for key index.title
at
org.apache.struts.taglib.bean.MessageTag.doStartTag(MessageTag.java:2
98)
at jsp_servlet.__index._jspService(__index.java:128)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:265)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:304)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:200)
at
weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
rvletContext.java:2495)
at
weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
pl.java:2204)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)

I just wonder how you fixed the problem?

Thanks.

Kwang-Shi


-Original Message-
From: Markus Meissner [mailto:[EMAIL PROTECTED]] 
Sent: Sunday, August 18, 2002 11:40 AM
To: Struts Users Mailing List
Subject: Re: struts-example.war

Am Sonntag, 18. August 2002 17:22 schrieb James Mitchell:
 You must have extracted these files incorrectly.
Mmh, I have these files extracted incorrectly.
Thanks.

 Please try again or just deploy the .war as is


Now, I get the error reported in
http://www.mail-archive.com/struts-user@jakarta.apache.org/msg34710.html

I think this is a weblogic classloading issue.

Does the fix in MessageResourceFactory 
( 
http://cvs.apache.org/viewcvs/jakarta-struts/src/share/org/apache/struts
/util/MessageResourcesFactory.java 
)
not work with weblogic 5.1 SP 12?
Struts 1.02 works!

Markus





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


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




struts-example.war

2002-08-18 Thread Markus Meissner

Hallo,

I downloaded the binary distribution jakarta-struts-1.1-b2.zip 
and installed the struts-example.war within my weblogic server.

Starting the webapp I get the following error:

INFO: Initializing, 
config='org.apache.struts.webapp.example.ApplicationResources', 
returnNull=true
java.lang.ClassNotFoundException: 
org.apache.struts.webapp.example.memory.MemoryDatabasePlugIn

The class org.apache.struts.webapp.example.memory.MemoryDatabasePlugIn
isn't packed in the struts-example.war.

I think this is a deployment bug.

Gruesse Markus


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




RE: struts-example.war

2002-08-18 Thread James Mitchell

You must have extracted these files incorrectly.

Please try again or just deploy the .war as is


James Mitchell
Software Engineer\Struts Evangelist
Struts-Atlanta, the Open Minded Developer Network
http://www.open-tools.org/struts-atlanta




 -Original Message-
 From: Markus Meissner [mailto:[EMAIL PROTECTED]]
 Sent: Sunday, August 18, 2002 6:31 AM
 To: [EMAIL PROTECTED]
 Subject: struts-example.war
 
 
 Hallo,
 
 I downloaded the binary distribution jakarta-struts-1.1-b2.zip 
 and installed the struts-example.war within my weblogic server.
 
 Starting the webapp I get the following error:
 
 INFO: Initializing, 
 config='org.apache.struts.webapp.example.ApplicationResources', 
 returnNull=true
 java.lang.ClassNotFoundException: 
 org.apache.struts.webapp.example.memory.MemoryDatabasePlugIn
 
 The class org.apache.struts.webapp.example.memory.MemoryDatabasePlugIn
 isn't packed in the struts-example.war.
 
 I think this is a deployment bug.
 
 Gruesse Markus
 
 
 --
 To unsubscribe, e-mail:   
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
mailto:[EMAIL PROTECTED]



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




Re: struts-example.war

2002-08-18 Thread Markus Meissner

Am Sonntag, 18. August 2002 17:22 schrieb James Mitchell:
 You must have extracted these files incorrectly.
Mmh, I have these files extracted incorrectly.
Thanks.

 Please try again or just deploy the .war as is


Now, I get the error reported in
http://www.mail-archive.com/struts-user@jakarta.apache.org/msg34710.html

I think this is a weblogic classloading issue.

Does the fix in MessageResourceFactory 
( 
http://cvs.apache.org/viewcvs/jakarta-struts/src/share/org/apache/struts/util/MessageResourcesFactory.java
 
)
not work with weblogic 5.1 SP 12?
Struts 1.02 works!

Markus





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




struts-example.war

2001-11-02 Thread Andrew Kirkland

After a week of banging my head on my desk I am still no closer to getting
any struts example to work.
I am using tomcat verdsion 3.3-m3 and i have unpacked the struts-example
file.nI have tried it on 2 macheines with the same result. I displays the
first Jsp but the image on it is missing as it has been given a stupid url
(sturtspower.gif;jsessionid=837983). When i try to submit any form in the
example, my browser is redirected to logon.jsp;jsessionid=454333 or whatever
number. If i click on registration i am redirected to
.../struts-example/editRegistration.do;jsessionid=nfrwce4s01?action=Create.
I realise i have brought this up before but i thought i should re-itterate
the problem before asking any questions.

Does anyone know of any prerequisite software i might be missing in order
for this to be happening? It happens with any strusts application i try.

Thanks for your time

Andy


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




struts-example.war - url correction

2001-11-02 Thread Andrew Kirkland

Slight correction 

When i try to submit any form in the
example, my browser is redirected to logon.do;jsessionid=454333 or whatever
number.

Im my haste and frustration I got it wrong, sorry guys :) 

Andy

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




RE: struts-example.war

2001-11-02 Thread Marcel Andres

Hi Andy, 

First of all, don't break your head on the desk, use a pillow! Now, to your problem:
Did you instal all the prerequisite software, how it is described on 
http://jakarta.apache.org/struts/installation-1.0.html?

Marcel



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Friday, November 02, 2001 1:09 PM
To: [EMAIL PROTECTED]
Subject: struts-example.war


After a week of banging my head on my desk I am still no closer to getting
any struts example to work.
I am using tomcat verdsion 3.3-m3 and i have unpacked the struts-example
file.nI have tried it on 2 macheines with the same result. I displays the
first Jsp but the image on it is missing as it has been given a stupid url
(sturtspower.gif;jsessionid=837983). When i try to submit any form in the
example, my browser is redirected to logon.jsp;jsessionid=454333 or whatever
number. If i click on registration i am redirected to
.../struts-example/editRegistration.do;jsessionid=nfrwce4s01?action=Create.
I realise i have brought this up before but i thought i should re-itterate
the problem before asking any questions.

Does anyone know of any prerequisite software i might be missing in order
for this to be happening? It happens with any strusts application i try.

Thanks for your time

Andy


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

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




RE: struts-example.war

2001-11-02 Thread Andrew Kirkland

Indeed I did. The only thing I dont have is the:

 JDBC 2.0 Optional Package Classes - Struts supports an optional
implementation of javax.sql.DataSource, so it requires the API classes to be
compiled. They can be downloaded from
http://java.sun.com/products/jdbc/download.html.

I want sure if these were compulsory, but i downloaded the class files, i
just dont know where to put them, but i dont think this is the problem.

Andy

-Original Message-
From: Marcel Andres [mailto:[EMAIL PROTECTED]]
Sent: Friday, November 02, 2001 12:34 PM
To: struts-user
Subject: RE: struts-example.war


Hi Andy,

First of all, don't break your head on the desk, use a pillow! Now, to your
problem:
Did you instal all the prerequisite software, how it is described on
http://jakarta.apache.org/struts/installation-1.0.html?

Marcel



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Friday, November 02, 2001 1:09 PM
To: [EMAIL PROTECTED]
Subject: struts-example.war


After a week of banging my head on my desk I am still no closer to getting
any struts example to work.
I am using tomcat verdsion 3.3-m3 and i have unpacked the struts-example
file.nI have tried it on 2 macheines with the same result. I displays the
first Jsp but the image on it is missing as it has been given a stupid url
(sturtspower.gif;jsessionid=837983). When i try to submit any form in the
example, my browser is redirected to logon.jsp;jsessionid=454333 or whatever
number. If i click on registration i am redirected to
.../struts-example/editRegistration.do;jsessionid=nfrwce4s01?action=Create.
I realise i have brought this up before but i thought i should re-itterate
the problem before asking any questions.

Does anyone know of any prerequisite software i might be missing in order
for this to be happening? It happens with any strusts application i try.

Thanks for your time

Andy


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

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


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




RE: struts-example.war

2001-11-02 Thread Marcel Andres

Andy, if everything is configured well, I can't think of what is wrong. As much as I 
understand, you did reiceve the logon form. after signing on you are redirected back 
to the logon form. Right? As much as I remember the example (it is quiet a long time 
ago, I used it), it will redirect you to the logon form, as long as you did not logon 
to the application.

Marcel

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Friday, November 02, 2001 1:31 PM
To: [EMAIL PROTECTED]
Subject: RE: struts-example.war


Indeed I did. The only thing I dont have is the:

 JDBC 2.0 Optional Package Classes - Struts supports an optional
implementation of javax.sql.DataSource, so it requires the API classes to be
compiled. They can be downloaded from
http://java.sun.com/products/jdbc/download.html.

I want sure if these were compulsory, but i downloaded the class files, i
just dont know where to put them, but i dont think this is the problem.

Andy

-Original Message-
From: Marcel Andres [mailto:[EMAIL PROTECTED]]
Sent: Friday, November 02, 2001 12:34 PM
To: struts-user
Subject: RE: struts-example.war


Hi Andy,

First of all, don't break your head on the desk, use a pillow! Now, to your
problem:
Did you instal all the prerequisite software, how it is described on
http://jakarta.apache.org/struts/installation-1.0.html?

Marcel



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Friday, November 02, 2001 1:09 PM
To: [EMAIL PROTECTED]
Subject: struts-example.war


After a week of banging my head on my desk I am still no closer to getting
any struts example to work.
I am using tomcat verdsion 3.3-m3 and i have unpacked the struts-example
file.nI have tried it on 2 macheines with the same result. I displays the
first Jsp but the image on it is missing as it has been given a stupid url
(sturtspower.gif;jsessionid=837983). When i try to submit any form in the
example, my browser is redirected to logon.jsp;jsessionid=454333 or whatever
number. If i click on registration i am redirected to
../struts-example/editRegistration.do;jsessionid=nfrwce4s01?action=Create.
I realise i have brought this up before but i thought i should re-itterate
the problem before asking any questions.

Does anyone know of any prerequisite software i might be missing in order
for this to be happening? It happens with any strusts application i try.

Thanks for your time

Andy


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

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


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

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




RE: struts-example.war

2001-11-02 Thread Matt Raible

I'd suggest using Tomcat 4.0.  I've installed the struts-example.war on it
without any problems at all - and no setup.

Matt

--- Marcel  Andres [EMAIL PROTECTED] wrote:
 Andy, if everything is configured well, I can't think of what is wrong. As
 much as I understand, you did reiceve the logon form. after signing on you
 are redirected back to the logon form. Right? As much as I remember the
 example (it is quiet a long time ago, I used it), it will redirect you to the
 logon form, as long as you did not logon to the application.
 
 Marcel
 
 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: Friday, November 02, 2001 1:31 PM
 To: [EMAIL PROTECTED]
 Subject: RE: struts-example.war
 
 
 Indeed I did. The only thing I dont have is the:
 
  JDBC 2.0 Optional Package Classes - Struts supports an optional
 implementation of javax.sql.DataSource, so it requires the API classes to be
 compiled. They can be downloaded from
 http://java.sun.com/products/jdbc/download.html.
 
 I want sure if these were compulsory, but i downloaded the class files, i
 just dont know where to put them, but i dont think this is the problem.
 
 Andy
 
 -Original Message-
 From: Marcel Andres [mailto:[EMAIL PROTECTED]]
 Sent: Friday, November 02, 2001 12:34 PM
 To: struts-user
 Subject: RE: struts-example.war
 
 
 Hi Andy,
 
 First of all, don't break your head on the desk, use a pillow! Now, to your
 problem:
 Did you instal all the prerequisite software, how it is described on
 http://jakarta.apache.org/struts/installation-1.0.html?
 
 Marcel
 
 
 
 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: Friday, November 02, 2001 1:09 PM
 To: [EMAIL PROTECTED]
 Subject: struts-example.war
 
 
 After a week of banging my head on my desk I am still no closer to getting
 any struts example to work.
 I am using tomcat verdsion 3.3-m3 and i have unpacked the struts-example
 file.nI have tried it on 2 macheines with the same result. I displays the
 first Jsp but the image on it is missing as it has been given a stupid url
 (sturtspower.gif;jsessionid=837983). When i try to submit any form in the
 example, my browser is redirected to logon.jsp;jsessionid=454333 or whatever
 number. If i click on registration i am redirected to
 ../struts-example/editRegistration.do;jsessionid=nfrwce4s01?action=Create.
 I realise i have brought this up before but i thought i should re-itterate
 the problem before asking any questions.
 
 Does anyone know of any prerequisite software i might be missing in order
 for this to be happening? It happens with any strusts application i try.
 
 Thanks for your time
 
 Andy
 
 
 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
 


__
Do You Yahoo!?
Find a job, post your resume.
http://careers.yahoo.com

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




struts-example.war from struts 1.0, and missing .do servlets (and how to get web.xml)

2001-10-04 Thread Bang, Steinar

Platform: debian woody, apache 1.3.19, tomcat 3.2.3,
  struts 1.0, Java2 SDK 1.3

[I'm not on the mailing list, so please Cc me on any
 response.  Thanx!]

I've downloaded the binary distribution of struts 1.0 
from
http://jakarta.apache.org/builds/jakarta-struts/release/v1.0/

And followed a modified version of what the INSTALL
file says about installation under Tomcat:
 - I've copied struts-documentation.war and
   struts-example.war to /usr/share/java/webapps/
 - I've added DirectoryIndex index.jsp index.html and
   AddHandler jserv-servlet .do to /etc/apache/srm.conf
 - I've restarted tomcat and then restarted apache

The http://localhost/struts-documentation URL seems to
work fine, but http://localhost/struts-example has
some problems:
 - how do I get the web.xml file from struts-example?
   (the tutorial says to look at it to see how you
should create a web.xml file for your own application)
   If I remove the DirectoryIndex mapping for index.jsp,
   I get to list the directory for struts-example, but
   I'm not allowed to access http://localhost/struts-example/WEB-INF/
   where I presume the web.xml file can be found?

 - the other problem is related to actually running
   the application.  If I try clicking on the link
   Register with the MailReader Demonstration Application,
   I get a 404 not found on the URL
/struts-example/editRegistration.do;jsessionid=83vbrf4511
   The Walking tour of the Example Application, gives
   me a 404 Not found, on the URL
/struts-example/tour.do;jsessionid=84vbfr4511
   The Log on to the MailReader Demonstation Application
   pops up a form requesting username and password,
   but I don't have anything meaningful to give it,
   so I can't test if it actually works.
   Both the problem links are .do files.  When
   I remove the index.jsp DirectoryIndex mapping
   I can't find any .do files on the top level.
   Presumably they reside under WEB-INF/ somewhere,
   but since I can't access that directory from the
   web browser, I can't check.
   I'm guessing that I'm missing some configuration
   on .do files, but I don't know what.
   
I'm continuing to dig at the problems, but all
hints and tips will be appreciated.

Thanx!


- Steinar

























 
This email, its content and any attachments is PRIVATE AND CONFIDENTIAL to
TANDBERG Television. If received in error please notify the sender and
destroy the original message and attachments.



RE: struts-example.war from struts 1.0, and missing .do servlets (and how to get web.xml)

2001-10-04 Thread ALAMI Ahmed - BOR

Hello everyone

Does anyone knows the steps to deploy a WAR application using struts under
Weblogic please
When compiling to create the web.xml and weblogic.xml, it returns an error
Exception in thread main java.lang.NoClassDefFoundError:
org/apache/struts/action/Act
ion

Help me please

Ahmed ALAMI
Stagiaire
 

8, rue Gustave Hertz - 33600 Pessac
* 05.57.89.00.36 *06.17.23.26.61 * 05.56.36.64.71
* [EMAIL PROTECTED]



-Message d'origine-
De : Bang, Steinar [mailto:[EMAIL PROTECTED]]
Envoyé : jeudi 4 octobre 2001 10:47
À : '[EMAIL PROTECTED]'
Objet : struts-example.war from struts 1.0, and missing .do servlets
(and how to get web.xml)


Platform: debian woody, apache 1.3.19, tomcat 3.2.3,
  struts 1.0, Java2 SDK 1.3

[I'm not on the mailing list, so please Cc me on any
 response.  Thanx!]

I've downloaded the binary distribution of struts 1.0 
from
http://jakarta.apache.org/builds/jakarta-struts/release/v1.0/

And followed a modified version of what the INSTALL
file says about installation under Tomcat:
 - I've copied struts-documentation.war and
   struts-example.war to /usr/share/java/webapps/
 - I've added DirectoryIndex index.jsp index.html and
   AddHandler jserv-servlet .do to /etc/apache/srm.conf
 - I've restarted tomcat and then restarted apache

The http://localhost/struts-documentation URL seems to
work fine, but http://localhost/struts-example has
some problems:
 - how do I get the web.xml file from struts-example?
   (the tutorial says to look at it to see how you
should create a web.xml file for your own application)
   If I remove the DirectoryIndex mapping for index.jsp,
   I get to list the directory for struts-example, but
   I'm not allowed to access http://localhost/struts-example/WEB-INF/
   where I presume the web.xml file can be found?

 - the other problem is related to actually running
   the application.  If I try clicking on the link
   Register with the MailReader Demonstration Application,
   I get a 404 not found on the URL
/struts-example/editRegistration.do;jsessionid=83vbrf4511
   The Walking tour of the Example Application, gives
   me a 404 Not found, on the URL
/struts-example/tour.do;jsessionid=84vbfr4511
   The Log on to the MailReader Demonstation Application
   pops up a form requesting username and password,
   but I don't have anything meaningful to give it,
   so I can't test if it actually works.
   Both the problem links are .do files.  When
   I remove the index.jsp DirectoryIndex mapping
   I can't find any .do files on the top level.
   Presumably they reside under WEB-INF/ somewhere,
   but since I can't access that directory from the
   web browser, I can't check.
   I'm guessing that I'm missing some configuration
   on .do files, but I don't know what.
   
I'm continuing to dig at the problems, but all
hints and tips will be appreciated.

Thanx!


- Steinar

























 
This email, its content and any attachments is PRIVATE AND CONFIDENTIAL to
TANDBERG Television. If received in error please notify the sender and
destroy the original message and attachments.



Re: struts-example.war from struts 1.0, and missing .do servlets (and how to get web.xml)

2001-10-04 Thread Breion Michael

You wrote:
 That was it!  I changed the access rights of
 /struts-example/WEB-INF/ from deny from all to
 allow from all, and then it worked from apache
 as well.

 Hm... when I look at other Location tags, I see
 that the usual default is deny from all.
 I wonder what makes struts applications different?

Well, It's not coming from struts at all... It's for security reason that
the WEB-INF directory is 'deny from all' ... But you can change this access
to localhost (127.0.0.1) if you need to access the diectory while you're
developping the app ;-)

Mike




Re: struts-example.war

2001-06-19 Thread Dan Miser

struts.jar is on your CLASSPATH or in \tomcat\lib. Don't put it there. It
belongs in webapp\WEB-INF\lib.
--
Dan Miser
http://www.distribucon.com

- Original Message -
From: Isomorph Pty [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, June 17, 2001 6:47 AM
Subject: Re: struts-example.war


 --- Isomorph Pty [EMAIL PROTECTED] wrote:
  I just installed jakarta-tomcat-3.2.2, and tried to
  install and test run jakarta-struts-1.0.
 
  I dropped the struts-documentation.war to the
  Tomcat's
  webapps directory and it works.  But when I dropped
  the struts-example.war to the webapps directory, and
  restart Tomcat, I got the following exception.
 
  Any ideas what I am missing or has done wrong ?
  New org.apache.struts.webapp.example.User
  Begin event threw exception
  java.lang.ClassNotFoundException:
  org.apache.struts.webapp.example.User





struts-example.war

2001-06-17 Thread Isomorph Pty

I just installed jakarta-tomcat-3.2.2, and tried to
install and test run jakarta-struts-1.0.

I dropped the struts-documentation.war to the Tomcat's
webapps directory and it works.  But when I dropped
the struts-example.war to the webapps directory, and
restart Tomcat, I got the following exception.

Any ideas what I am missing or has done wrong ?

Thanks.

New org.apache.struts.webapp.example.User
Begin event threw exception
java.lang.ClassNotFoundException:
org.apache.struts.webapp.example.User
at
java.net.URLClassLoader$1.run(URLClassLoader.java,
Compiled Code)
at java.lang.Exception.init(Exception.java,
Compiled Code)
at
java.lang.ClassNotFoundException.init(ClassNotFoundException.java,
Compiled Code)
at
java.net.URLClassLoader$1.run(URLClassLoader.java,
Compiled Code)
at
java.security.AccessController.doPrivileged(Native
Method)
at
java.net.URLClassLoader.findClass(URLClassLoader.java,
Compiled Code)

at
java.lang.ClassLoader.loadClass(ClassLoader.java,
Compiled Code)
at
sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java,
Compiled Co
de)
at
java.lang.ClassLoader.loadClass(ClassLoader.java,
Compiled Code)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:124)
at
org.apache.struts.digester.ObjectCreateRule.begin(ObjectCreateRule.ja
va:152)
at
org.apache.struts.digester.Digester.startElement(Digester.java,
Compi
led Code)
at
com.sun.xml.parser.Parser.maybeElement(Parser.java:1391)
at
com.sun.xml.parser.Parser.content(Parser.java:1499)
at
com.sun.xml.parser.Parser.maybeElement(Parser.java:1400)
at
com.sun.xml.parser.Parser.parseInternal(Parser.java:492)
at
com.sun.xml.parser.Parser.parse(Parser.java:284)
at
javax.xml.parsers.SAXParser.parse(SAXParser.java:155)
at
javax.xml.parsers.SAXParser.parse(SAXParser.java:77)
at
org.apache.struts.digester.Digester.parse(Digester.java:755)
at
org.apache.struts.webapp.example.DatabaseServlet.load(DatabaseServlet
.java:251)
at
org.apache.struts.webapp.example.DatabaseServlet.init(DatabaseServlet
.java:175)
at
javax.servlet.GenericServlet.init(GenericServlet.java:258)
at
org.apache.tomcat.core.ServletWrapper.doInit(ServletWrapper.java:317)

at
org.apache.tomcat.core.Handler.init(Handler.java:215)
at
org.apache.tomcat.core.ServletWrapper.init(ServletWrapper.java:296)
at
org.apache.tomcat.context.LoadOnStartupInterceptor.contextInit(LoadOn
StartupInterceptor.java, Compiled Code)
at
org.apache.tomcat.core.ContextManager.initContext(ContextManager.java
, Compiled Code)
at
org.apache.tomcat.core.ContextManager.init(ContextManager.java,
Compi
led Code)
at
org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:195)
at
org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235)
cannot load servlet name: database: Cannot load
database from '/WEB-INF/database
.xml'

__
Do You Yahoo!?
Spot the hottest trends in music, movies, and more.
http://buzz.yahoo.com/



Re: struts-example.war

2001-06-17 Thread Isomorph Pty

BTW, I am running on Windows 2000.  If this matters.

--- Isomorph Pty [EMAIL PROTECTED] wrote:
 I just installed jakarta-tomcat-3.2.2, and tried to
 install and test run jakarta-struts-1.0.
 
 I dropped the struts-documentation.war to the
 Tomcat's
 webapps directory and it works.  But when I dropped
 the struts-example.war to the webapps directory, and
 restart Tomcat, I got the following exception.
 
 Any ideas what I am missing or has done wrong ?
 
 Thanks.
 
 New org.apache.struts.webapp.example.User
 Begin event threw exception
 java.lang.ClassNotFoundException:
 org.apache.struts.webapp.example.User
 at
 java.net.URLClassLoader$1.run(URLClassLoader.java,
 Compiled Code)
 at
 java.lang.Exception.init(Exception.java,
 Compiled Code)
 at

java.lang.ClassNotFoundException.init(ClassNotFoundException.java,
 Compiled Code)
 at
 java.net.URLClassLoader$1.run(URLClassLoader.java,
 Compiled Code)
 at
 java.security.AccessController.doPrivileged(Native
 Method)
 at

java.net.URLClassLoader.findClass(URLClassLoader.java,
 Compiled Code)
 
 at
 java.lang.ClassLoader.loadClass(ClassLoader.java,
 Compiled Code)
 at

sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java,
 Compiled Co
 de)
 at
 java.lang.ClassLoader.loadClass(ClassLoader.java,
 Compiled Code)
 at java.lang.Class.forName0(Native Method)
 at java.lang.Class.forName(Class.java:124)
 at

org.apache.struts.digester.ObjectCreateRule.begin(ObjectCreateRule.ja
 va:152)
 at

org.apache.struts.digester.Digester.startElement(Digester.java,
 Compi
 led Code)
 at

com.sun.xml.parser.Parser.maybeElement(Parser.java:1391)
 at
 com.sun.xml.parser.Parser.content(Parser.java:1499)
 at

com.sun.xml.parser.Parser.maybeElement(Parser.java:1400)
 at

com.sun.xml.parser.Parser.parseInternal(Parser.java:492)
 at
 com.sun.xml.parser.Parser.parse(Parser.java:284)
 at

javax.xml.parsers.SAXParser.parse(SAXParser.java:155)
 at
 javax.xml.parsers.SAXParser.parse(SAXParser.java:77)
 at

org.apache.struts.digester.Digester.parse(Digester.java:755)
 at

org.apache.struts.webapp.example.DatabaseServlet.load(DatabaseServlet
 .java:251)
 at

org.apache.struts.webapp.example.DatabaseServlet.init(DatabaseServlet
 .java:175)
 at

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

org.apache.tomcat.core.ServletWrapper.doInit(ServletWrapper.java:317)
 
 at

org.apache.tomcat.core.Handler.init(Handler.java:215)
 at

org.apache.tomcat.core.ServletWrapper.init(ServletWrapper.java:296)
 at

org.apache.tomcat.context.LoadOnStartupInterceptor.contextInit(LoadOn
 StartupInterceptor.java, Compiled Code)
 at

org.apache.tomcat.core.ContextManager.initContext(ContextManager.java
 , Compiled Code)
 at

org.apache.tomcat.core.ContextManager.init(ContextManager.java,
 Compi
 led Code)
 at

org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:195)
 at

org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235)
 cannot load servlet name: database: Cannot load
 database from '/WEB-INF/database
 .xml'
 
 __
 Do You Yahoo!?
 Spot the hottest trends in music, movies, and more.
 http://buzz.yahoo.com/


__
Do You Yahoo!?
Spot the hottest trends in music, movies, and more.
http://buzz.yahoo.com/



struts-example.war

2001-04-02 Thread Michael Schommer

Hi,

I have problems to run the struts-example.war.
I'm using the sun J2EE-reference implementation (Tomcat 4.0 - b1).

When I click "Register with the MailReader Demonstration Application"
(index.jsp) the error

 HTTP Status 404 - /editRegistration.do

 The requested resource (/editRegistration.do) is not available.

displays.
Clicking on the Submit-Button of logon.jsp shows the message (Netscape
Browser):

 The document contained no data.
 Try again later, or contact the server's administratior.

Had anybody else these problems and solved them???

Thanks
Michael







Re: struts-example.war

2001-04-02 Thread Florin Iucha

I have never managed to get this answered.

It works if you go directly to Tomcat HTTP port. If you go through 
Apache you will get this error.

florin

Michael Schommer wrote:
 
 Hi,
 
 I have problems to run the struts-example.war.
 I'm using the sun J2EE-reference implementation (Tomcat 4.0 - b1).
 
 When I click "Register with the MailReader Demonstration Application"
 (index.jsp) the error
 
  HTTP Status 404 - /editRegistration.do
 
  The requested resource (/editRegistration.do) is not available.
 
 displays.
 Clicking on the Submit-Button of logon.jsp shows the message (Netscape
 Browser):
 
  The document contained no data.
  Try again later, or contact the server's administratior.
 
 Had anybody else these problems and solved them???
 
 Thanks
 Michael

-- 
Florin Iucha
[EMAIL PROTECTED]
(651)482-2847

"you have moved your mouse, please reboot to make this change take
effect"



Problem using struts-example.war with J2SDKEE1.3(beta)

2001-03-08 Thread Thai Thanh Ha


 I can't use struts-example.war with J2SDKEE1.3(beta). The JSP pages work
normally, but when I use *.do, server always returns:



HTTP Status 404 - /editRegistration.do
The requested resource (/editRegistration.do) is not available. 

What's wrong? Please help me! I know that J2EESDK isn't a good enviroment
for development. But I must use it :-(

 Regards,
 Thai



RE: Problem using struts-example.war with J2SDKEE1.3(beta)

2001-03-08 Thread Thai Thanh Ha


 Thank you for your help. Now I have found the reason. The deploy tool
always changes the web.xml in my WAR file( *.do  to /*.do ) so anything.do
can't be found. Maybe this is a bug of deploy tool? I found where the J2EE
server stores its JAR files and change them every time I want to change my
WAR files. ( Not a good way to deploy applications! :-) )

 Regards,
 Thai

-Original Message-
From: Jean-Nol Ribette [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 08, 2001 10:04 PM
To: [EMAIL PROTECTED]
Subject: Re: Problem using struts-example.war with J2SDKEE1.3(beta)



- Original Message -
From: Thai Thanh Ha [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, March 08, 2001 7:03 AM
Subject: Problem using struts-example.war with J2SDKEE1.3(beta)



  I can't use struts-example.war with J2SDKEE1.3(beta). The JSP pages work
 normally, but when I use *.do, server always returns:



 HTTP Status 404 - /editRegistration.do
 The requested resource (/editRegistration.do) is not available.

 What's wrong? Please help me! I know that J2EESDK isn't a good enviroment
 for development. But I must use it :-(

It looks like your server is looking for a file name /editRegistration.do
(error 404) instead of calling the action servlet.
Did you map *.do to the action servlet ? The mapping is normally done in the
web.xml file but you may need to specify the mapping in the deploytool.

  Regards,
  Thai


Jean-Noel



Re: Problem in Struts example (struts-example.war)

2001-03-06 Thread Michael McCallister

Is this really true?  I have an Action that doesn't define an input 
attribute, but does specify a request scope ActionForm.  According to the 
log messages, Struts creates an instance of the form and stores it under 
the appropriate key before calling my Action.perform() method.  In 
addition, the code I have to handle the form == null case never seems to 
get called.


At 11:40 PM 3/4/2001, Craig McClanahan wrote:
The "form" object passed to an Action will indeed be null if the
struts-config.xml file does not define an "input" attribute for this 
particular
action.

Although that is not the case currently for the Struts example app, 
consider me
an old paranoid programmer about double checking the "it can never happen" 
cases
... :-)


Mike




Re: Problem in Struts example (struts-example.war)

2001-03-06 Thread Craig R. McClanahan

Michael McCallister wrote:

 Is this really true?  I have an Action that doesn't define an input
 attribute, but does specify a request scope ActionForm.  According to the
 log messages, Struts creates an instance of the form and stores it under
 the appropriate key before calling my Action.perform() method.  In
 addition, the code I have to handle the form == null case never seems to
 get called.


Sorry ... I was almost right.

Struts automatically creates an action form bean for you if your mapping
specifies the *name* attribute, which names the form-bean entry that is
relevant for this action. If this is omitted, no form bean will be created and
the form bean argument will be null.

Craig



 At 11:40 PM 3/4/2001, Craig McClanahan wrote:
 The "form" object passed to an Action will indeed be null if the
 struts-config.xml file does not define an "input" attribute for this
 particular
 action.
 
 Although that is not the case currently for the Struts example app,
 consider me
 an old paranoid programmer about double checking the "it can never happen"
 cases
 ... :-)

 Mike




Problem in Struts example (struts-example.war)

2001-03-04 Thread Thai Thanh Ha


 Hi all,

 I have found this  code in the Struts example (file:
EditRegistrationAction.java, line: 144)

 if (form == null) {
   ...   
 }

 When EditRegistrationAction.perform() is called, form will be a reference
to a RegistrationForm (*never* be null, because the ActionForm object has
been created before by the ActionServlet object). Is it correct? Why has the
author written this code? Can anyone help me?

 Regards,
 Thai 



Re: Problem in Struts example (struts-example.war)

2001-03-04 Thread Craig R. McClanahan

Thai Thanh Ha wrote:

  Hi all,

  I have found this  code in the Struts example (file:
 EditRegistrationAction.java, line: 144)

  if (form == null) {
...
  }

  When EditRegistrationAction.perform() is called, form will be a reference
 to a RegistrationForm (*never* be null, because the ActionForm object has
 been created before by the ActionServlet object). Is it correct? Why has the
 author written this code? Can anyone help me?


The "form" object passed to an Action will indeed be null if the
struts-config.xml file does not define an "input" attribute for this particular
action.

Although that is not the case currently for the Struts example app, consider me
an old paranoid programmer about double checking the "it can never happen" cases
... :-)


  Regards,
  Thai

Craig McClanahan





Re: Problem in Struts example (struts-example.war)

2001-03-04 Thread Martin Cooper

Craig,

If one Action chains to another using a ForwardingActionForward with no
query string in the URL, will the form bean for the second Action still be
created by Struts?

--
Martin Cooper

- Original Message -
From: "Craig R. McClanahan" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, March 04, 2001 9:40 PM
Subject: Re: Problem in Struts example (struts-example.war)


 Thai Thanh Ha wrote:

   Hi all,
 
   I have found this  code in the Struts example (file:
  EditRegistrationAction.java, line: 144)
 
   if (form == null) {
 ...
   }
 
   When EditRegistrationAction.perform() is called, form will be a
reference
  to a RegistrationForm (*never* be null, because the ActionForm object
has
  been created before by the ActionServlet object). Is it correct? Why has
the
  author written this code? Can anyone help me?
 

 The "form" object passed to an Action will indeed be null if the
 struts-config.xml file does not define an "input" attribute for this
particular
 action.

 Although that is not the case currently for the Struts example app,
consider me
 an old paranoid programmer about double checking the "it can never happen"
cases
 ... :-)

 
   Regards,
   Thai

 Craig McClanahan







Re: Problem in Struts example (struts-example.war)

2001-03-04 Thread Craig R. McClanahan

Martin Cooper wrote:

 Craig,

 If one Action chains to another using a ForwardingActionForward with no
 query string in the URL, will the form bean for the second Action still be
 created by Struts?


If you forward to a controller servlet URL (i.e. something like
"/saveCustomer.do?name1=value1name2=value2" when using extension mapping), and
if the destination action has an "input" attribute defined, the form bean will
indeed be created by Struts (if it doesn't exist yet), and the form bean
properties will be populated.

However, you should be aware that the set of request parameters seen by the
"second" request will be the *union* of request parameters from the query string
(name1 and name2 in my example above) and the request parameters from the
original request.  If you have the same parameter name defined in both the query
string and the original request, both values will be passed (the one from the
query string first), so your corresponding bean property will need to accept an
array to avoid conversion problems.


 --
 Martin Cooper


Craig



 - Original Message -
 From: "Craig R. McClanahan" [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Sunday, March 04, 2001 9:40 PM
 Subject: Re: Problem in Struts example (struts-example.war)

  Thai Thanh Ha wrote:
 
Hi all,
  
I have found this  code in the Struts example (file:
   EditRegistrationAction.java, line: 144)
  
if (form == null) {
  ...
}
  
When EditRegistrationAction.perform() is called, form will be a
 reference
   to a RegistrationForm (*never* be null, because the ActionForm object
 has
   been created before by the ActionServlet object). Is it correct? Why has
 the
   author written this code? Can anyone help me?
  
 
  The "form" object passed to an Action will indeed be null if the
  struts-config.xml file does not define an "input" attribute for this
 particular
  action.
 
  Although that is not the case currently for the Struts example app,
 consider me
  an old paranoid programmer about double checking the "it can never happen"
 cases
  ... :-)
 
  
Regards,
Thai
 
  Craig McClanahan
 
 




Problem running struts-example.war with Tomcat

2001-01-26 Thread Rajan Gupta

I copied struts-example.war to the tomcat/webappa directory  started
tomcat. I get a ClassNotFoundException: org.apache.struts.example.User

I am using JDK 1.3. Any body else encountered a similar problem.

Thanks
Rajan



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



Re: Problem running struts-example.war with Tomcat

2001-01-26 Thread Florin Iucha

I have problems with struts-example from yesterday nightly build, 01/25
that is. I have installed it by copying the .war into webapps and 
restarting tomcat.

I am using tomcat-3.2.1, and java-1.2.2 on solaris.

When I click on index.jsp and then on "* Register with the MailReader 
Demonstration Application" link I get: 

Not Found
The requested URL
/struts-example/editRegistration.do;jsessionid=l8lb9hzr31 was not found
on this server.

Is this a problem with struts or my particular setup?

Thanks,
florin

Rajan Gupta wrote:
 
 I copied struts-example.war to the tomcat/webappa directory  started
 tomcat. I get a ClassNotFoundException: org.apache.struts.example.User
 
 I am using JDK 1.3. Any body else encountered a similar problem.
 
 Thanks
 Rajan

-- 
Florin Iucha
[EMAIL PROTECTED]
(651)482-2847

"you have moved your mouse, please reboot to make this change take
effect"