error Ljavax/servlet/http/HttpServletRequest

2006-01-11 Thread marju jalloh
 I `m calling a bean  from a jsp page that return HttpServletRequest 
 snippet
  
 HttpServletRequest req= myBean.getMessage();
   out.write(req.getParameter(mess));
   where mess is a variable that was set in the bean
 
 My problem jsp can`t compile I got the following errors
 
javax.servlet.ServletException: 
com.MyBean.getMessage()Ljavax/servlet/http/HttpServletRequest;
java.lang.NoSuchMethodError: 
com.MyBean.getMessage()Ljavax/servlet/http/HttpServletRequest;

can anyone help
Thanks in advance


 



-
Yahoo! Photos – Showcase holiday pictures in hardcover
 Photo Books. You design it and we’ll bind it!

Vedr.: Tomcat 5.5 and java 1.5 features.

2006-01-11 Thread Thomas Nybro Bolding
Jasper in turn uses JDT to compile JSPs into servlets and JDT is currently 
only JDK 1.4 compliant. To use 1.5 features in your JSP you will thus have 
to replace jasper.

This questions has been brought up a couple of times so search the 
archives or look at 
http://tomcat.apache.org/tomcat-5.5-doc/jasper-howto.html

Regards Thomas






Dola Woolfe [EMAIL PROTECTED]
11-01-2006 01:07
Besvar venligst til Tomcat Users List

 
Til:Tom Cat tomcat-user@jakarta.apache.org
cc: 
Vedr.:  Tomcat 5.5 and java 1.5 features.



Hi,

I'd like to use java 1.5 features in my jsp code, in
particular generics. But the jasper compiler really
doesn't like it. Any setting to fix this:

org.apache.jasper.JasperException: Unable to compile
class for JSP

An error occurred at line: 2 in the jsp file:
/MBInit.jsp
Generated servlet error:
The method name() is undefined for the type Object

An error occurred at line: 2 in the jsp file:
/MBInit.jsp
Generated servlet error:
Type mismatch: cannot convert from Object to Message

An error occurred at line: 2 in the jsp file:
/MBInit.jsp
Generated servlet error:
Type mismatch: cannot convert from Object to Vector



org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:84)

org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:328)

org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:397)

org.apache.jasper.compiler.Compiler.compile(Compiler.java:288)

org.apache.jasper.compiler.Compiler.compile(Compiler.java:267)

org.apache.jasper.compiler.Compiler.compile(Compiler.java:255)

org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:556)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:293)

org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)

org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)

javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

Many thanks in advance!

Dola

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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





FONT SIZE=1 FACE=Arial___
Vi goer opmaerksom paa, at denne e-mail kan indeholde fortrolig information. 
Hvis du ved en fejltagelse modtager e-mailen, beder vi dig venligst informere 
afsender om fejlen ved at bruge svar-funktionen. Samtidig beder vi dig slette 
e-mailen i dit system uden at videresende eller kopiere den.
Selv om e-mailen og ethvert vedhaeftet bilag efter vores overbevisning er fri 
for virus og andre fejl, som kan paavirke computeren eller it-systemet, hvori 
den modtages og laeses, aabnes den paa modtagerens eget ansvar. Vi paatager os 
ikke noget ansvar for tab og skade, som er opstaaet i forbindelse med at 
modtage og bruge e-mailen.
___
Please note that this message may contain confidential information. If you have 
received this message by mistake, please inform the sender of the mistake by 
sending a reply, then delete the message from your system without making, 
distributing or retaining any copies of it.
Although we believe that the message and any attachments are free from viruses 
and other errors that might affect the computer or IT system where it is 
received and read, the recipient opens the message at his or her own risk. We 
assume no responsibility for any loss or damage arising from the receipt or use 
of this message.
/FONT



Re: error Ljavax/servlet/http/HttpServletRequest

2006-01-11 Thread guangyu zhang
can you show me the com.MyBean.java ' source code?
how does class MyBean get the HttpServletRequest ?
Have you passed the request to class MyBean?

2006/1/11, marju jalloh [EMAIL PROTECTED]:
  I `m calling a bean  from a jsp page that return HttpServletRequest
  snippet

  HttpServletRequest req= myBean.getMessage();
   out.write(req.getParameter(mess));
   where mess is a variable that was set in the bean

  My problem jsp can`t compile I got the following errors

 javax.servlet.ServletException: 
 com.MyBean.getMessage()Javax/servlet/http/HttpServletRequest;
 java.lang.NoSuchMethodError: 
 com.MyBean.getMessage()Javax/servlet/http/HttpServletRequest;

 can anyone help
 Thanks in advance






 -
 Yahoo! Photos �C Showcase holiday pictures in hardcover
  Photo Books. You design it and we'll bind it!



RE: error Ljavax/servlet/http/HttpServletRequest

2006-01-11 Thread Fredrik Rubensson
Hi, 


 I `m calling a bean  from a jsp page that return HttpServletRequest
snippet
  
 HttpServletRequest req= myBean.getMessage();
   out.write(req.getParameter(mess));
   where mess is a variable that was set in the bean
 
 My problem jsp can`t compile I got the following errors
 
javax.servlet.ServletException: com.MyBean.getMessage()
Ljavax/servlet/http/HttpServletRequest;
java.lang.NoSuchMethodError: com.MyBean.getMessage()
Ljavax/servlet/http/HttpServletRequest;

I feel this question should be answered by reading up on Java - it has
not much to do with tomcat. The exception you get is easy to find on the
web I googled java.lang.NoSuchMethodError and got as first result the
Sun javadoc for the class. It's here:
http://java.sun.com/j2se/1.4.2/docs/api/java/lang/NoSuchMethodError.html
. It says: Thrown if an application tries to call a specified method of
a class (either static or instance), and that class no longer has a
definition of that method. (Now this explanation may be hard to
understand if you are not somewhat used to OO terminology. If this is
the case I suggest you read up on OO and its use in Java.) Anyway, this
means that there is no method in your class com.MyBean called getMessage
that returns an instance of javax.servlet.http.HttpServletRequest. 

It would be interesting to know why you are passing around the
HttpServletRequest in this way. It is easily accesible from the JSP page
anyway.

Regards,
Fredrik

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



Re: Tomcat 5.5 and java 1.5 features.

2006-01-11 Thread Markus Schönhaber
Dola Woolfe wrote:
 Hi,

 I'd like to use java 1.5 features in my jsp code, in
 particular generics. But the jasper compiler really
 doesn't like it. Any setting to fix this:

Use Tomcat = 5.5.10 which comes with JDT from Eclipse 3.1 and supports Java 
5.

Regards
  mks

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



Re: problem calling request.getParameter(myparameter) in jsp

2006-01-11 Thread Jon Wingfield
Your underlying problem is the exclamation mark at the start of your 
scriptlet. This makes the jsp ompiler put free standing code into the 
init method or creates methods on the servlet that you can call within 
your jsp. Without the exclamation mark the compiler inlines the 
scriptlet into the _jspService() method, which is the behaviour you require.


So, you should have:
%   String query = request.getParameter(display) ;  %
instead of
%!   String query = request.getParameter(display) ;  %

HTH,

Jon

marju jalloh wrote:
I got it. HttpRequest throws an exception by enclosing 
String query = request.getParameter(display) in a try and catch block everything was fine
marju jalloh [EMAIL PROTECTED] wrote: I see 
 %!   String query = request.getParameter(display) ;  %

 is declared in the init()  of the servlet.I changed it but now I`m getting

org.apache.jasper.JasperException
java.lang.NullPointerException which should not execute the query

Can anyone throw licht on this

Thanks



marju jalloh  wrote:  Hi everyone
I  `m writing a bean application to execute sql query.The query properties in 
the Bean works perfect.I have a jsp with textArea where the user can enter 
query.The query is the required parameter that the Bean should execute.

snippet
...

   
[input] 




%!   String query = request.getParameter(display) ;  %

%  
if(!query.equals() || !query.equals(null))

  {
  String selector = (query.substring(0,6)).trim();
  out.write(selector);
  if(selector.equals(SELECT)){
   out.write(myBean.getData());
  }else
if(selector.equals(INSERT)){
   myBean.setData(query) ;
}else
if(selector.equals(DELETE)){
  myBean.setDelete(query);
}
else
   out.write(nothing is entered);
}
%
...
My problem is when the jsp page is requested for the first time
 I got this error:
cannot find symbol variable request.
I know I should have null for  request.getParameter(display)  at first access and that is caugt.If I  submit the form then the content of the textarea should be 
request.getParameter(display) .That was what I was expecting.


Can anyone help
Thanks in advance



   
-

Yahoo! Photos
 Got holiday prints? See all the ways to get quality prints in your hands ASAP.


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 




-
Yahoo! Photos
 Got holiday prints? See all the ways to get quality prints in your hands ASAP.




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



Problem with servlets from upgrade

2006-01-11 Thread Francesca Jovanovic
I have a new computer and I have installed the latest version of Tomcat 5 and 
reinstalled the Sun One Studio 4 which I still had a setup file. The example 
servlets and jsp's work fine but my servlets - that worked fine on my old pc 
with tomcat 4 - now don't work, the jsps are working fine but not the servlets. 
I get this error:


HTTP Status 404 - /servlet/PostStudentID

  _  


type Status report

message /servlet/PostStudentID

description The requested resource (/servlet/PostStudentID) is not available.

  _  


Apache Tomcat/5.5.12


I have searched endlessly to try and see what's going wrong and tried all your 
pointers but cannot resolve it. Can you please help? Is Tomcat 5.5.12 
compatible with Sun one studio 4?

 

 

Francesca Jovanović
Learning Technologist
Learning Partnerships Development Unit (LPDU) 
Faculty of Health
University of Central England
311 Ravensbury House, Westbourne Road
Edgbaston, Birmingham, B15 3TN
Telephone: 0121 331 7181
Fax: 0121 331 6009

 



RE: Using Tomcat 5.5 as a standalone web server

2006-01-11 Thread Adam Johnston
Thanks George and to Tim for his answer also - George's example seems to
be a reliable indicator of its capability.  I am going to load test the
site on a pure Tomcat install - I will let you all know how it goes ;)

I would love still to hear of any other examples of pure Tomcat
installs. It strikes me that if Tomcat is regarded an enterprise-class
web server, as opposed to a Java content server only, it provides a lot
of great answers to those of us who have to admin integrated
environments. I really hope the development of Tomcat continues to shore
up its Apache-like capabilities.

Adam

-Original Message-
From: George Sexton [mailto:[EMAIL PROTECTED] 
Sent: 10 January 2006 15:10
To: 'Tomcat Users List'
Subject: RE: Using Tomcat 5.5 as a standalone web server

  

 -Original Message-
 From: Adam Johnston [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, January 10, 2006 7:43 AM
 To: users@tomcat.apache.org
 Subject: Using Tomcat 5.5 as a standalone web server
 
 Hello all,
  
  
 My question is this : does anyone have experience of running a 500 000

 -
 1 000 000 page impressions / month site, including  elements such as I

 mention above, on Tomcat alone? I want to avoid the web server 
 integration if Tomcat is up to it, but I would love to hear if anyone 
 else has been successful with Tomcat standalone before I do?
  

I'm running around 700,000 pages a month on a pure tomcat installation
with no problems. Since I'm currently running 90+ virtual hosts, I
wanted to avoid having to configure them in both Tomcat and Apache, so I
went pure tomcat.


George Sexton
MH Software, Inc.
http://www.mhsoftware.com/
Voice: 303 438 9585



This email is intended only for the person or entity to which it is addressed 
and may contain information that is privileged, confidential or otherwise 
protected from disclosure. Dissemination, distribution or copying of this 
e-mail or the information herein by anyone other than the intended recipient, 
or an employee or agent responsible for delivering the message to the intended 
recipient, is prohibited. If you have received this e-mail in error, please 
immediately notify us by calling the Help Desk at +44 20 7675 9666

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



Re: Can't play wmv

2006-01-11 Thread Tim Funk

Make sure tomcat is returning the header:
Content-Type: video/x-ms-wmv

You can confirm this via telnet:
telnet MYSERVER 80
HEAD /MY/foo.wmv HTTP/1.1
Host: MYSERVER
Connection: close


You can add the header in $CATALINA_HOME/conf/web.xml or in web.xml of your 
webapp.


-Tim



Mark Winslow wrote:

Hello,
I am unable to get Tomcat 5.0 to properly serve up Windows Media (wmv)
files.
Despite adding the video/x-ms-wmv to my web.xml file,

whenever I attempt to open wmv, I get pages and pages of text. Needless to
say, this is not the desired result.  I'm fairly confident that this is some
kind of MIME misconfiguration, but am at a loss to find anything to rectify
the solution.

Can anyone shed some light on this?
Thanks,

-mw
**



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



Re: Problem with pdf in tomcat 4.1.29

2006-01-11 Thread Tim Funk

Its the response header:
Content-Type: application/pdf;charset=ISO-8859-1

I can't recall the resolution to this issue. I believe a tomcat update fixes 
this. An issue similar to this was discussed in Bugzilla.


The main issue is your using a JSP. The JSP is calling 
response.setCharacterset().  But when your jsp calls setContentType() - the 
previous call to setCharacterset was not cleared.


-Tim

Chris Donges wrote:


I have a jsp page that grabs a pdf from a blob in a database and sends
it to the browser inline.  It works fine for firefox and most ie users
but for some it displays it in a separate window or doesn't display at
all.

I am using tomcat 4.1.29 with jk going through iis 5.

Here are the headers:

Headers for 'http://www.practical.com.au/web/downloadFile.jsp?vfkey=104'

HTTP/1.1 200 OK
Server: Microsoft-IIS/5.0
Date: Tue, 10 Jan 2006 23:33:51 GMT
X-Powered-By: ASP.NET
Set-Cookie: JSESSIONID=5DA445035BFEFFB189E828434381EB24; Path=/web
Pragma: public
Cache-Control: max-age=0
Content-Disposition: inline;filename=See Map.pdf
Accept-Ranges: none
Content-Type: application/pdf;charset=ISO-8859-1
Content-Length: 543974

Does anyone have any idea what I am doing wrong?  Is there something
wrong with the headers?  Would upgrading tomcat have a good chance of
fixing the problem?  I can send the jsp source if that would help?



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



Re: Using Tomcat 5.5 as a standalone web server

2006-01-11 Thread Rafal Zawadzki
### Adam Johnston [EMAIL PROTECTED] wrote message to 
George Sexton [EMAIL PROTECTED], Tomcat Users List 
users@tomcat.apache.org ###
### this is reply for: RE: Using Tomcat 5.5 as a standalone web server ###
 Thanks George and to Tim for his answer also - George's example seems to
 be a reliable indicator of its capability.  I am going to load test the
 site on a pure Tomcat install - I will let you all know how it goes ;)

 I would love still to hear of any other examples of pure Tomcat
 installs. It strikes me that if Tomcat is regarded an enterprise-class
 web server, as opposed to a Java content server only, it provides a lot
 of great answers to those of us who have to admin integrated
 environments. I really hope the development of Tomcat continues to shore
 up its Apache-like capabilities.

IHMO it is not good way. 

Apache is one of the best open source project ever - stable, fast, powerfull.

Tomcat has good conceptial, but it hasn't quality, it is not stable, nor fast.

IMHO opinion tomcat dev should focus on improve stability, not porting apache 
func to it.

Don't get me wrong - we are using tomcat, generally we like it, but it is not 
1/10 apache quality.

-- 
Rafał Zawadzki
Deploy/Release Manager
eo Networks Sp. z o.o.


pgpPVyI9KtZyu.pgp
Description: PGP signature


RE: Using Tomcat 5.5 as a standalone web server

2006-01-11 Thread Carl Olivier
### Adam Johnston [EMAIL PROTECTED] wrote message to
George Sexton [EMAIL PROTECTED], Tomcat Users List 
users@tomcat.apache.org ###
### this is reply for: RE: Using Tomcat 5.5 as a standalone web server ###
 Thanks George and to Tim for his answer also - George's example seems 
 to be a reliable indicator of its capability.  I am going to load test 
 the site on a pure Tomcat install - I will let you all know how it 
 goes ;)

 I would love still to hear of any other examples of pure Tomcat 
 installs. It strikes me that if Tomcat is regarded an enterprise-class 
 web server, as opposed to a Java content server only, it provides a 
 lot of great answers to those of us who have to admin integrated 
 environments. I really hope the development of Tomcat continues to 
 shore up its Apache-like capabilities.

-Original Message-
From: Rafal Zawadzki [mailto:[EMAIL PROTECTED] 
Sent: 11 January 2006 11:46
To: Tomcat Users List
Subject: Re: Using Tomcat 5.5 as a standalone web server

 IHMO it is not good way. 

 Apache is one of the best open source project ever - stable, fast,
powerfull.

 Tomcat has good conceptial, but it hasn't quality, it is not stable, nor
fast.

 IMHO opinion tomcat dev should focus on improve stability, not porting
apache func to it.

 Don't get me wrong - we are using tomcat, generally we like it, but it is
not 1/10 apache quality.

 --
 Rafał Zawadzki
 Deploy/Release Manager
eo Networks Sp. z o.o.

Hi.

Not sure I fully agree with you - not about Apache being a great stable
product - as I do agree with that.  However, I have been using Tomcat since
version 3 - and settled on using Tomcat (since version 5.0.x) standalone as
I found greater stability, speed and reliance than with using it in
conjunction with Apache.

I would however put this down to the connectors and issues there rather than
to Apache or Tomcat.

I am still using 5.0.28 in production on well over 15 servers and over 100
sites - some of which are high traffic!  My biggest problem is in jugging
database server and web server system resources due to hardware limitations.

Anyway, just my two cents.

Rgds,

Carl



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



NotSerializableException in Tomcat 5.5.15

2006-01-11 Thread Ronald Klop

Hello, I'm seeing this exception in catalina.out of Tomcat 5.5.15 (2 node 
cluster). This is Tomcat code, so I'm wondering if I should fix something or if 
the problem is inside Tomcat?  Ronald.  SEVERE: Unable to serialize delta 
request for sessionid [F63F9EDF02547D7610359C7A990650A7] 
java.io.NotSerializableException: org.apache.catalina.realm.GenericPrincipal
 at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1075)   
  at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:291)
 at java.util.LinkedList.writeObject(LinkedList.java:755) at 
sun.reflect.GeneratedMethodAccessor64.invoke(Unknown Source) at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:585) at 
java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:890) 
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1333) 
at 
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1284)
 at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1073)   
  at java.io.ObjectOutputStream.access$100(ObjectOutputStream.java:135) 
at 
java.io.ObjectOutputStream$PutFieldImpl.writeFields(ObjectOutputStream.java:1512)
 at java.io.ObjectOutputStream.writeFields(ObjectOutputStream.java:418) 
at javax.security.auth.Subject$SecureSet.writeObject(Subject.java:1281) 
at sun.reflect.GeneratedMethodAccessor63.invoke(Unknown Source) 
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:585) at 
java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:890) 
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1333) 
at 
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1284)
 at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1073)   
  at 
java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1369) 
at 
java.io.ObjectOutputStream.defaultWriteObject(ObjectOutputStream.java:380)  
   at 
java.util.Collections$SynchronizedCollection.writeObject(Collections.java:1606) 
at sun.reflect.GeneratedMethodAccessor62.invoke(Unknown Source) 
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:585) at 
java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:890) 
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1333) 
at 
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1284)
 at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1073)   
  at 
java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1369) 
at 
java.io.ObjectOutputStream.defaultWriteObject(ObjectOutputStream.java:380)  
   at javax.security.auth.Subject.writeObject(Subject.java:919) at 
sun.reflect.GeneratedMethodAccessor61.invoke(Unknown Source) at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:585) at 
java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:890) 
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1333) 
at 
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1284)
 at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1073)   
  at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:291)
 at 
org.apache.catalina.cluster.session.DeltaRequest$AttributeInfo.writeExternal(DeltaRequest.java:346)
 at 
org.apache.catalina.cluster.session.DeltaRequest.writeExternal(DeltaRequest.java:263)
 at 
org.apache.catalina.cluster.session.DeltaManager.unloadDeltaRequest(DeltaManager.java:695)
 at 
org.apache.catalina.cluster.session.DeltaManager.requestCompleted(DeltaManager.java:1249)
 at 
org.apache.catalina.cluster.tcp.ReplicationValve.sendSessionReplicationMessage(ReplicationValve.java:328)
 at 
org.apache.catalina.cluster.tcp.ReplicationValve.invoke(ReplicationValve.java:271)
 at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)   
  at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
 at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) 
at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)  
   at 
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:667)
 at 

Tomcat 4.x to 5.5.x migration problem

2006-01-11 Thread Dennis Leary
Migrating from Tomcat 4.x to 5.5.x

The application uses an application scope bean and for some reason the 5.5.x 
container is continuously initializing the bean.

jsp snippet
jsp:useBean id=ADMIN class=com.foo.bar.Admin scope=application /

com.foo.bar.Admin Constructor
public Admin() throws Exception  {
try{
Context ctx = new InitialContext();
if(ctx == null )System.out.println(Boom - No Context);
connectionPool = 
(javax.sql.DataSource)ctx.lookup(java:comp/env/jdbc/SOURCE);
 }catch(Exception e) {
 System.out.println(Site ERROR:+ e);
 }
System.out.println(\n\n-Loading Matrix);
LoadMTX();
System.out.println(---Matrix Load Completed - \n\n);
System.out.println(---Matrix Loading Content Map -);
LoadContentMap();
System.out.println(---Content Map Done -\n\n);
System.out.println(---Load Security-);
LoadSecurity();
System.out.println(---Load Security Done-\n\n);
}

Upon calling the jsp it continuosly loops through the constructor

Any ideas???

[EMAIL PROTECTED]


java.lang.Class.getResourceAsStream() throws ClassCastException

2006-01-11 Thread JS Portal support team
Hi,

During initilization of my c3p0 connection pool by hibernate the below 
printed exception occurs. The exception causes a failure in the c3p0 
initilization and thus hibernate and my application.

Does anyone know what might cause this behavour?

The folowing bugs describe a similair problem. But these seem to talk 
about loading a directory, and not a .class file as is the case in my 
situation.
http://issues.apache.org/bugzilla/show_bug.cgi?id=3855
http://issues.apache.org/bugzilla/show_bug.cgi?id=5869
http://issues.apache.org/bugzilla/show_bug.cgi?id=4830

The stack trace --

java.lang.reflect.InvocationTargetException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0
(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance
(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance
(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance
(Constructor.java:494)
at com.jsportal.projectportal._config.init(_config.java:158)
at com.jsportal.projectportal.applicationConfig.init
(applicationConfig.java:119)
at com.jsportal.projectportal.web.webApplicationConfig.init
(webApplicationConfig.java:85)
at 
com.jsportal.projectportal.web.ApplicationStartupServlet.setUpApplicatio
n(ApplicationStartupServlet.java:123)
at com.jsportal.projectportal.web.ApplicationStartupServlet.init
(ApplicationStartupServlet.java:53)
at org.apache.catalina.core.StandardWrapper.load
(StandardWrapper.java:852)
at org.apache.catalina.core.StandardContext.loadOnStartup
(StandardContext.java:3267)
at org.apache.catalina.core.StandardContext.start
(StandardContext.java:3384)
at org.apache.catalina.core.ContainerBase.start
(ContainerBase.java:1123)
at org.apache.catalina.core.StandardHost.start
(StandardHost.java:612)
at org.apache.catalina.core.ContainerBase.start
(ContainerBase.java:1123)
at org.apache.catalina.core.StandardEngine.start
(StandardEngine.java:307)
at org.apache.catalina.core.StandardService.start
(StandardService.java:388)
at org.apache.catalina.core.StandardServer.start
(StandardServer.java:505)
at org.apache.catalina.startup.Catalina.start(Catalina.java:776)
at org.apache.catalina.startup.Catalina.execute
(Catalina.java:681)
at org.apache.catalina.startup.Catalina.process
(Catalina.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.catalina.startup.Bootstrap.main
(Bootstrap.java:243)
Caused by: java.lang.ExceptionInInitializerError
at com.mchange.v2.c3p0.PoolConfig.clinit(PoolConfig.java:93)
at org.hibernate.connection.C3P0ConnectionProvider.configure
(C3P0ConnectionProvider.java:84)
at 
org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider
(ConnectionProviderFactory.java:124)
at 
org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider
(ConnectionProviderFactory.java:56)
at org.hibernate.cfg.SettingsFactory.createConnectionProvider
(SettingsFactory.java:366)
at org.hibernate.cfg.SettingsFactory.buildSettings
(SettingsFactory.java:60)
at org.hibernate.cfg.Configuration.buildSettings
(Configuration.java:1859)
at org.hibernate.cfg.Configuration.buildSessionFactory
(Configuration.java:1152)
at 
com.jsportal.projectportal.transactionManagement.HibernateResource.init
(HibernateResource.java:45)
... 26 more
Caused by: java.lang.ClassCastException: 
org.apache.naming.resources.FileDirContext
at 
org.apache.catalina.loader.WebappClassLoader.findResourceInternal
(WebappClassLoader.java:1585)
at org.apache.catalina.loader.WebappClassLoader.findResource
(WebappClassLoader.java:914)
at 
org.apache.catalina.loader.WebappClassLoader.getResourceAsStream
(WebappClassLoader.java:)
at java.lang.Class.getResourceAsStream(Class.java:1998)
at com.mchange.v2.cfg.BasicMultiPropertiesConfig.init
(BasicMultiPropertiesConfig.java:48)
at com.mchange.v2.cfg.BasicMultiPropertiesConfig.init
(BasicMultiPropertiesConfig.java:39)
at com.mchange.v2.cfg.MultiPropertiesConfig.read
(MultiPropertiesConfig.java:64)
at com.mchange.v2.cfg.MultiPropertiesConfig.readVmConfig
(MultiPropertiesConfig.java:73)
at com.mchange.v2.log.MLog.clinit(MLog.java:48)
... 35 more

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



Problems Using Context Loader

2006-01-11 Thread Michel Costa
Hi everyone,

I am trying to create a ClassLoader for my application so then I will not have 
to reload all the hibernate and struts when a new class is compiled.

Then my problems started:
I do not know where to put my special ClassLoader.
I got lots of classcast exceptions until I found that a instance of 
org.apache.catalina.loader.WebappClassLoader.
So far so good, just extended my class and apache can't find 
org.apache.catalina.loader.WebappClassLoader.

Now I have a java.lang.ClassNotFoundException: 
org.apache.catalina.loader.WebappClassLoader

I think the error is just because I put my classloader in the wrong place 
(which is CATALINA_HOME/common/classes) but i could not avoid this common 
folder... Before this one, I tried webapps/MYAPP/WEB-INF/classes but java didnt 
found my class.
My guess is something about the ClassLoader hierarchy and visibility of the 
classes...

Well... here goes some info:
I am runing catalina on a linux workstation, ubuntu.

my app's context.xml:
?xml version=1.0 encoding=UTF-8?
Context
  Loader loaderClass=DeployerClassLoader delegate=false 
reloadable=false/
  WatchedResourceWEB-INF/web.xml/WatchedResource
/Context

the tomcat output:
11/01/2006 10:56:33 org.apache.catalina.loader.WebappLoader start
SEVERE: LifecycleException
java.lang.NoClassDefFoundError: org/apache/catalina/loader/WebappClassLoader
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
at 
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:164)
at 
org.apache.catalina.loader.WebappLoader.createClassLoader(WebappLoader.java:769)
at org.apache.catalina.loader.WebappLoader.start(WebappLoader.java:638)
at 
org.apache.catalina.core.StandardContext.start(StandardContext.java:4076)
at 
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
at 
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
at 
org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:910)
at 
org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:873)
at 
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:474)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1118)
at 
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310)
at 
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1020)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1012)
at 
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
at 
org.apache.catalina.core.StandardService.start(StandardService.java:450)
at 
org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:275)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
11/01/2006 10:56:33 org.apache.catalina.core.ContainerBase addChildInternal
SEVERE: ContainerBase.addChild: start:
LifecycleException:  start: :  java.lang.NoClassDefFoundError: 
org/apache/catalina/loader/WebappClassLoader
at org.apache.catalina.loader.WebappLoader.start(WebappLoader.java:675)
at 
org.apache.catalina.core.StandardContext.start(StandardContext.java:4076)
at 
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
at 
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
at 

RE: Using Tomcat 5.5 as a standalone web server

2006-01-11 Thread Adam Johnston
I like the sound of that idea - videos tend to change rarely, and are
prime candidates for caching. Is anyone actually using this
configuration?
Thanks. 

-Original Message-
From: Wouter Boers [mailto:[EMAIL PROTECTED] 
Sent: 10 January 2006 16:01
To: 'Tomcat Users List'
Subject: RE: Using Tomcat 5.5 as a standalone web server

There is quite an easy sollution. 

Run squid as you main webserver and as a web accelator in front of your
tomcat. From the squid config you can decide what your want cached and
what now. I don't understand why this is not done more often since its
A) a very easy sollution
B) does not loose any of the funtionality tomcat can offer you
C) allow to fine grain the load of tomcat completely

Only downsite, the squid cache in core memory gives of course the best
performance so as much memory as possible will help. On the other hand.
The HTML of much sites fits easily in 500MB core memory.

Regards, Wouter 

-Original Message-
From: Adam Johnston [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 10, 2006 3:43 PM
To: users@tomcat.apache.org
Subject: Using Tomcat 5.5 as a standalone web server

Hello all,
 
I am running a reasonable sized site, on Linux Red Hat + Tomcat 5.5.7.
The site is serving mainly Flash movies and servlets with streaming
video through a commercial codec, plus a full HTML version of the site.
Currently, I have Tomcat 5.5.7 integrated with Apache 2.0.46, which was
(very) difficult to set up, and now I am looking to rebuild my server
into a better configuration, I want to simplify my admin by running
Tomcat on its own to serve all content. 
 
My question is this : does anyone have experience of running a 500 000 -
1 000 000 page impressions / month site, including  elements such as I
mention above, on Tomcat alone? I want to avoid the web server
integration if Tomcat is up to it, but I would love to hear if anyone
else has been successful with Tomcat standalone before I do?
 
Many thanks!
 
Adam




This email is intended only for the person or entity to which it is
addressed and may contain information that is privileged, confidential
or otherwise protected from disclosure. Dissemination, distribution or
copying of this e-mail or the information herein by anyone other than
the intended recipient, or an employee or agent responsible for
delivering the message to the intended recipient, is prohibited. If you
have received this e-mail in error, please immediately notify us by
calling the Help Desk at +44 20 7675
9666

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




This email is intended only for the person or entity to which it is addressed 
and may contain information that is privileged, confidential or otherwise 
protected from disclosure. Dissemination, distribution or copying of this 
e-mail or the information herein by anyone other than the intended recipient, 
or an employee or agent responsible for delivering the message to the intended 
recipient, is prohibited. If you have received this e-mail in error, please 
immediately notify us by calling the Help Desk at +44 20 7675 9666

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



Serving secured static content

2006-01-11 Thread ALEX HYDE
Dear group,
  
  I have been looking at how to best serve static content from my web-site. 
Most of the content is static. 
  
  I was looking at using Apache as a front to Tomcat and have that all up  and 
running. The problem is securing the content. I have written an  Apache plug-in 
using mod_perl but I'm no expert and am concerned about  how this might 
perform, for example, db connection pooling. 
  
  What is the the most recent recommendation on serving static content now? I 
can see a few options:
  - use Tomcat
  - use Apache and write a plug-in
  - use Pippo or seomthing like that
  
  Thanks alot.
   


-
Yahoo! Photos – NEW, now offering a quality print service from just 8p a photo.

RE: Using Tomcat 5.5 as a standalone web server

2006-01-11 Thread ALEX HYDE
Adam,
  
  I think I just posted a question on nearly this same topic.
  
  I found something called Pippo for static content and would be easier to 
configure as it sits in Tomcat. 
  
  Do you have security considerations? Have you had to add modules for securing 
content in Apache?   

Adam Johnston [EMAIL PROTECTED] wrote:  I like the sound of that idea - 
videos tend to change rarely, and are
prime candidates for caching. Is anyone actually using this
configuration?
Thanks. 

-Original Message-
From: Wouter Boers [mailto:[EMAIL PROTECTED] 
Sent: 10 January 2006 16:01
To: 'Tomcat Users List'
Subject: RE: Using Tomcat 5.5 as a standalone web server

There is quite an easy sollution. 

Run squid as you main webserver and as a web accelator in front of your
tomcat. From the squid config you can decide what your want cached and
what now. I don't understand why this is not done more often since its
A) a very easy sollution
B) does not loose any of the funtionality tomcat can offer you
C) allow to fine grain the load of tomcat completely

Only downsite, the squid cache in core memory gives of course the best
performance so as much memory as possible will help. On the other hand.
The HTML of much sites fits easily in 500MB core memory.

Regards, Wouter 

-Original Message-
From: Adam Johnston [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 10, 2006 3:43 PM
To: users@tomcat.apache.org
Subject: Using Tomcat 5.5 as a standalone web server

Hello all,
 
I am running a reasonable sized site, on Linux Red Hat + Tomcat 5.5.7.
The site is serving mainly Flash movies and servlets with streaming
video through a commercial codec, plus a full HTML version of the site.
Currently, I have Tomcat 5.5.7 integrated with Apache 2.0.46, which was
(very) difficult to set up, and now I am looking to rebuild my server
into a better configuration, I want to simplify my admin by running
Tomcat on its own to serve all content. 
 
My question is this : does anyone have experience of running a 500 000 -
1 000 000 page impressions / month site, including  elements such as I
mention above, on Tomcat alone? I want to avoid the web server
integration if Tomcat is up to it, but I would love to hear if anyone
else has been successful with Tomcat standalone before I do?
 
Many thanks!
 
Adam

 


This email is intended only for the person or entity to which it is
addressed and may contain information that is privileged, confidential
or otherwise protected from disclosure. Dissemination, distribution or
copying of this e-mail or the information herein by anyone other than
the intended recipient, or an employee or agent responsible for
delivering the message to the intended recipient, is prohibited. If you
have received this e-mail in error, please immediately notify us by
calling the Help Desk at +44 20 7675
9666

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




This  email is intended only for the person or entity to which it is  addressed 
and may contain information that is privileged, confidential  or otherwise 
protected from disclosure. Dissemination, distribution or  copying of this 
e-mail or the information herein by anyone other than  the intended recipient, 
or an employee or agent responsible for  delivering the message to the intended 
recipient, is prohibited. If you  have received this e-mail in error, please 
immediately notify us by  calling the Help Desk at +44 20 7675 9666

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





-
Yahoo! Messenger  NEW - crystal clear PC to PC calling worldwide with voicemail 

Re: help with wmv

2006-01-11 Thread Thomas . Weil
Mark,

i guess setting

HttpServletResponse.setHeader(Content-Type,video/x-ms-wmv);

when generating your response should help with that.

Regards,
Thomas 



[EMAIL PROTECTED] schrieb am 10.01.2006 21:38:54:

 Hello,

 I am unable to properly serve up wmv files.

 Despite adding the video/x-ms-wmv to my web.xml file,

 
 whenever I attempt to open wmv, I get pages and pages of text. Needless
 to say, this is not the desired result.  I'm fairly confident that this
 is some kind of MIME misconfiguration, but am at a loss to find anything
 to rectify the solution.

 Can anyone shed some light on this?
 Thanks,

 -mw


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



RE: java.lang.Class.getResourceAsStream() throws ClassCastException

2006-01-11 Thread Fredrik Rubensson
 

 During initilization of my c3p0 connection pool by hibernate the below
printed 
 exception occurs. The exception causes a failure in the c3p0
initilization and 
 thus hibernate and my application.

 Does anyone know what might cause this behavour?

Seems like it is the catalina class loader that fails to cast an object
into a 
org.apache.naming.resources.FileDirContext. I checked the latest source
of this class and there is no FileDirContext in WebappClassLoader. From
the stack I am guessing that there are class namse in property files
that are loaded dynamically. Maybe something is wrong in those property
files? 

What version of tomcat are you using? (Assuming that you are using
tomcat that is. Catalina code seem to be involved somehow.) I am not
sure if I can help you any further but the folks that can will surely be
happy for some details about tomcat versions, platform and so on.

Regards,
Fredrik



The stack trace --

java.lang.reflect.InvocationTargetException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0
(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance
(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance
(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance
(Constructor.java:494)
at com.jsportal.projectportal._config.init(_config.java:158)
at com.jsportal.projectportal.applicationConfig.init
(applicationConfig.java:119)
at com.jsportal.projectportal.web.webApplicationConfig.init
(webApplicationConfig.java:85)
at
com.jsportal.projectportal.web.ApplicationStartupServlet.setUpApplicatio
n(ApplicationStartupServlet.java:123)
at com.jsportal.projectportal.web.ApplicationStartupServlet.init
(ApplicationStartupServlet.java:53)
at org.apache.catalina.core.StandardWrapper.load
(StandardWrapper.java:852)
at org.apache.catalina.core.StandardContext.loadOnStartup
(StandardContext.java:3267)
at org.apache.catalina.core.StandardContext.start
(StandardContext.java:3384)
at org.apache.catalina.core.ContainerBase.start
(ContainerBase.java:1123)
at org.apache.catalina.core.StandardHost.start
(StandardHost.java:612)
at org.apache.catalina.core.ContainerBase.start
(ContainerBase.java:1123)
at org.apache.catalina.core.StandardEngine.start
(StandardEngine.java:307)
at org.apache.catalina.core.StandardService.start
(StandardService.java:388)
at org.apache.catalina.core.StandardServer.start
(StandardServer.java:505)
at org.apache.catalina.startup.Catalina.start(Catalina.java:776)
at org.apache.catalina.startup.Catalina.execute
(Catalina.java:681)
at org.apache.catalina.startup.Catalina.process
(Catalina.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.catalina.startup.Bootstrap.main
(Bootstrap.java:243)
Caused by: java.lang.ExceptionInInitializerError
at com.mchange.v2.c3p0.PoolConfig.clinit(PoolConfig.java:93)
at org.hibernate.connection.C3P0ConnectionProvider.configure
(C3P0ConnectionProvider.java:84)
at
org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider
(ConnectionProviderFactory.java:124)
at
org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider
(ConnectionProviderFactory.java:56)
at org.hibernate.cfg.SettingsFactory.createConnectionProvider
(SettingsFactory.java:366)
at org.hibernate.cfg.SettingsFactory.buildSettings
(SettingsFactory.java:60)
at org.hibernate.cfg.Configuration.buildSettings
(Configuration.java:1859)
at org.hibernate.cfg.Configuration.buildSessionFactory
(Configuration.java:1152)
at
com.jsportal.projectportal.transactionManagement.HibernateResource.init
(HibernateResource.java:45)
... 26 more
Caused by: java.lang.ClassCastException: 
org.apache.naming.resources.FileDirContext
at
org.apache.catalina.loader.WebappClassLoader.findResourceInternal
(WebappClassLoader.java:1585)
at org.apache.catalina.loader.WebappClassLoader.findResource
(WebappClassLoader.java:914)
at
org.apache.catalina.loader.WebappClassLoader.getResourceAsStream
(WebappClassLoader.java:)
at java.lang.Class.getResourceAsStream(Class.java:1998)
at com.mchange.v2.cfg.BasicMultiPropertiesConfig.init
(BasicMultiPropertiesConfig.java:48)
at com.mchange.v2.cfg.BasicMultiPropertiesConfig.init
(BasicMultiPropertiesConfig.java:39)
at com.mchange.v2.cfg.MultiPropertiesConfig.read
(MultiPropertiesConfig.java:64)
at com.mchange.v2.cfg.MultiPropertiesConfig.readVmConfig

How to redirect incoming requests?

2006-01-11 Thread Ritchie Gillam
I am trying to have all requests that come to the Tomcat Server be redirected 
to another web server.  What is the best/easiest was to do this?

I have Tomcat 5.5.7 installed and I do not have or want to install Apache.

I have did a search through the archives and have found nothing.

Any suggestions?

Thanks in advance,

Tomcat 5.5.7
Sun Solaris 9

Ritchie 





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



RE: unable to load classes

2006-01-11 Thread Nehal Sangoi
Hi

How can i change the default classloading hierarchy in Tomcat 5.5.9 ? And
would that affect in my Tomcat setup anyway?

Please reply to my query because i am stucked up badly at this problem.

-Original Message-
From: Nehal Sangoi [mailto:[EMAIL PROTECTED]
Sent: Friday, January 06, 2006 9:58 AM
To: 'Boris Unckel'; Tomcat Users List (E-mail)
Subject: RE: unable to load classes


Hi Boris,

I will explain the issue thoroughyl, and the options i tried so far to
resolve the same.

Environment Details :
OS : Linux Enterprise
Tomcat 5.5.9
Apache HTTP Server 2.0.54
Apache and Tomcat reside on physically different server.
All Tomcat applications are SiteMinder Enabled.

I have one base installation of Tomcat and Multile Tomcat Instances created
(each with diff user). I am not at all starting base-tomcat in my
environment. My Tomcat Instances are running.

Java - JDK used is 1.5 -- latest one.

Now, i have several applications, which have framework in it. Technically, i
don't understand what framework is as i am basically a UNIX Admin and
administer Tomcat+Apache.

The applications, which use framework, are using following two jarfiles.

expd2util.jar
jdom.jar

If i keep these jarfiles into any tomcat instance's WEB-INF/lib, the
application runs absolutely fine. As i mentioned earlier, the above two
jarfiles would be used by many other tomcat instances/applications too.
Hence, i wanted these jarfiles be kept in either base tomcat's common/lib or
shared/lib and symlinks be created into every tomcat instance's shared/lib
dir. Doing this, it will ease up my administration task in future.

Unfortunately, its not doing.

===

Description of exact problem and options tried so far :

Note : wherever i am keeping these jars, keeping only single copy of it at
one particular location by discarding them out from any other classpath.

I kept both the jarfiles into base-tomcat's common/lib and created symlink
into the application's shared/lib folder. Ideally, this should work, because
i have 3 more other jarfiles (third party) linked this way and they are
working well. But tomcat is not picking up these two jarfiles from
common/lib and results in Null Pointer Exception. Also, it registers nothing
in catalina.out.

Later, i kept both the jarfiles in shared/lib dir of that tomcat instance
itself. This too did not work and resulted in No classdef found error.

After that, i kept both into shared/lib of base-tomcat and again created
symlinks into shared/lib of application. No luck.

Again, i changed my mind and converted the jarfiles into classes and placed
those classes into shared/classes folder of application. but :((

Finally, i exported the explicitly defined CLASSPATH variable into
application user's profile and tried for tomcat to pick from there atleast
and here too, no hope.

If you read my mail closely, i have tried out almost all options.

I went through the classloader documentation of Tomcat 5.5 on jakarta
website. Theoratically, my application should work, the way i am thinking of
but practically its failing.

Regarding Servlet API, yes, you are right. There is default sevlet-API jar
in Tomcat's Internal Classes.

==

I think, i have replied to your queries. If you need any more info, please
let me know. I am awaiting for a solution to come out to overcome this issue
as i need to implement the same into my Production Environment.


Thanks  Regards,
Nehal

-Original Message-
From: Boris Unckel [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 05, 2006 6:02 PM
To: [EMAIL PROTECTED]
Subject: RE: unable to load classes



 I tried keeping into shared/lib of that particular application. But it
 reflects the same error again. My requirement of putting these two jars
 in
 shared/lib or common/lib is because i need to use them for other 20 more
 applications. Hence, it would be more convenient to keep one copy and
 access
 by multiple applications rather copying them to every application's
 WEB-INF/lib.

 Kindly, suggest some solution for this.
  But, unfortunately, i get Null Pointer Exception. And my jarfiles or
  say
  classes are not getting loaded.
  One of my jar contains servlet API in it.
Just to make it clear:
The classes/jars are NOT provided by you/by default through System
Classpath/Classloader, are NOT provided by you/by default through the
commons/lib.
The classes/jars are NOT in WEB-INF/lib.
There is just one copy (without any links to it) in shared/lib.

Do you fullfill the mentioned conditions for servlet API too?
I think the servlet API is provided by default through commons/lib.

Your problem exists still if the mentioned conditions are true?

Could you post the exact message/stacktrace?

Regards
Boris


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

RE: Using Tomcat 5.5 as a standalone web server

2006-01-11 Thread Chris McCormack
I would consider integrating this as part of your application and stay just
standalone tomcat (or load balanced tomcat). Keep it simple.

http://www.opensymphony.com/oscache/

Very useful.

__
This email has been scanned for all viruses by the MessageLabs SkyScan
service. For more information on a proactive anti-virus service working
around the clock, around the globe, visit http://www.messagelabs.com

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



Session from a tag

2006-01-11 Thread Thom Hehl
I'm trying to get to the session from a tag. I have a bean stored there 
that I want to use in my tag. How can I retrieve this. I can't find this 
information anywhere.


Thanks.

Thom Hehl
Heavyweight Software for Heavyweight Needs
www.heavyweightsoftware.com
--
In every revolution, there is one man with a vision.--Jerome Bixby



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



Re: Using Tomcat 5.5 as a standalone web server

2006-01-11 Thread Rafal Zawadzki

 Not sure I fully agree with you - not about Apache being a great stable
 product - as I do agree with that.  However, I have been using Tomcat since
 version 3 - and settled on using Tomcat (since version 5.0.x) standalone as
 I found greater stability, speed and reliance than with using it in
 conjunction with Apache.


Exactly. With conjuction apache :)


 I would however put this down to the connectors and issues there rather
 than to Apache or Tomcat.

 I am still using 5.0.28 in production on well over 15 servers 

Similar.


 and over 100 
 sites - some of which are high traffic!  

The same.

 My biggest problem is in jugging 
 database server and web server system resources due to hardware
 limitations.

Our problem are replication (first tomcat version which has stable replication 
is 5.5.14, in our environment). When i read changelog of new version I always 
think oh my god (about old, buggy version). IMVHO it is mature product, but 
good looking for the future.

 Rgds,

Cheers,

 Carl

-- 
Rafał Zawadzki
Deploy/Release Manager
eo Networks Sp. z o.o.


pgpJjop3zfcCF.pgp
Description: PGP signature


RE: Problem with servlets from upgrade (Tomcat to SunOne)

2006-01-11 Thread Duan, Nick
Without knowing how your web.xml file was defined, it seems to me a context 
root problem.  Sun has its own way to define the path of a context root in its 
sun-web.xml file, unlike tomcat which uses the application name as the default 
root path.  If you use Sun's Studio to package and deploy your web app, by 
default it may create a default context root as / instead of /yourappname as in 
tomcat.

The simplest way to solve this problem is to package your tomcat application 
yourself (if you haven't got a deployable war file) instead of using Sun's IDE, 
and deploy the war file to the autodeploy directory of your Sun One app server. 
 By default, the autodeploy directory should be under 
$YOURSUNAPPSERVER/domains/domain1.  You don't have to restart the SunOne server 
to do the deployment.

ND

-Original Message-
From: Francesca Jovanovic [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, January 11, 2006 5:29 AM
To: tomcat-user@jakarta.apache.org
Subject: Problem with servlets from upgrade
Importance: High

I have a new computer and I have installed the latest version of Tomcat 5 and 
reinstalled the Sun One Studio 4 which I still had a setup file. The example 
servlets and jsp's work fine but my servlets - that worked fine on my old pc 
with tomcat 4 - now don't work, the jsps are working fine but not the servlets. 
I get this error:


HTTP Status 404 - /servlet/PostStudentID

  _  


type Status report

message /servlet/PostStudentID

description The requested resource (/servlet/PostStudentID) is not available.

  _  


Apache Tomcat/5.5.12


I have searched endlessly to try and see what's going wrong and tried all your 
pointers but cannot resolve it. Can you please help? Is Tomcat 5.5.12 
compatible with Sun one studio 4?

 

 

Francesca Jovanović
Learning Technologist
Learning Partnerships Development Unit (LPDU) 
Faculty of Health
University of Central England
311 Ravensbury House, Westbourne Road
Edgbaston, Birmingham, B15 3TN
Telephone: 0121 331 7181
Fax: 0121 331 6009

 


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



Re: Session from a tag

2006-01-11 Thread Thom Hehl

Ah!!! That's what I was looking for.

Thanks so much!

David Delbecq wrote:


getJspContext().getAttribute(someKey,PageContext.SESSION_SCOPE)
Le Mercredi 11 Janvier 2006 16:19, Thom Hehl a écrit :
 

This explains the code I found. What if you extend SimpleTagSupport. 
What's the difference?


David Delbecq wrote:

   


to expose bean in jsp:
http://java.sun.com/products/jsp/tags/11/syntaxref11.fm14.html

to access session in a custom tag, assuming you extend TagSupport class:
pageContext.getSession();

Le Mercredi 11 Janvier 2006 15:57, Thom Hehl a écrit :


 

I'm trying to get to the session from a tag. I have a bean stored there 
that I want to use in my tag. How can I retrieve this. I can't find this 
information anywhere.


Thanks.

Thom Hehl
Heavyweight Software for Heavyweight Needs
www.heavyweightsoftware.com
  

   




 


Thom Hehl
Heavyweight Software for Heavyweight Needs
www.heavyweightsoftware.com
   



 




Thom Hehl
Heavyweight Software for Heavyweight Needs
www.heavyweightsoftware.com
--
In every revolution, there is one man with a vision.--Jerome Bixby



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



RE: Serving secured static content

2006-01-11 Thread George Sexton
Put a security constraint in your web.xml for the resources you want to
secure.

George Sexton
MH Software, Inc.
http://www.mhsoftware.com/
Voice: 303 438 9585
  

 -Original Message-
 From: ALEX HYDE [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, January 11, 2006 6:23 AM
 To: users@tomcat.apache.org
 Subject: Serving secured static content
 
 Dear group,
   
   I have been looking at how to best serve static content 
 from my web-site. Most of the content is static. 
   
   I was looking at using Apache as a front to Tomcat and have 
 that all up  and running. The problem is securing the 
 content. I have written an  Apache plug-in using mod_perl but 
 I'm no expert and am concerned about  how this might perform, 
 for example, db connection pooling. 
   
   What is the the most recent recommendation on serving 
 static content now? I can see a few options:
   - use Tomcat
   - use Apache and write a plug-in
   - use Pippo or seomthing like that
   
   Thanks alot.

 
   
 -
 Yahoo! Photos - NEW, now offering a quality print service 
 from just 8p a photo.
 


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



RE: Problem with servlets from upgrade

2006-01-11 Thread George Sexton
Read:

http://tomcat.apache.org/tomcat-5.5-doc/RELEASE-NOTES.txt

Specifically, search for

Enabling invoker servlet:

Essentially, you need to do URL mapping in your web.xml for your servlets.


George Sexton
MH Software, Inc.
http://www.mhsoftware.com/
Voice: 303 438 9585
  

 -Original Message-
 From: Francesca Jovanovic [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, January 11, 2006 3:29 AM
 To: tomcat-user@jakarta.apache.org
 Subject: Problem with servlets from upgrade
 Importance: High
 
 I have a new computer and I have installed the latest version 
 of Tomcat 5 and reinstalled the Sun One Studio 4 which I 
 still had a setup file. The example servlets and jsp's work 
 fine but my servlets - that worked fine on my old pc with 
 tomcat 4 - now don't work, the jsps are working fine but not 
 the servlets. I get this error:
 
 
 HTTP Status 404 - /servlet/PostStudentID
 
   _  
 
 
 type Status report
 
 message /servlet/PostStudentID
 
 description The requested resource (/servlet/PostStudentID) 
 is not available.
 
   _  
 
 
 Apache Tomcat/5.5.12
 
 
 I have searched endlessly to try and see what's going wrong 
 and tried all your pointers but cannot resolve it. Can you 
 please help? Is Tomcat 5.5.12 compatible with Sun one studio 4?
 
  
 
  
 
 Francesca Jovanović
 Learning Technologist
 Learning Partnerships Development Unit (LPDU) 
 Faculty of Health
 University of Central England
 311 Ravensbury House, Westbourne Road
 Edgbaston, Birmingham, B15 3TN
 Telephone: 0121 331 7181
 Fax: 0121 331 6009
 
  
 
 


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



Re: How to create EXE in java

2006-01-11 Thread Mladen Turk

kavallappa chiru wrote:

Hi
How can i cretae exe file from java class file , so that i can run java 
application without running java classfile from the command prompt. I just want 
click on the icon to run it as we are all doing in windows.



You have an ASF licensed solution at:
http://svn.apache.org/viewcvs.cgi/jakarta/commons/proper/daemon/trunk/src/native/nt/procrun/apps/jar2exe/

It can convert any .jar to a standalone .exe by injecting .exe stub
inside .jar for both with or without console apps.

Regards,
Mladen.

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



Frames in JSP.

2006-01-11 Thread anunay.ashish

Dear All,

I have a JSP like the following

html
head
.
.
/head
body


frameset
frame


/frame
frame src=a.jsp
/frameset
.
.
/body
html

where .. is for html code.

If I try to access html elements under the jsp a.jsp, it returns me a
null. Why?

Thanks in advance.

Regards,
Ashish A.




The information contained in this electronic message and any attachments to 
this message are intended for the exclusive use of the addressee(s) and may 
contain proprietary, confidential or privileged information. If you are not the 
intended recipient, you should not disseminate, distribute or copy this e-mail. 
Please notify the sender immediately and destroy all copies of this message and 
any attachments.

WARNING: Computer viruses can be transmitted via email. The recipient should 
check this email and any attachments for the presence of viruses. The company 
accepts no liability for any damage caused by any virus transmitted by this 
email.

www.wipro.com

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



RE: How to redirect incoming requests?

2006-01-11 Thread Duan, Nick
Couple of ways you may consider:

- Ask your network administrator to change your DNS mapping or IP
address mapping.
- Use the build-in balancer of tomcat as a proxy to redirect the traffic
(see the load balancer section of tomcat doc).
- Apache or HW load balancer.

ND

-Original Message-
From: Ritchie Gillam [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, January 11, 2006 8:59 AM
To: users@tomcat.apache.org
Subject: How to redirect incoming requests?

I am trying to have all requests that come to the Tomcat Server be
redirected to another web server.  What is the best/easiest was to do
this?

I have Tomcat 5.5.7 installed and I do not have or want to install
Apache.

I have did a search through the archives and have found nothing.

Any suggestions?

Thanks in advance,

Tomcat 5.5.7
Sun Solaris 9

Ritchie 





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



tomcat and javac

2006-01-11 Thread Jignesh Shah
Hi,

When I use our application with tomcat 5.5.12 it seems
it does not need a javac ,I mean I can get it running
with a jre as JAVA_HOME, however for some reasons we
cant use 5.5.12 and when I try to use an older version
of tomcat 5.0.28 or 4.1.31 it says that the jre wont
be sufficient at JAVA_HOME as it needs javac also to
compile the jsp. Any way I can get tomcat 5.0.28 or
4.1.31 running with jre as JAVA_HOME.

thanks,
Jignesh

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



RE: tomcat and javac (UNCLASSIFIED)

2006-01-11 Thread Jignesh Shah
I have a requirement where I have to use the jre in
the final verison of product cant ship it with
J2sdk... and I am using 1.4.2_07 jre. It seemed it was
fine with 5.5.12, where most of the pages from my
webapps application came up but there were some other
issues. But in the older version of tomcat none of the
pages from my webassp application compile when I use
jre.

thanks,
Jignesh

--- Samara, Fadi N Mr ACSIM/ASPEX
[EMAIL PROTECTED] wrote:

 Classification:  UNCLASSIFIED 
 Caveats: NONE
 
 Which Java version are you using ?
 If you are referring to JAVA_HOME as the environment
 variable, then it
 should point to your java sdk not jre 
 
 -Original Message-
 From: Jignesh Shah [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, January 11, 2006 1:03 PM
 To: users@tomcat.apache.org
 Subject: tomcat and javac
 
 Hi,
 
 When I use our application with tomcat 5.5.12 it
 seems it does not need a
 javac ,I mean I can get it running with a jre as
 JAVA_HOME, however for some
 reasons we cant use 5.5.12 and when I try to use an
 older version of tomcat
 5.0.28 or 4.1.31 it says that the jre wont be
 sufficient at JAVA_HOME as it
 needs javac also to compile the jsp. Any way I can
 get tomcat 5.0.28 or
 4.1.31 running with jre as JAVA_HOME.
 
 thanks,
 Jignesh
 
 __
 Do You Yahoo!?
 Tired of spam?  Yahoo! Mail has the best spam
 protection around
 http://mail.yahoo.com 
 

-
 To unsubscribe, e-mail:
 [EMAIL PROTECTED]
 For additional commands, e-mail:
 [EMAIL PROTECTED]
 Classification:  UNCLASSIFIED 
 Caveats: NONE
 
 

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


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



Re: Supported Version

2006-01-11 Thread Markus Schönhaber
CARROLL, MIKE (CONTRACTOR) wrote:
 My client has a requirement to upgrade to a Tomcat version greater then
 5.5.12, but the next release up 5.5.15 is still listed as _Beta_ on
 http://tomcat.apache.org However, when I look under
 http://archive.apache.org/dist/tomcat/tomcat-5/ it shows a non-beta
 version of 5.5.15 available for download.


 So which one is correct?

Tomcat 5.5.15 is (still) beta. But that doesn't mean it's not usable. It's 
rock stable for me.

Regards
  mks

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



Re: tomcat and javac

2006-01-11 Thread Markus Schönhaber
Jignesh Shah wrote:
 When I use our application with tomcat 5.5.12 it seems
 it does not need a javac ,I mean I can get it running
 with a jre as JAVA_HOME, however for some reasons we
 cant use 5.5.12 and when I try to use an older version
 of tomcat 5.0.28 or 4.1.31 it says that the jre wont
 be sufficient at JAVA_HOME as it needs javac also to
 compile the jsp. Any way I can get tomcat 5.0.28 or
 4.1.31 running with jre as JAVA_HOME.

Tomcat 5.5.x comes bundeled with Eclipse's java compiler. That's why for 5.5.x 
a JRE is enough.
Tomcat  5.5 uses the java compiler from the JDK, so pointing JAVA_HOME to a 
JRE is not enough for those versions. But IIRC, it might be sufficient to 
copy the tools.jar from a JDK into Tomcat's classpath to get it running with 
a JRE nonetheless.

Regards
  mks

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



RE: tomcat and javac (UNCLASSIFIED)

2006-01-11 Thread Caldarale, Charles R
 From: Samara, Fadi N Mr ACSIM/ASPEX 
 [mailto:[EMAIL PROTECTED] 
 Subject: RE: tomcat and javac (UNCLASSIFIED)
 
 Which Java version are you using ?
 If you are referring to JAVA_HOME as the environment variable, then it
 should point to your java sdk not jre 

Not true with Tomcat 5.5 levels - they only need a JRE, not a full JDK.
The 5.5 series includes its own Java compiler.

As far as running with levels prior to 5.5, you don't need a full SDK,
but you must have tools.jar installed, usually in JAVA_HOME/lib (not
JAVA_HOME/jre/lib).

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



Accessing Files outside of WebApp

2006-01-11 Thread Zach Moazeni

Hello,

   In our current application I need to link to a file that resides 
outside of the webapp directory. On another application we allowed the 
users upload files and stored them in the webapp directory, which made 
deployment a royal pain. This time we are storing the files in a 
location external to Tomcat, however I need to let the users click a 
link so they can download and open the file. I'd rather not copy over 
the file to a tmp directory from which they download.


   In Apache there was something like Location, is there something 
like that in Tomcat?


Thanks for any input.
-Zach

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



Re: How to redirect incoming requests?

2006-01-11 Thread Wade Chandler
--- Ritchie Gillam [EMAIL PROTECTED] wrote:

 I am trying to have all requests that come to the
 Tomcat Server be redirected to another web server. 
 What is the best/easiest was to do this?
 
 I have Tomcat 5.5.7 installed and I do not have or
 want to install Apache.
 
 I have did a search through the archives and have
 found nothing.
 
 Any suggestions?
 
 Thanks in advance,
 
 Tomcat 5.5.7
 Sun Solaris 9
 
 Ritchie 

Depending on whether you really want to redirect or
perform proxying you have to do different things.  

1) A simple redirect.  You can send a redirect and
just make all requests go to your servlet using the
default web application web.xml file to map all
requests to go to a servlet.  Must be the default web
app/context.

2) Http pass through proxy like mod_proxy that Apache
can use.  You will need to create a Filter and install
it into your default web application for the given
Host or Server, or you could also use a Servlet for
this and have all requests come through that servlet
(default web app as well).  Regardless you'll have to
get your ServletRequest as an HttpServletRequest
package it all back up and then use an HttpClient
instance to proxy the request through to another
server and filter back through your single end point. 
This makes your requests go to be processed by
different systems, yet they come through one from end.
 Nothing but simple pass through. 

Someone else might know of some project which is
already doing this.  It would be nice if you could
find one that would watch a properties or xml file
with the proxy information sort of like the Apache
conf file will have for mod_proxy and then reload it
and the new rules when the file changed.

Wade

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



RE: Accessing Files outside of WebApp

2006-01-11 Thread CARROLL, MIKE \(CONTRACTOR\)
Why not just store the file in a database as a BLOB? Let the database
worry about where they go...

-Original Message-
From: Zach Moazeni [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, January 11, 2006 2:16 PM
To: Tomcat Users List
Subject: Accessing Files outside of WebApp

Hello,

In our current application I need to link to a file that resides 
outside of the webapp directory. On another application we allowed the 
users upload files and stored them in the webapp directory, which made 
deployment a royal pain. This time we are storing the files in a 
location external to Tomcat, however I need to let the users click a 
link so they can download and open the file. I'd rather not copy over 
the file to a tmp directory from which they download.

In Apache there was something like Location, is there something 
like that in Tomcat?

Thanks for any input.
-Zach

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



problem with keytool for ssl

2006-01-11 Thread Iosev Perez Rivero
I have a problem for configure SSL protocol using keytool 

 

 

C:\Tomcat55\webapps\ROOTkeytool -genkey -alias tomcat -keyalg RSA -keystore .ke

ystore

Enter keystore password:  eileen

What is your first and last name?

  [Unknown]:  iosev

What is the name of your organizational unit?

  [Unknown]:  uci

What is the name of your organization?

  [Unknown]:  uci

What is the name of your City or Locality?

  [Unknown]:  uci

What is the name of your State or Province?

  [Unknown]:  uci

What is the two-letter country code for this unit?

  [Unknown]:  cu

Is CN=iosev, OU=uci, O=uci, L=uci, ST=uci, C=cu correct?

  [no]:  yes

 

Enter key password for tomcat

(RETURN if same as keystore password):  eileen

 

C:\Tomcat55\webapps\ROOTkeytool -certreq -keyalg RSA -alias tomcat -file certre

q.csr -keystore .keystore

Enter keystore password:  eileen

 

C:\Tomcat55\webapps\ROOTkeytool -import -alias root -keystore .keystore -trustc

acerts -file chain

Enter keystore password:  eileen

Certificate was added to keystore

 

C:\Tomcat55\webapps\ROOTkeytool -import -alias tomcat -keystore .keystore -trus

tcacerts -file certreq.csr

Enter keystore password:  eileen

keytool error: java.security.cert.CertificateException: sun.security.pkcs.Parsin

gException: X509.ObjectIdentifier() -- data isn't an object ID (tag = 48)

 

 

please someone may help me.

 

Sorry me English because i´m Cuban.

 

Iósev Pérez Rivero

Estudiante 4to. Año

Universidad de las Ciencias Informáticas

 



i need configure SSL protocolo (https) with tomcat 5.5.12

2006-01-11 Thread Iosev Perez Rivero
i need configure SSL protocolo (https) with tomcat 5.5.12, but I don´t know 
configure, I used documentation of tomcat but I have a error, someone may 
explain me this process.

 

Regrards.

 

Iósev Pérez Rivero

Estudiante 4to. Año

Universidad de las Ciencias Informáticas

 



RE: Accessing Files outside of WebApp

2006-01-11 Thread George Sexton
What I do for my application is creat a URL mapping 

/binaries/*

That maps to a servlet that then reads the files from the source directory,
and transmits them out the OutputStream.

George Sexton
MH Software, Inc.
http://www.mhsoftware.com/
Voice: 303 438 9585
  

 -Original Message-
 From: Zach Moazeni [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, January 11, 2006 12:16 PM
 To: Tomcat Users List
 Subject: Accessing Files outside of WebApp
 
 Hello,
 
 In our current application I need to link to a file that resides 
 outside of the webapp directory. On another application we 
 allowed the 
 users upload files and stored them in the webapp directory, 
 which made 
 deployment a royal pain. This time we are storing the files in a 
 location external to Tomcat, however I need to let the users click a 
 link so they can download and open the file. I'd rather not 
 copy over 
 the file to a tmp directory from which they download.
 
 In Apache there was something like Location, is there something 
 like that in Tomcat?
 
 Thanks for any input.
 -Zach
 
 -
 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: tomcat and javac (UNCLASSIFIED)

2006-01-11 Thread Jignesh Shah

Thanks for the tools.jar tip.. I plugged the tools.jar
in the JRE disabled the JRE check in setclasspath.sh
and I was all set.. 4.1.31 works fine with JRE.

- Jignesh



--- Caldarale, Charles R
[EMAIL PROTECTED] wrote:

  From: Samara, Fadi N Mr ACSIM/ASPEX 
  [mailto:[EMAIL PROTECTED] 
  Subject: RE: tomcat and javac (UNCLASSIFIED)
  
  Which Java version are you using ?
  If you are referring to JAVA_HOME as the
 environment variable, then it
  should point to your java sdk not jre 
 
 Not true with Tomcat 5.5 levels - they only need a
 JRE, not a full JDK.
 The 5.5 series includes its own Java compiler.
 
 As far as running with levels prior to 5.5, you
 don't need a full SDK,
 but you must have tools.jar installed, usually in
 JAVA_HOME/lib (not
 JAVA_HOME/jre/lib).
 
  - 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]
 
 


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



Re: Accessing Files outside of WebApp

2006-01-11 Thread Zach Moazeni
Even then I have to bring out the byte array into somewhere so that 
they're link is active. Like I said I'd rather not do any type of copy 
over for this link. 


Plus I'm not too keep on Blobs in databases anyway.

I think the other's suggestion of the Servlet mapping will do great. Thanks for 
all the input.

-Zach



CARROLL, MIKE (CONTRACTOR) wrote:


Why not just store the file in a database as a BLOB? Let the database
worry about where they go...

-Original Message-
From: Zach Moazeni [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, January 11, 2006 2:16 PM

To: Tomcat Users List
Subject: Accessing Files outside of WebApp

Hello,

   In our current application I need to link to a file that resides 
outside of the webapp directory. On another application we allowed the 
users upload files and stored them in the webapp directory, which made 
deployment a royal pain. This time we are storing the files in a 
location external to Tomcat, however I need to let the users click a 
link so they can download and open the file. I'd rather not copy over 
the file to a tmp directory from which they download.


   In Apache there was something like Location, is there something 
like that in Tomcat?


Thanks for any input.
-Zach

-
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: Accessing Files outside of WebApp

2006-01-11 Thread Zach Moazeni

Sorry,

keep = keen

-Zach

Zach Moazeni wrote:

Even then I have to bring out the byte array into somewhere so that 
they're link is active. Like I said I'd rather not do any type of copy 
over for this link.

Plus I'm not too keep on Blobs in databases anyway.

I think the other's suggestion of the Servlet mapping will do great. 
Thanks for all the input.


-Zach



CARROLL, MIKE (CONTRACTOR) wrote:


Why not just store the file in a database as a BLOB? Let the database
worry about where they go...

-Original Message-
From: Zach Moazeni [mailto:[EMAIL PROTECTED] Sent: Wednesday, 
January 11, 2006 2:16 PM

To: Tomcat Users List
Subject: Accessing Files outside of WebApp

Hello,

   In our current application I need to link to a file that resides 
outside of the webapp directory. On another application we allowed 
the users upload files and stored them in the webapp directory, which 
made deployment a royal pain. This time we are storing the files in a 
location external to Tomcat, however I need to let the users click a 
link so they can download and open the file. I'd rather not copy 
over the file to a tmp directory from which they download.


   In Apache there was something like Location, is there something 
like that in Tomcat?


Thanks for any input.
-Zach

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




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



tomcat deploy configuration

2006-01-11 Thread William Mok
Hi,

I have written a servlet and deployed successfully under 
tomcat_root\webapps\examples\WEB-INF\classes with all the servlet class files 
sitting there. However, if I move the servlet class files to a separate 
directory called myservlet, for example tomcat_root\webapps\myservlet, the 
servlet fails to deploy. (servlet not found error)

What is the minimum configuration changes that I need to do in order to make it 
work?

I don't want to create any WAR file if I don't need to. Thanks.

Sincerely,
William Mok


RE: tomcat deploy configuration

2006-01-11 Thread Caldarale, Charles R
 From: William Mok [mailto:[EMAIL PROTECTED] 
 Subject: tomcat deploy configuration
 
 However, if I move the servlet class files to a 
 separate directory called myservlet, for example 
 tomcat_root\webapps\myservlet, the servlet 
 fails to deploy. (servlet not found error)
 
 What is the minimum configuration changes that I need to do 
 in order to make it work?

Is there an error at deployment time or when you try to reference the
servlet from a client?

Did you restart Tomcat?

Did you remember to do the servlet mapping in your
webapps\myservlet\WEB-INF\web.xml?

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



Application Not Available - Tomcat 5.5.12

2006-01-11 Thread Mike
Hello all,

I have scoured Google and the list archives, it seems
like somebody must have had this issue before but I
can't find any record of it.

(all on a single host)
Tomcat 5.5.12
Apache 1.3.28
mod_jk
Mandrake Linux 9.1
Struts 1.2.4

My problem is that, while using my application (via
browser), occasionally, I get the message

HTTP Status 503 - This application is not currently
available

This is a Tomcat produced error (it has the blue bars,
and has the Tomcat/5.5.12 signature), so I am pretty
sure the web server isn't having any problem
contacting Tomcat.

Generally what happens is I restart the server, wait
10-15 seconds (for Tomcat to start), load my first
action (which should forward to a JSP), and I get this
message.  I hit reload on my browser 3-5 times (each
time getting the same 503) and then the page comes up.
 (the login page to my application).

By itself this isn't a big deal, but the kicker is
that occasionally, I have to hit reload a couple times
in the middle of a session of using the application.

No messages come up in the mod_jk log or in the tomcat
log that I can see.  The apache log shows the 503
errors.

Sorry, this is my first question to the list so I
don't know if I'm providing the needed information,
any guidance would be great!

Regards,
Mike K.



__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



Re: tomcat deploy configuration

2006-01-11 Thread William Mok

Thanks.

- Original Message - 
From: Caldarale, Charles R [EMAIL PROTECTED]

To: Tomcat Users List users@tomcat.apache.org
Sent: Wednesday, January 11, 2006 11:55 AM
Subject: RE: tomcat deploy configuration



From: William Mok [mailto:[EMAIL PROTECTED]
Subject: tomcat deploy configuration

However, if I move the servlet class files to a
separate directory called myservlet, for example
tomcat_root\webapps\myservlet, the servlet
fails to deploy. (servlet not found error)

What is the minimum configuration changes that I need to do
in order to make it work?


Here is what I have, I got tomcat listening to port 1.
http://localhost:1/dbtrax/servlet/PlexEngineDemo

My PlexEngineDemo servlet class files are sitting under 
tomcat_root\webapps\dbtrax\WEB-INF\classes



Is there an error at deployment time or when you try to reference the
servlet from a client?


Yes. Http status 404
The requested resource (/dbtrax/servlet/PlexEngineDemo) is not available.


Did you restart Tomcat?


Yes.


Did you remember to do the servlet mapping in your
webapps\myservlet\WEB-INF\web.xml?


I got a web.xml file under tomcat_root\webapps\dbtrax\WEB-INF\
Contents as follows:

?xml version=1.0 encoding=ISO-8859-1?

!DOCTYPE web-app
   PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
   http://java.sun.com/dtd/web-app_2_3.dtd;

web-app

servlet
servlet-namePlexEngine/servlet-name
servlet-classPlexEngine/servlet-class
/servlet

servlet-mapping
servlet-namePlexEngine/servlet-name
url-pattern/servlet/PlexEngine/url-pattern
/servlet-mapping

/web-app




- 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: tomcat deploy configuration

2006-01-11 Thread Caldarale, Charles R
 From: William Mok [mailto:[EMAIL PROTECTED] 
 Subject: Re: tomcat deploy configuration
 
 The requested resource (/dbtrax/servlet/PlexEngineDemo)
 is not available.

 url-pattern/servlet/PlexEngine/url-pattern

Your mapping is for /servlet/PlexEngine but you tried to reference
/servlet/PlexEngineDemo.

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



Re: tomcat deploy configuration

2006-01-11 Thread William Mok


- Original Message - 
From: Caldarale, Charles R [EMAIL PROTECTED]

To: Tomcat Users List users@tomcat.apache.org
Sent: Wednesday, January 11, 2006 12:13 PM
Subject: RE: tomcat deploy configuration



From: William Mok [mailto:[EMAIL PROTECTED]
Subject: Re: tomcat deploy configuration

The requested resource (/dbtrax/servlet/PlexEngineDemo)
is not available.

url-pattern/servlet/PlexEngine/url-pattern


Your mapping is for /servlet/PlexEngine but you tried to reference
/servlet/PlexEngineDemo.

- Chuck

Thanks. Now I got a different error when invoking the servlet from a html 
page. I am using log4j in my code.


java.lang.NoClassDefFoundError: org/apache/log4j/Logger

If the servlet is under the \examples directory, then this problem does not 
exist.

My log4j jar file is under tomcat_root\logging-log4j-1.2.13\dist\lib


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: Accessing Files outside of WebApp

2006-01-11 Thread Zach Moazeni

Alrighty,

I was able to push the download to the client with this snipbit of code 
I wrote:
File file = new 
File(C:\\wolverine-documents\\inquiryDocs\\1010\\Operations Use Cases 
V1.3.doc);

  FileInputStream fin = new FileInputStream(file);

  byte[] bytes = new byte[fin.available()];
  fin.read(bytes);
  res.getOutputStream().write(bytes);
  res.getOutputStream().close

And the client can download it and open the file. Everything jives.

Problem I'm having is the file name download is the same thing as my 
Servlet Mapping.


Is there something I can set in either the response Header, or a way to 
map the servlet in such a way that the clients seems to receive the 
normal file and not a file which has the same name as the Servlet?


(A snipbit from my web-xml)
  servlet-mapping
  servlet-nameFileDownloadServlet/servlet-name
  url-pattern/FileDownloader*/url-pattern
  /servlet-mapping

I Appreciate any input
-Zach

Zach Moazeni wrote:


Sorry,

keep = keen

-Zach

Zach Moazeni wrote:

Even then I have to bring out the byte array into somewhere so that 
they're link is active. Like I said I'd rather not do any type of 
copy over for this link.

Plus I'm not too keep on Blobs in databases anyway.

I think the other's suggestion of the Servlet mapping will do great. 
Thanks for all the input.


-Zach



CARROLL, MIKE (CONTRACTOR) wrote:


Why not just store the file in a database as a BLOB? Let the database
worry about where they go...

-Original Message-
From: Zach Moazeni [mailto:[EMAIL PROTECTED] Sent: Wednesday, 
January 11, 2006 2:16 PM

To: Tomcat Users List
Subject: Accessing Files outside of WebApp

Hello,

   In our current application I need to link to a file that resides 
outside of the webapp directory. On another application we allowed 
the users upload files and stored them in the webapp directory, 
which made deployment a royal pain. This time we are storing the 
files in a location external to Tomcat, however I need to let the 
users click a link so they can download and open the file. I'd 
rather not copy over the file to a tmp directory from which they 
download.


   In Apache there was something like Location, is there something 
like that in Tomcat?


Thanks for any input.
-Zach

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




-
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: Tomcat IIS-redirector help

2006-01-11 Thread Brantley Hobbs
 Can you please send me the txt of the registry file? I will check it
out
 and
 make sure there is nothing that I have not already done.
 
 Tom
 

I sent this in private, but I decided to post it back to the list just
in case it is useful to someone else:

Tom,

I'm pasting the contents of the file here so they don't get stripped out
by a mail server somewhere along the way.  All you have to do is create
a new .reg file somewhere and copy/paste the contents within.

You'll need to change some settings, obviously.  My web stuff is all
rooted on a W: drive and the paths will be different from yours.  Also,
note that the slashes are reversed (and escaped).  Finally, note the
value for extension_uri.  That is the URL that the connector is
answering on to make redirects work.  That value /jakarta/ is the name
of the virtual folder you created for each application that uses the
connector.

I hope this helps.  Trust me, I've done battle with that connector
before, and it's not fun.

By the way, you have the little green up arrow for the filter, right?


-Begin mod_jk_isapi.reg-
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation]

[HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Jakarta Isapi
Redirector]

[HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Jakarta Isapi
Redirector\1.0]
extension_uri=/jakarta/isapi_redirect_1.2.13.dll
log_file=W:\\Tomcat Connectors\\jk1.log
log_level=error
worker_file=W:\\Tomcat Connectors\\workers.properties
worker_mount_file=W:\\Tomcat Connectors\\uriworkermap.properties
--End mod_jk_isapi.reg--


Hope this helps.

Brantley

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



Re: Accessing Files outside of WebApp

2006-01-11 Thread Zach Moazeni

Also one other thing...hitting the Servlet via
   ./FileDownloader/MyDoc.doc?id=#{doc.id} (using JSF)

Doesnt' seem to hit the servlet, but going to

   ./FileDownloader?id=#{doc.id}

does.

Thanks for any input
-Zach

Zach Moazeni wrote:


Alrighty,

I was able to push the download to the client with this snipbit of 
code I wrote:
File file = new 
File(C:\\wolverine-documents\\inquiryDocs\\1010\\Operations Use Cases 
V1.3.doc);

  FileInputStream fin = new FileInputStream(file);

  byte[] bytes = new byte[fin.available()];
  fin.read(bytes);
  res.getOutputStream().write(bytes);
  res.getOutputStream().close

And the client can download it and open the file. Everything jives.

Problem I'm having is the file name download is the same thing as my 
Servlet Mapping.


Is there something I can set in either the response Header, or a way 
to map the servlet in such a way that the clients seems to receive the 
normal file and not a file which has the same name as the Servlet?


(A snipbit from my web-xml)
  servlet-mapping
  servlet-nameFileDownloadServlet/servlet-name
  url-pattern/FileDownloader*/url-pattern
  /servlet-mapping

I Appreciate any input
-Zach

Zach Moazeni wrote:


Sorry,

keep = keen

-Zach

Zach Moazeni wrote:

Even then I have to bring out the byte array into somewhere so that 
they're link is active. Like I said I'd rather not do any type of 
copy over for this link.

Plus I'm not too keep on Blobs in databases anyway.

I think the other's suggestion of the Servlet mapping will do great. 
Thanks for all the input.


-Zach



CARROLL, MIKE (CONTRACTOR) wrote:


Why not just store the file in a database as a BLOB? Let the database
worry about where they go...

-Original Message-
From: Zach Moazeni [mailto:[EMAIL PROTECTED] Sent: Wednesday, 
January 11, 2006 2:16 PM

To: Tomcat Users List
Subject: Accessing Files outside of WebApp

Hello,

   In our current application I need to link to a file that resides 
outside of the webapp directory. On another application we allowed 
the users upload files and stored them in the webapp directory, 
which made deployment a royal pain. This time we are storing the 
files in a location external to Tomcat, however I need to let the 
users click a link so they can download and open the file. I'd 
rather not copy over the file to a tmp directory from which they 
download.


   In Apache there was something like Location, is there 
something like that in Tomcat?


Thanks for any input.
-Zach

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




-
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: Tomcat IIS-redirector help

2006-01-11 Thread Zach Moazeni
It certainly would be nice if ASP and ASP.NET had a binary to which you 
could pass the file to and receive the output. You could then map .asp 
files as CGI's.


-Zach

Brantley Hobbs wrote:


Can you please send me the txt of the registry file? I will check it
   


out
 


and
make sure there is nothing that I have not already done.

Tom

   



I sent this in private, but I decided to post it back to the list just
in case it is useful to someone else:

Tom,

I'm pasting the contents of the file here so they don't get stripped out
by a mail server somewhere along the way.  All you have to do is create
a new .reg file somewhere and copy/paste the contents within.

You'll need to change some settings, obviously.  My web stuff is all
rooted on a W: drive and the paths will be different from yours.  Also,
note that the slashes are reversed (and escaped).  Finally, note the
value for extension_uri.  That is the URL that the connector is
answering on to make redirects work.  That value /jakarta/ is the name
of the virtual folder you created for each application that uses the
connector.

I hope this helps.  Trust me, I've done battle with that connector
before, and it's not fun.

By the way, you have the little green up arrow for the filter, right?


-Begin mod_jk_isapi.reg-
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation]

[HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Jakarta Isapi
Redirector]

[HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Jakarta Isapi
Redirector\1.0]
extension_uri=/jakarta/isapi_redirect_1.2.13.dll
log_file=W:\\Tomcat Connectors\\jk1.log
log_level=error
worker_file=W:\\Tomcat Connectors\\workers.properties
worker_mount_file=W:\\Tomcat Connectors\\uriworkermap.properties
--End mod_jk_isapi.reg--


Hope this helps.

Brantley

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



[OT] RE: Tomcat IIS-redirector help

2006-01-11 Thread Brantley Hobbs
 -Original Message-
 From: Zach Moazeni [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, January 11, 2006 3:37 PM
 To: Tomcat Users List
 Subject: Re: Tomcat IIS-redirector help
 
 It certainly would be nice if ASP and ASP.NET had a binary to which
you
 could pass the file to and receive the output. You could then map .asp
 files as CGI's.
 
 -Zach
 

You know, that's a good idea, and there's probably no real reason it
couldn't be done.  The VBScript engine is on each and every install of
windows.  If a CGI wrapper could be wrapped around it that would make it
possible for Apache to serve ASP pages up, thus freeing the poor ASP
shops from the tyranny of IIS.

Of course, with .NET there's always MONO for your web applications, so
there's not really a need for the wrapper then.  Until MS decides to
embrace and extend their own standard, that is.  ;-)

B.

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



Re: Accessing Files outside of WebApp

2006-01-11 Thread Zach Moazeni

Bah, a coworker had me try

servlet-mapping
 servlet-nameFileDownloadServlet/servlet-name
 url-pattern/FileDownloader/*/url-pattern
 /servlet-mapping

and everything is Groovy.

Thanks for all the previous help.

-Zach

Zach Moazeni wrote:


Also one other thing...hitting the Servlet via
   ./FileDownloader/MyDoc.doc?id=#{doc.id} (using JSF)

Doesnt' seem to hit the servlet, but going to

   ./FileDownloader?id=#{doc.id}

does.

Thanks for any input
-Zach

Zach Moazeni wrote:


Alrighty,

I was able to push the download to the client with this snipbit of 
code I wrote:
File file = new 
File(C:\\wolverine-documents\\inquiryDocs\\1010\\Operations Use 
Cases V1.3.doc);

  FileInputStream fin = new FileInputStream(file);

  byte[] bytes = new byte[fin.available()];
  fin.read(bytes);
  res.getOutputStream().write(bytes);
  res.getOutputStream().close

And the client can download it and open the file. Everything jives.

Problem I'm having is the file name download is the same thing as my 
Servlet Mapping.


Is there something I can set in either the response Header, or a way 
to map the servlet in such a way that the clients seems to receive 
the normal file and not a file which has the same name as the Servlet?


(A snipbit from my web-xml)
  servlet-mapping
  servlet-nameFileDownloadServlet/servlet-name
  url-pattern/FileDownloader*/url-pattern
  /servlet-mapping

I Appreciate any input
-Zach

Zach Moazeni wrote:


Sorry,

keep = keen

-Zach

Zach Moazeni wrote:

Even then I have to bring out the byte array into somewhere so that 
they're link is active. Like I said I'd rather not do any type of 
copy over for this link.

Plus I'm not too keep on Blobs in databases anyway.

I think the other's suggestion of the Servlet mapping will do 
great. Thanks for all the input.


-Zach



CARROLL, MIKE (CONTRACTOR) wrote:


Why not just store the file in a database as a BLOB? Let the database
worry about where they go...

-Original Message-
From: Zach Moazeni [mailto:[EMAIL PROTECTED] Sent: Wednesday, 
January 11, 2006 2:16 PM

To: Tomcat Users List
Subject: Accessing Files outside of WebApp

Hello,

   In our current application I need to link to a file that 
resides outside of the webapp directory. On another application we 
allowed the users upload files and stored them in the webapp 
directory, which made deployment a royal pain. This time we are 
storing the files in a location external to Tomcat, however I need 
to let the users click a link so they can download and open the 
file. I'd rather not copy over the file to a tmp directory from 
which they download.


   In Apache there was something like Location, is there 
something like that in Tomcat?


Thanks for any input.
-Zach

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




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




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



Re: Accessing Files outside of WebApp

2006-01-11 Thread Alvaro Seixas
I've a similar situation where I have to provide million of check images.
What I did was to create a context - using a simple xml file in webapps -
for each context.

- Original Message - 
From: Zach Moazeni [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Wednesday, January 11, 2006 5:49 PM
Subject: Re: Accessing Files outside of WebApp


 Sorry,

 keep = keen

 -Zach

 Zach Moazeni wrote:

  Even then I have to bring out the byte array into somewhere so that
  they're link is active. Like I said I'd rather not do any type of copy
  over for this link.
  Plus I'm not too keep on Blobs in databases anyway.
 
  I think the other's suggestion of the Servlet mapping will do great.
  Thanks for all the input.
 
  -Zach
 
 
 
  CARROLL, MIKE (CONTRACTOR) wrote:
 
  Why not just store the file in a database as a BLOB? Let the database
  worry about where they go...
 
  -Original Message-
  From: Zach Moazeni [mailto:[EMAIL PROTECTED] Sent: Wednesday,
  January 11, 2006 2:16 PM
  To: Tomcat Users List
  Subject: Accessing Files outside of WebApp
 
  Hello,
 
 In our current application I need to link to a file that resides
  outside of the webapp directory. On another application we allowed
  the users upload files and stored them in the webapp directory, which
  made deployment a royal pain. This time we are storing the files in a
  location external to Tomcat, however I need to let the users click a
  link so they can download and open the file. I'd rather not copy
  over the file to a tmp directory from which they download.
 
 In Apache there was something like Location, is there something
  like that in Tomcat?
 
  Thanks for any input.
  -Zach
 
  -
  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]
 
 

 -
 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: problem of setting up ssl in tomcat 5.5.9

2006-01-11 Thread zhou jian
Jan 11, 2006 2:59:44 PM
org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Jan 11, 2006 2:59:44 PM
org.apache.tomcat.util.net.puretls.PureTLSSocketFactory
init
INFO: Error initializing SocketFactory
java.io.FileNotFoundException: server.pem (No such
file or directory)
at java.io.FileInputStream.open(Native Method)
at
java.io.FileInputStream.init(FileInputStream.java:106)
at
java.io.FileInputStream.init(FileInputStream.java:66)
at
COM.claymoresystems.ptls.SSLContext.loadEAYKeyFile(SSLContext.java:200)
at
org.apache.tomcat.util.net.puretls.PureTLSSocketFactory.init(PureTLSSocketFactory.java:134)
at
org.apache.tomcat.util.net.puretls.PureTLSSocketFactory.createSocket(PureTLSSocketFactory.java:69)
at
org.apache.tomcat.util.net.PoolTcpEndpoint.initEndpoint(PoolTcpEndpoint.java:292)
at
org.apache.coyote.http11.Http11Protocol.init(Http11Protocol.java:142)
at
org.apache.catalina.connector.Connector.initialize(Connector.java:928)
at
org.apache.catalina.core.StandardService.initialize(StandardService.java:580)
at
org.apache.catalina.core.StandardServer.initialize(StandardServer.java:764)
at
org.apache.catalina.startup.Catalina.load(Catalina.java:490)
at
org.apache.catalina.startup.Catalina.load(Catalina.java:509)
at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at
java.lang.reflect.Method.invoke(Method.java:585)
at
org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:243)
at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:408)
Jan 11, 2006 2:59:44 PM
org.apache.coyote.http11.Http11Protocol init
SEVERE: Error initializing endpoint
java.io.IOException: server.pem (No such file or
directory)
at
org.apache.tomcat.util.net.puretls.PureTLSSocketFactory.init(PureTLSSocketFactory.java:149)
at
org.apache.tomcat.util.net.puretls.PureTLSSocketFactory.createSocket(PureTLSSocketFactory.java:69)
at
org.apache.tomcat.util.net.PoolTcpEndpoint.initEndpoint(PoolTcpEndpoint.java:292)
at
org.apache.coyote.http11.Http11Protocol.init(Http11Protocol.java:142)
  
1,1   Top


--- zhou jian [EMAIL PROTECTED] wrote:

 Hello everyone,
 
 I want to configure the SSL in tomcat5 and I
 followed
 the following instructions:

http://tomcat.apache.org/tomcat-5.0-doc/printer/ssl-howto.html
 
 However, after starting the tomcat without any
 problem. 
 
 [EMAIL PROTECTED] bin]$ ps aux | grep java
 globus4   2668  2.2  6.2 296704 64436 pts/1  S   
 17:07   0:11 /opt/jdk1.5.0_04//bin/java

-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager

-Djava.endorsed.dirs=/home/globus4/jakarta-tomcat-5.5.9/common/endorsed
 -classpath

:/home/globus4/jakarta-tomcat-5.5.9/bin/bootstrap.jar:/home/globus4/jakarta-tomca
 globus4   3137  0.0  0.0  3580  636 pts/1S   
 17:15   0:00 grep java
 
 However, I could access with https://localhost:8443.
 I
 am using jdk1.5.0_04. The only step I skipped is
 JSSE.
 Do you have any ideas?
 
 Thanks,
 --Paul
 
 
 __
 Do You Yahoo!?
 Tired of spam?  Yahoo! Mail has the best spam
 protection around 
 http://mail.yahoo.com 
 

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


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



Re: i need configure SSL protocolo (https) with tomcat 5.5.12

2006-01-11 Thread Dhaval Patel

http://mail-archives.apache.org/mod_mbox/tomcat-users/200512.mbox/20051204175733.82684.qmail%40web50613.mail.yahoo.com



--- Iosev Perez Rivero [EMAIL PROTECTED] wrote:

 i need configure SSL protocolo (https) with tomcat 5.5.12, but I don´t know 
 configure, I used
 documentation of tomcat but I have a error, someone may explain me this 
 process.
 
  
 
 Regrards.
 
  
 
 Iósev Pérez Rivero
 
 Estudiante 4to. Año
 
 Universidad de las Ciencias Informáticas
 
  
 
 


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



Starting Tomcat at boot

2006-01-11 Thread DeFreitas, Nigel
Simple question: What's the most idiot proof way to start Tomcat at boot
on SuSE Enterprise Linux version 9?

 

Nigel DeFreitas

Insurance Services Office

201 469 3939

 



Re: i need configure SSL protocolo (https) with tomcat 5.5.12

2006-01-11 Thread Dhaval Patel
I am sorry. The link is 
http://www.mail-archive.com/users%40tomcat.apache.org/msg02500.html

--- Dhaval Patel [EMAIL PROTECTED] wrote:

 

http://mail-archives.apache.org/mod_mbox/tomcat-users/200512.mbox/20051204175733.82684.qmail%40web50613.mail.yahoo.com
 
 
 
 --- Iosev Perez Rivero [EMAIL PROTECTED] wrote:
 
  i need configure SSL protocolo (https) with tomcat 5.5.12, but I don´t know 
  configure, I used
  documentation of tomcat but I have a error, someone may explain me this 
  process.
  
   
  
  Regrards.
  
   
  
  Iósev Pérez Rivero
  
  Estudiante 4to. Año
  
  Universidad de las Ciencias Informáticas
  
   
  
  
 
 
 __
 Do You Yahoo!?
 Tired of spam?  Yahoo! Mail has the best spam protection around 
 http://mail.yahoo.com 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



Re: Starting Tomcat at boot

2006-01-11 Thread Jim Cammack


 [EMAIL PROTECTED] 01/11/2006 2:14:15 PM 
Simple question: What's the most idiot proof way to start Tomcat at boot
on SuSE Enterprise Linux version 9?

Nigel DeFreitas
Insurance Services Office
201 469 3939

I've had good luck with SLES9.1 by having a symbolic link in /etc/init.d/rc3.d 
called S16tomcat which points to /etc/init.d/tomcat.
Wow.  My first post.
 
Jim Cammack
WDFW
360 902 2620





Re: Problems Using Context Loader

2006-01-11 Thread Sriram Narayanan
On 1/11/06, Michel Costa [EMAIL PROTECTED] wrote:
 Hi everyone,

 I am trying to create a ClassLoader for my application so then I will not 
 have to reload all the hibernate and struts when a new class is compiled.


Could you please explain why this is a problem ? Is the startup time an issue ?

 Then my problems started:
 I do not know where to put my special ClassLoader.
 I got lots of classcast exceptions until I found that a instance of 
 org.apache.catalina.loader.WebappClassLoader.
 So far so good, just extended my class and apache can't find 
 org.apache.catalina.loader.WebappClassLoader.

I'd taken another approach. See
http://issues.apache.org/bugzilla/show_bug.cgi?id=38223

 Now I have a java.lang.ClassNotFoundException: 
 org.apache.catalina.loader.WebappClassLoader

 I think the error is just because I put my classloader in the wrong place 
 (which is CATALINA_HOME/common/classes) but i could not avoid this common 
 folder... Before this one, I tried webapps/MYAPP/WEB-INF/classes but java 
 didnt found my class.
 My guess is something about the ClassLoader hierarchy and visibility of the 
 classes...


You place your class at CATALINA_HOME/server/classes. See the bug
report that I've filed for information on how I used my own
Classloader.

-- Sriram

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



RE: Starting Tomcat at boot

2006-01-11 Thread Richard Mixon
If you are using the Tomcat version that ships with SLES9 (version 5.0.x I
believe) just use the /etc/init.d/tomcat script. There is usually a symbolic
link created and you can just issue one of the following from a root command
prompt:
  rctomcat start
  rctomcat stop
  rctomcat restart
  rctomcat status

Use the Yast tool to be sure it is enabled at startup. I think the choices
are System-Runlevel Editor from the main menu.

SuSE's scripts are pretty robust and idiot proof.

The problem with the enterprise Linux distributions (like SLES9 and RH EL)
is that they keep applying security patches to older version of products
(e.g. Tomcat) - i.e. for stability.

I needed to do clustering, so I had to upgrade to Tomcat 5.5. It was pretty
easy to just clone /etc/init.d/tomcat to /etc/init.d/tc55 and also
/etc/sysconfig/j2ee to /etc/sysconfig/tc55. I had to adjust slightly to
point at where I actually installed Tomcat 5.5. Works great.

Hope this helps - Richard

-Original Message-
From: DeFreitas, Nigel [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, January 11, 2006 3:14 PM
To: Tomcat Users List
Subject: Starting Tomcat at boot

Simple question: What's the most idiot proof way to start Tomcat at boot on
SuSE Enterprise Linux version 9?

 

Nigel DeFreitas

Insurance Services Office

201 469 3939

 



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



Client Errors: 5.5.12 JSP XML Samples

2006-01-11 Thread Brendan Stephens
I have successfully installed the Tomcat 5.5.12 Server on a Windows 2000
System for training and dev purposes.

JSP appears to be processing correctly save for 2 examples - slightly Off
Topic here...

SVG (Scalable Vector Graphics) /jsp-examples/jsp2/jspx/svgexample.html

The SVG sample appears to work correctly only the problem lies with Internet
Explorer; IE won't open unless the file is saved as a SVG file (I think this
has been reported before).


XHTML Basic Example /jsp-examples/jsp2/jspx/basic.jspx
There appears to be something about the DOCTYPE declaration that IE does not
like for the XHTML Basic Example.

!DOCTYPE html PUBLIC -//W3C//DTD XHTML Basic 1.0//EN 
http://www.w3.org/TR/xhtml-basic/xhtml-basic10.dtd; 

Can anyone confirm this behavior with the default sample, and is there
something that can be changed, without stripping the DOCTYPE definition?


RE: Client Errors: 5.5.12 JSP XML Samples

2006-01-11 Thread Caldarale, Charles R
 From: Brendan Stephens [mailto:[EMAIL PROTECTED] 
 Subject: Client Errors: 5.5.12 JSP XML Samples
 
 XHTML Basic Example /jsp-examples/jsp2/jspx/basic.jspx
 There appears to be something about the DOCTYPE declaration 
 that IE does not like for the XHTML Basic Example.
 
 Can anyone confirm this behavior with the default sample, and is there
 something that can be changed, without stripping the DOCTYPE 
 definition?

I get the same error with IE 6 on XP sp2; Firefox displays the page
properly.  Took a quick look at the generated page, the DTD, etc., but
didn't see anything wrong.

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



Re: tomcat and javac (UNCLASSIFIED)

2006-01-11 Thread Zorro3692
Hi Chuck,
 
Can you let me know which dir in Tomcat 5.5.12 has  the java compiler?
 
Thanks,
 
Jimmy
 
 From: Samara, Fadi N Mr ACSIM/ASPEX 
  [mailto:[EMAIL PROTECTED] 
 Subject: RE: tomcat and javac  (UNCLASSIFIED)
 
 Which Java version are you using ?
 If  you are referring to JAVA_HOME as the environment variable, then it
  should point to your java sdk not jre 

Not true with Tomcat 5.5 levels -  they only need a JRE, not a full JDK.
The 5.5 series includes its own Java  compiler.

As far as running with levels prior to 5.5, you don't need a  full SDK,
but you must have tools.jar installed, usually in JAVA_HOME/lib  (not
JAVA_HOME/jre/lib).

- Chuck



RE: tomcat and javac (UNCLASSIFIED)

2006-01-11 Thread Caldarale, Charles R
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
 Subject: Re: tomcat and javac (UNCLASSIFIED)
  
 Can you let me know which dir in Tomcat 5.5.12 has  the 
 java compiler?

There are three jasper-*.jar files in common/lib.  The actual Java
compiler appears to be in jasper-compiler-jdt.jar; I have not attempted
to use it outside of Tomcat in any way.

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



Cluster configuration

2006-01-11 Thread bradley mclain
I am unable to get a 2 node cluster to work.  I am using 5.5.15, as I
saw in an email that prior versions are broken.

when i start node A i see the following written to the log:

1064  INFO [main] - Manager [localhost/cluster]: skipping state
transfer. No members active in cluster group.

I expect that.  when i start node B (after A is started) I see the same
snippet:

1219  INFO [main] - Manager [localhost/cluster]: skipping state
transfer. No members active in cluster group.

I do not expect that.

Obviously the two nodes are not finding each other.  I have pinged
228.0.0.4 from those servers, as well as 228.0.0.1, and receive
responses from each of the servers, so I _believe_ Multicast is
operating properly, though I am not a network guy.

I am using the server.xml obtained from the documentation (attached
below), and I have carefully followed all instructions in the clustering
documentation, though perhaps not carefully enough ;-).

My servers are not multi-homed, thus I have tried both with and without
the mcastBindAddress attribute, but it makes no difference.

Can anyone suggest what I may be missing here?

cheers,
Bradley McLain

Server port=8011 shutdown=SHUTDOWN 
GlobalNamingResources
Resource  name=UserDatabase auth=Container
   type=org.apache.catalina.UserDatabase
description=User database that can be updated and
saved

factory=org.apache.catalina.users.MemoryUserDatabaseFactory
pathname=conf/tomcat-users.xml /
  /GlobalNamingResources
Service  name=Catalina
Connectorport=80 maxThreads=100 minSpareThreads=4
maxSpareThreads=4 /
Engine   name=Catalina defaultHost=localhost
jvmRoute=node01 
Realm
className=org.apache.catalina.realm.UserDatabaseRealm
resourceName=UserDatabase /
Cluster
className=org.apache.catalina.cluster.tcp.SimpleTcpCluster
  doClusterLog=true
  clusterLogName=clusterlog

manager.className=org.apache.catalina.cluster.session.DeltaManager

manager.expireSessionsOnShutdown=false

manager.notifyListenersOnReplication=false

manager.notifySessionListenersOnReplication=false
  manager.sendAllSessions=false
  manager.sendAllSessionsSize=500
  manager.sendAllSessionsWaitTime=20
Membership 

className=org.apache.catalina.cluster.mcast.McastService
mcastAddr=228.0.0.4
mcastClusterDomain=d10 
mcastPort=45564
mcastFrequency=1000
mcastDropTime=3/
Receiver 

className=org.apache.catalina.cluster.tcp.ReplicationListener
  tcpListenAddress=auto
  tcpListenPort=9015
  tcpSelectorTimeout=100
  tcpThreadCount=6 /

  Sender

className=org.apache.catalina.cluster.tcp.ReplicationTransmitter
 replicationMode=fastasyncqueue
 doTransmitterProcessingStats=true
 doProcessingStats=true
 doWaitAckStats=true
 queueTimeWait=true
 queueDoStats=true
 queueCheckLock=true
 ackTimeout=15000
 waitForAck=true
 keepAliveTimeout=8
 keepAliveMaxRequestCount=-1/
  Valve
className=org.apache.catalina.cluster.tcp.ReplicationValve
   filter=.*\.gif;.*
\.js;.*\.css;.*\.png;.*\.jpeg;.*\.jpg;.*\.html;.*\.txt;

primaryIndicator=true /
  Valve
className=org.apache.catalina.cluster.session.JvmRouteBinderValve
enabled=true /   
  ClusterListener
className=org.apache.catalina.cluster.session.ClusterSessionListener /
  ClusterListener
className=org.apache.catalina.cluster.session.JvmRouteSessionIDBinderListener 
/
  !--
  Deployer
className=org.apache.catalina.cluster.deploy.FarmWarDeployer

tempDir=${catalina.base}/war-temp

deployDir=${catalina.base}/war-deploy/

watchDir=${catalina.base}/war-listen/
   watchEnabled=true/
--
  /Cluster
Host  name=localhost
appBase=webapps/
/Engine
/Service
/Server


-
To 

Re: Cluster configuration

2006-01-11 Thread Paul Smith
Aren't you missing the mcastBindAddr property?  We're just going  
through the test setup for clustering with 5.5.15 and it's working  
pretty well, here's a snippet from our config:


Engine name=Aconex defaultHost=192.168.0.219  
jvmRoute=worker2

  Realm className=org.apache.catalina.realm.UserDatabaseRealm
 resourceName=UserDatabase /
Host name=192.168.0.219 appBase=foo 
Context path=/ docBase=${catalina.home}/app/mel/  
distributable=true 

/Context
 Cluster clusterName=ClusterTest  
className=org.apache.catalina.cluster.tcp.SimpleTcpCluster

service.mcastBindAddr=192.168.0.219
receiver.tcpListenAddress=192.168.0.219
tcpThreadCount=2
/Cluster
/Host

/Engine

the mcastBindAddr and tcListenAddress needs to be different for each  
node in the cluster.


Also note that I would very much recommend using the latest modJK  
1.2.15, this together with tomcat 5.5.15 is looking pretty good.


cheers,

Paul

On 12/01/2006, at 11:17 AM, bradley mclain wrote:


I am unable to get a 2 node cluster to work.  I am using 5.5.15, as I
saw in an email that prior versions are broken.

when i start node A i see the following written to the log:

1064  INFO [main] - Manager [localhost/cluster]: skipping state
transfer. No members active in cluster group.

I expect that.  when i start node B (after A is started) I see the  
same

snippet:

1219  INFO [main] - Manager [localhost/cluster]: skipping state
transfer. No members active in cluster group.

I do not expect that.

Obviously the two nodes are not finding each other.  I have pinged
228.0.0.4 from those servers, as well as 228.0.0.1, and receive
responses from each of the servers, so I _believe_ Multicast is
operating properly, though I am not a network guy.

I am using the server.xml obtained from the documentation (attached
below), and I have carefully followed all instructions in the  
clustering

documentation, though perhaps not carefully enough ;-).

My servers are not multi-homed, thus I have tried both with and  
without

the mcastBindAddress attribute, but it makes no difference.

Can anyone suggest what I may be missing here?

cheers,
Bradley McLain

Server port=8011 shutdown=SHUTDOWN 
GlobalNamingResources
Resource  name=UserDatabase auth=Container
   type=org.apache.catalina.UserDatabase
description=User database that can be updated and
saved

factory=org.apache.catalina.users.MemoryUserDatabaseFactory
pathname=conf/tomcat-users.xml /
  /GlobalNamingResources
Service  name=Catalina
Connectorport=80 maxThreads=100  
minSpareThreads=4

maxSpareThreads=4 /
Engine   name=Catalina defaultHost=localhost
jvmRoute=node01 
Realm
className=org.apache.catalina.realm.UserDatabaseRealm
resourceName=UserDatabase /
Cluster
className=org.apache.catalina.cluster.tcp.SimpleTcpCluster
  doClusterLog=true
  clusterLogName=clusterlog

manager.className=org.apache.catalina.cluster.session.DeltaManager

manager.expireSessionsOnShutdown=false

manager.notifyListenersOnReplication=false

manager.notifySessionListenersOnReplication=false
  manager.sendAllSessions=false
  manager.sendAllSessionsSize=500
   
manager.sendAllSessionsWaitTime=20

Membership

className=org.apache.catalina.cluster.mcast.McastService
mcastAddr=228.0.0.4
mcastClusterDomain=d10
mcastPort=45564
mcastFrequency=1000
mcastDropTime=3/
Receiver

className=org.apache.catalina.cluster.tcp.ReplicationListener
  tcpListenAddress=auto
  tcpListenPort=9015
  tcpSelectorTimeout=100
  tcpThreadCount=6 /

  Sender

className=org.apache.catalina.cluster.tcp.ReplicationTransmitter
 replicationMode=fastasyncqueue
 doTransmitterProcessingStats=true
 doProcessingStats=true
 doWaitAckStats=true
 queueTimeWait=true
 queueDoStats=true
 queueCheckLock=true
 ackTimeout=15000
 waitForAck=true
 keepAliveTimeout=8
 keepAliveMaxRequestCount=-1/
  Valve

RE: Tomcat integegrated with Apache

2006-01-11 Thread Caldarale, Charles R
 From: Pete Alvin [mailto:[EMAIL PROTECTED] 
 Subject: Tomcat integegrated with Apache
 
 I'm trying to get Tomcat running on a new BSD box and my IT guys says
 that a connector isn't necessary because it's integrated with Apache.

You have to configure the connector in Tomcat and, depending on the
platform, you may have to build it from source.  See:
http://tomcat.apache.org/tomcat-5.5-doc/config/ajp.html

But the real question is: why are you bothering with Apache httpd if
you're using a recent version of Tomcat?  Keep it simple.

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



RE: unable to load classes

2006-01-11 Thread Nehal Sangoi

Hi

Thank You for giving some direction to work upon. I will try and test the
way you have suggested and reply my findings...

Regards
Nehal

-Original Message-
From: Michel Costa [mailto:[EMAIL PROTECTED]
Sent: Wednesday, January 11, 2006 10:17 PM
To: [EMAIL PROTECTED]
Subject: RE: unable to load classes


I think I am looking for the same thing, but the reason I am trying to do
that is to allow reloading classes from WEB-INF/classes without reloading
the context.

I searched a little and found that:
http://tomcat.apache.org/tomcat-5.5-doc/config/loader.html

Hope it helps you... I am still trying to make it work...
here is a reference to my email message in the list, asking about the
context loader:
http://mail-archives.apache.org/mod_mbox/tomcat-users/200601.mbox/%3c2006011
[EMAIL PROTECTED]



- Segue mensagem original! -

De: Nehal Sangoi [EMAIL PROTECTED]
Data: Wed, 11 Jan 2006 19:33:10 +0530
Para: 'Nehal Sangoi' [EMAIL PROTECTED],'Boris Unckel'
[EMAIL PROTECTED],Tomcat Users List \(E-mail\)
users@tomcat.apache.org
Assunto: RE: unable to load classes

Hi

How can i change the default classloading hierarchy in Tomcat 5.5.9 ? And
would that affect in my Tomcat setup anyway?

Please reply to my query because i am stucked up badly at this problem.

-Original Message-
From: Nehal Sangoi [mailto:[EMAIL PROTECTED]
Sent: Friday, January 06, 2006 9:58 AM
To: 'Boris Unckel'; Tomcat Users List (E-mail)
Subject: RE: unable to load classes


Hi Boris,

I will explain the issue thoroughyl, and the options i tried so far to
resolve the same.

Environment Details :
OS : Linux Enterprise
Tomcat 5.5.9
Apache HTTP Server 2.0.54
Apache and Tomcat reside on physically different server.
All Tomcat applications are SiteMinder Enabled.

I have one base installation of Tomcat and Multile Tomcat Instances created
(each with diff user). I am not at all starting base-tomcat in my
environment. My Tomcat Instances are running.

Java - JDK used is 1.5 -- latest one.

Now, i have several applications, which have framework in it. Technically, i
don't understand what framework is as i am basically a UNIX Admin and
administer Tomcat+Apache.

The applications, which use framework, are using following two jarfiles.

expd2util.jar
jdom.jar

If i keep these jarfiles into any tomcat instance's WEB-INF/lib, the
application runs absolutely fine. As i mentioned earlier, the above two
jarfiles would be used by many other tomcat instances/applications too.
Hence, i wanted these jarfiles be kept in either base tomcat's common/lib or
shared/lib and symlinks be created into every tomcat instance's shared/lib
dir. Doing this, it will ease up my administration task in future.

Unfortunately, its not doing.

===

Description of exact problem and options tried so far :

Note : wherever i am keeping these jars, keeping only single copy of it at
one particular location by discarding them out from any other classpath.

I kept both the jarfiles into base-tomcat's common/lib and created symlink
into the application's shared/lib folder. Ideally, this should work, because
i have 3 more other jarfiles (third party) linked this way and they are
working well. But tomcat is not picking up these two jarfiles from
common/lib and results in Null Pointer Exception. Also, it registers nothing
in catalina.out.

Later, i kept both the jarfiles in shared/lib dir of that tomcat instance
itself. This too did not work and resulted in No classdef found error.

After that, i kept both into shared/lib of base-tomcat and again created
symlinks into shared/lib of application. No luck.

Again, i changed my mind and converted the jarfiles into classes and placed
those classes into shared/classes folder of application. but :((

Finally, i exported the explicitly defined CLASSPATH variable into
application user's profile and tried for tomcat to pick from there atleast
and here too, no hope.

If you read my mail closely, i have tried out almost all options.

I went through the classloader documentation of Tomcat 5.5 on jakarta
website. Theoratically, my application should work, the way i am thinking of
but practically its failing.

Regarding Servlet API, yes, you are right. There is default sevlet-API jar
in Tomcat's Internal Classes.

==

I think, i have replied to your queries. If you need any more info, please
let me know. I am awaiting for a solution to come out to overcome this issue
as i need to implement the same into my Production Environment.


Thanks  Regards,
Nehal

-Original Message-
From: Boris Unckel [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 05, 2006 6:02 PM
To: [EMAIL PROTECTED]
Subject: RE: unable to load classes



 I tried keeping into shared/lib of that particular application. But it
 reflects the same error again. My requirement of putting these two jars
 

reading file from jsp / war file

2006-01-11 Thread todd darsten

My war file looks like 

mywar.war
+--WEB-INF
+--my.mapfile.txt
+--... other dirs

Within my jsp, i am trying to reference my.mapfile.txt
as an URL
This code works fine in Jetty but fails when we switch
to TC 5.5.x

%
   URL myURL =
application.getResource(/my.mapfile.txt);
%

i am getting an File Not Found exception when trying
to open the URL via its stream

java.io.FileNotFoundException:
\localhost\mywar\my.mapfile.txt (The system cannot
find the path specified)

I also tried 

getServletContext().getResource(/my.mapfile.txt);

but am getting the same error.

Thanks

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



Recommended way to selectively RequestDispatch.include/forward to form based login?

2006-01-11 Thread Ken Johanson

Hello,

Does anyone have a suggested way to selectively, inside a simple JSP or 
Servlet, cause the built-in Tomcat form-login to be presented?


Currently, I'm doing the following:

-Have protected URI inside my webapp, e.g. /login/, configured with a 
security-constraint in web.xml. (this works okay; I can request that URI 
and get the form and authenticate)
-Inside a JSP (or controller servlet, etc) where an authenticated-user 
action needs to occur and the user isn't already auth'd, I create a 
request dispatcher and include(/login/).


Is there a better way to selectively include the login-form? Perhaps a 
way that doesn't require using a security-constraint? (reason below)


The above seems like it should work; however I happen to get a 
StringIndexOutOfBounds* (with tomcat 5.0.30), probably caused by RD not 
being able to resolve the path of a protected URI (a guess) - so I'm 
looking for another way..


Thanks for any advise,

ken

* reported as http://issues.apache.org/bugzilla/show_bug.cgi?id=38233 
against 5.0.30:


java.lang.StringIndexOutOfBoundsException: String index out of range: -1
at java.lang.String.substring(String.java:1438)
at java.lang.String.substring(String.java:1411)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:193)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:696)
at
org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:585)
at
org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:510)



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



Re: problem with keytool for ssl

2006-01-11 Thread Ken Johanson
You appear to be attempting to import (last step) the certificate 
request you created. Instead, you should be waiting for / getting back 
your CA's signed version of your CSR, then import that.. Otherwise, 
create self signed cert to import, if you dont need users to trust your 
claimed identity.


best,
ken

Iosev Perez Rivero wrote:
I have a problem for configure SSL protocol using keytool 

 

 


C:\Tomcat55\webapps\ROOTkeytool -genkey -alias tomcat -keyalg RSA -keystore .ke

ystore

Enter keystore password:  eileen

What is your first and last name?

  [Unknown]:  iosev

What is the name of your organizational unit?

  [Unknown]:  uci

What is the name of your organization?

  [Unknown]:  uci

What is the name of your City or Locality?

  [Unknown]:  uci

What is the name of your State or Province?

  [Unknown]:  uci

What is the two-letter country code for this unit?

  [Unknown]:  cu

Is CN=iosev, OU=uci, O=uci, L=uci, ST=uci, C=cu correct?

  [no]:  yes

 


Enter key password for tomcat

(RETURN if same as keystore password):  eileen

 


C:\Tomcat55\webapps\ROOTkeytool -certreq -keyalg RSA -alias tomcat -file certre

q.csr -keystore .keystore

Enter keystore password:  eileen

 


C:\Tomcat55\webapps\ROOTkeytool -import -alias root -keystore .keystore -trustc

acerts -file chain

Enter keystore password:  eileen

Certificate was added to keystore

 


C:\Tomcat55\webapps\ROOTkeytool -import -alias tomcat -keystore .keystore -trus

tcacerts -file certreq.csr

Enter keystore password:  eileen

keytool error: java.security.cert.CertificateException: sun.security.pkcs.Parsin

gException: X509.ObjectIdentifier() -- data isn't an object ID (tag = 48)

 

 


please someone may help me.

 


Sorry me English because i´m Cuban.

 


Iósev Pérez Rivero

Estudiante 4to. Año

Universidad de las Ciencias Informáticas

 








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



Re: Application Not Available - Tomcat 5.5.12

2006-01-11 Thread Ken Johanson

Mike wrote:

Hello all,

I have scoured Google and the list archives, it seems
like somebody must have had this issue before but I
can't find any record of it.

(all on a single host)
Tomcat 5.5.12
Apache 1.3.28
mod_jk
Mandrake Linux 9.1
Struts 1.2.4

My problem is that, while using my application (via
browser), occasionally, I get the message

HTTP Status 503 - This application is not currently
available

This is a Tomcat produced error (it has the blue bars,
and has the Tomcat/5.5.12 signature), so I am pretty
sure the web server isn't having any problem
contacting Tomcat.

Generally what happens is I restart the server, wait
10-15 seconds (for Tomcat to start), load my first
action (which should forward to a JSP), and I get this
message.  I hit reload on my browser 3-5 times (each
time getting the same 503) and then the page comes up.
 (the login page to my application).

By itself this isn't a big deal, but the kicker is
that occasionally, I have to hit reload a couple times
in the middle of a session of using the application.

No messages come up in the mod_jk log or in the tomcat
log that I can see.  The apache log shows the 503
errors.

Sorry, this is my first question to the list so I
don't know if I'm providing the needed information,
any guidance would be great!

Regards,
Mike K.



__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


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




As you might've guessed, check your tomcat logs. I've seen this behavior 
when an underlying exception/error occurs. For example when you change 
or place new jar onto the system (static, non-reloading classloaders), 
and the JVM is confused by the unexpected change in class-file offsets. 
Thats just one example.


ken



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



Re: reading file from jsp / war file

2006-01-11 Thread todd darsten
Never mind  I changed it to 

Thread.currentThread().getContextClassLoader().getResource

to get it working.

--- todd darsten [EMAIL PROTECTED] wrote:

 
 My war file looks like 
 
 mywar.war
 +--WEB-INF
 +--my.mapfile.txt
 +--... other dirs
 
 Within my jsp, i am trying to reference
 my.mapfile.txt
 as an URL
 This code works fine in Jetty but fails when we
 switch
 to TC 5.5.x
 
 %
URL myURL =
 application.getResource(/my.mapfile.txt);
 %
 
 i am getting an File Not Found exception when trying
 to open the URL via its stream
 
 java.io.FileNotFoundException:
 \localhost\mywar\my.mapfile.txt (The system cannot
 find the path specified)
 
 I also tried 
 
 getServletContext().getResource(/my.mapfile.txt);
 
 but am getting the same error.
 
 Thanks
 
 __
 Do You Yahoo!?
 Tired of spam?  Yahoo! Mail has the best spam
 protection around 
 http://mail.yahoo.com 
 

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


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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