Re: WAS: problems with - Help Please - ActionServlet fails on startup

2004-03-12 Thread Lukas Latz
> I see your confusion. I don't use TC, but remembered a while back there 
> was a lot of conversation about certain versions people had trouble with. 
> Perhaps it does work, but maybe you have to jump through hoops to get it 
> to do so. The archives might have more background on the specific issues 
> with TC 3.2.x. If you wanted, you could submit a bugzilla request for site
> 
> documentation clarification.
> 
> Good luck,
> Susan 

I've now upgraded to TC 3.3.2 and everything worked right away. I see your
point about how 3.2.x might be considered workable with twists.

Thanks

Lukas


-- 
+++ NEU bei GMX und erstmalig in Deutschland: TÜV-geprüfter Virenschutz +++
100% Virenerkennung nach Wildlist. Infos: http://www.gmx.net/virenschutz


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



Re: WAS: problems with - Help Please - ActionServlet fails on startup

2004-03-11 Thread Lukas Latz
> Lukas, 
> 
> I am not familiar with your previous posts, but will this archive post 
> help?
> 
> http://marc.theaimsgroup.com/?l=struts-user&m=106326387004081&w=2
> 
> Susan Bradeen

Susan, 

this post somewhat contradicts the info on the Struts website, where they
state:

"Apache's Tomcat (version 3.1 or later required, version 3.3 or later
recommended). "

I'm not fundamentally opposed to upgrading to Tomcat 3.3, but I feel that if
Tomcat < 3.3 does not work with Struts 1.1 at all, it should be mentioned on
the Struts website.
I also saw the jaxp 1.1 vs 1.0 issue on the struts website, but as the Java
that Tomcat uses here is > 1.4 , thus the included jaxp 1.1 is presumably
used.

Thanks,

Lukas


-- 
+++ NEU bei GMX und erstmalig in Deutschland: TÜV-geprüfter Virenschutz +++
100% Virenerkennung nach Wildlist. Infos: http://www.gmx.net/virenschutz


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



Re: WAS: problems with - Help Please - ActionServlet fails on startup

2004-03-11 Thread Lukas Latz
I just found the struts-blank.war in the Struts 1.1 binary distribution and
deployed it to my Tomcat 2.32 .
I fails in the same way!


-- 
+++ NEU bei GMX und erstmalig in Deutschland: TÜV-geprüfter Virenschutz +++
100% Virenerkennung nach Wildlist. Infos: http://www.gmx.net/virenschutz


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



WAS: problems with - Help Please - ActionServlet fails on startup

2004-03-11 Thread Lukas Latz
To find out what's going on, I created an even simpler project:
All the struts 1.1 jars, tlds and dtds
A simple index.jsp with NO struts related tags or taglib directives.
An ActionServlet set to load on startup.

The same failure as reported under "problems with " happens,
that shows the failure is not related to the jsp file that contained the
 tag in my other project, but to the initial loading of the
ActionServlet.

I realized I hadn't run a struts 1.1 in this tomcat instance before, only
the struts 1.0 "logon" application from the manning/husted struts book.

Is there a problem with using Tomcat 3.23 and Struts 1.1 ?
Otherwise, the only possible explanation could be missing items in the
web.xml or struts-config.xml
This is what the app currently look like:

/index.jsp
/META-INF/
/META-INF/MANIFEST.MF
/WEB-INF/
/WEB-INF/struts-bean.tld
/WEB-INF/struts-html.tld
/WEB-INF/struts-logic.tld
/WEB-INF/struts-nested.tld
/WEB-INF/struts-template.tld
/WEB-INF/struts-tiles.tld
/WEB-INF/struts-config_1_0.dtd
/WEB-INF/struts-config_1_1.dtd
/WEB-INF/tiles-config.dtd
/WEB-INF/tiles-config_1_1.dtd
/WEB-INF/validation_1_1.dtd
/WEB-INF/validator-rules_1_1.dtd
/WEB-INF/web-app_2_2.dtd
/WEB-INF/web-app_2_3.dtd
/WEB-INF/web.xml
/WEB-INF/struts-config.xml
/WEB-INF/classes/
/WEB-INF/lib/
/WEB-INF/lib/commons-beanutils.jar
/WEB-INF/lib/commons-collections.jar
/WEB-INF/lib/commons-digester.jar
/WEB-INF/lib/commons-fileupload.jar
/WEB-INF/lib/commons-lang.jar
/WEB-INF/lib/commons-logging.jar
/WEB-INF/lib/commons-validator.jar
/WEB-INF/lib/jakarta-oro.jar
/WEB-INF/lib/struts-legacy.jar
/WEB-INF/lib/struts.jar


** web.xml **


http://java.sun.com/j2ee/dtds/web-app_2_2.dtd";>


  
  
action
org.apache.struts.action.ActionServlet

  config
  /WEB-INF/struts-config.xml

1
  


 action
 /do/*


  
  
index.jsp
  


  
  
/tags/struts-html
/WEB-INF/struts-html.tld
  



** struts-config.xml *


http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd";>












There must be a really simple reason for the failure, as there's really no
application code my test app.
any pointers much appreciated.

Lukas

-- 
+++ NEU bei GMX und erstmalig in Deutschland: TÜV-geprüfter Virenschutz +++
100% Virenerkennung nach Wildlist. Infos: http://www.gmx.net/virenschutz


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



Re: problems with

2004-03-11 Thread Lukas Latz
> Hello, Lukas:
>  
> Here's a simple script that can be helpful in these situations:
> +++
> for jar in `ls *jar`
> do
>   echo "checking $jar..."
>   jar tvf $jar | grep
> "org.apache.struts.util.PropertyMessageResourcesFactory"
> done
> +++
>  
> When I checked WEB-INF\lib under a struts-based web 
> application on my system,  it produced the following output:
> #
> checking commons-beanutils.jar...
> checking commons-collections.jar...
> checking commons-digester.jar...
> checking commons-fileupload.jar...
> checking commons-lang.jar...
> checking commons-logging.jar...
> checking commons-validator.jar...
> checking jakarta-oro.jar...
> checking struts.jar...
>749 Sun Jun 29 21:46:38 PDT 2003
> org/apache/struts/util/PropertyMessageResourcesFactory.class
> #
>  
> Perhaps you are missing struts.jar?
>  
> 
> btw:  if you are on Windows, you can download either Cygwin
> or uwin (if you prefer ksh)
>  
> Cordially,
>  
> Oswald

Thanks for the script, Oswald!

I did manually check the presence of all the required stuff once tomcat had
unpacked the war file.
struts.jar is in WEB-INF/lib, together with all the other *.jar s from
struts 1.1, all the *.tld and *.dtd from struts 1.1 are in WEB-INF, and web.xml
and struts-config.xml are in WEB-INF, too.

I had actually downloaded the sources and looked at the
PropertyMessageResourcesFactory, but I couldn't figure out what it needs that's not 
there.

I suspect that some entries in either web.xml or in struts-config are
required that I didn't put in there, or maybe some properties file?

Kind regards

Lukas


-- 
+++ NEU bei GMX und erstmalig in Deutschland: TÜV-geprüfter Virenschutz +++
100% Virenerkennung nach Wildlist. Infos: http://www.gmx.net/virenschutz


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



problems with

2004-03-11 Thread Lukas Latz
Hi List!

I'm trying to get started with struts (1.1) step by step.
I had a working frameset made from *.JSPs in Tomcat 3.23 (The JSPs don't
actually do anything at this stage, they're like static html).

Then I inserted the 



tag in one of the JSPs, together with the

<%@ taglib uri="/tags/struts-bean" prefix="bean" %>
<%@ taglib uri="/tags/struts-html" prefix="html" %>
<%@ taglib uri="/tags/struts-logic" prefix="logic" %>

At first, my web.xml only had the

  
/tags/struts-bean
/WEB-INF/struts-bean.tld
  
  
/tags/struts-html
/WEB-INF/struts-html.tld
  
  
/tags/struts-logic
/WEB-INF/struts-logic.tld
  

When that didn't work, I figured the actionServlet must probably be required
and added

  
action
org.apache.struts.action.ActionServlet

  config
  /WEB-INF/struts-config.xml

1
  


 action
 /do/*


The struts-config.xml is where it should be, but pretty empty, like this:


http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd";>



The Struts 1.1 libs , taglibs, and dtds are all where they should be, AFAIK
.
I figured, as at this stage I'm only using STRUTS in the one tag above, and
not actually invoking the ActionServlet, the app should work without setting
up any ActionForwards and so on.
Is that correct?

When Tomcat is started up, this is what happens:

11-Mar-2004 11:24:39 org.apache.struts.util.MessageResourcesFactory
createFactory
SEVERE: MessageResourcesFactory.createFactory
java.lang.ClassNotFoundException:
org.apache.struts.util.PropertyMessageResourcesFactory
at java.net.URLClassLoader$1.run(URLClassLoader.java:199)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)
at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
at
org.apache.struts.util.RequestUtils.applicationClass(RequestUtils.java:207)
at
org.apache.struts.util.MessageResourcesFactory.createFactory(MessageResourcesFactory.java:192)
at
org.apache.struts.util.MessageResources.getMessageResources(MessageResources.java:576)
at
org.apache.struts.util.RequestUtils.(RequestUtils.java:134)
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)
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(LoadOnStartupInterceptor.java:130)
at
org.apache.tomcat.core.ContextManager.initContext(ContextManager.java:491)
at
org.apache.tomcat.core.ContextManager.init(ContextManager.java:453)
at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:195)
at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235)
11-Mar-2004 11:24:39 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)
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(LoadOnStartupInterceptor.java:130)
at
org.apache.tomcat.core.ContextManager.initContext(ContextManager.java:491)
at
org.apache.tomcat.core.ContextManager.init(ContextManager.java:453)
at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:195)
at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235)
Caused by: java.lang.NullPointerException
at
org.apache.struts.util.MessageResources.getMessageResources(MessageResources.java:577)
at
org.apache.struts.util.RequestUtils.(RequestUtils.java:134)
... 13 more
cannot load servlet name: action: null



Any clues?


-- 
+++ NEU bei GMX und erstmalig in Deutschland: TÜV-gepr