German Umlauts in Tomcat5

2004-05-14 Thread Christian Traber
Hi,

following example works with tomcat 4.1.30 but makes problems with tomcat 5.0.19 on SuSE9.1:

Client side:

	// vir.shortName = Gfüllner
	String username = URLEncoder.encode(vir.shortName,UTF-8); 
	 // == username = Gf%C3%BCllner

   HttpURLConnection huc = (HttpURLConnection) url.openConnection();

   huc.setUseCaches (false);
   huc.setDefaultUseCaches(false);
   huc.setRequestMethod(GET);
huc.setRequestProperty(Content-Type, text/plain;charset=utf-8);
...
Serlet side:

// request.getCharacterEncoding() = utf-8
String username = request.getParameter(username);
// username = GfÃ?llner
same problem with:
String username = new String(username.getBytes(),UTF-8);
// username = GfÃ?llner
Any Ideas?

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


mod_jk2 hangs?!

2003-10-02 Thread Christian Traber
Hi,

I use apache 2.0.46, mod_jk2, tomcat4.1.18 (the standard versions 
shipped with Suse 8.2).

Sometimes the apache-tomcat connection seems to hang. After restarting 
apache (or I think
waiting for a few minutes) everything works again.

There are a lot of such messages in my apache errorlog:
...
[Wed Oct 01 20:38:11 2003] [error] mod_jk child init 1 -2
[Wed Oct 01 20:38:11 2003] [error] jk2_init() Can't find child 14357 in 
scoreboard
[Wed Oct 01 20:38:11 2003] [notice] workerEnv.init() ok 
/srv/www/conf/workers2.properties
[Wed Oct 01 20:38:11 2003] [error] mod_jk child init 1 -2
[Wed Oct 01 20:38:11 2003] [error] jk2_init() Can't find child 14358 in 
scoreboard
[Wed Oct 01 20:38:11 2003] [notice] workerEnv.init() ok 
/srv/www/conf/workers2.properties
[Wed Oct 01 20:38:11 2003] [error] mod_jk child init 1 -2
[Wed Oct 01 20:38:27 2003] [notice] mod_jk2 Shutting down
[Wed Oct 01 20:38:28 2003] [notice] mod_jk2 Shutting down
[Wed Oct 01 20:38:29 2003] [notice] mod_jk2 Shutting down
[Wed Oct 01 20:38:30 2003] [notice] mod_jk2 Shutting down


Whar means [error] mod_jk child init 1 -2 ?

Please tell me if you need further information about my configuration.

Thanks,
Christian


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


Re: mod_jk2 hangs?!

2003-10-02 Thread Christian Traber
Dean Searle wrote:

You're missing the jk2.shm file. This file should be created using notepad or vi (depending on your OS)and placed in a folder. That folder can be determined by looking into jk2.properties in the {TOMCAT_HOME}/conf and workers2.properties in {APACHE_HOME}/conf. Or you can specify where it needs to go. Just make sure that both files point to the same place.

Dean

 

I have a shm file for mod_jk2 but didn't change the tomcat jk2.properties.
Does this mean I have to use the same shm file for tomcat and mod_jk2?
I thought they will just use socket for communication!?
However, I can't use the same file, because apache is in the DMZ and 
tomcat in another net segment and I can't share a disk...

Thanks,
Christian


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


Context Parameter not set after manager stop-start

2003-08-14 Thread Christian Traber
Hi,

I have a Context Parameter in my server.xml Context.
If I stop and start my Context with the manager-application the 
Parameter is no longer set!
Reload works.

I'm using tomcat-4.1.24.

Is this an error?

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


mod_jk2 and stickySession

2003-08-11 Thread Christian Traber
Hi!

I've configured jk2 with a loadbalancer and stickySession=1 and made
a simple Testservlet with a getSession().
I can see the JSESSION cookie in my browser but the loadbalancer
still uses all workers and not only the worker with my session.
What is going wrong?

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


Re: mod_jk2 and stickySession

2003-08-10 Thread Christian Traber
NormW wrote:

Good evening Christian.
Have you set the jvmRoute parameter in each Tomcat, and the TomcatID (aka
route) for each JK worker?
Norm
 

Thanks,

I set jvmRoute in server.xml Engine section and now it works.

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


Re: Tomcat, Eclipse, Debug, JPDA

2003-06-29 Thread Christian Traber
Pfingstl Gernot wrote:

I tried to debug my webapplication on my (local)tomcat with eclipse and JPDA. Both (JDK and Eclipse) seems to allow JPDA, but I always got an Failed to connect to remote VM. Connection refused error from eclipse.

 

Try the tomcat plugin for eclipse: 
http://www.sysdeo.com/eclipse/tomcatPlugin.html

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


Re: Tomcat RMI and Eclipse

2003-04-02 Thread Christian Traber
Hi,

I had the same problem:-(
Group/Tomcat is part of the installation directory of tomcat (C:\Apache 
Group\Tomcat 4.1)
If you install tomcat in a directory without spaces is the 
directory-names, it should works!

I have this problem since tomcat4.0. Where and how can we report this 
problem?

Regards,
Christian
Marc Chamberlin wrote:

However, when I run the Tomcat server standalone, when the servlet makes this particular RMI call, to this method passing and returning the complex Java object, I get the following exception:

java.rmi.ServerException: RemoteException occurred in server thread; nested exception is: 

java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is: 

java.net.MalformedURLException: no protocol: Group/Tomcat

 



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