Re: Can we use output/extras/tomcat-juli.jar by default?
"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. Place output/extras/tomcat-juli-adapters.jar in $CATALINA_HOME/lib. > > What do these file do? why are they extras and why not have them in the > default build? > > In my quick basic tests I did not observe any difference in the logging > behaviors when compared to the original tomcat-juli.jar. Can anyone > explain > how or when this would become a problem? > When you have the log4j jar in WEB-INF/lib, the it ends up being used by Tomcat for some of it's logging. As a result, it can cause memory leaks and other weird errors when a context is stopped and started. This isn't a problem with j.u.l since the classes are loaded by the system classloader. That is why Tomcat decided to use j.u.l for it's internal logging by default. > Many Thanks - Fred > -- > View this message in context: > http://www.nabble.com/Can-we-use-output-extras-tomcat-juli.jar-by-default--tf4288716.html#a12209126 > Sent from the Tomcat - User mailing list archive at Nabble.com. > > > - > To start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: - Error -404 resources not found
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\ ? If the directory listing is set to false, and if there is no index.jsp file under the web application's root folder then you'll see a 404 HTTP status. So, if you place a small index.jsp under your webapplication's root folder then you should be able to see the index.jsp's content --- if all other settings are correct. Or, set directory listing to true in Tomcat's web.xml . > > I'm a little stumped because I have done every possible thing that TomCat has > given in the troubleshooting section of their documentation and also I have > uninstalled JDK and TomCat on a couple of machines but still the same > response. So it must be something I'm doing wrong, but I have no idea what it > is. I have tried numerous of combinations and even tried fresh machines. > > Any Thoughts would be appreciated > -Rashmi - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Has getParameterNames been updated to use Generics?
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 this method. > Ok good to know. Thanks for the link to the details! -- brian - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Logging.properties not found
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: -- BEGIN EXCERPT - MAINCLASS=org.apache.catalina.startup.Bootstrap export MAINCLASS ACTION=stop export ACTION JAVA_OPTS=-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogMana ger -Djava.util.logging.config.file="$CATALINA_BASE/conf/logging.properties" export JAVA_OPTS LD_LIBRARY_PATH=$CATALINA_HOME/bin:$CATALINA_HOME/libexec:$CATALINA_HOME /conf:$LD_LIBRARY_PATH export $LD_LIBRARY_PATH PATH=$CATALINA_HOME/bin:$INM_HOME/bin:$CATALINA_HOME/conf:$PATH export $PATH CLASSPATH includes $CATALINA_HOME/conf/logging.properties $JAVA_HOME/bin/java $JAVA_OPTS -Djava.endorsed.dirs="$JAVA_ENDORSED_DIRS" -classpath "$CLASSPATH" -Dcatalina.base="$CATALINA_BASE" -Dcatalina.home="$CATALINA_HOME" -Djava.io.tmpdir="$CATALINA_TMPDIR" $MAINCLASS $ACTION - END EXCERPT As you can see, $PATH, $LD_LIBRARY_PATH, $CLASSPATH all point to $CATALINA_HOME/conf location. Any clue why the message about logging.properties not being found is printed? Thanks Lakshmi - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: - Error -404 resources not found
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 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 servlet: invoker org.apache.catalina.servlets.InvokerServlet debug 0 2 4. Next I de-commented the: invoker /servlet/* 5. I then created a class directory at: C:\TomCat\webapps\ROOT\WEB-INF once there I created a folder namedclasses. When I start TomCat from the command prompt I get server startup in 2092 ms. (Seems Successful) But still when I open my browser and type http://localhost:8080/ I get HTTP Status 404 - / The requested resource (/) is not available. I'm a little stumped because I have done every possible thing that TomCat has given in the troubleshooting section of their documentation and also I have uninstalled JDK and TomCat on a couple of machines but still the same response. So it must be something I'm doing wrong, but I have no idea what it is. I have tried numerous of combinations and even tried fresh machines. Any Thoughts would be appreciated --- On Sat 08/18, Hassan Schroeder < [EMAIL PROTECTED] > wrote: From: Hassan Schroeder [mailto: [EMAIL PROTECTED] To: users@tomcat.apache.org, [EMAIL PROTECTED] Date: Sat, 18 Aug 2007 07:25:56 -0700 Subject: Re: - Error -404 resources not found 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 sensitiveDoes the base Tomcat install work? Welcome page, examples, etc.?> 2. I edited my Context.xml file second tag line to it's context.xml, not Context.xml -- case sensitive -- and what do you meanby "second tag line"? a context.xml file should contain as theroot element.> 3. And I commented out some lines Web.xml files (mapping,invoking)It's 'web.xml', not Web.xml -- and is this in your webapp or some other?> When I run TOMCat from the command line, it loads properly with no problem, but when I open up Any browser (firefox, internet explorer) I get an error -404 resources not found.And you're sure you don't have a firewall preventing access to theport Tomcat is using?-- Hassan Schroeder [EMAIL PROTECTED] ___ Join Excite! - http://www.excite.com The most personalized portal on the Web! - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: I'm in a mess with Tomcat 5.5
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.gz distribution from the Apache Tomcat website. --David jeusdi 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 webapps into /usr/share/tomcat5.5-webapps, but tomcat5.5 is in /usr/share/tomcat5.5 (symbolic link to /var/lib/tomcat5.5 !!). I don't know how on earth tomcat5.5 can find these webapps? *Other question is when I deploy a single war file correctly, it is deployed into /var/lib/tomcat5.5/webapps As you can see bellow (executing a "ls -l"): /usr/share/tomcat5.5/: ... bin ... common ... conf -> /var/lib/tomcat5.5/conf ... doc -> ../doc/tomcat5.5 ... logs -> /var/lib/tomcat5.5/logs ... server ... shared -> /var/lib/tomcat5.5/shared ... temp -> /var/lib/tomcat5.5/temp ... work -> /var/lib/tomcat5.5/work /var/lib/tomcat5.5/: ... conf ... logs -> ../../log/tomcat5.5 ... shared ... temp ... webapps ... work -> ../../cache/tomcat5.5 It implies that exists three webapps directories: /usr/share/tomcat5.5/server/webapps ... admin ... host-manager ... manager /usr/share/tomcat5.5-webapps/ (tomcat5.5-webapps ubunti package (apatitude install tomcat5.5-webapps) ... balancer ... balancer.xml ... jsp-examples ... jsp-examples.xml ... ROOT ... ROOT.xml ... servlets-examples ... servlets-examples.xml ... tomcat-docs ... tomcat-docs.xml ... webdav ... webdav.xml And as last: (where tomcat manager has deployed my web application) /var/lib/tomcat5.5/webapps/ ... web_gm ... web_gm.war And to make things worse, tomcat manager says that web_gm (my web app) is running!!! When I want to access it (http://host:8180/web_gm), tomcat says me that "The requested resource (/web_gm/) is not available.", however I can access to manager, admin, jsp-examples applications. So, Can you help with this structure of directories? Where are the config files that links all. Other question: Why context.xml is as bellow? It is empty!!! WEB-INF/web.xml Can you help me please? Note I'm running tomcat using daemon (/etc/init.d/tomcat5.5) Other question: in catalina.out there is: Aug 18, 2007 6:52:27 PM org.apache.catalina.startup.HostConfig deployWAR INFO: Deploying web application archive web_gm.war java.io.FileNotFoundException: /var/lib/tomcat5.5/web_gm/work/tldCache.ser (No such file or directory) at java.io.FileOutputStream.open(Native Method) at java.io.FileOutputStream.(FileOutputStream.java:179) at java.io.FileOutputStream.(FileOutputStream.java:131) at org.apache.catalina.startup.TldConfig.execute(TldConfig.java:316) at org.apache.catalina.core.StandardContext.processTlds(StandardContext.java:4302) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4139) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759) at org.apache.catalina.core.ContainerBase.access$0(ContainerBase.java:743) at org.apache.catalina.core.ContainerBase$PrivilegedAddChild.run(ContainerBase.java:143) at java.security.AccessController.doPrivileged(Native Method) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:737) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524) at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:809) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:497) at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1204) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503) at com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke(DynamicMetaDataImpl.java:213) at com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDataImpl.java:220) at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:815) at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:784) at org.apache.catalina.manager.ManagerServlet.check(ManagerServlet.java:1377) at org.apache.catalina.manager.HTMLManagerServlet.doPost(HTMLManagerServlet.java:213) at javax.servlet.http.HttpSer
Re: I'm in a mess with Tomcat 5.5
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 there :-) Don't waste your time on this "packaged" stuff. Use whatever package manager is involved to de-install it totally, and then download a tar file version from the Tomcat web site. Untar it in /usr/local or someplace, and be happy :-) FWIW, -- Hassan Schroeder [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
I'm in a mess with Tomcat 5.5
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/tomcat5.5 (symbolic link to /var/lib/tomcat5.5 !!). I don't know how on earth tomcat5.5 can find these webapps? *Other question is when I deploy a single war file correctly, it is deployed into /var/lib/tomcat5.5/webapps As you can see bellow (executing a "ls -l"): /usr/share/tomcat5.5/: ... bin ... common ... conf -> /var/lib/tomcat5.5/conf ... doc -> ../doc/tomcat5.5 ... logs -> /var/lib/tomcat5.5/logs ... server ... shared -> /var/lib/tomcat5.5/shared ... temp -> /var/lib/tomcat5.5/temp ... work -> /var/lib/tomcat5.5/work /var/lib/tomcat5.5/: ... conf ... logs -> ../../log/tomcat5.5 ... shared ... temp ... webapps ... work -> ../../cache/tomcat5.5 It implies that exists three webapps directories: /usr/share/tomcat5.5/server/webapps ... admin ... host-manager ... manager /usr/share/tomcat5.5-webapps/ (tomcat5.5-webapps ubunti package (apatitude install tomcat5.5-webapps) ... balancer ... balancer.xml ... jsp-examples ... jsp-examples.xml ... ROOT ... ROOT.xml ... servlets-examples ... servlets-examples.xml ... tomcat-docs ... tomcat-docs.xml ... webdav ... webdav.xml And as last: (where tomcat manager has deployed my web application) /var/lib/tomcat5.5/webapps/ ... web_gm ... web_gm.war And to make things worse, tomcat manager says that web_gm (my web app) is running!!! When I want to access it (http://host:8180/web_gm), tomcat says me that "The requested resource (/web_gm/) is not available.", however I can access to manager, admin, jsp-examples applications. So, Can you help with this structure of directories? Where are the config files that links all. Other question: Why context.xml is as bellow? It is empty!!! WEB-INF/web.xml Can you help me please? Note I'm running tomcat using daemon (/etc/init.d/tomcat5.5) Thanks in advanced for all. -- View this message in context: http://www.nabble.com/I%27m-in-a-mess-with-Tomcat-5.5-tf4290941.html#a12215388 Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: - Error -404 resources not found
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 servlet: invoker org.apache.catalina.servlets.InvokerServlet debug 0 2 4. Next I de-commented the: invoker /servlet/* 5. I then created a class directory at: C:\TomCat\webapps\ROOT\WEB-INF once there I created a folder namedclasses. When I start TomCat from the command prompt I get server startup in 2092 ms. (Seems Successful) But still when I open my browser and type http://localhost:8080/ I get HTTP Status 404 - / The requested resource (/) is not available. I'm a little stumped because I have done every possible thing that TomCat has given in the troubleshooting section of their documentation and also I have uninstalled JDK and TomCat on a couple of machines but still the same response. So it must be something I'm doing wrong, but I have no idea what it is. I have tried numerous of combinations and even tried fresh machines. Any Thoughts would be appreciated --- On Sat 08/18, Hassan Schroeder < [EMAIL PROTECTED] > wrote: From: Hassan Schroeder [mailto: [EMAIL PROTECTED] To: users@tomcat.apache.org, [EMAIL PROTECTED] Date: Sat, 18 Aug 2007 07:25:56 -0700 Subject: Re: - Error -404 resources not found 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 sensitiveDoes the base Tomcat install work? Welcome page, examples, etc.?> 2. I edited my Context.xml file second tag line to it's context.xml, not Context.xml -- case sensitive -- and what do you meanby "second tag line"? a context.xml file should contain as theroot element.> 3. And I commented out some lines Web.xml files (mapping,invoking)It's 'web.xml', not Web.xml -- and is this in your webapp or some other?> When I run TOMCat from the command line, it loads properly with no problem, but when I open up Any browser (firefox, internet explorer) I get an error -404 resources not found.And you're sure you don't have a firewall preventing access to theport Tomcat is using?-- Hassan Schroeder [EMAIL PROTECTED] ___ Join Excite! - http://www.excite.com The most personalized portal on the Web! - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Web app and Forum
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/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 same roof, I would think it would be much easier to deploy two webapps and be done. --David Mohammed Zabin wrote: 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: 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 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 - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: - Error -404 resources not found
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, etc.? > 2. I edited my Context.xml file second tag line to reloadable="true"> it's context.xml, not Context.xml -- case sensitive -- and what do you mean by "second tag line"? a context.xml file should contain as the root element. > 3. And I commented out some lines Web.xml files (mapping,invoking) It's 'web.xml', not Web.xml -- and is this in your webapp or some other? > When I run TOMCat from the command line, it loads properly with no problem, > but when I open up Any browser (firefox, internet explorer) I get an error > -404 resources not found. And you're sure you don't have a firewall preventing access to the port Tomcat is using? -- Hassan Schroeder [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Error in Tomcat Installation.
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/daemon/jsvc.html) > to your choice > En l'instant précis du 17/08/07 12:10, Potri Raaja s'exprimait en ces > termes: >> Hi , >> >> I tried to install jakarta-tomcat-5.0.28 in Suse Linux Enterprise >> Server >> 10 and when I run the command >> >> /usr/java/jakarta-tomcat-5.0.28/bin/jsvc-src # ./configure >> >> I am getting the following error : >> >> *** Current host *** >> checking build system type... x86_64-unknown-linux-gnu >> checking host system type... x86_64-unknown-linux-gnu >> checking cached host system type... ok >> *** C-Language compilation tools *** >> checking for gcc... gcc >> checking for C compiler default output... a.out >> checking whether the C compiler works... yes >> checking whether we are cross compiling... no >> checking for suffix of executables... >> checking for suffix of object files... o >> checking whether we are using the GNU C compiler... yes >> checking whether gcc accepts -g... yes >> checking for gcc option to accept ANSI C... none needed >> checking for ranlib... ranlib >> *** Java compilation tools *** >> checking for javac... /usr/java/j2sdk1.4.2_15/bin/javac >> checking wether the Java compiler (/usr/java/j2sdk1.4.2_15/bin/javac) >> works... yes >> checking for jar... /usr/java/j2sdk1.4.2_15/bin/jar >> *** Host support *** >> checking C flags dependant on host system type... failed >> configure: error: Unsupported CPU architecture "x86_64" >> >> Can you please suggest how to solve this issue. >> >> Regards, >> Potri Raaja.M. >> >> > > > -- > http://www.noooxml.org/ > > > - > To start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/Error-in-Tomcat-Installation.-tf4284872.html#a12213681 Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JDBC driver of class '' for connect URL 'null' in Tomcat 5.5.12
-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 provides the servlet container while JBoss provides the EJB container and some other services. They are both part of the J2EE specification, and can both reasonably be called application servers. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD4DBQFGxupz9CaO5/Lv0PARAjY+AJ9Kei7pTzjFQ7HQeQPPd9S5XlBTZgCXTWnK yQoFLyZ0ZsE14SE6ON8wcw== =v+u+ -END PGP SIGNATURE- - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JDBC driver of class '' for connect URL 'null' in Tomcat 5.5.12
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 the extra j2ee app server goodness. http://docs.jboss.org/jbossas/getting_started/v4/html/tour.html#d0e627 But I'm a big believer in FOSS & the community, so I'd love the chance to contribute something to the tomcat docs, especially if it makes life easier for other hackers like me... JBoss counts as FOSS, right? yup! not criticising jboss at all, and I haven't used it yet , but if it already uses tomcat internally and if you're just doing a simple java web app with no ejb etc, then *my opinion* is that tomcat is pretty much the go. Jetty or glassfish may sway me later, but not for a while... thanks! that's just the pointer I need. Question but, if the war is outside the auto-deploy'ing webapps dir, then how do you auto-deploy new wars? You can't. That's one of the prices you pay for playing outside the rules. I don't believe you can, for instance, use the manager app to deploy a WAR along with a separate context.xml file. hmm, ok let's agree to disagree on this point. You have to do it entirely yourself. You'll have to check, but it's possible that Tomcat won't even do auto-redeploy if you update the WAR. There's been a long thread about the (separate) context.xml file being deleted during auto-deploy of outside WAR files (if I understand the thread, which I'm not really following). You might want to read through that for more information. yes, we got bitten by this. we were pretty stumped until we realised that tomcat auto-deletes context.xml on undeploy. bit of a gotcha that one... have you ever used OC4J? Nope. I've been off Oracle since they stopped shipping the JDBC driver as a ZIP file ;) that's a bad thing? I was relieved when they changed to a .jar! (around 9ir2 i think they did that..?) - -chris ps - nice web site, bet you're glad the kitchens done! -- Matthew Kerle IT Consultant Canberra, Australia Mobile: +61404 096 863 Email : [EMAIL PROTECTED] Web : http://threebrightlights.blogspot.com/ - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Web app and Forum
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 same roof, I would think it would be > much easier to deploy two webapps and be done. > > --David > > Mohammed Zabin wrote: > > 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: > > > >> 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 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 > >>> > >>> > >>> > >> - > >> To start a new topic, e-mail: users@tomcat.apache.org > >> To unsubscribe, e-mail: [EMAIL PROTECTED] > >> For additional commands, e-mail: [EMAIL PROTECTED] > >> > >> > >> > > > > > > > - > To start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
Re: Web app and Forum
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, 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: 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 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 - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: - Error -404 resources not found
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. 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, it loads properly with no problem, but when I open up Any browser (firefox, internet explorer) I get an error -404 resources not found. I have uninstalled TOMCAT and JDK and reinstalled them, and get the same problem. I even checked the TOMCAT logs, but the logs don't mention anything out of the ordinary. I even checked TOMCATs documentation, but it seems that I have done everything right. I even did this on 3 machines with same problems, so it must be ME! who is the problem. Has anyone ever had this problem. Thanks!! I appreciate your time. ___ Join Excite! - http://www.excite.com The most personalized portal on the Web! - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Web app and Forum
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: > > 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 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 > > > > > > > - > To start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
Re: Web app and Forum
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 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 - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
- Error -404 resources not found
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, it loads properly with no problem, but when I open up Any browser (firefox, internet explorer) I get an error -404 resources not found. I have uninstalled TOMCAT and JDK and reinstalled them, and get the same problem. I even checked the TOMCAT logs, but the logs don't mention anything out of the ordinary. I even checked TOMCATs documentation, but it seems that I have done everything right. I even did this on 3 machines with same problems, so it must be ME! who is the problem. Has anyone ever had this problem. Thanks!! I appreciate your time. ___ Join Excite! - http://www.excite.com The most personalized portal on the Web! - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Web app and Forum
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
Re: Tomcat freezes up
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? - Is there a thread waiting in accept for each connector? Regard, Rainer Manivannan Palanichamy wrote: What solution been found out for this problem? I am really a sufferer of this problem? I am thinking of entering a bug. But, the problem is, as Sebastiaan said, reproducing the bug. Let me work on this, or guys you can also help/guide/work on reproducing the bug. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: mod_jk, Tomcat, Session, Servlets & Portlets
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 to the problem: Using the real Tomcat-url to call portal container and then calling the servlet within its portlet works fine, "session" is not null. Using the "Apache/mod_jk"-url to do this returns the NullPointerException because of the empty session. Kindly note that I can't use "request.getSession(true);" in this case, I can't allow the action in the if statement without a valid session was generated in the portlet container before. So I think the problem is the session which is bound to the Tomcat-url (foo.bar.com:8080) and do not not to the virtual-host / alias url (www.foobar.com) of the Apache with mod_jk. Before the long explanations, a short question: Do you have set any JkOptions of the type Forward... in your Apache configuration? Especially ForwardURIEscaped will break URL encoded sessions up until (iuncluding) mod_jk 1.2.24. It's fixed now in 1.2.25. It's not likely, that that's your problem, but you should check. There are two basic facts related to sessions, which might help you to understand what's going on: - a session usually is bound to a context, in other words to a web app. So you always need to understand, which webapp you are sending your requests to. This gets more complicated, once cross context calls get used, but I think this is not the case in your situation. - how does the container know, which session a request belongs to? Two sub cases: - Using a cookie: whenever a new session is created, a cookie is sent back to the browser. The cookie is called JSESSIONID. It contains the name of the server and a URL prefix (the webapp name mentioned above) to describe, for which future requests this cookie is valid, and it contains the session id as payload information. Whenever the browser sends a future request which goes to a system and URL, that fits the validity rules, it automatically includes a JSESSIONID cookie with the stored session id as value. You can easily check the cookies your browser knows about and their validity in all modern browsers. Cookies can be disabled in the browser by the user, sometimes even for special sites, usually they are enabled. A webapp uses a cookie, if you do not disable it by Tomcat configuration. - Using URL rewriting: in contrast to cookies, this method is not transparent to the webapp, i.e. the webapp developer needs to wrap all URLs used inside the content, which need to point back to the session, in an encodeURL() call. The container will then add a suffix of the form ";jsessionid=..." to the URL, where "..." is the session id. Such a URL manipulation can be easily seen in the URL display of the browser (at least if it is not hidden by using frames). mod_jk will forward Cookies as well as URL prefixes. In a non load-balancer situation I see no reasons for problems, but the above might help you in finding the reason for your problem. I apologize for my English, I'm still learning. No problem, me too :) Regards, Rainer - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: mod_jk, Tomcat, Session, Servlets & Portlets
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 the real Tomcat-url to call portal container and then calling the servlet within its portlet works fine, "session" is not null. Using the "Apache/mod_jk"-url to do this returns the NullPointerException because of the empty session. Kindly note that I can't use "request.getSession(true);" in this case, I can't allow the action in the if statement without a valid session was generated in the portlet container before. So I think the problem is the session which is bound to the Tomcat-url (foo.bar.com:8080) and do not not to the virtual-host / alias url (www.foobar.com) of the Apache with mod_jk. I apologize for my English, I'm still learning. -- Cheers, Benny Benny Bräuer C3-Grid Developing @ Computing and Data Centre Alfred-Wegener-Institute for polar and marine research 27570 Bremerhaven, Germany -- "Do your work, then step back. The only path to serenity." ~Lao Tzu - The Tao Te Ching - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]