DO NOT REPLY [Bug 20934] - Tomcat crash when opened for long time

2003-06-20 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=20934.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=20934

Tomcat crash when opened for long time





--- Additional Comments From [EMAIL PROTECTED]  2003-06-20 06:13 ---
There seems to be a problem in AfterLoginFrameSet.jsp, the JSP page is throwing 
an exception which is not handled by yourself. Can you provide the JSP 
sourcecode + explanation what you're trying to do on this page to verify the 
reason?

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



Re: commons-sandbox/daemon

2003-06-20 Thread jean-frederic clere
Bill Barker wrote:
Ok, yes I know that this should go to commons-dev, but I don't monitor that
list as closely and all of the active developers hang-out here.
I would like to make some changes to native/unix/native, and (keeping with
commons conventions) should ask first.  I already have commons-sandbox
karma, so that's not an issue.
1) I want to call setsid (on platforms that support it) after the detach,
since evil things happen if I don't (at least on RH Linux).
-1 : The idea is to be root until we call the start. (See child).
Tell what goes wrong we should fix it.
2) I want to add a -outfile and -errfile to the config options (consistant
with procrun, and both defaulting to /dev/null).  stdin will get redirected
to /dev/null, and stdout  stderr will get redirected to the values of the
variables.  If I can get it to work, I'd also like to add the special values
1 and 2 to simulate 21.  As it stands now, manually stopping and
starting Tomcat with jsvc hangs my ssh session on logout, since it still has
open files to the pty.
+1

3) Modify Tomcat.sh to reflect the changes in 2) (e.g. add:
-outfile $CATALINA_HOME/logs/catalina.out \
-errfile 1 \
).
+1





-
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: commons-sandbox/daemon

2003-06-20 Thread jean-frederic clere
Costin Manolache wrote:
Bill Barker wrote:


Ok, yes I know that this should go to commons-dev, but I don't monitor
that list as closely and all of the active developers hang-out here.
I would like to make some changes to native/unix/native, and (keeping with
commons conventions) should ask first.  I already have commons-sandbox
karma, so that's not an issue.
1) I want to call setsid (on platforms that support it) after the detach,
since evil things happen if I don't (at least on RH Linux).
2) I want to add a -outfile and -errfile to the config options (consistant
with procrun, and both defaulting to /dev/null).  stdin will get
redirected to /dev/null, and stdout  stderr will get redirected to the
values of the
variables.  If I can get it to work, I'd also like to add the special
values
1 and 2 to simulate 21.  As it stands now, manually stopping and
starting Tomcat with jsvc hangs my ssh session on logout, since it still
has open files to the pty.
3) Modify Tomcat.sh to reflect the changes in 2) (e.g. add:
   -outfile $CATALINA_HOME/logs/catalina.out \
   -errfile 1 \
   ).


+1

I know this has been discussed several times - but wouldn't be time to move
the daemon back to tomcat ?
I have already explain why I am against this idea. I would like to see daemon 
promoted to common-daemon. For the moment I am trying to fix the stop of procrun 
in win9x.

BTW: I have added reflexion and now daemon could be used to start Tomcat5.
and would like to see daemon promote to common-daemon.
Maybe we made a mistake by trying to move it to
commons, it doesn't seem to gain a lot of developers or users outside
tomcat.
Costin

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


DO NOT REPLY [Bug 20934] - Tomcat crash when opened for long time

2003-06-20 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=20934.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=20934

Tomcat crash when opened for long time





--- Additional Comments From [EMAIL PROTECTED]  2003-06-20 07:32 ---
Created an attachment (id=6907)
JSP file that throws the exception in the description

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



DO NOT REPLY [Bug 20934] - Tomcat crash when opened for long time

2003-06-20 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=20934.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=20934

Tomcat crash when opened for long time





--- Additional Comments From [EMAIL PROTECTED]  2003-06-20 07:32 ---
Created an attachment (id=6908)
An included header file of AfterLoginMiddleFrame.jsp

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



Re: commons-sandbox/daemon

2003-06-20 Thread jean-frederic clere
Bill Barker wrote:
- Original Message -
From: jean-frederic clere [EMAIL PROTECTED]
To: Tomcat Developers List [EMAIL PROTECTED]
Sent: Friday, June 20, 2003 12:21 AM
Subject: Re: commons-sandbox/daemon


Bill Barker wrote:

Ok, yes I know that this should go to commons-dev, but I don't monitor
that

list as closely and all of the active developers hang-out here.

I would like to make some changes to native/unix/native, and (keeping
with

commons conventions) should ask first.  I already have commons-sandbox
karma, so that's not an issue.
1) I want to call setsid (on platforms that support it) after the
detach,

since evil things happen if I don't (at least on RH Linux).
-1 : The idea is to be root until we call the start. (See child).
Tell what goes wrong we should fix it.


I don't understand.  setsid doesn't change the identity, it just puts the
(forked) process into a new session, and divorces it from the pty.  The
process is still running as root.  It's similar to (or, rather, a subset
of) the Linux daemon API call.  Since it is good enough for Apache/httpd,
I really didn't expect any controversy on this one.
Oops I was a bit to fast in my answer and have though of a setuid().
Of course the setsid() is _missing_ in the actual daemon code.
So you have my +1, sorry for the bad comment.

The problem is that the monitor still gets signals from my terminal session
(including HUP when I try to logout).  Similar to below, it hangs my ssh
session, since there is still an active proc in the same session as mine
when I try to logout.

2) I want to add a -outfile and -errfile to the config options
(consistant

with procrun, and both defaulting to /dev/null).  stdin will get
redirected

to /dev/null, and stdout  stderr will get redirected to the values of
the

variables.  If I can get it to work, I'd also like to add the special
values

1 and 2 to simulate 21.  As it stands now, manually stopping
and

starting Tomcat with jsvc hangs my ssh session on logout, since it still
has

open files to the pty.
+1


3) Modify Tomcat.sh to reflect the changes in 2) (e.g. add:
   -outfile $CATALINA_HOME/logs/catalina.out \
   -errfile 1 \
   ).
+1




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


DO NOT REPLY [Bug 19864] - JNDIRealm NullPointerException / CommunicationException when Context Closed

2003-06-20 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=19864.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=19864

JNDIRealm NullPointerException / CommunicationException when Context Closed





--- Additional Comments From [EMAIL PROTECTED]  2003-06-20 11:23 ---
When I encouter these problems the e.getMessage() returns simple bind failed: 
10.1.1.3:389, while e.toString() 
returns javax.naming.CommunicationException: simple bind failed: 
10.1.1.3:389.  Root exception is java.net.SocketException: Socket closed.

I replaced e.getMessage() with e.toString(), and now it works as expected and 
attemptes a second login:

if (e.toString().indexOf(Socket closed)  0)
throw(e);

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



DO NOT REPLY [Bug 20948] New: - Jasper error in JSP source to Java servlet code generation

2003-06-20 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=20948.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=20948

Jasper error  in JSP source to Java servlet code generation

   Summary: Jasper error  in JSP source to Java servlet code
generation
   Product: Tomcat 4
   Version: 4.1.12
  Platform: PC
OS/Version: Windows 9x
Status: NEW
  Severity: Normal
  Priority: Other
 Component: Jasper
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]


Hi folks,

I revealed a smart bug in the parsing strategy of JSP. I'm using
Tomcat 4.1.12 on Windows ME environment.
There is a problem when using a Java comment // followed by %,
the end token of Java embedded JSP.

%
if (...)
{
...
} // endif %
/TABLE/FORM/BODY/HTML

This would result in the JSP' servlet code:

} // endif  out.write(\n\t/TABLE/FORM/BODY/HTML);

The servlet execution result is, that the complete out.write() is not executed.
Thus, all the HTML tags are missing.
The Java line comment has to be overruled by the JSP end token
so that the Java line comment ends there!
Otherwise everything which is combined together in the following out.write()
statement remains comment (so substantial Java code is likely to disappear).


More detailed Example:
JSP (it is indeed dynamic JavaScript):

   function FieldPageBack()
   {
  FieldOffset = FieldOffset - 1;
  %= (AdmList.getPageType() == AdmList.c_ListDelEntry)?
 setAttrClassReadOnlyValues(FieldOffset); : setAttrClassSelectIndex
(FieldOffset); %
   % for (int i = 0; i  AdmList.c_FieldsToDisplay; i++) { %
 FieldNo[%= i %].innerHTML = (FieldOffset + %= i %) + .;
   % } // endfor %
   }
   function FieldPageForward()
   {
  FieldOffset = FieldOffset + 1;
  %= (AdmList.getPageType() == AdmList.c_ListDelEntry)?
 setAttrClassReadOnlyValues(FieldOffset); : setAttrClassSelectIndex
(FieldOffset); %
   % for (int i = 0; i  AdmList.c_FieldsToDisplay; i++) { %
 FieldNo[%= i %].innerHTML = (FieldOffset + %= i %) + .;
   % } // endfor %
   }

JSP-generated Servlet:

  out.write(\nfunction FieldPageBack()\n{\n\tFieldOffset = FieldOffset - 
1;\n\t);
  out.print( (AdmList.getPageType() == AdmList.c_ListDelEntry)?
setAttrClassReadOnlyValues
(FieldOffset); : setAttrClassSelectIndex(FieldOffset); );
  out.write(\n);
 for (int i = 0; i  AdmList.c_FieldsToDisplay; i++) {   out.write
(\n\tFieldNo[);
  out.print( i );
  out.write(].innerHTML = (FieldOffset + );
  out.print( i );
  out.write() + \.\;\n);
 } // endfor   out.write(\n}\nfunction FieldPageForward()\n
{\n\tFieldOffset = FieldOffset - 1;\n\t);
  out.print( (AdmList.getPageType() == AdmList.c_ListDelEntry)?
setAttrClassReadOnlyValues
(FieldOffset); : setAttrClassSelectIndex(FieldOffset); );
  out.write(\n);
 for (int i = 0; i  AdmList.c_FieldsToDisplay; i++) {   out.write
(\n\tFieldNo[);
  out.print( i );
  out.write(].innerHTML = (FieldOffset + );
  out.print( i );
  out.write() + \.\;\n);
 } // endfor   out.write(\n}\n);


Best regards,
Johannes

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



DO NOT REPLY [Bug 20948] - Jasper error in JSP source to Java servlet code generation

2003-06-20 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=20948.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=20948

Jasper error  in JSP source to Java servlet code generation

[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||INVALID



--- Additional Comments From [EMAIL PROTECTED]  2003-06-20 12:00 ---
Similar to http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6552
The parser does not know about java comments.

Using // comments in a jsp is dangerous. As are if statements without {}

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



why does tomcat recycle objects

2003-06-20 Thread Nishant Kumar
hi,
i was going through this link
http://java.sun.com/docs/hotspot/PerformanceFAQ.html

and found the follwing

Many systems have less efficient memory management than in HotSpot. To
work around this, some programs keep an object pool, saving previously
allocated objects in some freelist-like data structure and reusing them
instead of allocating new ones. But... Don't use object pools! Using
object pools will fool the collector into thinking objects are live when
they really aren't. This may have worked before exact garbage collection
became popular (in the 1.x systems), but this is just not a good idea
for any modern Java Virtual Machines.

Should I pool objects to help GC?

Pooling objects will cause them to live longer than necessary. The
garbage collection methods will be much more efficient if you let it do
the memory management. We strongly advise taking out object pools.

--
tomcat does pool everything. request, response, processor etc.

is this required if i am going to run tomcat on java 1.3 or 1.4??

thanks,
nishant.


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



RE: commons-sandbox/daemon

2003-06-20 Thread Shapira, Yoav

Howdy,

1) I want to call setsid (on platforms that support it) after the
detach,
since evil things happen if I don't (at least on RH Linux).

Good idea,

2) I want to add a -outfile and -errfile to the config options
(consistant
with procrun, and both defaulting to /dev/null).  stdin will get
redirected
to /dev/null, and stdout  stderr will get redirected to the values of
the
variables.  If I can get it to work, I'd also like to add the special
values
1 and 2 to simulate 21.  As it stands now, manually stopping
and
starting Tomcat with jsvc hangs my ssh session on logout, since it
still
has
open files to the pty.

Also good idea, as long as 1 and 2 are well-documented, as those are
not standard unix.

3) Modify Tomcat.sh to reflect the changes in 2) (e.g. add:
-outfile $CATALINA_HOME/logs/catalina.out \
-errfile 1 \
).

Cool.

+1.

I also agree with keeping daemon in the commons and possibly promoting
it out of the sandbox into commons-proper.  I think the functionality it
offers is generic beyond tomcat, and I for one plan to use it for things
other than tomcat. ;)

Yoav Shapira



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]



DO NOT REPLY [Bug 18895] - Can not use HttpsURLConnection with Java 1.4.1 and Coyote/JK2 Connector

2003-06-20 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=18895.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=18895

Can not use HttpsURLConnection with Java 1.4.1 and Coyote/JK2 Connector





--- Additional Comments From [EMAIL PROTECTED]  2003-06-20 13:09 ---
This also appears in jakarta-tomcat-4.1.24-LE-jdk14

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



web.xml init param

2003-06-20 Thread Jing Huang
Hi, I am new to Tomcat. This might be a very simple question to the gurus here. Please 
help. I set initial parameters for a servlet in web.xml. When I start the server and 
run the servlet, the servlet can not get the initial parameters. It seems that the 
web.xml was not accessed at all. Can you help?  


Uploading file (which I got from c++ application using JNI freamwork) to Tomcat

2003-06-20 Thread Sanjay Jadhav
Hello,

I facing the while reading and writing binary files to
Apache Tomcat/4.1.24 web server .

I will be very kind if any body from your side help me
out.

I had which upload file to server using . This same
being used by c++ application also . As the take any
type of file from user and call for upload to server,
As this works very well with non-binary files, but
when I pass binary files like  compress files gets
when send to server by .
About the it takes from database create connection
with that and then pass this file as string object to
and in last upload file to tomcat 3.1 web server. This
same is used by VB application to upload files from
there application and it works fine.

With best ,

Sun Certified Programmer.

The (c++) is as follows
==
int32 (char *, char *)// {

=NULL, =NULL;

= ();
if(==NULL)
return 0;

=();
if(==NULL)
return 0;

if(!(,,(//String;//, ,))
return 0;

();
();

return 1;
}


And which upload to server is follows

===
public static void (String , String )
throws {

= new ();
= null;
= new ();
.(.ERROR_DEBUG);
try {
= .();
} catch (Exception ) {
Logger.error(Logger.SERVER_LOG, Cannot connect to
server);
throw new ();
}
if ( == null) {
.(._NOT_DEFINED);
throw ; }
String = ._();
in = null;
String data = null;
byte[] ;
;
try {
= new ( + File.separator + , );
= new byte[(int) .length()];
.();
data = new String();
} catch (Exception ) {
Logger.error(Logger.SERVER_LOG, local file not
found);
.(._FILE_NOT_FOUND_LOCAL);
throw ;
}
URL = null;
con = null;
try {
= new URL();
con = .();
con.(true);
con.(true);
con.(false);
con.(false);
con.(Content-Type,
/form-=12012133613061);
System.out.( + File.separator + );
out = new (con.());
out.print(--12012133613061 +
'\n');
out.print(Accept: */*+'\n');
out.print(Content-Disposition: form-data;
name=\Filename\; filename=\
+ + File.separator + + \ + '\n');
out.print(Content-Type: /form-data + '\n' + '\n');
out.print(data + '\n' + '\n');
out.print(--12012133613061);
out.close();

} catch (Exception ) {
Logger.error(Logger.SERVER_LOG, Cannot connect to
server);
.(._CANNOT_BE_REACHED);
throw ;
}
= null;
try {
= con.();
} catch (Exception 2) {
return;
}
try {
int length = 0, read = 0;
byte[] = new byte[(int) .length()];
= new ();

while ((read = .read()) != -1)
.append(new String());

System.out.();
con = null;
if ( == null)
return;
if (.().(FILE_UPLOAD_FAILED)  0) {
.(._FILE_UPLOAD_FAILED);
throw ; }
} catch (Exception 2) {
return;
}
}
===

which upload the file to tomcat web server
==
protected void ( request, response)
throws Exception, {

String filename = request.(filename);
if (filename != null  filename.trim().length() != 0)
= true;
else
= false;
String path = this.().();
request.().(FILE_UPLOAD_RESULT);
if (!) {

parser = null;
try {
parser =
new (request, request.(), false, false, null);
} catch (Exception e) {
request.().(FILE_UPLOAD_RESULT,
FILE_UPLOAD_FAILED);
return;
}
Part part = parser.();
File file = null;
while (part != null) {
if (part.()) {
file = new File(path + .().());
(() part).(file);
}
part = parser.();
}
request.().(FILE_UPLOAD_RESULT,
FILE_UPLOAD_SUCCESSFUL);
} else {
if ((filename))
request.().(FILE_UPLOAD_RESULT, FILE_EXISTS);
else
request.().(FILE_UPLOAD_RESULT, FILE_NOT_EXISTS);
}
}
==

/** About
* A utility class to handle code/form-data/code
requests,
* the kind of requests that support file uploads. This
class uses a
* pull model where the reading of incoming files and
parameters is
* controlled by the client code, which allows incoming
files to be stored
* into any code/code.
**/

/** About Part
* A codePart/code is an abstract upload part which
represents an
* codeINPUT/code form element in a
code/form-data/code form
* submission.
**/

/** About
* A code/code is an upload part which represents a
* codeINPUT TYPE=file/code form parameter. Note
that because file
* upload data arrives via a single , each 's contents
* must be read before moving onto the next part. Don't
try to store a
* object for later processing because by then their
content will
* have been passed by.
**/

__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

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



Taglib lifecycle issues

2003-06-20 Thread Daniel Rabe
I'm using Tomcat 4.1.24-LE-jdk14, and have written a simple taglib by
extending the TagSupport class. It basically works, but the lifecycle is
being handled differently than I expected. My tag has no body, and has one
required attribute. My JSP page contains several invocations, all with
different values for the attribute. I expected setPageContext() to be called
once, followed by a bunch of doStartTag() / doEndTag() calls, followed by
one release() call. Instead, setPageContext() is being called for each
invocation of my tag (followed by doStartTag() and doEndTag()). My release()
method is *never* called.

I'm basing my expectations on the JSP 1.2 spec, esp pp. 163-164, and the
discussion about Tag handler life cycle and instance reuse at
http://www.onjava.com/pub/a/onjava/2001/11/07/jsp12.html?page=2.

The two issues in my mind are: (a) Is this working according to spec?
Perhaps I misunderstood how it's supposed to work. and (b) Could this be
done more efficiently? Replacing several scriptlet method calls with a
taglib caused the JSP's class file to double in size.

The code that's being generated for the JSP includes a bunch of private
methods that look like this:
  private boolean _jspx_meth_xlate_get_61(javax.servlet.jsp.PageContext
pageContext)
  throws Throwable {
JspWriter out = pageContext.getOut();
/*   xlate:get  */
com.eloquent.ecs.tags.xlate.EXlateTagGet _jspx_th_xlate_get_61 =
(com.eloquent.ecs.tags.xlate.EXlateTagGet)
_jspx_tagPool_xlate_get_key.get(com.eloquent.ecs.tags.xlate.EXlateTagGet.cla
ss);
_jspx_th_xlate_get_61.setPageContext(pageContext);
_jspx_th_xlate_get_61.setParent(null);
_jspx_th_xlate_get_61.setKey(jsp.edownloadplayer.File);
int _jspx_eval_xlate_get_61 = _jspx_th_xlate_get_61.doStartTag();
if (_jspx_th_xlate_get_61.doEndTag() ==
javax.servlet.jsp.tagext.Tag.SKIP_PAGE)
  return true;
_jspx_tagPool_xlate_get_key.reuse(_jspx_th_xlate_get_61);
return false;
  }

Thanks for any insights you can provide.

Daniel Rabe
Eloquent, Inc.



Problem with SSL for APACHE TOMCAT

2003-06-20 Thread Kapar Jan
Hello,

I would like to configure SSL encryption for TOMCAT, but I cannot do that.

I have got downloaded and installed JSSE 1.0.3.x (I just copied 3 files into
c:\jdk1.3.1\jre\lib\ext)

But I dont know where I have to set ENVIROMENT VARIABLE JSSE_HOME.

(I tried to set up in My computer / advanced / enviroment variales but it is
not working)

When I removed comment tags around 

!-- 
Connector className=org.apache.catalina.connector.http.HttpConnector
port=8443 minProcessors=5 maxProcessors=75 enableLookups=true
acceptCount=10 debug=0 scheme=https secure=true Factory
className=org.apache.catalina.net.SSLServerSocketFactory
clientAuth=false protocol=TLS/ /Connector
 -- 
But Tomcat cannot start. (The service did not return an error , it can be
internal windows error)
I am working on Windows 2000 server, JAVA 1.3.1 SDK and Apache Tomcat 4.0.
Thanks
Jan Kaspar


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



Re: web.xml init param

2003-06-20 Thread David Cassidy

Jing

This is a tomcat users question.

Post this message and your web.xml there and you should get an answer

Please note tomcat developers is for developers of tomcat, not people who develop 
applications to run on tomcat.



   

  Jing Huang 

  [EMAIL PROTECTED]To:   [EMAIL PROTECTED]  
 
  cc: 

   Subject:  web.xml init param

  18/06/2003 16:25 

  Please respond to

  Tomcat  

  Developers List 

   

   





Hi, I am new to Tomcat. This might be a very simple question to the gurus here. Please 
help. I set initial parameters for a servlet in web.xml. When I start the server and 
run the servlet, the servlet can not get the initial parameters. It seems that the 
web.xml was not accessed at all. Can you help?





--

This e-mail may contain 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 unauthorized 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]



Re: Taglib lifecycle issues

2003-06-20 Thread Tim Funk
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=16001

-Tim



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


DO NOT REPLY [Bug 20953] New: - JSPC compiler NPE's when tag libraries not on classpath

2003-06-20 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=20953.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=20953

JSPC compiler NPE's when tag libraries not on classpath

   Summary: JSPC compiler NPE's when tag libraries not on classpath
   Product: Tomcat 4
   Version: 4.1.24
  Platform: Other
OS/Version: Windows NT/2K
Status: NEW
  Severity: Normal
  Priority: Other
 Component: Jasper 2
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]


The JSPC compiler generates an NPE when running in standalone mode if you don't 
include the JAR files for your tag libraries on the classpath.
I can't locate it precisely because the real stack trace gets caught and 
wrapped inside another stack trace.

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



David Cassidy/DMGIT/DMG UK/DeuBa is out of the office.

2003-06-20 Thread David Cassidy
I will be out of the office starting  20/06/2003 and will not return until 30/06/2003.


For all dWeb (UK) Support issues please contact the IT Helpdesk on ext 5





--

This e-mail may contain 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 unauthorized 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]



DO NOT REPLY [Bug 16688] - JSP's not compiling

2003-06-20 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=16688.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=16688

JSP's not compiling





--- Additional Comments From [EMAIL PROTECTED]  2003-06-20 18:22 ---
This is actually not a bug report, but a possible way to fix a problem users 
might experience. 

I am unable to compile my JSP! 
Are you seeing this? 
  org.apache.jasper.JasperException: Unable to compile
  class for JSP

  An error occurred at line: -1 in the jsp file: null

  Generated servlet error:
  [javac] Since fork is true, ignoring compiler
  setting.
  [javac] Compiling 1 source file
 [javac] Since fork is true, ignoring compiler
  setting.


Like others, I have downloaded and installed the latest Java and Tomcat. 
Installed Java and it was running fine. Installed Tomcat (multiple tries) with 
no success. I followed all the comments I could find. The environment 
variables, tricks, with the NT service and without, but I kept getting the 
compile error message, until...

During the Tomcat install there is a pop-up message toward the end that talks 
about testing, the port 8080, user admin, password blank. During every attempt 
to install Tomcat, I had always put a password in. This last time, I tried it 
without a password and it worked.

If you have questions send me an e-mail [EMAIL PROTECTED]

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



cvs commit: jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/core StandardContext.java

2003-06-20 Thread jfarcand
jfarcand2003/06/20 14:18:45

  Modified:catalina/src/share/org/apache/catalina/core
StandardContext.java
  Log:
  Fix bugtraq 4880590 Container incorrectly processes invalid URL patterns in 
jsp-property-groups.
  
  This extends to non-jsp-property-group url-patterns as well as the catalina code
  that handles the jsp url pattern mappings delegates to the code that handles the
  servlet pattern mapping.
  
  Consider the following url-pattern:  /somepath/*.jsp
  
  This is invalid but accepted and works within the server.
  
  The Servlet specification states that a valid URL pattern for an extension
  mapping
  like the example above must be '*.jsp' with no additional path information.
  
  Patch Submitted by: Ryan Lubke at sun.com
  
  Revision  ChangesPath
  1.66  +3 -7  
jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/core/StandardContext.java
  
  Index: StandardContext.java
  ===
  RCS file: 
/home/cvs/jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/core/StandardContext.java,v
  retrieving revision 1.65
  retrieving revision 1.66
  diff -u -r1.65 -r1.66
  --- StandardContext.java  15 Jun 2003 13:10:40 -  1.65
  +++ StandardContext.java  20 Jun 2003 21:18:45 -  1.66
  @@ -1730,11 +1730,6 @@
   servletName = jsp;
   }
   
  -// Properly handle file that are considered to be a jsp.
  -if (pattern.indexOf(*.)  0){
  -pattern = pattern.substring(pattern.lastIndexOf(*));
  -servletName = jsp;
  -}
   if( findChild(servletName) != null) {
   addServletMapping(pattern, servletName);
   } else {
  @@ -4736,7 +4731,8 @@
   else
   return (false);
   }
  -if (urlPattern.startsWith(/))
  +if ( (urlPattern.startsWith(/)) 
  +(urlPattern.indexOf(*.)  0))
   return (true);
   else
   return (false);
  
  
  

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



cvs commit: jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/loader WebappLoader.java

2003-06-20 Thread jfarcand
jfarcand2003/06/20 14:39:13

  Modified:catalina/src/share/org/apache/catalina/loader
WebappLoader.java
  Log:
  Fix NPE exception when an invalid war file is deployed:
  
  java.lang.NullPointerException
  at org.apache.catalina.loader.WebappLoader.closeJARs(WebappLoader.java:560)
  at org.apache.catalina.core.StandardContext.start(StandardContext.java:4140)
  at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.
  
  which cause:
  
  java.io.IOException: java.lang.NullPointerException
  at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDepl
  
  Revision  ChangesPath
  1.18  +4 -2  
jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/loader/WebappLoader.java
  
  Index: WebappLoader.java
  ===
  RCS file: 
/home/cvs/jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/loader/WebappLoader.java,v
  retrieving revision 1.17
  retrieving revision 1.18
  diff -u -r1.17 -r1.18
  --- WebappLoader.java 15 Jun 2003 07:22:16 -  1.17
  +++ WebappLoader.java 20 Jun 2003 21:39:13 -  1.18
  @@ -557,7 +557,9 @@
* Used to periodically signal to the classloader to release JAR resources.
*/
   public void closeJARs(boolean force) {
  -classLoader.closeJARs(force);
  +if (classLoader !=null){
  +classLoader.closeJARs(force);
  +}
   }
   
   
  
  
  

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