Tomcat locks jar of undeployed contexts

2003-08-26 Thread Jeroen Breedveld
Hi all,

Tomcat seems to lock some jars (in my case struts.jar) it uses in a
context after that context has been removed. Can someone please tell me
if it is suppose to do this? It keeps me from cleaning up the directory
I deployed the context in.

The deploy and undeploy proces of my webapp looks like this

  



  

  



  

Thanks and regards for any help,

Jeroen

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



RE: Problem deploying webapp with context file

2003-07-03 Thread Jeroen Breedveld

 || -Original Message-
 || From: Antonio Fiol BonnĂ­n [mailto:[EMAIL PROTECTED] 
 || Sent: donderdag 3 juli 2003 11:08
 || To: Tomcat Users List
 || Subject: Re: Problem deploying webapp with context file
 || 
 || try path="/myapp"

That did it, thanks!

regards,

Jeroen


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



Problem deploying webapp with context file

2003-07-03 Thread Jeroen Breedveld
Hi all,

I'm trying to deploy an application by copying a file called myapp.xml
containing the context description below to tomcat's webapp directory:



  



Tomcat automatically detects the addition and tries to load the new
context but then it throws several exceptions. Here are some fragments
from the exceptions: 

3-jul-2003 10:47:57 org.apache.commons.digester.Digester endElement
SEVERE: End event threw exception
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.java:2
52)
... 

Caused by: java.lang.IllegalArgumentException: Invalid context path:
myapp
at
org.apache.catalina.core.StandardHostDeployer.addChild(StandardHostDeplo
yer.java:692)



2003-07-03 10:47:57 HostConfig[localhost] Error deploying configuration
descriptor myapp.xml
java.io.IOException: java.lang.IllegalArgumentException: Invalid context
path: myapp
at
org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeploy
er.java:391)
at
org.apache.catalina.core.StandardHost.install(StandardHost.java:803)
at
org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java
:442)
at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:399)

If I change the "path" attribute to this: path="" (the ROOT context) it
does work! Can someone please tell me wat is causing this? 

Thanks and regards,

Jeroen

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



Struts in welcome-file-list

2003-07-02 Thread Jeroen Breedveld
Hi all,

I tried to get a page from my Struts application as default page in the
welcome file list (see below) but it doesn't work, it keeps going to
index.html. Am I doing something wrong or is it simply not possible?

I did this:

  
start.do
index.html
  

I also tried just start and /start.do , both didn't work either. 

Thanks and regards,

Jeroen

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



Remove anttask context problem

2003-06-30 Thread Jeroen Breedveld
Hi all, 

I use the catalina anttasks to deploy my webapp like this:
 
  


  
  
  

http://${host}/manager"; 
   username="${tomcat.admin}" 
   password="${tomcat.password}" 
   path="/${demo.name}" 
war="file:./${demo.name}.war"/>
  

 
http://${host}/manager"; username="${tomcat.admin}"
password="${tomcat.password}" path="/${demo.name}"/>
  

However when after I call "ant remove" the server.xml still contains a
context for the deployed webapp. After I restart the tomcat server this
context fails to start because the docbase is gone. 
Can someone tell me why the remove task doesn't also remove the context?
I tried the undeploy but that doesn't work at all because it says it can
remove the document base for my webapp.

Thanks and regards,

Jeroen

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



RE: How to secure application

2002-12-12 Thread Jeroen Breedveld
||  -Original Message-
||  From: David Rayroud [mailto:[EMAIL PROTECTED]] 
||  Sent: donderdag 12 december 2002 10:02
||  To: TomcatUser
||  Subject: How to secure application
||  
||  
||  Hi,
||  
||  Excuse me but I'm beginner user with Tomcat.
||  
||  I will protect an application, that can be use only for 
||  selected user. How can I configure Tomcat for this ? With 
||  roles (tomcat-users.xml)? I didn't find documentation for this.

I did! Hope this helps:
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/realm-howto.html

regards,

Jeroen

--

X-Hive Corporation
e-mail: [EMAIL PROTECTED]
phone: +31 10 7108622
http://www.x-hive.com 


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




RE: java - more than 80MB RAM

2002-09-19 Thread Jeroen Breedveld

 | -Original Message-
 | From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 | Sent: donderdag 19 september 2002 9:39
 | To: [EMAIL PROTECTED]
 | Subject: java - more than 80MB RAM
 | 
 | 
 | Hello,
 | 
 | how can I convice java to take more than 80 MB of RAM? I do 
 | have a 1GB RAM
 | machine but I have no chance. 
 | Using these parameters -Xms384m -Xmx384m in the startup 

hi,

try this: -Xms384M -Xmx384M (note: capital M)

I believe that's it.

greetings,

jeroen


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




Problem with error page and login forms

2002-08-28 Thread Jeroen Breedveld

Hi,

I created a custom error page for error 401 (unauthorized) for a webapp
I created that contains a security constraint on some servlets.

When I include this in my web.xml:

  
401
/errors/401.html
  

and I browe to those secured servlets I go directly to that custom error
page and it doesn't show me the login form I normally see when I go to
that servlet.

Anyone an idea why that servlet doesn't allow me to authorize myself?

Thanks,

Jeroen


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