RE: Filenames of JSP generated servlets

2003-10-30 Thread Baer Peter Christoph Alexander
But it's the same JVM... J2SDK 1.4.2_01 from Sun.
It's odd,  as you say.

BTW, we found another difference between WinXP with MSIE 6 and Win2k with
MSIE 5.5. The handle whitespace differently. A wrongly formatted JScript
include file with all the code in one line caused the WinXP installation to
generate HTML from JSP with most of the code squashed into the first line.
No such problem on Win2k. Could these two things, generated servlet
filenames and whitespace handling, be connected?

We don't have *big* problems with these effects, but the reason, why I am
still hoping for a good explanation is:
1. We are unsure, if these phenomena are caused by a *real* malfunction
behind the scenes, maybe in JVM or WinXP itself.
2. Searching for files is easier when you know what the file is named like.
;-)

Thanks again for any useful thought.
Regards

Peter
 -Original Message-
 From: Tim Funk [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, October 29, 2003 6:44 PM
 To: Tomcat Users List
 Subject: Re: Filenames of JSP generated servlets
 
 
 Odd. The same version of tomcat shouldn't do that. It could 
 be that $ is not 
 a valid character according to one of the JVMs. (guess)
 
 -Tim
 
 Baer Peter Christoph Alexander wrote:
 
  Hi Tim,
  
  you wrote:
  snip
  The behavior was changed (in the Jsp compiler) and is not 
 configurable.
  /snip
  
  So it is normal, that when we use *the same*
  - Tomcat 4.0.6 LE
  - JSP compiler
  - J2SDK 1.4.2_01
  - everything else, but OS
  the filenames on WinXP are different than on Win2k? Why?
  
  Regards
  Peter
  
 
 
 

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



Re: Filenames of JSP generated servlets

2003-10-29 Thread Tim Funk
The behavior was changed (in the Jsp compiler) and is not configurable.

-Tim

Baer Peter Christoph Alexander wrote:

Hello,

forgive me if I ask something obvious, but browsing the Tomcat docs and the
mailing list archive I haven't found the relevant piece of information, yet.
We have three installations of Tomcat 4.06 LE (yes, it's old, and we are
already planning to replace it, once version 5 is mature for production
environments). Two of them are on Windows XP, one is Windows 2000. Although
we thought the installations were identical we found a difference.
The filenames of servlets generated out of JSP pages differ. For example, if
the JSP filename is login.jsp, on the *Win2k* system we find the generated
servlet as 

	*login$jsp.java*, 

while the WinXP Tomcats generate something like 

	*_0002fjsp0002flogin_jsp.java*.

Is this configurable? What is this difference caused by?

Thanks for your kind support in advance, regards

	Peter Bär 


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


Re: Filenames of JSP generated servlets

2003-10-29 Thread Christopher Schultz
Baer,

Are you sure you have the same version of the JDK and Tomcat on both 
machines?

Is this configurable?
I'm pretty sure it's not configurable. Are you concerned about what the 
filenames actually are?

What is this difference caused by?
It's probably caused by the way the VM gets unique filenames from the 
OS. The native implementation uses OS calls (which in turn uses 
filesystem calls) to get unique filenames. Perhaps the mechanism in 
windows XP is more complicated (and hopefully more likely to be unique 
:) than on windows 2k.

-chris

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


Re: Filenames of JSP generated servlets

2003-10-29 Thread Baer Peter Christoph Alexander
Hi Tim,

you wrote:
snip
The behavior was changed (in the Jsp compiler) and is not configurable.
/snip

So it is normal, that when we use *the same*
- Tomcat 4.0.6 LE
- JSP compiler
- J2SDK 1.4.2_01
- everything else, but OS
the filenames on WinXP are different than on Win2k? Why?

Regards
Peter

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



Re: Filenames of JSP generated servlets

2003-10-29 Thread Tim Funk
Odd. The same version of tomcat shouldn't do that. It could be that $ is not 
a valid character according to one of the JVMs. (guess)

-Tim

Baer Peter Christoph Alexander wrote:

Hi Tim,

you wrote:
snip
The behavior was changed (in the Jsp compiler) and is not configurable.
/snip
So it is normal, that when we use *the same*
- Tomcat 4.0.6 LE
- JSP compiler
- J2SDK 1.4.2_01
- everything else, but OS
the filenames on WinXP are different than on Win2k? Why?
Regards
Peter


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


Re: Filenames of JSP generated servlets

2003-10-29 Thread Baer Peter Christoph Alexander
Hi, Christopher,

you wrote:

snip
Are you sure you have the same version of the JDK and Tomcat on both 
machines?
/snip

Yes, I'm sure. All installations of Tomcat and the JDK were freshly done a 
second time, before I posted the phenomenon on this list. Your explanation, 
why the filenames *can* be different, sounds logical, yet I am not sure if 
this is really it...

Thanks and regards,

Peter

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



RE: Filenames of JSP generated servlets

2003-10-29 Thread Robert Priest
It's just a matter of which versions of the jasper jars you have.

I ran into that same issue before. You may just want to upgrade to the
latest versions of 
jasper-compiler.jar and jasper-runtime.jar

The latest versions produce java files such as  login_jsp.java instead of
login$jsp.java.

As for that *_0002fjsp0002f stuff, I don't know where that is coming from.
I pre-compile all my jsps and I do not get resulting files that are named
that way.

-Original Message-
From: Baer Peter Christoph Alexander [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 29, 2003 12:52 PM
To: Tomcat Users List
Subject: Re: Filenames of JSP generated servlets


Hi, Christopher,

you wrote:

snip
Are you sure you have the same version of the JDK and Tomcat on both 
machines?
/snip

Yes, I'm sure. All installations of Tomcat and the JDK were freshly done a 
second time, before I posted the phenomenon on this list. Your explanation, 
why the filenames *can* be different, sounds logical, yet I am not sure if 
this is really it...

Thanks and regards,

Peter

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