Re: Compiling JSP files

2005-05-24 Thread Marco Pöhler
You have to add jsp-api.jar to the classpath.

hth 
Marco

---
http://www.kontaktlinsen-preisvergleich.de
http://www.faq-kontaktlinsen.de

Am Dienstag, den 24.05.2005, 08:46 -0500 schrieb Charles P. Killmer:
 I am having a problem where one of my jsp files won't compile.  Tomcat
 successfully creates the java file but it never creates the class file
 and hence never responds to the request for the page.  
  
 I am looking for what needs to be in the command line in order to
 manually compile the java file the gets created in order to look for
 errors in that process.
  
 This is what I have so far but I am getting errors.
 c:\jdk1.5.0\bin\javac -classpath
 %CLASSPATH%;C:\tomcat\work\Catalina\Site1\_;C:\tomcat\common\lib\servlet
 .jar test_jsp.java
  
 
 Errors:
 test_jsp.java:5: package javax.servlet.jsp does not exist
 import javax.servlet.jsp.*;
 ^
 test_jsp.java:8: package org.apache.jasper.runtime does not exist
 public final class test_jsp extends
 org.apache.jasper.runtime.HttpJspBase
  ^
 test_jsp.java:9: package org.apache.jasper.runtime does not exist
 implements org.apache.jasper.runtime.JspSourceDependent {
 ^
  
 
 Thanks
 Charles


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



RE: Tomcat vs Apache

2005-05-19 Thread Marco Pöhler
You can find Peter's Benchmarks at
http://jakarta.apache.org/tomcat/articles/benchmark_summary.pdf

kr 
Marco
---
http://www.kontaktlinsen-preisvergleich.de
http://www.parfuem-faq.de

Am Mittwoch, den 18.05.2005, 16:50 -0500 schrieb Caldarale, Charles R:
  From: Dakota Jack [mailto:[EMAIL PROTECTED] 
  Subject: Re: Tomcat vs Apache
  
  I think there is not much question that the Apache server is far more
  efficient serving static html.  Is there really any issue on that?  If
  so, things sure have changed.  I thought the comparison was like 5 to
  1.  Is that no longer true?
 
 That is definitely no longer true - search the archives for Peter Lin's
 test results.  It's not quite parity, but it's close.
 
  - 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 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]



Re: Free reporting s/w that works with apache+tomcat

2005-05-10 Thread Marco Pöhler
May be DisplayTag and its export functionality can help you with
formating. 

http://displaytag.sourceforge.net/

regards,

Marco 


http://www.druckerpatronen--preisvergleich.de
http://www.tuxoo.org



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



AW: DBCP/JDBC Problems with DelegatingResultSet

2005-04-12 Thread Marco Pöhler
Hello Sebastian Wiemer,

The jar file containing the class is common/lib/naming-factory-dbcp.jar

Hth

Marco Pöhler

---
http://www.tuxoo.de
http://www.kontaktlinsen-preisvergleich.de

-Ursprüngliche Nachricht-
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Gesendet: Dienstag, 12. April 2005 15:56
An: tomcat-user@jakarta.apache.org
Betreff: DBCP/JDBC Problems with DelegatingResultSet






Hello,

I need some help accessing low level routines using JDNI based
connection pooling provided by tomcat.

Environment:  J2SE 1.4.2
Tomcat: 5.5
JDBC-Driver:  Sybase JConnect 5.5 (TDS)

The Tomcat is configured to provide a small connection pool.

Within my servlet i need access to the low-level implementation of the
ResultSet from Sybase. The problem is, that the following code:

Connection conn = dataSource.getConnection();
Statement stmt = conn.getConnection();
ResultSet result = stmt.executeQuery( ... );

System.out.println( result.getClass().getName() );

prints org.apache.tomcat.dbcp.dbcp.DelegatingResultSet.

I couldn't find a api documentation for this class nor could i find the
jar file providing this class at all in the tomcat installation
directory.

Can anyone give a hint in which JAR archive this class can be found ?



Mit freundlichen Grüßen / Kind regards
Sebastian Wiemer


Sebastian Wiemer
GfK Group
Data Services GmbH
Nordwestring 101
D-90319 Nürnberg
Fon: +49 (0) 911 395 3876
Fax: +49 (0) 911 333 796
[EMAIL PROTECTED]
www.gfk.de / www.gfk.com




_

Diese E-Mail (ggf. nebst Anhang) enthält vertrauliche und/oder rechtlich
geschützte Informationen. Wenn Sie nicht der richtige Adressat sind,
oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte
sofort den Absender und vernichten Sie diese Mail. Das unerlaubte
Kopieren sowie die unbefugte Weitergabe dieser Mail ist nicht gestattet.

This e-mail (and any attachment/s) contains confidential and/or
privileged information. If you are not the intended recipient (or have
received this e-mail in error) please notify the sender immediately and
destroy this e-mail. Any unauthorised copying, disclosure or
distribution of the material in this e-mail is strictly forbidden.
_


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



RE: want to start tomcat in a cron job

2005-04-08 Thread Marco Pöhler
Hi Krishnakant, 

This works for me, especially if tomcat hangs sometimes and the
shutdown.sh doesn't work in that case. I run this script once a day on
tomcat 5.5.7.

#!/bin/bash
kill -9 `cat /usr/local/java/tomcat/tomcat.pid`
/etc/init.d/tomcat start

The startscript is just a call to bin/startup.sh.

Hth 

Marco

---
http://www.kontaktlinsen-preisvergleich.de
http://www.tuxoo.org

-Ursprüngliche Nachricht-
Von: Krishnakant Mane [mailto:[EMAIL PROTECTED] 
Gesendet: Freitag, 8. April 2005 09:57
An: tomcat-user@jakarta.apache.org
Betreff: want to start tomcat in a cron job 


hello all,
I want to use the startup.sh and shutdown.sh scripts
in a cron job.
is there a script I can create to restart tomcat every
hour.
I don't want to use the startup and shutdown scripts
and as it is cron is not running these scripts
properly.
please help me with a restart script for tomcat 5.0.25
if any one has it
Thanks
Krishnakant.

Send instant messages to your online friends
http://uk.messenger.yahoo.com 

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



Re: Virtual Hosts on Tomcat 5

2004-07-03 Thread Marco Pöhler
Hi Steve,

just add an Alias directive nested in the Host-Element. An example can be 
seen in http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/host.html

hope that helps

Marco
---
http://www.optik-preisvergleich.de
http://www.druckerpatronen--preisvergleich.de
http://www.lenses-price-comparison.com

Am Freitag 02 Juli 2004 21:55 schrieb Steve Beaman:
 I'm using Tomcat 5 standalone.
 Everything works just fine, but now
 I need to enter my virtual hosts information
 in the server.xml file.

 Does anybody have a server.xml file
 that uses virtual hosts that I could use as an
 example?

 Thanks.

 ---
- Steve Beaman   [EMAIL PROTECTED]
 Altura International
 http://SHOP.COM
 http://www.catalogcity.com

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



RE: tomcat daily restart

2004-06-02 Thread Marco Pöhler
The tomcat version is 5.0.19 and the pid option works well, my script looks
now like:

%-
#!/bin/bash
kill -9 `cat /usr/local/java/tomcat/tomcat.pid`
/etc/init.d/tomcat start
%-

thanks !

 -Ursprüngliche Nachricht-
 Von: Shapira, Yoav [mailto:[EMAIL PROTECTED]
 Gesendet: Dienstag, 1. Juni 2004 22:04
 An: Tomcat Users List
 Betreff: RE: tomcat daily restart



 Hi,
 Well, you're killing all java processes.  That seems a bit
 excessive, especially running as root since you WILL kill other
 people's jobs.

 You didn't specify your tomcat version.  Assuming it's from
 within the last year, there is a catalina-pid option you can set
 in $CATALINA_HOME/bin/catalina.sh.  If set, the process ID (PID)
 of the tomcat server will be written to the file specified in
 that attribute.  Your script would then look for this file and
 kill the PID specified in the file.  You could run this script as
 the tomcat server user, you don't need to be root, and your
 overall setup would be more secure and more robust.

 Yoav Shapira
 Millennium Research Informatics


 -Original Message-
 From: Marco Pöhler [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, June 01, 2004 4:01 PM
 To: tomcat-user
 Subject: tomcat daily restart
 
 Hi,
 
 somewhere in my web application is a memory leak, and the tomcat hangs
 after
 a week and /etc/init.d/tomcat stop won't work also. The
 application will be
 rewritten, so it is not important to find the leak. I'm
 currently think it
 is okay to restart the tomcat every night. I wrote the simple
 shell script
 below to do the job. The script is started as cronjob by root. The Script
 works, but my question is: Are there better solutions ? Are there any
 pitfalls I havn't seen ?
 
 %-
 #!/bin/bash
 kill -9 `ps ax | grep java | awk '{ print $1 }'`
 /etc/init.d/tomcat start
 %-
 
 thanks in advance
 
 Marco
 
 ---
 http://www.tintenpatronen-preisvergleich.de
 http://www.contact-lenses-price-comparison.com
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




 This e-mail, including any attachments, is a confidential
 business communication, and may contain information that is
 confidential, proprietary and/or privileged.  This e-mail is
 intended only for the individual(s) to whom it is addressed, and
 may not be saved, copied, printed, disclosed or used by anyone
 else.  If you are not the(an) intended recipient, please
 immediately delete this e-mail from your computer system and
 notify the sender.  Thank you.


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



AW: How to know if platform is Windows or Linux from jsp?

2004-06-02 Thread Marco Pöhler
Possible System.getProperty(os.name) will do the job ?!

kr

Marco Poehler

---
http://www.poehlerpoehler.de
http://www.kontaktlinsen-preisvergleich.de

 -Ursprüngliche Nachricht-
 Von: Francisco José Arnau Vives [mailto:[EMAIL PROTECTED]
 Gesendet: Mittwoch, 2. Juni 2004 12:14
 An: [EMAIL PROTECTED]
 Betreff: How to know if platform is Windows or Linux from jsp?


 How to know if platform is Windows or Linux from a jsp file in order to
 define variables to access to the file system?

 __
 __
 
 Este mensaje se dirige exclusivamente a su destinatario y puede contener
 información privilegiada o CONFIDENCIAL. Si no es vd. el destinatario
 indicado, queda notificado de que la utilización, divulgación y/o copia
 sin autorización está prohibida en virtud de la legislación vigente.
 Si ha recibido este mensaje por error, le rogamos que nos lo comunique
 inmediatamente por esta misma vía y proceda a su destrucción.

 This message is intended exclusively for its addressee and may contain
 information that is CONFIDENTIAL and protected by professional privilege.
 If you are not the intended recipient you are hereby notified that any
 dissemination, copy or disclosure of this communication is strictly
 prohibited by law. If this message has been received in error, please
 immediately notify us via e-mail and delete it.
 __
 __
 





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



tomcat daily restart

2004-06-01 Thread Marco Pöhler
Hi,

somewhere in my web application is a memory leak, and the tomcat hangs after
a week and /etc/init.d/tomcat stop won't work also. The application will be
rewritten, so it is not important to find the leak. I'm currently think it
is okay to restart the tomcat every night. I wrote the simple shell script
below to do the job. The script is started as cronjob by root. The Script
works, but my question is: Are there better solutions ? Are there any
pitfalls I havn't seen ?

%-
#!/bin/bash
kill -9 `ps ax | grep java | awk '{ print $1 }'`
/etc/init.d/tomcat start
%-

thanks in advance

Marco

---
http://www.tintenpatronen-preisvergleich.de
http://www.contact-lenses-price-comparison.com



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



AW: NEWBIE question: JAAS- versus JDBC- versus MemoryRealms

2004-03-23 Thread Marco Pöhler
Hi Leonard,

this works for me:

  Context path= docBase=/home/user1/trustedfeed debug=0
  ResourceLink name=jdbc/db global=jdbc/db
type=javax.sql.DataSource /
  Realm className=org.apache.catalina.realm.DataSourceRealm
debug=99
  dataSourceName=jdbc/db
  userTable=users userNameCol=username userCredCol=password
  userRoleTable=roles roleNameCol=rolename/
  /Context

Of course, you have to define the jdbc/db Datasource in the
GlobalNamingResources, too.

hth

Marco

---
http://www.optik-preisvergleich.de
http://www.kontaktlinsen-preisvergleich.de


 -Ursprüngliche Nachricht-
 Von: Leonard Wolters [mailto:[EMAIL PROTECTED]
 Gesendet: Dienstag, 23. März 2004 09:22
 An: [EMAIL PROTECTED]
 Betreff: NEWBIE question: JAAS- versus JDBC- versus MemoryRealms


 Hi,

 I've got a question concerning the different REALM available for
 Tomcat 5.x.
 The main (basic) question is that I want to secure my context
 annex websites
 / jsp
 pages. I have some experience with JAAS (JBOSS) and was investigating the
 possibility
 to use / implement JAAS for Tomcat. After some efforts I stopped
 since I to
 noticed it
 would take me to much pain ;-( (I needed to create to much source
 code hence
 it would
 take me to much time).

 Then I investigated the JDBC Realm and was trying to use this for securing
 my website.
 The question: Tomcat 5 delivers a pre-installed security JSP example
 (/jsp-examples/security/protected) which (as stated in the documentation)
 only works with
 the MemoryRealm. Well, I want this to work with the JDBCRealm (or even my
 own implementation)
 as well.

 Does anyone can provide me some configurations of how to achieve this ?
 Basically, I think
 I need to change the default JNDI UserBase (MemoryRealm) with my own one
 (JDBCRealm for example).
 However, is this the only thing I need to do ? If so, please provide me a
 server.xml configuration

 T.i.a,

 Leonard

 Leonard Wolters

 JTeam B.V.
 E: [EMAIL PROTECTED]
 T: +31(0)20 486 20 36
 M: +31(0)6 24 111 401
 F: +31(0)8 48 370 000
 W: www.jteam.nl


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



AW: java.lang.OutOfMemoryError

2004-03-23 Thread Marco Pöhler
Hi Neal,

I increased the JVM Memory with -Xmx300m - that seem to work. I checked the
heap status using the manager application and the memory usage after 2 days
is now up to 90 MB. But the growth has stopped. That seem to work.

Thanks !

Marco

---
http://www.lenses-price-comparison.com
http://www.optik-preisvergleich.de

 -Ursprüngliche Nachricht-
 Von: Neal [mailto:[EMAIL PROTECTED]
 Gesendet: Sonntag, 21. März 2004 21:33
 An: 'Tomcat Users List'
 Betreff: RE: java.lang.OutOfMemoryError


 I was having a similar problem with a similar configuration but was
 having to restart every day.  For some reason the exact same JDK/tomcat
 install on my windows dev box performed just fine under stress testing
 and reclaimed memory just fine whereas my Linux production box had
 serious issues.  I increased the memory from the default 64mb to 128mb
 on my linux server and now it is behaving just as the prod server does -
 its reclaiming memory in a similar healthy pattern. So, just try
 increasing the heap size to 128mb first and see if you're still having
 the same issue.  It seems to work some magic.

 Cheers.
 Neal

 -Original Message-
 From: Marco Pöhler [mailto:[EMAIL PROTECTED]
 Sent: Sunday, March 21, 2004 4:54 AM
 To: tomcat-user
 Subject: java.lang.OutOfMemoryError

 Hi,

 I'm running tomcat 5.0.19  J2SDK1.4.2_03 on a suse linux 8.1. I wrote a
 really simple application, just one servlet and a few jsp pages, using
 dbcp/jndi. Nevertheless I got an OutOfMemoryError every 2 days and I
 have to
 restart the tomcat to fix the problem. Here is the log entry:

 2004-03-21 10:41:04 StandardWrapperValve[mapperServlet]:
 Servlet.service()
 for servlet mapperServlet threw exception
 java.lang.OutOfMemoryError

 Okay, I've investigated my source code for some kind of memory leak, but
 without any success. How can I found what the problem is ? Are there
 tools
 which can help me ?

 thanks in advance

 Marco Poehler

 ---
 http://www.poehlerpoehler.de



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





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



RE: NEWBIE question: JAAS- versus JDBC- versus MemoryRealms

2004-03-23 Thread Marco Pöhler
Hi,

 How does the GlobalNamingResources relate to the REALM specified in the
 engine element ? Can someone
 tell me if the UserBase as specified in the GlobalNamingResources is being
 used by for the JSP security
 stuff ? (for example the
 /webapps/jsp-examples/security/protected/login.jsp)

In my thoughts, a realm in the context (or engine) overwrites the global
realm. So if you have defined a security-constraint in your
localhost-applicaions web.xml the user and roles used there for access
control are taken from the database. The memory-realm /tomcat-users.xml
won't be used. The security-constraints in the web.xml looks like:

security-constraint
display-nameAdmin Authentication/display-name
web-resource-collection
web-resource-nameProtected Area/web-resource-name
url-pattern/*/url-pattern
http-methodDELETE/http-method
http-methodGET/http-method
http-methodPOST/http-method
http-methodPUT/http-method
/web-resource-collection
auth-constraint
role-nameadmin/role-name
/auth-constraint
/security-constraint

hth.

Marco

---
http://www.druckerpatronen--preisvergleich.de
http://www.tintenpatronen-preisvergleich.de

 -Ursprüngliche Nachricht-
 Von: Leonard Wolters [mailto:[EMAIL PROTECTED]
 Gesendet: Dienstag, 23. März 2004 11:21
 An: Tomcat Users List
 Betreff: RE: NEWBIE question: JAAS- versus JDBC- versus MemoryRealms


 Thanks marco,


 However, can I also set this datasource for the Engine
 element ? (I thought I read something about a bug, although
 I'm not quite sure).

 Then, after I specified this new datasource in the either
 context or engine element, how do i confiugre the UserDatabase
 in the JNDI lookup ? For example:


   GlobalNamingResources
   Environment name=simpleValue
 type=java.lang.Integer value=30/
   Resource name=UserDatabase auth=Container
 type=org.apache.catalina.UserDatabase description=User
 database that can
 be updated and saved
   /Resource
   ResourceParams name=UserDatabase
   parameter
   namefactory/name

 valueorg.apache.catalina.users.MemoryUserDatabaseFactory/value
   /parameter
   parameter
   namepathname/name
   valueconf/tomcat-users.xml/value
   /parameter
   /ResourceParams
   /GlobalNamingResources

   !-- Define the Tomcat Stand-Alone Service --
   Service name=Catalina

   !-- Define a non-SSL Coyote HTTP/1.1 Connector on
 port 8080 --
   Connector port=8080 maxThreads=150 minSpareThreads=25
 maxSpareThreads=75 enableLookups=false redirectPort=8443
 acceptCount=100 debug=0 connectionTimeout=2
 disableUploadTimeout=true/

   !-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 --
   Connector port=8009 enableLookups=false
 redirectPort=8443 debug=0
 protocol=AJP/1.3/

   !-- Define the top level container in our
 container hierarchy --
   Engine name=Catalina defaultHost=localhost debug=0
   Logger
 className=org.apache.catalina.logger.FileLogger
 prefix=catalina_log. suffix=.txt timestamp=true/
   Realm
 className=org.apache.catalina.realm.JDBCRealm debug=99
 driverName=org.gjt.mm.mysql.Driver

 connectionURL=jdbc:mysql://localhost/build_jplanner
 connectionName=*** connectionPassword=**
   userTable=JT_USER
 userNameCol=LOGINNAME userCredCol=PASSWORD
   userRoleTable=JT_GROUP
 roleNameCol=NAME/
   Host name=localhost debug=0
 appBase=webapps unpackWARs=true
 autoDeploy=true xmlValidation=false xmlNamespaceAware=false
   Logger
 className=org.apache.catalina.logger.FileLogger
 directory=logs prefix=localhost_log. suffix=.txt timestamp=true/
   /Host
   /Engine
   /Service

 How does the GlobalNamingResources relate to the REALM specified in the
 engine element ? Can someone
 tell me if the UserBase as specified in the GlobalNamingResources is being
 used by for the JSP security
 stuff ? (for example the
 /webapps/jsp-examples/security/protected/login.jsp)

 T.i.a,

 Leonard


 -Original Message-
 From: Marco Pöhler [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, March 23, 2004 10:45 AM
 To: Tomcat Users List
 Subject: AW: NEWBIE question: JAAS- versus JDBC- versus MemoryRealms


 Hi Leonard,

 this works for me:

   Context path= docBase=/home/user1/trustedfeed debug=0
   ResourceLink name=jdbc/db global=jdbc/db
 type=javax.sql.DataSource /
   Realm className=org.apache.catalina.realm.DataSourceRealm
 debug=99
   dataSourceName=jdbc/db
   userTable=users userNameCol

java.lang.OutOfMemoryError

2004-03-21 Thread Marco Pöhler
Hi,

I'm running tomcat 5.0.19  J2SDK1.4.2_03 on a suse linux 8.1. I wrote a
really simple application, just one servlet and a few jsp pages, using
dbcp/jndi. Nevertheless I got an OutOfMemoryError every 2 days and I have to
restart the tomcat to fix the problem. Here is the log entry:

2004-03-21 10:41:04 StandardWrapperValve[mapperServlet]: Servlet.service()
for servlet mapperServlet threw exception
java.lang.OutOfMemoryError

Okay, I've investigated my source code for some kind of memory leak, but
without any success. How can I found what the problem is ? Are there tools
which can help me ?

thanks in advance

Marco Poehler

---
http://www.poehlerpoehler.de



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



AW: catch-all host mapping

2004-01-05 Thread Marco Pöhler
Yes,

I expected response in that direction ;-)

If there is no common way I will use an apache in front of tomcat and use
the configurations from the httpd to map my subdomains. That seems to be a
funny thing - looking on the other threads these days.

Thank you Yoav !

-Ursprüngliche Nachricht-
Von: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Gesendet: Montag, 5. Januar 2004 15:12
An: Tomcat Users List
Betreff: RE: catch-all host mapping



Howdy,
Yes, one idea: patch or extend StandardHost yourself. ;)

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Marco Pöhler [mailto:[EMAIL PROTECTED]
Sent: Saturday, January 03, 2004 9:20 AM
To: tomcat-user
Subject: catch-all host mapping

Hi,

I want to map every request like www1.mydomain.com and www2.mydomain.com to
one single webapp. That is possible using something like that:

-%-
Host name=www1.mydomain.com ...
   Aliaswww2.mydomain.com/Alias
   ...
/Host
-%-

That work's but I don't know how many wwwX.mydomains.com exists in the
future, and I don't want to add a Alias-line every time I add a new
subdomain. In my thoughts it should be possible to configure something like
that:

-%-
Host name=*.mydomain.com ...
   ...
/Host
-%-

But that doesn't work :-( Any Ideas to get this working ? I'm using tomcat
5.0.16 on jdk1.4.2, SuSE Linux.

thanks in advance

Marco

---
http://www.poehlerpoehler.de
http://www.archive4mail.com




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




This e-mail, including any attachments, is a confidential business
communication, and may contain information that is confidential, proprietary
and/or privileged.  This e-mail is intended only for the individual(s) to
whom it is addressed, and may not be saved, copied, printed, disclosed or
used by anyone else.  If you are not the(an) intended recipient, please
immediately delete this e-mail from your computer system and notify the
sender.  Thank you.


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



catch-all host mapping

2004-01-03 Thread Marco Pöhler
Hi,

I want to map every request like www1.mydomain.com and www2.mydomain.com to
one single webapp. That is possible using something like that:

-%-
Host name=www1.mydomain.com ...
Aliaswww2.mydomain.com/Alias
...
/Host
-%-

That work's but I don't know how many wwwX.mydomains.com exists in the
future, and I don't want to add a Alias-line every time I add a new
subdomain. In my thoughts it should be possible to configure something like
that:

-%-
Host name=*.mydomain.com ...
...
/Host
-%-

But that doesn't work :-( Any Ideas to get this working ? I'm using tomcat
5.0.16 on jdk1.4.2, SuSE Linux.

thanks in advance

Marco

---
http://www.poehlerpoehler.de
http://www.archive4mail.com



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



catch-all host mapping

2004-01-03 Thread Marco Pöhler
Hi,

I want to map every request like www1.mydomain.com and www2.mydomain.com to
one single webapp. That is possible using something like that:

-%-
Host name=www1.mydomain.com ...
Aliaswww2.mydomain.com/Alias
...
/Host
-%-

That work's but I don't know how many wwwX.mydomains.com exists in the
future, and I don't want to add a Alias-line every time I add a new
subdomain. In my thoughts it should be possible to configure something like
that:

-%-
Host name=*.mydomain.com ...
...
/Host
-%-

But that doesn't work :-( Any Ideas to get this working ? I'm using tomcat
5.0.16 on jdk1.4.2, SuSE Linux.

thanks in advance

Marco

---
http://www.poehlerpoehler.de
http://www.archive4mail.com




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



Re: disable session support in Tomcat

2003-06-18 Thread Marco Pöhler
that was fast...

I think I should try it with session enabled, the other options are... 
ahm... too simple ;-)

Thank you, Yoav

Am Mittwoch, 18. Juni 2003 19:53 schrieb Shapira, Yoav:
 Howdy,
 The Servlet Specification requires container to support sessions.  So no,
 you can't disable it ;)  You can:

 - Download the tomcat source and hack out the session-related items,
 rebuild it, and have your own session-less servlet container ;)

 - Have very short session timeouts, e.g. 1 minute.

 - Rethink why you want sessions disabled ;)

 Yoav Shapira
 Millennium ChemInformatics

 -Original Message-

 From: Marco Pöhler [mailto:[EMAIL PROTECTED]

 Sent: Wednesday, June 18, 2003 1:52 PM
 To: [EMAIL PROTECTED]
 Subject: disable session support in Tomcat
 
 Hi,
 
 Is it possible to disable the session support (means no cookies and no
 JSESSIONIDs) somewhere in Tomcat ?
 This is may be a simply question, but I couldn't found any hint in the
  docs and the list archive.
 
 Thanks in advance
 
 Marco
 
 P.S.: I'm using 4.1.12 on lInux
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]

 This e-mail, including any attachments, is a confidential business
 communication, and may contain information that is confidential,
 proprietary and/or privileged.  This e-mail is intended only for the
 individual(s) to whom it is addressed, and may not be saved, copied,
 printed, disclosed or used by anyone else.  If you are not the(an) intended
 recipient, please immediately delete this e-mail from your computer system
 and notify the sender.  Thank you.


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



apache Can't locate API module structure in file mod_jk.so

2000-11-13 Thread Marco Pöhler

Hi,

i try to start apache with mod_jk. I compiled mod_jk using the source-dist
and copy mod_jk.so to APACHE/libexec. The lines in my httpd.conf are:

LoadModule  jk_module libexec/mod_jk.so
AddModule   mod_jk.c

when i try to start apache i got this error:

root@marvin:/usr/local/apache  ./bin/apachectl start
Syntax error on line 207 of /usr/local/apache/conf/httpd.conf:
Can't locate API module structure `jk_module´ in file
/usr/local/apache/libexec/mod_jk.so: /usr/local/apache/libexec/mod_jk.so:
undefined symbol: jk_module
./bin/apachectl start: httpd could not be started

Line 207 is the LoadModule Line above.

thanks in advance

Marco





problems with mod_jk

2000-11-09 Thread Marco Pöhler

Hi,

i try to create mod_jk from the tomcat sources(3.1) on a linux system for
using with apache 1.3.14.
I read the "Working with mod_jk"-HOWTO, where the compilation is described.

My problem is that some directories refered in the HOWTO, especially
"jakarta-tomcat/src/native/apache1.3", does not exists. I missed a directory
called "jk", too. I've read the hints to use the source-dist, and i think i
got it
(http://jakarta.apache.org/builds/tomcat/release/v3.1/src/jakarta-tomcat.tar
.gz, isn't it ?).

tia

Marco