| 
| develoment and debugging on tomcat? [message #75913] | Wed, 01 November 2006 06:05  |  | 
| Eclipse User  |  |  |  |  | Originally posted by: ridcully560.yahoo.com 
 Hello,
 
 is there a chance to develop and debug my application with tomcat in
 eclipse? I'm afraid that I'm running into database-access problems with
 jetty at the moment, and it somehow feels like double work to solve
 them, as jetty is "just" my development-server.
 
 Johannes
 |  |  |  | 
|  | 
| 
| Re: develoment and debugging on tomcat? [message #76018 is a reply to message #75947] | Wed, 01 November 2006 11:10  |  | 
| Eclipse User  |  |  |  |  | Originally posted by: ridcully560.yahoo.com 
 Hello Simon
 
 > You can of course manually deploy and then attach a debugger to Tomcat, but
 > there's no integrated development experience currently available. A number
 > of groups have expressed interest in doing work in that area so perhaps the
 > situation will change in the not too distant future. We'll see.
 
 Ok, but by now I think I will stick to the jetty-way. Seems to me that
 it's quite faster to check some changes that way, then deploying the
 bundles to the tomcat and restart them.
 
 > re:database access problems
 > It sounds like you're trying to uses the webapps java:comp/env JNDI
 > settings.
 > How are you accessing them (in Tomcat) and can you see the values in your
 > bundles or are you injecting some other way?
 
 The application before the redesign uses hibernate and defines the data
 like a context.xml:
 
 >   <Resource name="jdbc/mainapp"
 >     auth="Container"
 >     type="javax.sql.DataSource"
 >     maxActive="20"
 >     maxIdle="2"
 >     maxWait="5000"
 >     username=""
 >     password=""
 >     driverClassName="com.mysql.jdbc.Driver"
 >     url="jdbc:mysql://localhost:3306/maindata?autoReconnect=true" />
 
 I tried to put this definition into the context.xml of the tomcat I'm
 running my bundles on, but I'm unsure what the exact data for
 displayName and path would be.
 
 > <Context displayName="" path="">
 
 The other thing I tried, was to set the data in the hibernate.cfg.xml,
 but I'm unrure if this will work. I found a lot of hibernate-examples
 working this way. Somewhere during the startup of the
 database-connestion an exceptiion it thrown, and I'm still trying to
 figure out what it's about.
 
 
 > The Apache DS guys were doing something in this area -- you might take a
 
 I'll try. I'm not really into databases, but maybe I'll find a hint there.
 
 Johannes
 |  |  |  | 
Powered by 
FUDForum. Page generated in 0.04045 seconds