[Patch] Another update for FileUtil.java

2000-10-25 Thread Mike Anderson

I found another problem on NetWare with path handling, particularly with JSP's.  It 
seems that in some cases, we were getting multiple "\\" characters in the path and 
they weren't being parsed out correctly on NetWare with the 1.2 Beta JVM.  This patch 
addresses that problem and only affects the NetWare platform.  If possible, I'd like 
to get this into the 3.2 branch since that will be the first release that has updates 
for NetWare.  Please let me know if this can be patched in.

cvs -q diff FileUtil.java (in directory 
D:\Jakarta\jakarta-tomcat\src\share\org\apache\tomcat\util\)
Index: FileUtil.java
===
RCS file: 
/home/cvspublic/jakarta-tomcat/src/share/org/apache/tomcat/util/FileUtil.java,v
retrieving revision 1.9.2.4
diff -r1.9.2.4 FileUtil.java
270c270
<   // fix path on NetWare
---
>   // fix path on NetWare - all '/' become '\\' and remove duplicate '\\'
273,274c273,284
<   path.indexOf(':') > 0)
<   patchPath = patchPath.replace('/', '\\');
---
>   path.indexOf(':') > 0) {
>   char[] ca = patchPath.replace('/', '\\').toCharArray();
>   StringBuffer sb = new StringBuffer();
> 
>   for (int i = 0; i < ca.length; i++) {
>   if ((ca[i] != '\\') ||
>   (ca[i] == '\\' && i > 0 && ca[i - 1] != '\\')) {
>   sb.append(ca[i]);
>   }
>   }
>   patchPath = sb.toString();
>   }

Thanks,

Mike Anderson
Senior Software Engineer
Platform Services Group
[EMAIL PROTECTED]
Novell, Inc., the leading provider of Net services software
www.novell.com


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




Re: 3.2b6 build fails ?!?!

2000-10-25 Thread Casper Gjerris

From: "Nick Bauman" <[EMAIL PROTECTED]>
> Er, sorry this is probably a stupid question, but why is this not working
> for me?
...
tomcat/src/share/org/apache/tomcat/core/ContextManager.java:335: Method
> setProperty(java.lang.String, java.lang.String) not found in class
> java.lang.System.
> [javac] System.setProperty("tomcat.sessionid.randomclass",
> randomClass);

Because you cannot build and run Tomcat 3.2b6 with JDK 1.1.x, you must use JDK 1.2/1.3 
or change line 335 in ContextManager.java from

System.setProperty("tomcat.sessionid.randomclass", randomClass);

to

System.getProperties().put("tomcat.sessionid.randomclass", randomClass);

- Casper Gjerris


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




BugRat Report #308 was closed (apparently by: Nick Bauman)

2000-10-25 Thread BugRat Mail System

Report #308 was closed by Person #0

   Synopsis: ignore

 (logged in as: Nick Bauman)

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




BugRat Report #308 has been filed.

2000-10-25 Thread BugRat Mail System

Bug report #308 has just been filed.

You can view the report at the following URL:

   

REPORT #308 Details.

Project: Tomcat
Category: Bug Report
SubCategory: New Bug Report
Class: swbug
State: received
Priority: high
Severity: critical
Confidence: public
Environment: 
   Release: rere
   JVM Release: rere
   Operating System: rere
   OS Release: rere
   Platform: rere

Synopsis: 
ignore

Description:
ignore

Title: 
BugRat Report #
308





BugRat Report #
308




Project:
Tomcat


Release:
rere




Category:
Bug Report


SubCategory:
New Bug Report




Class:
swbug


State:
received




Priority:
high


Severity:
critical




Confidence:
public





Submitter:
_Anonymous ( [EMAIL PROTECTED] )

Date Submitted:
Oct 25 2000, 02:42:12 CDT

Responsible:
Z_Tomcat Alias ( [EMAIL PROTECTED] )


Synopsis:

ignore


 Environment: (jvm, os, osrel, platform)

rere, rere, rere, rere



Additional Environment Description:

ignore



Report Description:

ignore



How To Reproduce:

null



Workaround:

null



View this report online...






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


3.2b6 build fails ?!?!

2000-10-25 Thread Nick Bauman

Er, sorry this is probably a stupid question, but why is this not working
for me?

[jakarta-tomcat]$ ./build.sh 
Buildfile: build.xml

init:

prepare:
  [copydir] Copying 5 files to /home/nick/apache_1.3.14/build/tomcat/bin

tomcat:
[javac] Compiling 1 source files to
/home/nick/apache_1.3.14/build/tomcat/classes
[javac]
/home/nick/apache_1.3.14/jakarta-tomcat/src/share/org/apache/tomcat/core/ContextManager.java:335:
 Method
setProperty(java.lang.String, java.lang.String) not found in class
java.lang.System.
[javac] System.setProperty("tomcat.sessionid.randomclass",
randomClass);
[javac]   ^
[javac] Note: 5 files use deprecated APIs.  Recompile with
"-deprecation" for details.
[javac] 1 error, 1 warning

BUILD FAILED

build.xml:72: Compile failed

Total time: 18 seconds









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




BugRat Report #307 has been filed.

2000-10-25 Thread BugRat Mail System

Bug report #307 has just been filed.

You can view the report at the following URL:

   

REPORT #307 Details.

Project: Tomcat
Category: Bug Report
SubCategory: New Bug Report
Class: swbug
State: received
Priority: high
Severity: critical
Confidence: public
Environment: 
   Release: Tomcat 3.2 beta 6
   JVM Release: 1.3
   Operating System: NT
   OS Release: 2000
   Platform: Intel

Synopsis: 
HTTP continues to work (it should not) if using a  of 
CONFIDENTIAL in the web.xml file.

Description:
When a web.xml file reads as follows:



  
CONFIDENTIAL
  



HTTP should no longer work. Only HTTPS should work when accessing HTML pages or 
Servlets in that particular WebApp.
This is not the case: HTTP continues to work.

-Alan Bron
PROS Revenue Management
[EMAIL PROTECTED]

Title: 
BugRat Report #
307





BugRat Report #
307




Project:
Tomcat


Release:
Tomcat 3.2 beta 6




Category:
Bug Report


SubCategory:
New Bug Report




Class:
swbug


State:
received




Priority:
high


Severity:
critical




Confidence:
public





Submitter:
_Anonymous ( [EMAIL PROTECTED] )

Date Submitted:
Oct 25 2000, 12:18:20 CDT

Responsible:
Z_Tomcat Alias ( [EMAIL PROTECTED] )


Synopsis:

HTTP continues to work (it should not) if using a  of CONFIDENTIAL in the web.xml file.


 Environment: (jvm, os, osrel, platform)

1.3, NT, 2000, Intel



Additional Environment Description:





Report Description:

When a web.xml file reads as follows:



  
CONFIDENTIAL
  



HTTP should no longer work. Only HTTPS should work when accessing HTML pages or Servlets in that particular WebApp.
This is not the case: HTTP continues to work.

-Alan Bron
PROS Revenue Management
[EMAIL PROTECTED]



View this report online...






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


BugRat Report #306 has been filed.

2000-10-25 Thread BugRat Mail System

Bug report #306 has just been filed.

You can view the report at the following URL:

   

REPORT #306 Details.

Project: Tomcat
Category: Bug Report
SubCategory: New Bug Report
Class: swbug
State: received
Priority: high
Severity: critical
Confidence: public
Environment: 
   Release: Tomcat 3.2 beta 6
   JVM Release: 1.3
   Operating System: NT
   OS Release: 2000
   Platform: Intel

Synopsis: 
HTTP continues to work (it should not) if using a  of 
CONFIDENTIAL in the web.xml file.

Description:
When a web.xml file reads as follows:



  
CONFIDENTIAL
  



HTTP should no longer work. Only HTTPS should work when accessing HTML pages or 
Servlets in that particular WebApp.
This is not the case: HTTP continues to work.

-Alan Bron
PROS Revenue Management
[EMAIL PROTECTED]

Title: 
BugRat Report #
306





BugRat Report #
306




Project:
Tomcat


Release:
Tomcat 3.2 beta 6




Category:
Bug Report


SubCategory:
New Bug Report




Class:
swbug


State:
received




Priority:
high


Severity:
critical




Confidence:
public





Submitter:
_Anonymous ( [EMAIL PROTECTED] )

Date Submitted:
Oct 25 2000, 12:15:25 CDT

Responsible:
Z_Tomcat Alias ( [EMAIL PROTECTED] )


Synopsis:

HTTP continues to work (it should not) if using a  of CONFIDENTIAL in the web.xml file.


 Environment: (jvm, os, osrel, platform)

1.3, NT, 2000, Intel



Additional Environment Description:





Report Description:

When a web.xml file reads as follows:



  
CONFIDENTIAL
  



HTTP should no longer work. Only HTTPS should work when accessing HTML pages or Servlets in that particular WebApp.
This is not the case: HTTP continues to work.

-Alan Bron
PROS Revenue Management
[EMAIL PROTECTED]



View this report online...






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


SSL-keytool problem..

2000-10-25 Thread nell

Hi,
  I am failing to generate the KeyStore. I am trying with Tomcat3.2.
The following error, I am getting.


C:\>keytool -genkey -alias tomcat -keyalg RSA
Enter keystore password:  changeit
keytool error: java.security.NoSuchAlgorithmException: RSA KeyPairGenerator not 
available


Any help would be appreciated.

nell




___
CoolEmail -- Now you're talking.
Get Free Email-By-Phone Today.
http://www.CoolEmail.com




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




Re: Question about compiling the servlets.

2000-10-25 Thread Craig R. McClanahan

Milan Kuchtiak wrote:

> I am partly working on Tomcat integration into Forte4j IDE.
>
> Could anybody tell me how the servlets are compiled into classes.
>
> I supose that not JDK javac compiler is used.
>

In general, the JDK compiler is probably used by most people, although
any Java compiler should be able to do the trick.  Because a servlet is
just a Java class, you should be able to compile it the same way you
compile any other Java class.

>
> Thank You
>
> Milan

Craig McClanahan


See you at ApacheCon Europe !
Session VS01 (23-Oct 13h00-17h00):  Sun Technical Briefing
Session T06  (24-Oct 14h00-15h00):  Migrating Apache JServ
Applications to Tomcat



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




Question about compiling the servlets.

2000-10-25 Thread Milan Kuchtiak

I am partly working on Tomcat integration into Forte4j IDE.

Could anybody tell me how the servlets are compiled into classes.

I supose that not JDK javac compiler is used.

Thank You

Milan
--
Sun Microsystems Czech s.r.o.
Evropská 33E
160 00 Praha 6 - Dejvice

Tel.:   +420-2-3300-9117
Fax.:   +420-2-3300-9299
mail.:  mailto:[EMAIL PROTECTED]



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