Note: codehaus posting limit is 30K so this posting avoids rich text format.

______________________________________________________________

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.

______________________________________________________________

    > > 
    > > Is this the expected output ????   
    > > Looks like cryptic "OpenEJB" printed in reverse ... "BJEnepO". 
    > 
    > What instructions did you follow? It looks like the output from the 
    > reverse method of the bean. Perfectly correct.
    > 
______________________________________________________________

Followed your earlier setup instructions here ..

http://news.gmane.org/find- 
root.php?message_id=%3c40E97EA8.9010400%5f%5f4035.05519866503%241089 
044312%24gmane%24org%40codehaus.org%3e 

However, not sure from instructions ... as below .. 


    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??) 
_____________________________________________________________

    > 
    > The images are in the WebAdmin webapp. Do you say that they're 
    corrupted 
    > or not displayed at all?

_____________________________________________________________

Initially when tested the images showed as corrupted in browser .. blurred ..

When my CVS were downloaded and built in Maven they created this directory

*   CVS
*   etc
*   modules
*   target
*   .cvsignore
*   maven.xml
*   project.properties

I placed the content of target into c:\openejb-1.0-SNAPSHOT

this holds

*   beans
*   bin
*   conf
*   lib
*   logs


the only images sub-directory is here (CVS installation and build directory).

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).

_____________________________________________________________
    > 
    > > (d) Where is openejb.base set in configuration files?
    > 
    ....
    > 
    > Wait, how do you start Tomcat? Where is the executable? Could you show 
    > us the Tomcat startup logs?
    > 
_____________________________________________________________

Your question .. how do I start Tomcat?

there is a system tray icon .. MonitorTomcat 
if I right click on that I can start/stop service manually.
I can also view and change configuration (paths).

Here are latest Tomcat configuration settings ..

Java Virtual Machine
C:\j2sdk1.4.2_04\jre\bin\client\jvm.dll

Java Classpath
C:\Tomcat5\bin\bootstrap.jar

Java Options
-Dcatalina.home=C:\Tomcat5
-Djava.endorsed.dirs=C:\Tomcat5\common\endorsed
-Djava.io.tmpdir=C:\Tomcat5


and %TOMCAT_HOME% = c:\tomcat5\

executable in %TOMCAT_HOME%\bin\

I attach below a snapshot of Tomcat logs (must keep it short because of 30K posting 
limit).

______________________________________________________________

    > 
    > Hmmm, did you move the target/openejb-1.0-SNAPSHOT directory to c: 
    > drive? If so, you need to update openejb.home in web.xml of WebAdmin.
    > 
______________________________________________________________

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?
______________________________________________________________


TOMCAT LOGS (no errors in current integration with c:\Tomcat5).

localhost_log

2004-08-13 23:40:32 
StandardContext[/balancer]org.apache.webapp.balancer.BalancerFilter: init(): 
ruleChain: 
[org.apache.webapp.balancer.RuleChain: 
[org.apache.webapp.balancer.rules.URLStringMatchRule: Target string: News / 
Redirect URL: 
http://www.cnn.com], [org.apache.webapp.balancer.rules.RequestParameterRule: 
Target param name: paramName / Target param value: 
paramValue / Redirect URL: http://www.yahoo.com], 
[org.apache.webapp.balancer.rules.AcceptEverythingRule: Redirect URL: 
http://jakarta.apache.org]]
2004-08-13 23:40:33 StandardContext[/jsp-examples]ContextListener: 
contextInitialized()
2004-08-13 23:40:33 StandardContext[/jsp-examples]SessionListener: 
contextInitialized()
2004-08-13 23:40:50 StandardContext[/servlets-examples]ContextListener: 
contextInitialized()
2004-08-13 23:40:50 StandardContext[/servlets-examples]SessionListener: 
contextInitialized()
2004-08-13 23:44:29 
StandardContext[/balancer]org.apache.webapp.balancer.BalancerFilter: init(): 
ruleChain: 
[org.apache.webapp.balancer.RuleChain: 
[org.apache.webapp.balancer.rules.URLStringMatchRule: Target string: News / 
Redirect URL: 
http://www.cnn.com], [org.apache.webapp.balancer.rules.RequestParameterRule: 
Target param name: paramName / Target param value: 
paramValue / Redirect URL: http://www.yahoo.com], 
[org.apache.webapp.balancer.rules.AcceptEverythingRule: Redirect URL: 
http://jakarta.apache.org]]
2004-08-13 23:44:30 StandardContext[/jsp-examples]ContextListener: 
contextInitialized()
2004-08-13 23:44:30 StandardContext[/jsp-examples]SessionListener: 
contextInitialized()
2004-08-13 23:44:46 StandardContext[/servlets-examples]ContextListener: 
contextInitialized()
2004-08-13 23:44:46 StandardContext[/servlets-examples]SessionListener: 
contextInitialized()
2004-08-13 23:44:53 StandardContext[/jsp-examples]SessionListener: 
sessionCreated('309ED9E38A46446A4BF833868C662C00')
2004-08-13 23:45:01 StandardContext[/manager]HTMLManager: init: Associated 
with Deployer 'localhost'
2004-08-13 23:45:01 StandardContext[/manager]HTMLManager: init: Global 
resources are available
2004-08-13 23:45:01 StandardContext[/manager]HTMLManager: list: Listing 
contexts for virtual host 'localhost'

__________________________________________________________________

stdout.log

13-Aug-2004 23:44:13 org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
13-Aug-2004 23:44:14 org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 6059 ms
13-Aug-2004 23:44:15 org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
13-Aug-2004 23:44:15 org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.0.27
13-Aug-2004 23:44:15 org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
13-Aug-2004 23:44:15 org.apache.catalina.core.StandardHost getDeployer
INFO: Create Host deployer for direct deployment ( non-jmx ) 
13-Aug-2004 23:44:15 org.apache.catalina.core.StandardHostDeployer install
INFO: Processing Context configuration file URL 
file:C:\Tomcat5\conf\Catalina\localhost\admin.xml
13-Aug-2004 23:44:21 org.apache.struts.util.PropertyMessageResources <init>
INFO: Initializing, config='org.apache.struts.util.LocalStrings', returnNull=true
13-Aug-2004 23:44:21 org.apache.struts.util.PropertyMessageResources <init>
INFO: Initializing, config='org.apache.struts.action.ActionResources', returnNull=true
13-Aug-2004 23:44:22 org.apache.struts.util.PropertyMessageResources <init>
INFO: Initializing, config='org.apache.webapp.admin.ApplicationResources', 
returnNull=true
13-Aug-2004 23:44:29 org.apache.catalina.core.StandardHostDeployer install
INFO: Processing Context configuration file URL 
file:C:\Tomcat5\conf\Catalina\localhost\balancer.xml
13-Aug-2004 23:44:29 org.apache.catalina.core.StandardHostDeployer install
INFO: Processing Context configuration file URL 
file:C:\Tomcat5\conf\Catalina\localhost\manager.xml
13-Aug-2004 23:44:30 org.apache.catalina.core.StandardHostDeployer install
INFO: Installing web application at context path /jsp-examples from URL 
file:C:\Tomcat5\webapps\jsp-examples
13-Aug-2004 23:44:30 org.apache.catalina.core.StandardHostDeployer install
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
13-Aug-2004 23:44:45 org.apache.catalina.core.StandardHostDeployer install
INFO: Installing web application at context path  from URL 
file:C:\Tomcat5\webapps\ROOT
13-Aug-2004 23:44:45 org.apache.catalina.core.StandardHostDeployer install
INFO: Installing web application at context path /servlets-examples from URL 
file:C:\Tomcat5\webapps\servlets-examples
13-Aug-2004 23:44:46 org.apache.catalina.core.StandardHostDeployer install
INFO: Installing web application at context path /tomcat-docs from URL 
file:C:\Tomcat5\webapps\tomcat-docs
13-Aug-2004 23:44:46 org.apache.catalina.core.StandardHostDeployer install
INFO: Installing web application at context path /webdav from URL 
file:C:\Tomcat5\webapps\webdav
13-Aug-2004 23:44:46 org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
13-Aug-2004 23:44:48 org.apache.jk.common.ChannelSocket init
INFO: JK2: ajp13 listening on /0.0.0.0:8009
13-Aug-2004 23:44:48 org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/110  config=C:\Tomcat5\conf\jk2.properties
13-Aug-2004 23:44:48 org.apache.catalina.startup.Catalina start
INFO: Server startup in 33978 ms

_______________________________________________________________

DL

Reply via email to