Hi,
i create the war and the web.xml with the WOLips plugin. I've attached the
web.xml at the bottom.
Stefan
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
"http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
<!-- This web.xml file by itself will allow you to run the corresponding
WebObjects application in a Servlet container. If you would like to
merge the WebObjects application with your existing JSP/Servlet
application, you have to merge this web.xml with your existing web.xml.
NOTE: This file is normally included as the template file
'web.xml.template'.
During the build process, the placeholders for WOROOT, LOCALROOT,
WOAINSTALLROOT,
WOAppMode, WOClassPath, WOApplicationClass and WOtaglib will be replaced
with the appropriate values. Other parts of the template file may be
customized as required.
NOTE: WEBINFROOT is added to the WOClassPath at build time, but the
replacement
value is replaced at runtime to be the path to the WEB-INF directory.
-->
<web-app>
<!-- Indicates the root where WebObjects frameworks are installed. In Mac OS
X,
for example, WO frameworks are located in the
"/System/Library/Frameworks"
directory; keeping in tradition, WOROOT is set to "/System". On Windows,
it could be "c:\Apple", on Solaris, it could be "/opt/Apple".
If "-DWOROOT=/path/to/somewhere" is defined (in the container startup
script,
for example), the value indicated here is ignored. -->
<context-param>
<param-name>WOROOT</param-name>
<param-value>D:/WO52</param-value>
</context-param>
<!-- Indicates the root where local frameworks are installed. In Mac OS X,
for example, these frameworks are located in the "/Library/Frameworks"
directory; keeping in tradition, LOCALROOT is set to "/". On Windows,
it could be "c:\Apple\Local", on Solaris, it could be "/opt/Apple/Local".
If "-DLOCALROOT=/path/to/somewhere" is defined (in the container startup
script,
for example), the value indicated here is ignored. -->
<context-param>
<param-name>LOCALROOT</param-name>
<param-value>D:/WO52/Local</param-value>
</context-param>
<!-- Indicates the root where WebObjects applications are installed. In Mac
OS X
deployment, for example, WO applications are usually deployed in the
"/Library/WebObjects/Applications" directory and WOAINSTALLROOT is set to
"/Library/WebObjects/Applications". If
"-DWOAINSTALLROOT=/path/to/somewhere"
is defined (in the container startup script, for example), the value
indicated here is ignored. -->
<context-param>
<param-name>WOAINSTALLROOT</param-name>
<param-value>D:/WO52/Local\Library/WebObjects/Applications</param-value>
</context-param>
<!-- Indicates if application is development or deployment mode. In
development
mode, images are vended by the application directly from frameworks. In
deployment mode, images are vended by the webserver. -->
<context-param>
<param-name>WOAppMode</param-name>
<param-value>Development</param-value>
</context-param>
<!-- This parameter points to the WebObjects directories required for
this application. If a directory contains resources, they will be
picked up; as well, if a directory contains JARs, they will be
picked up. WOROOT, LOCALROOT or WOAINSTALLROOT placeholders here
will be replaced at runtime with the appropriate values (Java System
Properties if defined, the context-param values located above
otherwise). WEBINFROOT placeholders will be replaced at runtime
with the full path to the WEB-INF directory. -->
<context-param>
<param-name>WOClasspath</param-name>
<param-value>
WEBINFROOT\Resources\Java\
WEBINFROOT\Resources\Java\testingalt.jar
WEBINFROOT/TestingAlt.woa/
WEBINFROOT/lib
WEBINFROOT//Library/Frameworks/JavaEOAccess.framework/Resources/Java/javaeoaccess.jar
WEBINFROOT//Library/Frameworks/JavaEOControl.framework/Resources/Java/javaeocontrol.jar
WEBINFROOT//Library/Frameworks/JavaFoundation.framework/Resources/Java/javafoundation.jar
WEBINFROOT//Library/Frameworks/JavaJDBCAdaptor.framework/Resources/Java/javajdbcadaptor.jar
WEBINFROOT//Library/Frameworks/JavaWebObjects.framework/Resources/Java/javawebobjects.jar
WEBINFROOT//Library/Frameworks/JavaXML.framework/Resources/Java/javaxml.jar
</param-value>
</context-param>
<!-- Class name of the WOApplication subclass that defines the
WebObjects application. -->
<context-param>
<param-name>WOApplicationClass</param-name>
<param-value>your.app.Application</param-value>
</context-param>
<!-- The WebObjects Servlet that interfaces between the Servlet container
world and the WebObjects world. -->
<servlet>
<servlet-name>WOServletAdaptor</servlet-name>
<servlet-class>com.webobjects.jspservlet.WOServletAdaptor</servlet-class>
<load-on-startup>5</load-on-startup>
</servlet>
<!-- URLs starting with 'WebObjects' use the WebObjects Servlet adaptor. -->
<servlet-mapping>
<servlet-name>WOServletAdaptor</servlet-name>
<url-pattern>/WebObjects/*</url-pattern>
</servlet-mapping>
<!-- Session timeout in minutes. This is for both JSP/Servlet and
WOSessions. Note this overrides the WebObjects session timeout
settings. Uncomment to use. -->
<!--
<session-config>
<session-timeout>30</session-timeout>
</session-config>
-->
<!-- This tag library allows the use of WOComponents within JSPs. -->
<taglib>
<taglib-uri>/WOtaglib</taglib-uri>
<taglib-location>/WEB-INF/tlds//WEB-INF/tlds/WOtaglib_1_0.tld</taglib-location>
</taglib>
<context-param>
<param-name>WEBINFROOT</param-name>
<param-value>%WEBINFROOT%</param-value>
</context-param>
</web-app>
-----Ursprüngliche Nachricht-----
Von: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
m]Im Auftrag von David Avendasora
Gesendet: Dienstag, 19. August 2008 13:33
An: [EMAIL PROTECTED]; Rösner, Stefan
Cc: [email protected]
Betreff: Re: Deployment /WinXP/5.2/Tomcat/
I haven't deployed to a WAR with 5.2, but I am with 5.3.
How are you creating the WAR file? Are you embedding all your
frameworks in the WAR as well? What does the web.xml file look like?
Dave
On Aug 19, 2008, at 12:45 AM, Rösner, Stefan wrote:
> Hi there!
>
> i've problems with the deployment.
>
> OS: Windows XP
> WO: 5.2
> Tool: Eclipse incl. WOLips Plugin
>
> I want to deploy as war file to a tomcat, but every time i get the
> following error message:
>
> java.lang.RuntimeException: Can't find application bundle. You can
> either define WOROOT, LOCALROOT and WOAINSTALLROOT as Java system
> properties (e.g. in your application server's launch script as
> command line arguments) or in the application Deployment Descriptor
> file (web.xml).
> at
> com
> .webobjects
> .jspservlet.WOServletAdaptor._applicationInit(WOServletAdaptor.java:
> 280)
> at
> com
> .webobjects
> .jspservlet.WOServletAdaptor.initStatics(WOServletAdaptor.java:70)
> at
> com
> .webobjects.jspservlet.WOServletAdaptor.init(WOServletAdaptor.java:
> 532)
> at javax.servlet.GenericServlet.init(GenericServlet.java:211)
> at
> org
> .apache
> .catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1053)
> at
> org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:
> 886)
> at
> org
> .apache
> .catalina.core.StandardContext.loadOnStartup(StandardContext.java:
> 3817)
> at
> org.apache.catalina.core.StandardContext.start(StandardContext.java:
> 4079)
> at
> org
> .apache
> .catalina.core.ContainerBase.addChildInternal(ContainerBase.java:755)
> at
> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:
> 739)
> at
> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
> at
> org
> .apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:
> 886)
> at
> org
> .apache
> .catalina.startup.HostConfig.deployDirectories(HostConfig.java:849)
> at
> org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:474)
> at
> org.apache.catalina.startup.HostConfig.start(HostConfig.java:1079)
> at
> org
> .apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:
> 310)
> at
> org
> .apache
> .catalina
> .util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
> at
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1011)
> at
> org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
> at
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1003)
> at
> org.apache.catalina.core.StandardEngine.start(StandardEngine.java:437)
> at
> org.apache.catalina.core.StandardService.start(StandardService.java:
> 450)
> at
> org.apache.catalina.core.StandardServer.start(StandardServer.java:
> 2010)
> at org.apache.catalina.startup.Catalina.start(Catalina.java:
> 537)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun
> .reflect
> .NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at
> sun
> .reflect
> .DelegatingMethodAccessorImpl
> .invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:585)
> at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:
> 271)
> at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:
> 409)
>
> So i've already set the java system properties and the enviroment
> variables. Do any have a suggestion?
>
> Mit freundlichen Grüßen / Kind Regards
>
> Stefan Rösner
> Application Engineer
> Solutions
>
> PRO DV Software AG
> Hauert 6
> 44227 Dortmund
> http://www.prodv.de
>
> Telefon: +49 231 9792-342
> Fax: +49 231 9792-200
> E-Mail: mailto:[EMAIL PROTECTED]
>
> Amtsgericht Dortmund, HRB 12956
> Vorstand: Dipl.-Ing. Klaus Bullmann (Sprecher), Dipl.-Inform. Uwe
> Osterkamp
> Vorsitzender des Aufsichtsrates: Prof. Dr.-Ing. Rolf Windmöller
>
>
> Der Inhalt dieser E-Mail ist vertraulich und ausschließlich für den
> bezeichneten Adressaten bestimmt. Wenn Sie nicht der vorgesehene
> Adressat dieser E-Mail oder dessen Vertreter sein sollten, so
> beachten Sie bitte, dass jede Form der Kenntnisnahme,
> Veröffentlichung, Vervielfältigung oder Weitergabe des Inhalts
> dieser E-Mail unzulässig ist. Wir bitten Sie, sich in diesem Fall
> mit dem Absender der E-Mail in Verbindung zu setzen. Der Inhalt
> dieser E-Mail ist nur rechtsverbindlich, wenn er unsererseits durch
> einen Brief entsprechend bestätigt wird.
>
>
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Webobjects-deploy mailing list (Webobjects-
> [EMAIL PROTECTED])
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/webobjects-deploy/webobjects%40avendasora.com
>
> This email sent to [EMAIL PROTECTED]
>
>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-deploy mailing list ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-deploy/stefan.roesner%40prodv.de
This email sent to [EMAIL PROTECTED]
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-deploy mailing list ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-deploy/archive%40mail-archive.com
This email sent to [EMAIL PROTECTED]