You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Xin Li <xl...@seasllc.com> on 2001/12/06 21:52:58 UTC

help is needed --- running enhydra application under tomcat 4

Hey, all,

I'm trying to make my enhydra application (Simple) running under tomcat 4.
Here is what I did so far. Please let me know what I have been missing,
since it doesn't work.

1) created a directory structure named Simple/WEB-INF under webapps/
2) created three directories (classes, lib and output) under WEB-INF
3) copied the classes directory from enhydra application to this "classes"
folder
4) copied enhydra.jar and Simple.jar over to the "lib" directory
5) copied enhydra app configure file (Simple.conf) under output/conf/
6) edited WEB-INF/web.xml like this (bear me to write so much in detail):
	<web-app>
    		<servlet>
        		<servlet-name>simpleApp</servlet-name>
        		<servlet-class>org.enhydra.Servlet</servlet-class>
        		<init-param>
            		<param-name>ConfFile</param-name>

<param-value>/home/webapp/xindo/tc4/webapps/Simple/WEB-INF/output/conf/Simpl
e.conf</param-value>
        		</init-param>
    		</servlet>

    		<!-- The mapping for the default servlet -->
    		<servlet-mapping>
		      <servlet-name>simpleApp</servlet-name>
		      <url-pattern>/Simple/*</url-pattern>
    		</servlet-mapping>
	</web-app>

7) add "<Context path="/Simple" docBase="Simple" debug="0"
reloadable="true"/>" into server.xml
8) took out org.apache.tomcat classes from enhydra.jar

Thanks in advance!

Xin


--
To unsubscribe:   <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>


RE: help is needed --- running enhydra application under tomcat 4

Posted by Xin Li <xl...@seasllc.com>.
And in my case, the url that I use is http://localhost:8080/Simple/Simple

Xin

-----Original Message-----
From: Xin Li [mailto:xli@seasllc.com]
Sent: Thursday, December 06, 2001 3:53 PM
To: Tomcat Users List
Cc: enhydra@enhydra.org
Subject: help is needed --- running enhydra application under tomcat 4
Importance: High


Hey, all,

I'm trying to make my enhydra application (Simple) running under tomcat 4.
Here is what I did so far. Please let me know what I have been missing,
since it doesn't work.

1) created a directory structure named Simple/WEB-INF under webapps/
2) created three directories (classes, lib and output) under WEB-INF
3) copied the classes directory from enhydra application to this "classes"
folder
4) copied enhydra.jar and Simple.jar over to the "lib" directory
5) copied enhydra app configure file (Simple.conf) under output/conf/
6) edited WEB-INF/web.xml like this (bear me to write so much in detail):
	<web-app>
    		<servlet>
        		<servlet-name>simpleApp</servlet-name>
        		<servlet-class>org.enhydra.Servlet</servlet-class>
        		<init-param>
            		<param-name>ConfFile</param-name>

<param-value>/home/webapp/xindo/tc4/webapps/Simple/WEB-INF/output/conf/Simpl
e.conf</param-value>
        		</init-param>
    		</servlet>

    		<!-- The mapping for the default servlet -->
    		<servlet-mapping>
		      <servlet-name>simpleApp</servlet-name>
		      <url-pattern>/Simple/*</url-pattern>
    		</servlet-mapping>
	</web-app>

7) add "<Context path="/Simple" docBase="Simple" debug="0"
reloadable="true"/>" into server.xml
8) took out org.apache.tomcat classes from enhydra.jar

Thanks in advance!

Xin


--
To unsubscribe:   <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>


--
To unsubscribe:   <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>


RE: help is needed --- running enhydra application under tomcat 4

Posted by Xin Li <xl...@seasllc.com>.
Oh, forgot to mention that I also added the patch to
HttpPresentationServlet.java according to the previous message sent by Dave
Li.

381        MultiClassLoader appClassLoader;
382        if (lbsContext != null)
383            appClassLoader = lbsContext.getClassLoader();
384        else {
385	    // Not using MultiServer, so must create class loader from scratch
386            appClassLoader = new MultiClassLoader(logChannel);
387            appClassLoader.setParent(this.getClass().getClassLoader());
388        }


-----Original Message-----
From: Xin Li [mailto:xli@seasllc.com]
Sent: Thursday, December 06, 2001 3:53 PM
To: Tomcat Users List
Cc: enhydra@enhydra.org
Subject: help is needed --- running enhydra application under tomcat 4
Importance: High


Hey, all,

I'm trying to make my enhydra application (Simple) running under tomcat 4.
Here is what I did so far. Please let me know what I have been missing,
since it doesn't work.

1) created a directory structure named Simple/WEB-INF under webapps/
2) created three directories (classes, lib and output) under WEB-INF
3) copied the classes directory from enhydra application to this "classes"
folder
4) copied enhydra.jar and Simple.jar over to the "lib" directory
5) copied enhydra app configure file (Simple.conf) under output/conf/
6) edited WEB-INF/web.xml like this (bear me to write so much in detail):
	<web-app>
    		<servlet>
        		<servlet-name>simpleApp</servlet-name>
        		<servlet-class>org.enhydra.Servlet</servlet-class>
        		<init-param>
            		<param-name>ConfFile</param-name>

<param-value>/home/webapp/xindo/tc4/webapps/Simple/WEB-INF/output/conf/Simpl
e.conf</param-value>
        		</init-param>
    		</servlet>

    		<!-- The mapping for the default servlet -->
    		<servlet-mapping>
		      <servlet-name>simpleApp</servlet-name>
		      <url-pattern>/Simple/*</url-pattern>
    		</servlet-mapping>
	</web-app>

7) add "<Context path="/Simple" docBase="Simple" debug="0"
reloadable="true"/>" into server.xml
8) took out org.apache.tomcat classes from enhydra.jar

Thanks in advance!

Xin


--
To unsubscribe:   <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>


--
To unsubscribe:   <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>