DL wrote:
On 13 Aug 2004 at 22:40, Jacek Laskowski wrote:
> > Tomcat 5.0.27 webapps appear to be sensitive to > > "white space" in Tomcat installation path.
> > > > Clue seen in Tomcat logs was "malformed URI .. Files/Apache".
> > Most Java application suffer from this, but I think they shouldn't if > they used URIs instead of File class. That's an idea I need to test out.
______________________________________________________________
I should add that when testing the earlier openejb installation (not the CVS build of openejb1) .. I always saw a failure on the final test page ..
http://localhost:8080/openejb/testejb.jsp
"Invoking a business method on the ejb object Failure"
This error cleared up when I installed Tomcat 5.0 to its new installation with no white space in path.
I have now removed the old webapps\openejb installation to avoid possible conflicts with new webapps\openejb-1.0-SNAPSHOT.
Hi DL,
At last, I'm able to respond! It lasted definitelly too long, didn't it? ;)
I tested different configurations and wasn't able to reproduce the problem. It seems I missed the first part of your message when you said that it applied to "the earlier openejb installation (not the CVS build)".
Did you have a chance to see if it works well with the latest sources?
Copy target/openejb-1.0-SNAPSHOT/lib/openejb-loader-1.0-SNAPSHOT.jar to $CATALINA_HOME/webapps/mywebapp/lib directory
whether this *SNAPSHOT.jar was meant to go into
%TOMCAT_HOME%\webapps\mywebapp\lib or %TOMCAT_HOME%\webapps\mywebapp\WEB_INF\lib
so to play safe I copied it into both created directories .. (which is the correct option??)
http://www.openejb.org/tomcat.html will provide you with the answers. To answer this question, the latter is correct - it's the standard directory for a webapp's libs like openejb-loader-*.jar.
C:\CVS-SRC\codehaus\openejb1\modules\webadmin\src\webapp\images
and (when previewed) the images are corrupted ..
* ejb.gif * favicon.ico * logo_ejb2.gif * logo_ejb.gif * pepper.gif
I had to then replace them with earlier images from openejb (not the CVS build).
Well, they are not in my local repo. Are you sure they're the one from CVS? Try out 'cvs status' underneath images dir.
I thought that the contents of target\openejb-1.0-SNAPSHOT should be placed externally to Tomcat .. as in the earlier OpenEJB installation.
The openejb.home has been set to c:\openejb-1.0-SNAPSHOT
Is this correct location?
Yes, assuming that c:\openejb-1.0-SNAPSHOT is a copy of target\openejb-1.0-SNAPSHOT. Please note, however, that during the build process openejb.home init-params in the WARs (underneath wars directory) point to target\openejb-1.0-SNAPSHOT nor the newest location. Change it before deploying the WARs onto Tomcat.
INFO: Installing web application at context path /mywebapp from URL file:C:\Tomcat5\webapps\mywebapp
OpenEJB init-params:
param-name: openejb.home, param-value: C:\openejb-1.0-SNAPSHOT
param-name: openejb.configuration, param-value: C:\openejb-1.0-
SNAPSHOT\conf\openejb.conf
OpenEJB 1.0-SNAPSHOT build: 20040811-1200
http://www.openejb.org
13-Aug-2004 23:44:38 org.apache.catalina.core.StandardHostDeployer install
INFO: Installing web application at context path /openejb-webadmin from URL file:C:\Tomcat5\webapps\openejb-webadmin
OpenEJB init-params:
param-name: openejb.home, param-value: c:\openejb-1.0-SNAPSHOT
param-name: openejb.configuration, param-value: C:\Tomcat5\webapps\openejb-webadmin\WEB-INF\conf\openejb.cfg
OpenEJB 1.0-SNAPSHOT build: 20040811-1200
http://www.openejb.org
It looks like the webapps were deployed properly. I don't have any idea why OpenEJB printed out a different value of openejb.home as it's clearly seen it's set to c:/openejb-1.0-SNAPSHOT. I really hope the problems are gone in the latest sources. Try them out!
Best, Jacek
