You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@turbine.apache.org by brian <br...@westpole.com> on 2004/05/18 16:50:02 UTC
migrating from tomcat(tdk-2.3) to WSexpressv5.1
Hello,
I have my application successfully running on tomcat(tdk-2.3) as
a war file and I am attempting to migrate to WSexpress5.1. I am able to
load the application successfully with no errors but I cannot access the
application using the same url as I did under tomcat. Here is a copy of
my web.xml file:
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
"http://java.sun.com/j2ee/dtds/web-app_2.2.dtd">
<web-app>
<servlet>
<servlet-name>glostage</servlet-name>
<servlet-class>org.apache.turbine.Turbine</servlet-class>
<init-param>
<param-name>applicationRoot</param-name>
<param-value>webContext</param-value>
</init-param>
<init-param>
<param-name>properties</param-name>
<param-value>/WEB-INF/conf/TurbineResources.properties
</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
<security-constraint>
<web-resource-collection>
<web-resource-name>templates</web-resource-name>
<url-pattern>/templates/*</url-pattern>
</web-resource-collection>
<web-resource-collection>
<web-resource-name>logs</web-resource-name>
<url-pattern>/logs/*</url-pattern>
</web-resource-collection>
<auth-constraint>
<role-name>admin</role-name>
</auth-constraint>
</security-constraint>
<login-config>
<auth-method>BASIC</auth-method>
<realm-name>Templates</realm-name>
</login-config>
</web-app>
thank you,
Brian
Re: migrating from tomcat(tdk-2.3) to WSexpressv5.1
Posted by "Henning P. Schmiedehausen" <hp...@intermeta.de>.
"brian" <br...@westpole.com> writes:
> <param-value>/WEB-INF/conf/TurbineResources.properties
Try removing this: ^
!
Some containers seem to react sensitive to pathes in their
webapplications starting with "/".
Regards
Henning
--
Dipl.-Inf. (Univ.) Henning P. Schmiedehausen INTERMETA GmbH
hps@intermeta.de +49 9131 50 654 0 http://www.intermeta.de/
RedHat Certified Engineer -- Jakarta Turbine Development -- hero for hire
Linux, Java, perl, Solaris -- Consulting, Training, Development
"Fighting for one's political stand is an honourable action, but re-
fusing to acknowledge that there might be weaknesses in one's
position - in order to identify them so that they can be remedied -
is a large enough problem with the Open Source movement that it
deserves to be on this list of the top five problems."
-- Michelle Levesque, "Fundamental Issues with
Open Source Software Development"
---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org
RE: migrating from tomcat(tdk-2.3) to WSexpressv5.1
Posted by David Demner <tu...@demner.com>.
Hi Brian,
I've never tried WSexpress, but I tried both Jetty and Resin. I didn't have
any problem with the WAR file, but I did have to be careful about jar file
dependencies. I also had some problems with the Log4j.properties so the
logs weren't where I expected. So maybe try looking around for other places
errors might show up?
Good luck,
David
-----Original Message-----
From: brian [mailto:brian@westpole.com]
Sent: Tuesday May 18, 2004 7:50 AM
To: turbine-user@jakarta.apache.org
Subject: migrating from tomcat(tdk-2.3) to WSexpressv5.1
Hello,
I have my application successfully running on tomcat(tdk-2.3) as
a war file and I am attempting to migrate to WSexpress5.1. I am able to
load the application successfully with no errors but I cannot access the
application using the same url as I did under tomcat. Here is a copy of
my web.xml file:
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
"http://java.sun.com/j2ee/dtds/web-app_2.2.dtd">
<web-app>
<servlet>
<servlet-name>glostage</servlet-name>
<servlet-class>org.apache.turbine.Turbine</servlet-class>
<init-param>
<param-name>applicationRoot</param-name>
<param-value>webContext</param-value>
</init-param>
<init-param>
<param-name>properties</param-name>
<param-value>/WEB-INF/conf/TurbineResources.properties
</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
<security-constraint>
<web-resource-collection>
<web-resource-name>templates</web-resource-name>
<url-pattern>/templates/*</url-pattern>
</web-resource-collection>
<web-resource-collection>
<web-resource-name>logs</web-resource-name>
<url-pattern>/logs/*</url-pattern>
</web-resource-collection>
<auth-constraint>
<role-name>admin</role-name>
</auth-constraint>
</security-constraint>
<login-config>
<auth-method>BASIC</auth-method>
<realm-name>Templates</realm-name>
</login-config>
</web-app>
thank you,
Brian
---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org