Re: Redeploy a war host without reboot

2005-09-13 Thread t.n.a.

Andrea Bondi wrote:


Hi to all,
I've set up Tomcat v. 5.5.9 as the server for the domain
www.univaperta.it
This is a virtual host, not the only site in this server. Configuration
is the following:

Host
 appBase=webapps/univaperta
 name=www.univaperta.it
   Context
   docBase=
   path=
   reloadable=true

WatchedResource/usr/lib/tomcat/conf/context.xml/WatchedResource
 WatchedResourceWEB-INF/web.xml/WatchedResource

WatchedResource/usr/lib/tomcat/conf/context.xml/WatchedResource
 WatchedResourceWEB-INF/web.xml/WatchedResource

WatchedResource/usr/lib/tomcat/conf/context.xml/WatchedResource
 WatchedResourceWEB-INF/web.xml/WatchedResource

WatchedResource/usr/lib/tomcat/conf/context.xml/WatchedResource
 WatchedResourceWEB-INF/web.xml/WatchedResource
   /Context
/Host

The site works fine.
The problem is that I develop this on another computer and deploy as a
war (univaperta.war). For every update I have to follow this procedure:
- undeploy the site from tomcat manager
- restart tomcat
- deploy the war file
- restart tomcat

Is there an easier way to do this?
 


Yes. Probably, anyway. :)
I've never worked with .war so I can't say for sure, but I just copy the 
files I changed and touch the web.xml file - that's enought to trigger 
an application reload as web.xml is one of the WatchedResources.


Could you try that way and see if tomcat reloads the app, just so we can 
eliminate non-war-related problems?


Regards,
Tomislav

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



WEB-INF/lib/myjar.jar doesn't contain file xyz...

2005-08-12 Thread t.n.a.
Tomcat (5.5) seems reluctant to load a .jar file from the WEB-INF/lib
directory.
Specifically, it seems to load tapestly.jar (as the error is displayed
in a tapestry exception page), but it doesn't seem to want anything to
do with cayenne.jar.
The reported error is that a file in cayenne.jar is missing, which is
plain wrong: when you unzip the .jar, it's there.
Also, I've got another application that also uses cayenne.jar - on the
same tomcat server - and it just works.

Am I missing something here?

Tia,
Tomislav

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



Re: WEB-INF/lib/myjar.jar doesn't contain file xyz...

2005-08-12 Thread t.n.a.
Allistair Crossley wrote:

Can you post the full exception stack?
  

Sorry, I'd love to but it...well...works now. Don't ask me why: tomcat
was acting fairly peculiar by the time I'd thrown everything I could
think of at it...maybe it was that. Then it stopped running both
applications (even the one that worked before), I went rowing for an
hour or two, came back and everything was all fine and well again. :)
Anyway, I thank everyone for the effort.

Tomislav

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



Re: website hosting

2005-05-15 Thread t.n.a.
Lutz Zetzsche wrote:
As regards performance, running Apache in front of Tomcat is not 
preferable. A standalone Tomcat is faster than a Tomcat behind an 
Apache.
 

I'm not speaking from my own experiance, but I've done some reading some 
time ago and the best practice I've found is to have apache serve static 
content because it's faster and comes with a whole lot of modules and 
have Tomcat serve the dynamic content - don't know if we're talking 
about the same thing.

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


Re: website hosting

2005-05-14 Thread t.n.a.
suri.jagadish wrote:
Hi

I need to host a website using the tomcat Webserver

How do I configure the tomcat for the default port  80 for answering the
http request for the ip address in the net

I had already done it using (Microsoft) IIS.
 

Don't know if you want to hear this, but you might want to use Apache 
and mod_jk. :)
Basically, I haven't heard once someone suggest you run it directly on 
:80 for a number of reasons (run as root, performance, availability of 
modules etc.).

Regards,
--
Tomislav Nakic-Alfirevic
Netgen Ltd. www.netgen.hr
Rudeska 172/3
1 Zagreb, Croatia
tel.: +385 1 387 97 22
fax.: +385 1 387 97 24
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


tomcat/apache/mod_jk/multiple tomcat apps, port 80

2005-04-22 Thread t.n.a.
Hi all,
I'm having trouble getting Apache to forward requests to two webapps deployed on
Tomcat. Tomcat alone works fine (webapps work on port 8080), and apache
seems to forward requests to other servlets on my ISP's server the way it 
should.
Some snippets of configuration files I got from my hosting company are 
confusing -
Tomcat isn't generating mod_jk.conf (in {tomcatdir}/conf/auto or anywhere
else), apache is using  mod_jk with jk.conf which has a worker configuration,
but no JkMount directives in apache.conf. This works for other people, but
not for me. It seems to me that somewhere there is a JkMount *.jsp ajp13
directive in apache.conf - our applications use Tapestry so there's no
JSPs...in effect, apache handles requests to my apps instead of tomcat, when 
using port 80.
My guess is that JkMount is the proper way to configure mod_jk for my
VirtualHost, how to use it for Tapestry applications?
Thanks for your time,
Tomislav
P.S.
The tomcat server admin tells me it might have something to do with having 
separate apps in subdirectories of public_html, each of which has it's own 
web.xml, but I don't believe this to be the problem: deploying an app in the 
public_html folder doesn't change server behaviour.

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


Re: Directory listing

2005-04-18 Thread t.n.a.
Darryl Wilburn wrote:
For Tomcat...
Change the listings parameter in the DefaultServlet
to false.  Don't know for Apache.
 

Just wrapped up both problems myself: the listings parameter takes care 
of tomcat, and a .htaccess file takes care of apache:
$ cat .htaccess
Options -Indexes
$
Just place .htaccess in your root dir and you're ok.

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


Re: port number

2005-04-14 Thread t.n.a.
Magnotta, Salvatore wrote:
I think what he is saying is sending the requests to the AJP12 and AJP13 
workers.  Look in your Tomcat workers.properties file and make sure you load 
the mod_jk in your Apache httpd config file.
-Original Message-
From: Viorel Dragomir [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 13, 2005 12:00 PM
To: Tomcat Users List
Subject: Re: port number

Look for mod_jk how to.
It's a connector that can send .jsp or servlets requests from apache to tomcat.

Viorel Dragomir
 

You're both right: maybe I wasn't precise enough when I described what I 
needed, but the connector should do the trick judging by what you've 
told me. I'll give it a go and see what I come up with, thanks.

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


Re: port number

2005-04-14 Thread t.n.a.
Tim Funk wrote:
You need let apache forward the appropriate requests to tomcat. The 
different ways you can do that can be found here:

http://jakarta.apache.org/tomcat/faq/connectors.html
-Tim

Thank you for the informative link: I'll try to set up such a 
configuration and see what happens.

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


port number

2005-04-13 Thread t.n.a.
Hi everyone,
I host applications on a machine where both apache and tomcat are 
running. I access apache at port 80 and tomcat at 8080. Is it possible 
(using the tomcat apache connection, or some other way) to access both 
at port 80? I ask because of firewall issues: port 80 seems to be the 
Holy Grail of accessibility: everything else depends on the local 
firewall configuration.

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


Re: Tomcat taking 125 seconds to launch

2005-04-04 Thread t.n.a.
Michael Mehrle wrote:
The configuration is a modified version of appfuse 1.5 (struts and 
hibernate) - so this should give you a good idea of how it is 
structured. FYI: on my development machine here at home Tomcat starts 
in 28 seconds - identical project and configuration.
A fairly long time, any way you cut it. It takes about 6-9s on my Athlon 
1900+ (using JDK 1.5), and a couple of seconds more on my laptop (even 
though the laptop has a 2.8GHz P4!, but runs blackdawn jdk 1.4).
Just a wild guess, but it seemes to me that you have a 2-minute timeout 
on something, and than tomcat normally loads in 5-6s.

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


hosting in Croatia

2005-03-31 Thread t.n.a.
Don't really know why I'm writing in english :), but here goes...
Tomcat/jetty/jboss hosting in Croatia seems to be much more of a problem 
than I anticipated, so I need advice on how to proceed. Just go with the 
flow and develop for .net :) or is there something I've missed? Is 
hosting an issue anywhere else?
Oh, right: I want to host a couple of tapestry applications (more are on 
the way, too) - are there possibilities outside the realm of tomcat, 
jetty and jboss? Do I have other possibilities?

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


Re: Tomcat rookie needs help updating project

2005-03-25 Thread t.n.a.
Barry Kimelman wrote:
My system is a PC run by Windows XP.
I am running version 5.5.8 of Tomcat
I am running version 1.6.2 of Ant
 
I can successfully compile and install a new project with no problems. 
I can then successfully run the project by visiting the appropriate 
URL in my browser.
 
However when I make a change to my project either by recompiling some 
of my Java source code or by modifying some of JSP and/or HTML files, 
how do I get Tomcat to recognize these changes ? If I run the 
command ant reload from the DOS command line, when I rerun my 
application I do not see my changes. What do I need to do to install 
project changes ?

Well, one obvious thing you could do is restart tomcat: it takes about 
10 s, but it works.
If you use eclipse with the sysdeo plugin as your IDE (which I highly 
recommend), you can relead the project without a tomcat restart using a 
command from a project pop-up menu.
If you don't use eclipse, I suggest you read up on the manager 
application that comes with tomcat as loading and unloading projects is 
it's responsibility.

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


memory usage

2005-03-18 Thread t.n.a.
Hi everyone,
I'm not quite sure where to post this problem - the tomcat, tapestry or 
cayenne mailing list - but here goes...
I have an app built on the mentioned technologies. I click arround and 
monitor the memory usage (using the Win task manager - good enough for 
rough measurements). The memory usage seems to grow up to a 100 MB 
(Cayenne accesses a single table of about fifty attributes and a 1000 
rows - don't ask) and sometimes - I can't reproduce the problem now - 
the app brakes when trying to open a new page. The exception says 
something about not having enough memory.
Ring any bells, anyone?

Thanks for your effort,
Tomislav
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: starting tomcat from eclipse

2005-03-14 Thread t.n.a.
I am using sysdeo as well (sorry I didn't point it out more clearly). 
Something in my deployment descriptor seems to make it break.

Amrish Bharatiya wrote:
I am using sysdeo tomcat integration plugin for eclipse. it flawlessly
integrates into eclipse. you can try this out. it is avaliable at
http://www.sysdeo.com/eclipse/tomcatPlugin.html
Regards,
Amrish

On Sat, 12 Mar 2005 15:17:59 +0100, t.n.a. [EMAIL PROTECTED] wrote:
 

I thought I had solved the problem by removing a faulty CLASSPATH 
environment variable, but no: still the same problem. I am at a loss, so 
any help is much appreciated.
My config is jdk1.5/eclipse3.0.1/spindle 
v.???/tomcatPluginV3/tomcat5.5.7/Win2k.
This is what I see in the console window when I try to start tomcat. The 
project klapa9 is a tapestry project and uses cayenne and jtds. 
cayenne.jar is in WEB-INF/lib and jtds was added as an external .jar. A 
similar setup seems to work flawlessly on linux.


0 [main] INFO http11.Http11Protocol  - Initializing Coyote HTTP/1.1 on 
http-8080
15 [main] INFO startup.Catalina  - Initialization processed in 1625 ms
406 [main] INFO core.StandardService  - Starting service Catalina
437 [main] INFO core.StandardEngine  - Starting Servlet Engine: Apache 
Tomcat/5.5.7
484 [main] INFO core.StandardHost  - XML validation disabled
1453 [main] ERROR [localhost].[/klapa9]  - Exception starting filter 
redirect
java.lang.NoClassDefFoundError: javax/servlet/Filter
   at java.lang.ClassLoader.defineClass1(Native Method)
   at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
   at 
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
   at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
   at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
   at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
   at java.security.AccessController.doPrivileged(Native Method)
   at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
   at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
   at 
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1247)
   at 
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1181)
   at 
org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:211)
   at 
org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:308)
   at 
org.apache.catalina.core.ApplicationFilterConfig.init(ApplicationFilterConfig.java:79)
   at 
org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3508)
   at 
org.apache.catalina.core.StandardContext.start(StandardContext.java:4079)
   at 
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
   at 
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
   at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
   at 
org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:590)
   at 
org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:535)
   at 
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:470)
   [snip]
---

Btw, these are my web.xml and klapa9.xml files, respectively, if it 
helps anything:

web-app
   display-nameklapa9/display-name
   filter
   filter-nameredirect/filter-name
   filter-classorg.apache.tapestry.RedirectFilter/filter-class
   /filter
   filter-mapping
   filter-nameredirect/filter-name
   url-pattern//url-pattern
   /filter-mapping
   servlet
   servlet-nameklapa9/servlet-name
   
servlet-classorg.apache.tapestry.ApplicationServlet/servlet-class
   load-on-startup1/load-on-startup
   /servlet
   servlet-mapping
   servlet-nameklapa9/servlet-name
   url-pattern/app/url-pattern
   /servlet-mapping
/web-app

Context path=/klapa9 reloadable=false 
docBase=D:/posao/klapa9/context debug=6 
workDir=D:/posao/klapa9/radni/

Sorry for the long post, just trying to provide relevant information.
Tomislav
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
   

 


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


starting tomcat from eclipse

2005-03-12 Thread t.n.a.
I thought I had solved the problem by removing a faulty CLASSPATH 
environment variable, but no: still the same problem. I am at a loss, so 
any help is much appreciated.
My config is jdk1.5/eclipse3.0.1/spindle 
v.???/tomcatPluginV3/tomcat5.5.7/Win2k.
This is what I see in the console window when I try to start tomcat. The 
project klapa9 is a tapestry project and uses cayenne and jtds. 
cayenne.jar is in WEB-INF/lib and jtds was added as an external .jar. A 
similar setup seems to work flawlessly on linux.


0 [main] INFO http11.Http11Protocol  - Initializing Coyote HTTP/1.1 on 
http-8080
15 [main] INFO startup.Catalina  - Initialization processed in 1625 ms
406 [main] INFO core.StandardService  - Starting service Catalina
437 [main] INFO core.StandardEngine  - Starting Servlet Engine: Apache 
Tomcat/5.5.7
484 [main] INFO core.StandardHost  - XML validation disabled
1453 [main] ERROR [localhost].[/klapa9]  - Exception starting filter 
redirect
java.lang.NoClassDefFoundError: javax/servlet/Filter
   at java.lang.ClassLoader.defineClass1(Native Method)
   at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
   at 
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
   at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
   at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
   at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
   at java.security.AccessController.doPrivileged(Native Method)
   at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
   at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
   at 
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1247)
   at 
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1181)
   at 
org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:211)
   at 
org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:308)
   at 
org.apache.catalina.core.ApplicationFilterConfig.init(ApplicationFilterConfig.java:79)
   at 
org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3508)
   at 
org.apache.catalina.core.StandardContext.start(StandardContext.java:4079)
   at 
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
   at 
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
   at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
   at 
org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:590)
   at 
org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:535)
   at 
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:470)
   [snip]
---

Btw, these are my web.xml and klapa9.xml files, respectively, if it 
helps anything:

web-app
   display-nameklapa9/display-name
   filter
   filter-nameredirect/filter-name
   filter-classorg.apache.tapestry.RedirectFilter/filter-class
   /filter
   filter-mapping
   filter-nameredirect/filter-name
   url-pattern//url-pattern
   /filter-mapping
   servlet
   servlet-nameklapa9/servlet-name
   
servlet-classorg.apache.tapestry.ApplicationServlet/servlet-class
   load-on-startup1/load-on-startup
   /servlet
   servlet-mapping
   servlet-nameklapa9/servlet-name
   url-pattern/app/url-pattern
   /servlet-mapping
/web-app

Context path=/klapa9 reloadable=false 
docBase=D:/posao/klapa9/context debug=6 
workDir=D:/posao/klapa9/radni/

Sorry for the long post, just trying to provide relevant information.
Tomislav
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


deploying a tomcat application

2005-03-09 Thread t.n.a.
The question's probably fairly simple, so I'd be thankfull for a link or 
two if it's been answered before, but here's what I'd like to know...
I have a tapestry application I develop on a local tomcat instance and 
it's my first app of that type.
In a couple of days I'll have to upload it to a server of an ISP where 
tomcat is running. As a minimum, I'll have to upload the .war file 
(which I don't know how to build, but never mind that) and set up a 
deployment descriptor so that tomcat knows where the application. Am I 
missing something important? What possible problems should I be aware 
of? Can I make tomcat load the application without a restart?

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


tomcat startup error

2005-03-03 Thread t.n.a.
I'm using eclipse and sysdeo. I attempted to make a small prototype 
application, but I can't get tomcat to start.
This is what tomcat says when I try:

SEVERE: Error deploying configuration descriptor klapa9.xml
java.lang.NoClassDefFoundError: org/apache/log4j/Layout
klapa9.xml looks like this:
Context path=/klapa9 docBase=D:/posao/klapa9/context debug=6/
My project is obviously in D:/posao/klapa9/.
I started with tomcat 5.5.7 as well as 5.0.28 and got nowhere. Any ideas 
what I'm doing wrong?

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