Register Now!
Login
Welcome to EDAS2
Sunday, September 05 2010 @ 01:57 PM EDT

 Forum Index > General > Community Forum New Topic Post Reply
 Running EDAS2 on Tomcat 6.0
 |  Printable Version
by dangandhi (offline) on April 13 2009 13:45 PM (Read 300 times)  
dangandhi

I was able to run EDAS2 on Tomcat 6.0 with Oracle 9i & JDK 1.5.Here are the changes required:

1)First of all i had to copy considerable amount of jars into the lib of my tomcat as the compiled version nor the source code in SourceForge do not cover all the libraries.Here is the list(some might not be required):

asm.jar
commons-digester.jar
el-api.jar
hsqldb.jar
all the libraries from Embedded JBOSS package (FYI i am not using Tomcat with EMbedded JBOSS,just using the libraries)
all the libraries from JBOSS SEAM package
jsf-api.jar
jsf-facelets.jar
jsf-impl.jar
jsp-api.jar
jstl-1.1.2.jar
ojdbc14.jar for oracle 9i & JDK 1.5
servlet-api.jar
wstx.jar


2)Changed Hibernate dialect to Oracle 9i in persistence.xml
3)Changed transaction type from “JTA” to “RESOURCE_LOCAL” in persistence.xml
4)Commented transaction manager lookup class property in persistence.xml
5)Added the following line in Components.xml
<transaction:entity-transaction entity-manager="#{entityManager}"/>
Note: Don’t forget to add appropriate name space for the above tag.
6)Defining datasources differs in Tomcat when compared to JBOSS,so you either have to mention JNDI datasource globally or at application level.I could not get the application working by mentioning the datasources at application context level,so i had to mention them at the server level.Dont forget to add the datasource to the web.xml and also change the datasource references in persistence.xml and component.xml to the JNDI ones.
7)The report paths in components.xml can be either absolute or relative.I used relative.Please make sure that you create the appropriate folders otherwise the reports feature throws an exception.
8)Get your own google key if you are using a different URL and the google key usage syntax has changed little bit,change is in bold:
<component name="gmap">
<property name="key">http://maps.google.com/maps?file=api&amp;v=2&amp;sensor=false&amp;key=ABQIAAAAKzQepJ4xyGVgCteyOFBqWxRuDbn5gfLKH-D3d6mkiv5tP6hBmRQV42HcD_woYUf_Ofo4Dtb908Pq1A</property>
</component>

Sensor value needs to be either false or true,please read google documentation to find out what sensor parameter is meant for.

Note:Most of the errors which you run into while deploying is mostly because of missing jars.So make sure you have all the jars required.


Forum Newbie
Newbie

Status: offline

Registered: 03/04/09
Posts: 2

Profile Email
  Quote
 
Content generated in: 0.04 seconds
New Topic Post Reply



 All times are EDT. The time is now 01:57 PM.
Normal Topic Normal Topic
Locked Topic Locked Topic
Sticky Topic Sticky Topic
New Post New Post
Sticky Topic W/ New Post Sticky Topic W/ New Post
Locked Topic W/ New Post Locked Topic W/ New Post
View Anonymous Posts 
Able to post 
HTML Allowed 
Censored Content 

Links

EDAS2 Development Tracker - Enter bugs and feature requests

User Functions





Don't have an account yet? Sign up as a New User
Lost your password?

Contacts

John Zastrow
Information Technology Services
Main: 703.963.1669
john.zastrow@tetratech.com

Vladi Royzman
Information Technology Services
Main: 703.385.6000 x333
vladislav.royzman@tetratech.com

Jeffrey S. White
Center for Ecological Sciences
Main: 410.356.8993 x112
jeffrey.white@tetratech.com