• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Tomcat build & deployment idiot's guide needed
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Tomcat build & deployment idiot's guide needed


  • Subject: Re: Tomcat build & deployment idiot's guide needed
  • From: Javier Solórzano <email@hidden>
  • Date: Mon, 1 Aug 2005 15:25:41 +0200

Success:

Here's my idiot's guide to deploy a 5.3 WO app under tomcat (tested with 4.1.30)

1. If not included yet, make sure you add the JavaWOJSPServet.framwork to your project
2. Get your 5.3 license number. You can get it from /System/Local/ Frameworks/JavaWebObjects.framework/Resouces/License.key
3. Go to the build window and select Deployment target.
4. Edit the active target and select Settings / Expert View:
5. As per Jim's message do:
5a. At the XCode project window, change the active build configuration to deployment, for all three targets, your app, application server and web server, change the following build settings to
DEPLOYMENT_LOCATION = “NO”


(if you don’t do this, the deployment build process will fail due to the script trying to cd into a symbolic link pointing back to itself.)

5b. In deployment build configuration for your app, change INSTALL_PATH_FOR_STYLE to,

INSTALL_PATH_FOR_STYLE = “$(TARGET_BUILD_DIR)”

5c. Finally, add the following build settings to the deployment build configuration of your app.

SERVLET_COPY_JARS = YES
SERVLET_DEPLOY_LICENSE = [Your deployment licence]
SERVLET_SINGLE_DIR_DEPLOY = YES
SERVLET_SINGLE_DIR_DEPLOY_LICENSE = [Your deployment licence]
SERVLET_TRUE_WAR = YES
SERVLET_WEBAPPS_DIR = /opt/tomcat/webapps    (or whatever you want)

6. If you are going to access a DB, modify we.template.xml before you build the project.

<!--
<resource-ref>
<description>The data source to be used by EOF. If there are multiple data sources,
then the definition below must be used to configure which JDBC URL (Model) should
use which data source. If EOF should use a JDBC driver directly, this section must be commented out</description>
<res-ref-name>jdbc/DefaultDataSource</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
-->


in web.xml.template in your project under Resources/Servlet Resources/ WEB-INF

7. now you are ready to drop your project under your webapps folder. Make sure you've got something like
<Host name="localhost" debug="0" appBase="webapps" unpackWARs="true" autoDeploy="true" liveDeploy="true">
in your server.xml file.


Your app should now be available. You can access it with the url http://localhost/yourapp/WebObjects


_______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Prev by Date: Re: How To Use A Type Safe Enum As A Custom Value In EOF (was Re: (EOM) entity logic)
  • Next by Date: Fetch specification and raw SQL
  • Previous by thread: Re: How To Use A Type Safe Enum As A Custom Value In EOF (was Re: (EOM) entity logic)
  • Next by thread: Re: Tomcat build & deployment idiot's guide needed
  • Index(es):
    • Date
    • Thread