CipherSuite

2008-07-09 Thread Stephan Schöffel

Hi there,

I tries to make my Tomcat 5.5.25 standalone to only communicate via a 
certain encryption. For test I altered the server.xml:


Connector port=8443 maxHttpHeaderSize=8192
  maxThreads=150 minSpareThreads=25 maxSpareThreads=75
  enableLookups=false disableUploadTimeout=true
  acceptCount=100 scheme=https secure=true
  clientAuth=false sslProtocol=TLS keystorePass=***
  ciphers=TLS_DHE_RSA_WITH_AES_256_CBC_SHA/

Yet, when I connect to it, it uses a different encryption.

Additionally, I wonder how Tomcat knows, which certificate in the 
keystore to use. There is no alias named in server.xml.


Thanks in advance for any hint.

--Stephan

-
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: Cannot create object of class

2007-01-10 Thread Stephan Schöffel

i took the example from the head first ooad book.

i now created separate classes for timertask and runnable. works fine.

thanks for the help
stephan


Caldarale, Charles R wrote:

From: Stephan Schöffel [mailto:[EMAIL PROTECTED] 
Subject: Cannot create object of class
   



 


java.lang.NoClassDefFoundError: org/apache/catalina/manager/MyClass$1
   



It's not MyClass that can't be found, it's a failure to create the anonymous 
inner class:

 


   timer.schedule(new TimerTask(){
   public void run(){
   timer.cancel();
   }
   }, 60*1000);
   



The TimerTask definition (interface or superclass) must also be available in 
the manager app's classpath (i.e., WEB-INF/lib or WEB-INF/classes).

- Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.

-
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]



Cannot create object of class

2007-01-09 Thread Stephan Schöffel

hi,

have a problem with creating a class in the doPost method of a servlet:

MyClass mc= new MyClass();

if i do so i get the following error message:


 HTTP Status 500 -



*type* Exception report

*message*

*description* _The server encountered an internal error () that 
prevented it from fulfilling this request._


*exception*

javax.servlet.ServletException: Servlet execution threw an exception

*root cause*

java.lang.NoClassDefFoundError: org/apache/catalina/manager/MyClass$1

org.apache.catalina.manager.AgroManagerServlet.doPost(AgroManagerServlet.java:112)
javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

*note* _The full stack trace of the root cause is available in the 
Apache Tomcat/5.5.20 logs._





 Apache Tomcat/5.5.20




i belive it has something to to with the timer i use in the class:

public class MyClass implements Runnable{
   public void run(){
   final Timer timer = new Timer();
   timer.schedule(new TimerTask(){
   public void run(){
  
   timer.cancel();

   }
   }, 60*1000);
   }
   public void startUpdate(){
   try{
   System.out.println(do something);
   Process p = 
Runtime.getRuntime().exec(TomcatPath.getAbsInstPath()+update/check_for_updates.exe);

   }catch(Exception e){
  
   }

   }
}


dont know what do to since i need the timer task and i need it in a 
separate thread...


--stephan

-
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: Cannot create object of class

2007-01-09 Thread Stephan Schöffel

MyClass is in the manage lib.

if i delete this timer-stuff it works fine... but i need the timer



Li wrote:

Hi, it seems that catalina was trying to find your MyClass in her 
manager's

classpath java.lang.NoClassDefFoundError:
org/apache/catalina/manager/MyClass$1.

Make sure your class path is correct. A faster way to test if to write a
simple jsp and run your thread inside
% ... %. You can need configure your system to give tomcat 
permission to

run process or executable files...



On 1/9/07, Stephan Schöffel [EMAIL PROTECTED] wrote:



hi,

have a problem with creating a class in the doPost method of a servlet:

MyClass mc= new MyClass();

if i do so i get the following error message:


  HTTP Status 500 -



*type* Exception report

*message*

*description* _The server encountered an internal error () that
prevented it from fulfilling this request._

*exception*

javax.servlet.ServletException: Servlet execution threw an exception

*root cause*

java.lang.NoClassDefFoundError: org/apache/catalina/manager/MyClass$1
org.apache.catalina.manager.AgroManagerServlet.doPost(
AgroManagerServlet.java:112)
javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

*note* _The full stack trace of the root cause is available in the
Apache Tomcat/5.5.20 logs._




  Apache Tomcat/5.5.20




i belive it has something to to with the timer i use in the class:

public class MyClass implements Runnable{
public void run(){
final Timer timer = new Timer();
timer.schedule(new TimerTask(){
public void run(){

timer.cancel();
}
}, 60*1000);
}
public void startUpdate(){
try{
System.out.println(do something);
Process p =
Runtime.getRuntime().exec(TomcatPath.getAbsInstPath
()+update/check_for_updates.exe);
}catch(Exception e){

}
}
}


dont know what do to since i need the timer task and i need it in a
separate thread...

--stephan

-
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]



disable war deployment

2007-01-03 Thread Stephan Schöffel

hi,

is there a way to disable deployment of war files dropped into the 
appBase? i dont mean the autoDeploy attribute. i need tomcat to not 
deploy any war files at all...


gtx
stephan

-
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: disable war deployment

2007-01-03 Thread Stephan Schöffel
i do need the write access to the tomcat dirs. but i need tomcat to not 
start apps i dont want it to.



David Delbecq wrote:


Is the purpose to prevent users having access to file system from adding
wars to tomcat? If yes, just use the OS to forbid write access to
appBase for any user and also protect work directory from all users but
tomcat.

En l'instant précis du 01/03/07 11:22, Stephan Schöffel s'exprimait dans
toute sa noblesse:
 


hi,

is there a way to disable deployment of war files dropped into the
appBase? i dont mean the autoDeploy attribute. i need tomcat to not
deploy any war files at all...

gtx
stephan

-
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: disable war deployment

2007-01-03 Thread Stephan Schöffel
i had a look at those already and tried out different combinations. yet 
there is no way (obvious to me) to prevent tomcat from starting war 
files. i could use the deployOnStartup attribute but then i would 
prevent tomcat from starting apps that are not packed in a war, too. i 
had to start them all manually which is impossible.


i guess it would be easiest to use the deployXML flag (since this set to 
false for my concerns) in the deployWar() method as well.



David Delbecq wrote:


See http://tomcat.apache.org/tomcat-5.5-doc/config/host.html, the
deployOnStartup, autoDeploy and deployXML properties are probably what
you need to play with.

En l'instant précis du 01/03/07 12:01, Stephan Schöffel s'exprimait dans
toute sa noblesse:
 


i do need the write access to the tomcat dirs. but i need tomcat to
not start apps i dont want it to.


David Delbecq wrote:

   


Is the purpose to prevent users having access to file system from adding
wars to tomcat? If yes, just use the OS to forbid write access to
appBase for any user and also protect work directory from all users but
tomcat.

En l'instant précis du 01/03/07 11:22, Stephan Schöffel s'exprimait dans
toute sa noblesse:


 


hi,

is there a way to disable deployment of war files dropped into the
appBase? i dont mean the autoDeploy attribute. i need tomcat to not
deploy any war files at all...

gtx
stephan

-
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]

   




-
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: disable war deployment

2007-01-03 Thread Stephan Schöffel
the problem is easy: i have to distribute the tomcat with preinstalled 
apps. i havae to make sure the tomcat only loads apps that i delivered 
with it. now im trying to delete all ways loading apps. only apps in 
dir-structures should be loaded (ie with the deployDirectory() method, 
which i altered to verify the apps).


Gregor Schneider wrote:


Hi Stephan,

the real question here is: what do you want to achieve?

I'm afraid you try to put the cart before the horse

My guess is that you should take a look at what David wrote: Use your
OS to prevent unauthorized access to your file-system.

So I suggest you're letting us know what your exact problem is / what
you'd like to achieve, name the OS and maybe we can find an
appropriate solution for you.

Cheers

Greg




-
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: disable war deployment

2007-01-03 Thread Stephan Schöffel
that is another problem: i dont want to do that, i have to do that. as a 
requirement by my employer. the idea of not running other apps in my 
tomcat has juristic backgound...



Mikolaj Rydzewski wrote:


Stephan Schöffel wrote:

the problem is easy: i have to distribute the tomcat with 
preinstalled apps. i havae to make sure the tomcat only loads apps 
that i delivered with it. now im trying to delete all ways loading 
apps. only apps in dir-structures should be loaded (ie with the 
deployDirectory() method, which i altered to verify the apps).


Why do you want to do this? You distribute your app bundled with 
tomcat. It works for sure ;-) Why do you want to prevent running other 
apps withing the same tomcat? You can always put a sentence in 
readme/license file that you don't support modified installations, etc.


Have you tried to run embedded tomcat version? You can deploy an app 
using API, by hand.





-
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: disable war deployment

2007-01-03 Thread Stephan Schöffel

i already altered HostConfig to fit my needs.

just wanted to know if there is a way to disable war-deployment. the way 
like using deployXML to prevent tomcat deploy an app based on 
context.xml file...



David Delbecq wrote:


En l'instant précis du 01/03/07 13:05, Stephan Schöffel s'exprimait dans
toute sa noblesse:
 


the problem is easy: i have to distribute the tomcat with preinstalled
apps. i havae to make sure the tomcat only loads apps that i delivered
with it. 
   


And how is tomcat supposed to make the difference between those that are
delivered with it and those that are not?
 


now im trying to delete all ways loading apps. only apps in
dir-structures should be loaded (ie with the deployDirectory() method,
which i altered to verify the apps).
   


I think you will then have to overwrite / subclass the default catalina
host.
 


Gregor Schneider wrote:

   


Hi Stephan,

the real question here is: what do you want to achieve?

I'm afraid you try to put the cart before the horse

My guess is that you should take a look at what David wrote: Use your
OS to prevent unauthorized access to your file-system.

So I suggest you're letting us know what your exact problem is / what
you'd like to achieve, name the OS and maybe we can find an
appropriate solution for you.

Cheers

Greg
 



-
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: disable war deployment

2007-01-03 Thread Stephan Schöffel
i know this solution is anything but not secure. but the main point iin 
doing this is a juristic question. if someone is able to put a war file 
into the tomcat installed to your computer he can do probably anything 
he wants to your computer. but if he is able to do so, this security 
break is not the concern of me anymore, but the user's of this machine.



Gregor Schneider wrote:


Hi Stephan,

well, that's awkward.

Even if you are able to disable automatic deployment, anybody knowing
his ways around Tomcat will be able to change the settings again thus
make Tomcat load the other apps :(

my idea would be to write a valve checking which apps are installed:
If any other then your delivered apps are installed, Tomcat is
forwarding the request to a customized error-page.

however, even this solution will not prevent anybody from tampering.

HTH

Greg




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



pass object from host to servlet

2006-12-21 Thread Stephan Schöffel

hi,

i have my host make different checks during startup (in 
HostConfig.start()). i want to display the results in my own manager app 
which (as HTMLManagerServlet) extends ManagerServlet. is there a way to 
pass objects from the host to the managerservlet?


--stephan

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



tomcat service issue

2006-12-11 Thread Stephan Schöffel

hi there,

i altered tomcat internals to read different files at startup. this 
works fine when starting up tomcat manually since the startup.bat and 
the read file are in the bin directory.


but when running tomcat as a service, it does not find the file. somehow 
it uses a different path while starting up as a service. can someone 
tell me how this path looks like and how to change it so i can use the 
same paths as i did starting manually?


--stephan

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



when are the apps loaded?

2006-11-21 Thread Stephan Schöffel

hi,

can some point out to me where in the sourcecoude the apps are loaded?

--stephan

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Problem with bootstrap.java

2006-11-13 Thread Stephan Schöffel

hi there

i'm trying to alter the bootstrap.java class to fit my needs. i got the 
source of 5.5.20. now i altered the source in eclipse and exported all 
files that belong to it to bootstrap.jar and copy it to my tomcat/bin dir.


unfortunately i get the following error-message while trying to run it:

Exception in thread main java.lang.NoClassDefFoundError: 
org/apache/commons/lo

gging/LogFactory
   at org.apache.catalina.startup.Bootstrap.clinit(Bootstrap.java:53)

i searched the LogFactory but could not find a main class there. anyone 
got an idea?


--stephan

-
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: Problem with bootstrap.java

2006-11-13 Thread Stephan Schöffel

where can i find the manifest of bootstrap.jar?



It's looking for LogFactory in main of Bootstrap. Have a look to learn 
at the manifest of the bootstrap.jar to learn about the dependencies.


Regards,

Rainer

Stephan Schöffel wrote:


hi there

i'm trying to alter the bootstrap.java class to fit my needs. i got 
the source of 5.5.20. now i altered the source in eclipse and 
exported all files that belong to it to bootstrap.jar and copy it 
to my tomcat/bin dir.


unfortunately i get the following error-message while trying to run it:

Exception in thread main java.lang.NoClassDefFoundError: 
org/apache/commons/lo

gging/LogFactory
   at 
org.apache.catalina.startup.Bootstrap.clinit(Bootstrap.java:53)


i searched the LogFactory but could not find a main class there. 
anyone got an idea?


--stephan

-
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: Problem with bootstrap.java

2006-11-13 Thread Stephan Schöffel
i tried running the build file. not very familiar with build files i got 
the following error message after downloading a lot of common libs:


downloadzip:
 [get] Getting: 
http://sunsite.informatik.rwth-aachen.de/eclipse/downloads/

drops/R-3.1.2-200601181600/eclipse-JDT-3.1.2.zip
 [get] To: F:\usr\share\java\file.zip
 [get] Error opening connection java.io.FileNotFoundException: 
http://sunsi

te.informatik.rwth-aachen.de/eclipse/downloads/drops/R-3.1.2-200601181600/eclips
e-JDT-3.1.2.zip
 [get] Error opening connection java.io.FileNotFoundException: 
http://sunsi

te.informatik.rwth-aachen.de/eclipse/downloads/drops/R-3.1.2-200601181600/eclips
e-JDT-3.1.2.zip
 [get] Error opening connection java.io.FileNotFoundException: 
http://sunsi

te.informatik.rwth-aachen.de/eclipse/downloads/drops/R-3.1.2-200601181600/eclips
e-JDT-3.1.2.zip
 [get] Can't get 
http://sunsite.informatik.rwth-aachen.de/eclipse/downloads
/drops/R-3.1.2-200601181600/eclipse-JDT-3.1.2.zip to 
\usr\share\java\file.zip


BUILD FAILED
F:\test\apache-tomcat-5.5.20-src\build.xml:48: The following error 
occurred whil

e executing this line:
F:\test\apache-tomcat-5.5.20-src\build\build.xml:1981: The following 
error occur

red while executing this line:
F:\test\apache-tomcat-5.5.20-src\build\build.xml:672: The following 
error occurr

ed while executing this line:
F:\test\apache-tomcat-5.5.20-src\build\build.xml:2015: Can't get 
http://sunsite.

informatik.rwth-aachen.de/eclipse/downloads/drops/R-3.1.2-200601181600/eclipse-J
DT-3.1.2.zip to \usr\share\java\file.zip


instead i retried exporting with eclipse (since unsing the tomcat build 
script did not work) with the manifest from the source, which looks like 
this:


Manifest-Version: 1.0
Main-Class: org.apache.catalina.startup.Bootstrap
Class-Path: jmx.jar commons-daemon.jar commons-logging-api.jar 
tomcat-juli.jar

Specification-Title: Catalina
Specification-Version: 1.0

sadly, this led to a different error:

E:\Programme\Apache\apache-tomcat-5.5.20\bincatalina run
Using CATALINA_BASE:   E:\Programme\Apache\apache-tomcat-5.5.20
Using CATALINA_HOME:   E:\Programme\Apache\apache-tomcat-5.5.20
Using CATALINA_TMPDIR: E:\Programme\Apache\apache-tomcat-5.5.20\temp
Using JRE_HOME:C:\Programme\Java\jre1.5.0_09
*
13.11.2006 15:49:15 org.apache.catalina.startup.Bootstrap initClassLoaders
SCHWERWIEGEND: Class loader creation threw exception
java.lang.NoClassDefFoundError: 
org/apache/catalina/loader/StandardClassLoader
   at 
org.apache.catalina.startup.Bootstrap.createClassLoader(Bootstrap.jav

a:172)
   at 
org.apache.catalina.startup.Bootstrap.initClassLoaders(Bootstrap.java

:97)
   at org.apache.catalina.startup.Bootstrap.init(Bootstrap.java:212)
   at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:409)

yet i inluded catalina.jar (which contains StandardClassLoader) in my 
project...









Rainer Jung wrote:


Inside the jar. Google for jar manifest will give you a link like:

http://java.sun.com/j2se/1.4.2/docs/guide/jar/jar.html

Jars and manifest are a general notation with java, they are not 
special for tomcat.


Stephan Schöffel wrote:


where can i find the manifest of bootstrap.jar?



It's looking for LogFactory in main of Bootstrap. Have a look to 
learn at the manifest of the bootstrap.jar to learn about the 
dependencies.


Regards,

Rainer

Stephan Schöffel wrote:


hi there

i'm trying to alter the bootstrap.java class to fit my needs. i got 
the source of 5.5.20. now i altered the source in eclipse and 
exported all files that belong to it to bootstrap.jar and copy it 
to my tomcat/bin dir.


unfortunately i get the following error-message while trying to run 
it:


Exception in thread main java.lang.NoClassDefFoundError: 
org/apache/commons/lo

gging/LogFactory
   at 
org.apache.catalina.startup.Bootstrap.clinit(Bootstrap.java:53)


i searched the LogFactory but could not find a main class there. 
anyone got an idea?


--stephan




-
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: Problem with bootstrap.java

2006-11-13 Thread Stephan Schöffel
is there a way to build boostrap.jar without having to build the whole 
container?



David Delbecq wrote:


Log factory is part of the commons loggin facilities. Try to use the
tomcat provided build script instead of using eclipse jar builder to
create your bootstrap.jar

Stephan Schöffel a écrit :
 


hi there

i'm trying to alter the bootstrap.java class to fit my needs. i got
the source of 5.5.20. now i altered the source in eclipse and exported
all files that belong to it to bootstrap.jar and copy it to my
tomcat/bin dir.

unfortunately i get the following error-message while trying to run it:

Exception in thread main java.lang.NoClassDefFoundError:
org/apache/commons/lo
gging/LogFactory
  at
org.apache.catalina.startup.Bootstrap.clinit(Bootstrap.java:53)

i searched the LogFactory but could not find a main class there.
anyone got an idea?

--stephan

-
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: Problem with bootstrap.java

2006-11-13 Thread Stephan Schöffel

i used the build.xml delivered with the tomcat 5.5.20 source:

project name=Tomcat 5.0 Netbuild default=build basedir=.


 !-- = Initialize Property Values 
=== --


 !-- See build.properties.sample in the top level directory for 
all --
 !-- property values you must customize for successful 
building!!!--

 property file=${user.home}/build.properties/
 property file=build.properties/
 property file=build.properties.default/

 !-- Project Properties --
 property name=name  value=Apache Tomcat /
 property name=year  value=2005 /
 property name=version   value=5.5 /
 property name=project   value=jakarta-tomcat /
 property name=final.namevalue=${project}-${version} /
 property name=final-src.name
value=${project}-${version}-src /


 !-- SVNROOT --
 property name=svnroot
  value=http://svn.apache.org/repos/asf/; /

 !-- Subprojects --
 property name=api.project   value=servletapi /
 property name=tomcat.projectvalue=build /
 property name=catalina.project  value=container /
 property name=jtc.project   value=connectors /
 property name=jasper.projectvalue=jasper /

 property name=current.loc   value=tomcat/current/tc5.5.x /

 !-- Source dependencies --
 property name=api.home
  value=${basedir}/${api.project}/
 property name=catalina.home
  value=${basedir}/${catalina.project}/
 property name=jasper.home
  value=${basedir}/${jasper.project}/
 property name=jtc.home
  value=${basedir}/${jtc.project}/
 property name=tomcat.home
  value=${basedir}/${tomcat.project}/

 target name=build depends=check.source,get.source
  description=Builds all components

   ant dir=${tomcat.home} target=download /
   ant dir=${tomcat.home} target=deploy /

 /target

 !-- Top-level clean target added per Bugzilla 33325 --
 target name=clean
 description=Clean (delete) all project files
   echo message=Deleting all project files /
   delete dir=${api.home} /
   delete dir=${catalina.home} /
   delete dir=${jasper.home} /
   delete dir=${jtc.home} /
   delete dir=${tomcat.home} /
 /target

 target name=checkout
 description=Update or checkout required sources from SVN

   echo level=info
   message=If the checkout fails, - todo -  /

   exec dir=${basedir} executable=svn
arg line=checkout ${svnroot}/${current.loc} ${basedir} /
   /exec

 /target

 !-- *** UTILITY TARGETS *** --

 target name=check.source

   available property=source.exists
  file=${basedir}/${tomcat.project} type=dir /

 /target

 target name=get.source unless=source.exists

   antcall target=checkout /

 /target

/project



Martin Gainty wrote:

Please display build.xml you are using 


M-
This e-mail communication and any attachments may contain confidential and privileged information for the use of the 
designated recipients named above. If you are not the intended recipient, you are hereby notified that you have received
this communication in error and that any review, disclosure, dissemination, distribution or copying of it or its 
contents
- Original Message - 
From: Stephan Schöffel [EMAIL PROTECTED]

To: Tomcat Users List users@tomcat.apache.org
Sent: Monday, November 13, 2006 9:53 AM
Subject: Re: Problem with bootstrap.java


 

i tried running the build file. not very familiar with build files i got 
the following error message after downloading a lot of common libs:


downloadzip:
[get] Getting: 
http://sunsite.informatik.rwth-aachen.de/eclipse/downloads/

drops/R-3.1.2-200601181600/eclipse-JDT-3.1.2.zip
[get] To: F:\usr\share\java\file.zip
[get] Error opening connection java.io.FileNotFoundException: 
http://sunsi

te.informatik.rwth-aachen.de/eclipse/downloads/drops/R-3.1.2-200601181600/eclips
e-JDT-3.1.2.zip
[get] Error opening connection java.io.FileNotFoundException: 
http://sunsi

te.informatik.rwth-aachen.de/eclipse/downloads/drops/R-3.1.2-200601181600/eclips
e-JDT-3.1.2.zip
[get] Error opening connection java.io.FileNotFoundException: 
http://sunsi

te.informatik.rwth-aachen.de/eclipse/downloads/drops/R-3.1.2-200601181600/eclips
e-JDT-3.1.2.zip
[get] Can't get 
http://sunsite.informatik.rwth-aachen.de/eclipse/downloads
/drops/R-3.1.2-200601181600/eclipse-JDT-3.1.2.zip to 
\usr\share\java\file.zip


BUILD FAILED
F:\test\apache-tomcat-5.5.20-src\build.xml:48: The following error 
occurred whil

e executing this line:
F:\test\apache-tomcat-5.5.20-src\build\build.xml:1981: The following 
error occur

red while executing this line:
F:\test\apache-tomcat-5.5.20-src\build\build.xml:672: The following 
error occurr

ed while executing this line:
F:\test\apache-tomcat-5.5.20-src\build\build.xml:2015: Can't get 
http://sunsite.

informatik.rwth-aachen.de/eclipse/downloads/drops/R-3.1.2-200601181600/eclipse-J
DT-3.1.2.zip to \usr\share\java

Re: Tomcat 5.5 service.bat

2006-11-06 Thread Stephan Schöffel

both, catalina.bat and service bat are included in 5.5.20


Derrick Koes wrote:


http://tomcat.apache.org/tomcat-5.5-doc/windows-service-howto.html

The tomcat 5.5 documentation states that service.bat can be used to
create a tomcat service.  However, the install appears not to have
installed the service.bat file.  I noticed that other files such as
catalina.bat that existed in tomcat 5.0 are missing from the bin
directory.

Does this have something to do with the procrun 1.0 notice at the top of
this doc page?

Thanks,
Derrick

 




-
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: Multiple paths to one application

2006-11-02 Thread Stephan Schöffel
if you map them to one app in your web.xml you can have different paths 
link to one app.


like:

servlet
   servlet-nameMyServlet/servlet-name
   servlet-classmy.Servlet/servlet-class
   /servlet
   servlet-mapping
   servlet-nameMyServlet/servlet-name
   url-pattern/path1/servlet1/url-pattern
   /servlet-mapping
servlet-mapping
   servlet-nameMyServlet/servlet-name
   url-pattern/path2/servlet2/url-pattern
   /servlet-mapping

both links would map to MyServlet ie my.Servlet.class

Peter Neu wrote:


Hello,

is here a way to have multiple paths configured for one apps?
Like :

Localhost/path1/servlet1

Localhost/path2/servlet2


Cheers,
Pete






-
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: Multiple paths to one application

2006-11-02 Thread Stephan Schöffel
you are right. you still have to include the webapps folder in your 
path. therefore it would work this way:


localhost/myapp/path1/servlet1
localhost/myapp/path2/servlet2

i guess you had to replace the root app to have just / as your app 
folder... (just as you said)


--stephan

Andrew Miehs wrote:


-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Doesn't this only work if your application replaces the 'ROOT'  
application?


Andrew

On 02/11/2006, at 9:56 AM, Stephan Schöffel wrote:

if you map them to one app in your web.xml you can have different  
paths link to one app.


like:

servlet
   servlet-nameMyServlet/servlet-name
   servlet-classmy.Servlet/servlet-class
   /servlet
   servlet-mapping
   servlet-nameMyServlet/servlet-name
   url-pattern/path1/servlet1/url-pattern
   /servlet-mapping
servlet-mapping
   servlet-nameMyServlet/servlet-name
   url-pattern/path2/servlet2/url-pattern
   /servlet-mapping

both links would map to MyServlet ie my.Servlet.class



-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.1 (Darwin)

iD8DBQFFSbbPW126qUNSzvURAn4qAKCUxRJ5gzOEVTINFsLzggswi6n1VACfc+mE
GHpg8SLtzz0o5x4op7JhmNg=
=4vxd
-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]





-
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: Apache with Windows 98

2006-10-27 Thread Stephan Schöffel
just had to do the same at university a few days ago. at least tomcat 
5.5.17 works well on win98se... and jre 1.5 works fine as well...



Eric wrote:

i wanna avoid this problem too but i am a student now having my 
internship
to do my Final Year Project. so there is no choice because i got a PC 
that

is running on Windows98. so what to do. i have to live with it and find
solutions to work it out.  =)
this computer is running on 128mb ram. do u even think it's possible 
to run

apache tomcat? would it hang?
thanks alot for the info. i will think abt it.


On 10/27/06, Caldarale, Charles R [EMAIL PROTECTED] wrote:



 From: Eric [mailto:[EMAIL PROTECTED]
 Subject: Re: Apache with Windows 98

 sorry. i think i got some typing error in my question..

You did, but only in that Apache is a software development organization,
and you probably meant running Tomcat, an Apache project.  But the point
remains that doing anything on Win98 these days is a waste of time, and
it's pretty silly to use Tomcat versions that are years old.  If you can
find a 1.4 JVM to install, it may work, but I can't imagine why you'd
bother.

- Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
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: Apache with Windows 98

2006-10-27 Thread Stephan Schöffel
i'll give it a try with win98 and 128MB of RAM later. i post the results 
when im done


--Stephan

Eric wrote:


but my friend tried apache tomcat 5.5, he said the whole computer almost
hang. is it possible with my 128mb ram? i am going to merge it with
JCreator. is that possible as well? because my team mate has a notebook
running on windowsXP so she is running with eclipse. i dont think this 
com

can do so. that's why i wanted to get the minimum requirements to run
JCreator with Apache Tomcat to run and see the effect

On 10/27/06, Stephan Schöffel [EMAIL PROTECTED] wrote:



just had to do the same at university a few days ago. at least tomcat
5.5.17 works well on win98se... and jre 1.5 works fine as well...


Eric wrote:

 i wanna avoid this problem too but i am a student now having my
 internship
 to do my Final Year Project. so there is no choice because i got a PC
 that
 is running on Windows98. so what to do. i have to live with it and 
find

 solutions to work it out.  =)
 this computer is running on 128mb ram. do u even think it's possible
 to run
 apache tomcat? would it hang?
 thanks alot for the info. i will think abt it.


 On 10/27/06, Caldarale, Charles R [EMAIL PROTECTED] wrote:


  From: Eric [mailto:[EMAIL PROTECTED]
  Subject: Re: Apache with Windows 98
 
  sorry. i think i got some typing error in my question..

 You did, but only in that Apache is a software development
organization,
 and you probably meant running Tomcat, an Apache project.  But the
point
 remains that doing anything on Win98 these days is a waste of 
time, and

 it's pretty silly to use Tomcat versions that are years old.  If you
can
 find a 1.4 JVM to install, it may work, but I can't imagine why you'd
 bother.

 - Chuck


 THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE
PROPRIETARY
 MATERIAL and is thus for use only by the intended recipient. If you
 received this in error, please contact the sender and delete the 
e-mail

 and its attachments from all computers.

 -
 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: R: PROBLEMS CONNECTING TO TOMCAT MANAGER

2006-10-27 Thread Stephan Schöffel

ping localhost



How can I see if the localhost
is locked?
 




-
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: Hi

2006-10-27 Thread Stephan Schöffel

make sure tomcat is started


adeyemi adesina wrote:


Hello Users,

I got an error message The page cannot be found. when I tried to
access the 'Tomcat Manager' page by Clicking Start-All Programs-
Apache Tomacat 5.5- 'Tomcat Manager' on Windows XP. I have accessed the
'Tomcat Manager' page several times before, but I am having a problem
accessing it now. 


Could someone tell me what to do to resolve this error message.

An early response will be appreciated.

Kind Regards,
'Yemi.

 




-
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: Apache with Windows 98

2006-10-27 Thread Stephan Schöffel

i wont be able to try out until monday...


Eric wrote:


thanks. do keep me in touch abt the results

On 10/27/06, Stephan Schöffel [EMAIL PROTECTED] wrote:



i'll give it a try with win98 and 128MB of RAM later. i post the results
when im done

--Stephan

Eric wrote:

 but my friend tried apache tomcat 5.5, he said the whole computer 
almost

 hang. is it possible with my 128mb ram? i am going to merge it with
 JCreator. is that possible as well? because my team mate has a 
notebook

 running on windowsXP so she is running with eclipse. i dont think this
 com
 can do so. that's why i wanted to get the minimum requirements to run
 JCreator with Apache Tomcat to run and see the effect

 On 10/27/06, Stephan Schöffel [EMAIL PROTECTED] wrote:


 just had to do the same at university a few days ago. at least tomcat
 5.5.17 works well on win98se... and jre 1.5 works fine as well...


 Eric wrote:

  i wanna avoid this problem too but i am a student now having my
  internship
  to do my Final Year Project. so there is no choice because i got 
a PC

  that
  is running on Windows98. so what to do. i have to live with it and
 find
  solutions to work it out.  =)
  this computer is running on 128mb ram. do u even think it's 
possible

  to run
  apache tomcat? would it hang?
  thanks alot for the info. i will think abt it.
 
 
  On 10/27/06, Caldarale, Charles R [EMAIL PROTECTED] 
wrote:

 
 
   From: Eric [mailto:[EMAIL PROTECTED]
   Subject: Re: Apache with Windows 98
  
   sorry. i think i got some typing error in my question..
 
  You did, but only in that Apache is a software development
 organization,
  and you probably meant running Tomcat, an Apache project.  But the
 point
  remains that doing anything on Win98 these days is a waste of
 time, and
  it's pretty silly to use Tomcat versions that are years old.  
If you

 can
  find a 1.4 JVM to install, it may work, but I can't imagine why
you'd
  bother.
 
  - Chuck
 
 
  THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE
 PROPRIETARY
  MATERIAL and is thus for use only by the intended recipient. If 
you

  received this in error, please contact the sender and delete the
 e-mail
  and its attachments from all computers.
 
 
-
  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]







-
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: Hi

2006-10-27 Thread Stephan Schöffel

in server.xml look for this line:

Connector port=80 maxHttpHeaderSize=8192 maxThreads=150 
minSpareThreads=25 maxSpareThreads=75 enableLookups=false 
redirectPort=8443 acceptCount=100 connectionTimeout=2 
disableUploadTimeout=true/


and change port then point to the tomcat start page via your browser using:
localhost:port (eg localhost:8123)

adeyemi adesina wrote:


The problem persists despite the fact that the Apache Tomcat service is
running.

Attached are the contents of my log files that have sizes greater than
zero (0) kb. It seems port number 80 is in use. How do I assign another
port number to Tomcat 5.5?

Thanks.

-Original Message-
From: Stephan Schöffel [mailto:[EMAIL PROTECTED] 
Sent: Friday, October 27, 2006 2:04 PM

To: Tomcat Users List
Subject: Re: Hi

make sure tomcat is started


adeyemi adesina wrote:

 


Hello Users,

I got an error message The page cannot be found. when I tried to
access the 'Tomcat Manager' page by Clicking Start-All Programs-
Apache Tomacat 5.5- 'Tomcat Manager' on Windows XP. I have accessed
   


the
 


'Tomcat Manager' page several times before, but I am having a problem
accessing it now. 


Could someone tell me what to do to resolve this error message.

An early response will be appreciated.

Kind Regards,
'Yemi.



   




-
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: Apache with Windows 98

2006-10-27 Thread Stephan Schöffel
fortunately i dont have to use it, but i have to make sure my apps run 
on it. its in the spec...



Brandon Goodin wrote:


In the name of all that is good, what university subjects its students to
using Windows 98!?

Brandon

On 10/27/06, Stephan Schöffel [EMAIL PROTECTED] wrote:



i wont be able to try out until monday...


Eric wrote:

 thanks. do keep me in touch abt the results

 On 10/27/06, Stephan Schöffel [EMAIL PROTECTED] wrote:


 i'll give it a try with win98 and 128MB of RAM later. i post the
results
 when im done

 --Stephan

 Eric wrote:

  but my friend tried apache tomcat 5.5, he said the whole computer
 almost
  hang. is it possible with my 128mb ram? i am going to merge it with
  JCreator. is that possible as well? because my team mate has a
 notebook
  running on windowsXP so she is running with eclipse. i dont think
this
  com
  can do so. that's why i wanted to get the minimum requirements 
to run

  JCreator with Apache Tomcat to run and see the effect
 
  On 10/27/06, Stephan Schöffel [EMAIL PROTECTED] wrote:
 
 
  just had to do the same at university a few days ago. at least
tomcat
  5.5.17 works well on win98se... and jre 1.5 works fine as well...
 
 
  Eric wrote:
 
   i wanna avoid this problem too but i am a student now having my
   internship
   to do my Final Year Project. so there is no choice because i got
 a PC
   that
   is running on Windows98. so what to do. i have to live with 
it and

  find
   solutions to work it out.  =)
   this computer is running on 128mb ram. do u even think it's
 possible
   to run
   apache tomcat? would it hang?
   thanks alot for the info. i will think abt it.
  
  
   On 10/27/06, Caldarale, Charles R [EMAIL PROTECTED]
 wrote:
  
  
From: Eric [mailto:[EMAIL PROTECTED]
Subject: Re: Apache with Windows 98
   
sorry. i think i got some typing error in my question..
  
   You did, but only in that Apache is a software development
  organization,
   and you probably meant running Tomcat, an Apache project.  But
the
  point
   remains that doing anything on Win98 these days is a waste of
  time, and
   it's pretty silly to use Tomcat versions that are years old.
 If you
  can
   find a 1.4 JVM to install, it may work, but I can't imagine why
 you'd
   bother.
  
   - Chuck
  
  
   THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE
  PROPRIETARY
   MATERIAL and is thus for use only by the intended recipient. If
 you
   received this in error, please contact the sender and delete 
the

  e-mail
   and its attachments from all computers.
  
  
 -
   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]





-
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]



Tomcat Security Problem

2006-10-26 Thread Stephan Schöffel

hi everbody,

i need tomcat to run/deploy only known applications. at startup the 
container should somehow realize that a certain app is a not authorized 
one and not load it.


maybe you can point out at me where to start.

thanks in advance
stephan

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]