Re: mod_jk, Tomcat, Session, Servlets & Portlets

2007-08-18 Thread Benny Bräuer
Hi Rainer, I'm using a single node. Here's some code from the servlet: HttpSession session = request.getSession(false); if(session.getAttribute("aValueSavedInThePortlet") != null) {...} else {...} I get a correct NullPointerException, because "session" is empty. So, back to the problem: Using

Re: mod_jk, Tomcat, Session, Servlets & Portlets

2007-08-18 Thread Rainer Jung
Benny Bräuer wrote: Hi Rainer, I'm using a single node. Here's some code from the servlet: HttpSession session = request.getSession(false); if(session.getAttribute("aValueSavedInThePortlet") != null) {...} else {...} I get a correct NullPointerException, because "session" is empty. So, back

Re: Tomcat freezes up

2007-08-18 Thread Rainer Jung
What exactly do you mean by freeze? - does the jvm process still exist? - does it still accepts new connections on it's http connector? - does it answer simple requests for static ressources? - How many connector threads can you see in a JVM thread dump (kill -QUIT) - What are those doing? - I

Web app and Forum

2007-08-18 Thread Mohammed Zabin
Hi all I have a web application, and I wanted to add a forum for this application, i used mvnforum ( an open source forum). My question is : Can I jar two web applications in one file?? both applications use the same database. ?? any help please

- Error -404 resources not found

2007-08-18 Thread
Hello, I just installed TomCat (6 .*.) on a Windows XP server: 1. I setup the system variables Java_Home to my JDK (Not JDK Bin) 2. I edited my Context.xml file second tag line to 3. And I commented out some lines Web.xml files (mapping,invoking) When I run TOMCat from the command line,

Re: Web app and Forum

2007-08-18 Thread David Smith
I doubt it. Webapps are intended to be independent of each other like software applications on your desktop or notebook. My question is why would you want to? Is the database some file based db like derby or berkley db? --David Mohammed Zabin wrote: Hi all I have a web application, and I

Re: Web app and Forum

2007-08-18 Thread Mohammed Zabin
No, It's just I am using an open source forum, a huge project, with hundredes of class and jsp files. I thought that If I wanted to merge the forum with my web applications, it will be a nightmare :(, so I am looking for a way to sovle this On 8/18/07, David Smith <[EMAIL PROTECTED]> wrote: > >

Re: - Error -404 resources not found

2007-08-18 Thread David Smith
What lines in what web.xml (yes, there is more than one web.xml) have you commented out and what's the URL you are requesting? --David [EMAIL PROTECTED] wrote: Hello, I just installed TomCat (6 .*.) on a Windows XP server: 1. I setup the system variables Java_Home to my JDK (Not JDK Bin) 2

Re: Web app and Forum

2007-08-18 Thread David Smith
If you are pointing both webapp and forum to the same database on the same database server and there aren't any other shared resources or reasons for them to live under the same roof, I would think it would be much easier to deploy two webapps and be done. --David Mohammed Zabin wrote: No, I

Re: Web app and Forum

2007-08-18 Thread Mohammed Zabin
You mean I deploy two war files that shares the same database? On 8/18/07, David Smith <[EMAIL PROTECTED]> wrote: > > If you are pointing both webapp and forum to the same database on the > same database server and there aren't any other shared resources or > reasons for them to live under the sam

Re: JDBC driver of class '' for connect URL 'null' in Tomcat 5.5.12

2007-08-18 Thread Matthew Kerle
Hi chris Christopher Schultz wrote: IIRC, JBoss used to use Tomcat as its servlet container. Maybe that's no longer the case. it still is. after my post I had a read through the jboss docs, and apparently it uses embedded tomcat internally as a web container, then the jboss code does all th

Re: JDBC driver of class '' for connect URL 'null' in Tomcat 5.5.12

2007-08-18 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Matt, Matthew Kerle wrote: > after my post I had a read through the jboss docs, and > apparently it uses embedded tomcat internally as a web container, then > the jboss code does all the extra j2ee app server goodness. To be more precise, Tomcat prov

Re: Error in Tomcat Installation.

2007-08-18 Thread Potri Raaja
Thankyou very much for your information and the installation is done succcessfully. David Delbecq-2 wrote: > > 1) use another achitecture (x86 instead of x86_64) > 2) download a more recent tomcat (5.0.28 is 3 years old release) > 3) download a more recent jsvc > (http://commons.apache.org/da

Re: - Error -404 resources not found

2007-08-18 Thread Hassan Schroeder
On 8/18/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > I just installed TomCat (6 .*.) on a Windows XP server: > > 1. I setup the system variables Java_Home to my JDK (Not JDK Bin) it''s JAVA_HOME., not Java_Home -- case sensitive Does the base Tomcat install work? Welcome page, examples, e

Re: Web app and Forum

2007-08-18 Thread David Smith
Yes. Database server software is designed to handle multiple requests from multiple sources at once. You haven't said much about what database you are using (home grown, MySQL, etc., ...) --David Mohammed Zabin wrote: You mean I deploy two war files that shares the same database? On 8/18/0

Re: - Error -404 resources not found

2007-08-18 Thread
I installed tomcat and: 1. I named the environmental variable to JAVA_HOME and it was set to c:\Program Files\Java\jdk1.6.0_01 2 I edited the context.xml configuration file and added reloadable="true" to the tag. I changed it to 3 I went to the web.xml file to de-comment the invoker s

I'm in a mess with Tomcat 5.5

2007-08-18 Thread jeusdi
I've installed Tomcat 5.5 into my Ubuntu + sun-java-1.5, tomcat5.5-webapps and tomcat5.5-admin. I'm in a mess because the structure of directories has changed. For example: *tomcat5.5-webapps package installs webapps into /usr/share/tomcat5.5-webapps, but tomcat5.5 is in /usr/share

Re: I'm in a mess with Tomcat 5.5

2007-08-18 Thread Hassan Schroeder
On 8/18/07, jeusdi <[EMAIL PROTECTED]> wrote: > > I've installed Tomcat 5.5 into my Ubuntu + sun-java-1.5, tomcat5.5-webapps > and tomcat5.5-admin. > > I'm in a mess because the structure of directories has changed. >For example: >*tomcat5.5-webapps package installs Stop right ther

Re: I'm in a mess with Tomcat 5.5

2007-08-18 Thread David Smith
You might want to start with asking the Ubuntu packagers about this. A _*normal*_ tomcat installation using the .tar.gz or .zip archive from an Apache mirror is not structured like this. If you can't find any help there, you might want to remove the tomcat packages and just install the .tar.g

Re: - Error -404 resources not found

2007-08-18 Thread David Smith
Ok, so you enabled the invoker servlet. Personally I wouldn't, but that's just me. Does it work and respond before you made those changes? Are there any messages in any of the log files indicating a problem? --David [EMAIL PROTECTED] wrote: I installed tomcat and: 1. I named the environm

Logging.properties not found

2007-08-18 Thread Lakshmi Venkataraman
We use Tomcat 5.5.23 on all platforms (Solaris, Linux and Win XP). On Solaris, I see the following message when Tomcat is shutdown. ./shutdown.sh: -Djava.util.logging.config.file=/export/home/lakshmi/Tomcat/conf/logging .properties: not found Here is an excerpt from the shutdown script: -

Re: Has getParameterNames been updated to use Generics?

2007-08-18 Thread Brian Munroe
On 8/17/07, Bill Barker <[EMAIL PROTECTED]> wrote: > > This is on the list of things for the Servlet 3.0 spec > (http://www.jcp.org/en/jsr/detail?id=315), but that means you will have to > wait for Tomcat 7.0.x to get the "fix". All of the Servlet 2.x specs > specify a non-generic Enumeration for

Re: - Error -404 resources not found

2007-08-18 Thread Rashmi Rubdi
On 8/18/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > But still when I open my browser and type http://localhost:8080/ I get HTTP > Status 404 - / The requested resource (/) is not available. What happens if you place an index.jsp file (with some contents ) in C:\TomCat\webapps\ROOT\ ?

Re: Can we use output/extras/tomcat-juli.jar by default?

2007-08-18 Thread Bill Barker
"fredk2" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > Hi, > > To use log4j the documentation > http://tomcat.apache.org/tomcat-6.0-doc/logging.html > suggest that we need to: > > 1. Replace $CATALINA_HOME/bin/tomcat-juli.jar with the > output/extras/tomcat-juli.jar. > > 2. Plac