What is a good dev-enviroment for servlet/tomcat?

2003-10-08 Thread joe udder
Hello.

I was thinking about methods to improve my so called "development 
enviroment", and I am curious to learn how others do when they work.

Until now I use a handcrafted "build.xml" which by using ant builds the 
jars, classes, creates WEB-INF and all that stuff. Later I use the normal 
catalina-scripts to launch and shutdown tomcat4.
While it works, it is a slow and ineffective process I guess.

I was looking at NetBeans, which seem to have very good support for Tomcat4. 
I did have some problems with the IDE as it wants things structured one way 
and I want it another, but I think that is just me being weird ;-)
So far it seems good though, but I am still curious on what kind of 
developmentmethods other people have.

Thanks.

.ju

_
STOP MORE SPAM with the new MSN 8 and get 2 months FREE* 
http://join.msn.com/?page=features/junkmail

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


What is a good dev-enviroment for servlet/tomcat?

2003-10-08 Thread joe udder
Hello.

I am thinking of how I can improve my "development enviroment" when doing my 
webapps.
Until now, I've used a handcrafted "build.xml" to make my webapp, and then 
the usual

_
Tired of spam? Get advanced junk mail protection with MSN 8. 
http://join.msn.com/?page=features/junkmail

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: find out why the loading of the driver fails

2003-01-27 Thread joe udder
Thanks for your suggestions.

Amazingly enough it seem to "work" if I put the driver where you suggested.
I got another error, but that seem to be Postgresql-related.


I suppose the reason why it is not loaded from the WEB-INF/lib-directory is 
because the driver is defined in "server.xml" as a resource, and that the 
container and webapp is somehow seperated.

And I might have screwed up the CLASSPATH when starting tomcat, so it can't 
find the driver frm there either.

back to the drawingboard.


thanks.
//ju

---  p niemandt wrote:

1. I would put the db driver jar under $TOMCAT/common/lib
This directory is shared by all your web applications: any libraries
under this directory should be visible to your app.

2. Set your debug to 100: There are a few places you can / should do
this (for developing / debugging): Basically, any place you see a debug
parameter / attribute: Make it 100: You should get a lot of debugging
information, including which jar files have been picked up and deployed.

hth





_
Help STOP SPAM with the new MSN 8 and get 2 months FREE*  
http://join.msn.com/?page=features/junkmail


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 



find out why the loading of the driver fails

2003-01-26 Thread joe udder
Hello.

Does anyone have any good hints on how to tweak tomcat to output more 
information about errors?

When I am trying to load a JDBC-driver it fails, but it doesn't give me a 
clue on why it fails.


I checked the web for similar errors, so I started by adding the .JAR-file 
to the classpath, and put a copy of it in "WEB-INF/lib".
I also doublechecked that the dbengine is up and running, and that the 
user/password/ip is OK.

Finally I set the "debug"-attribute in the Server-tag to "1", but it didn't 
give me any more information. :-/


The error I got is:
---
org.apache.jasper.JasperException:
SQLException: Cannot load JDBC driver class 'org.postgresql.Driver'
at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:248)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
...
---


Any ideas are welcome.

TIA

// ju



_
Help STOP SPAM with the new MSN 8 and get 2 months FREE*  
http://join.msn.com/?page=features/junkmail


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 



Some advice on getting webapp-root and reading/writing

2003-01-19 Thread joe udder
Hello.

Does anyone have some advice to give me on the following ideas?


My first problem is to find the correct path to my files.
Is there a method to get the "document-root" of my webapp, so I only need to 
append "Images/jpg" and "WEB-INF/settings" to the path?

I suppose using URL's is the most platform independent method?


Example:

My webapp is located in "/var/www/waTest/WEB-INF/",
and the JPG's are in "/var/www/waTest/Images/jpg/".

Finally the XML's are located in "/var/www/waTest/WEB-INF/settings/".



The second problem is how to read/write the files, should I use FileReader 
or is there a better solution for webapps?

TIA

/ju


_
Protect your PC - get McAfee.com VirusScan Online 
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 



mod_jk2 and userdirectories

2002-11-20 Thread joe udder
Hello.

Can anyone please point out a guide or documentation on how to enable 
userdirectories for usage with mod_jk2 and tomcat?
So normal users can have servlets and jsps in their 
"public_html"-directories.


Google revealed the solution for the tomcat-part, by adding these lines to 
server.xml it should be ok:


 directoryName="public_html" homeBase="/home"
 userClass="org.apache.catalina.startup.PasswdUserDatabase" />


But I am stalled at how to configure mod_jk2, I have no idea on what is 
going into "workers2.properties" and/or "jk2.properties".

I tried this one, but didn't help me much. :-/

[uri:/~*/*]
worker=ajp13:localhost:8009



TIA.

/j


_
STOP MORE SPAM with the new MSN 8 and get 2 months FREE* 
http://join.msn.com/?page=features/junkmail


--
To unsubscribe, e-mail:   
For additional commands, e-mail: