Re: Deploy or install .war

2002-09-28 Thread Nani Jon


Marty:
Make sure that you add the context for your WAR file in the server.xml file. There are 
examples of a working and deployed application in Tomcat (e.g. /examples applicaton). 
You can also set the flag in the server.xml file to keep the WAR file as is or un-pack 
it.
Hope this will help.
Nanijon.
 Ben Walding wrote:Once the war file is in the webapps directory it will auto-deploy 
when 
you restart TomCat. I realise this doesn't truly answer your question, 
but it should fix your problem.


I'm presuming you are using a 4.1.x version (4.0.x is pretty much the 
same, but not quite as nice).

Marty Hagenston wrote:

>Greetings,
>
>I am very new at this. I have tomcat running and I can view the index.jsp in my 
>browser set to localhost: 8080
>
>Now I want to deploy or install (not sure which one) a .war I put the .war in webapps 
>and tried to use the manager command of both deploy and install by giving it the 
>path..
>
>No go..it doesn't recognize my command deploy.
>
>Stuck..Please help.
>
>Marty
>
> 
>




--
To unsubscribe, e-mail: 
For additional commands, e-mail: 



-
Do you Yahoo!?
New DSL Internet Access from SBC & Yahoo!


Re: Warp connections

2002-09-28 Thread John Walstra

In my virtual host I have ..

--
RewriteEngine on
RewriteLogLevel 0
RewriteRule (.*jsp)$ /jsp$1 [PT]

WebAppConnection myConnection warp localhost:8008
WebAppDeploy myWebapp myConnection /jsp/
--

It will rewrite all jsp requests to use the jsp directory in the htdocs 
directory. It then matches the rules for using the Warp connector. Make sure 
your rewrite rules is a PT (pass-through). If you L (last) it will never be 
matched against the Warp connector rule.

On Saturday 28 September 2002 11:17 am, Sigurður Bjarnason wrote:
> Hi all..
>
> I want to use the mod_webapp module for apache to connect it to tomcat.. I
> have one question about this
>
> The thing is.. i want apache to serve all static content.. like html and
> let tomcat handle the jsp and servlets.
>
> Now when i use the apj1.2 connector with mod_jk.so i use line like
>
> JkMount /TESTSUITE/servlet/* ajp12
> JkMount /TESTSUITE/*.jsp ajp12
>
> when i use the mod_webapp.. i use lines like as follows
>
>  WebAppDeploy examplesconn  /examples
>
> ..that is here that i have a problem !  how can i exclude the jsp
> pages... with this. ?!
>
> i have tryed to use
>
>  WebAppDeploy examplesconn  /examples/*.jsp
>
> But that have not worked for me.. so if someone out there have the answer..
> i would be greatful ! :)
>
> Regards
> Siggi

-- 
John Walstra
[EMAIL PROTECTED]

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




MBean XML Descriptor

2002-09-28 Thread Randy Secrist

Is there a way to append to the information kept in the MBean descriptor without 
having to modify the file in catalina.jar?  i.e. - is there a way to dynamically add 
MBeans so that TC knows about them at run time?

Randy Secrist



Re: Anyone know of an active newsgroup for Jboss like this group?

2002-09-28 Thread micael

You also can view their free documentation or buy a copy of their book at 
the local bookstore.  Their documentation has become surprisingly 
good.  You have to watch the versions, of course.  There is a great book on 
3.0 for sale for only about $10 in a pdf file.

At 06:39 PM 9/28/2002 -0400, you wrote:
>Does anyone know of an active newsgroup to subscribe to for 
>installing/configuring Jboss like this group?
>
>Thanks in advance!
>
>
>--
>To unsubscribe, e-mail:   
>For additional commands, e-mail: 
>



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Anyone know of an active newsgroup for Jboss like this group?

2002-09-28 Thread micael

The JBoss forums at www.jboss.org.


At 06:39 PM 9/28/2002 -0400, you wrote:
>Does anyone know of an active newsgroup to subscribe to for 
>installing/configuring Jboss like this group?
>
>Thanks in advance!
>
>
>--
>To unsubscribe, e-mail:   
>For additional commands, e-mail: 
>



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Anyone know of an active newsgroup for Jboss like this group?

2002-09-28 Thread jdeveloper

Does anyone know of an active newsgroup to subscribe to for 
installing/configuring Jboss like this group?

Thanks in advance!


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Correctly configuring server.xml?

2002-09-28 Thread David Wynter

I have now reinstalled Tomcat 4.1.12 a second time and it seem to be fine, I
could see the standard index.jsp on localhost before chaning my server.xml
to show my website to the world.

I have setup a redirect in the Apache index.html.en page to point to my web
application. But I change server.xml to identify my host (www.roamware.com)
and it stops working. I get connection refused. Also now when I shutdown
Tomcat I get a Connection refused exception. I have read the documentation
on server.xml and what I have below seems right, but it doesn't work.

I would also like to know how to stop people seeing the standard index.jsp
on my site?

Also I deleted my webapp and put the war file in the webapps directory. But
it now does not automatically unpack the war as specified. Ideas on what is
wrong?

Here is my server.xml








  

  
  
  

  
  








  
factory
org.apache.catalina.users.MemoryUserDatabaseFactory
  
  
pathname
conf/tomcat-users.xml
  


  

  

  
  













  
  

  
  

  

  
  


  
  
















  



  

  

  




David Wynter

roamware Ltd.
(+44) (0) 208 922 7539 B.
(+44) (0) 7879 605 706 M.
[EMAIL PROTECTED]


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Logs files no longer appearing

2002-09-28 Thread Bill Blackmon

nevermind - logged in as a different user and they're back...
- Original Message -
From: "Bill Blackmon" <[EMAIL PROTECTED]>
To: "TOMCAT USERS GROUP" <[EMAIL PROTECTED]>
Sent: Saturday, September 28, 2002 2:36 PM
Subject: Logs files no longer appearing


> The log files on my hosts machine are no longer visible in SmartFTP. I
> haven't changed anything in their settings
> in server.xml . Any ideas? I'm flying blind
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Logs files no longer appearing

2002-09-28 Thread Bill Blackmon

The log files on my hosts machine are no longer visible in SmartFTP. I
haven't changed anything in their settings
in server.xml . Any ideas? I'm flying blind


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




filter to change jsessionid cookie almost done, but need little help

2002-09-28 Thread Phillip Rhodes

I am writing a package that will facilitate sso between java based 
applications that will be released open source and free.

Part of the problem is that the tomcat cookie name is NOT at all 
configurable.
When jsessionid is set, the host of the domain is present, the scope is set 
to the webapp, etc...

I wrote a filter that reads the jsessionid and change the scope and domain 
that it can be read by any application in that domain.
My problem is that in the first request in my filter (and to the app), the 
cookie may not be set.
No problem (or so i thought!) .  I created a HttpResponseWrapper and 
HttpRequestWrapper and pass that onto the filter chain.
When someone calls addCookie on the response (my wrapper) , I put in in my 
requestwrapper, so I can read cookies that are set in the present 
request/response.
After I do the filter.doChain method, I again check for the jsessionid 
cookie.  It's not set in the HttpRequestWrapper that I passed onto the 
chain, but I DO know it's being set by the time my browser gets it.

Here is the Code:
http://test.rhoderunner.com/jsso/src/com/rhoderunner/jsso/SSOCookieFilter.java

http://test.rhoderunner.com/jsso/src/com/rhoderunner/jsso/SSORequestWrapper.java

http://test.rhoderunner.com/jsso/src/com/rhoderunner/jsso/SSOResponseWrapper.java

Here you can even test it!  Turn on cookie notification.  The jsessionid is 
set as usual.  Do a refresh of the page, and you will see the new 
jsessionid cookie!  I want my new cookie to be the one that's first set.  I 
don't want to have to do a refresh (or go to another page).

http://test.rhoderunner.com/jetspeed/ssocookiefilter/index.jsp  this url 
may be done periodically, it's my test box.

Thanks.  I hope my sso solution helps folks when complete.  This is just 
part of it.







--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Warp connections

2002-09-28 Thread Jim Coble



Someone with more experience may have a better answer but it is my
understanding that mod_webapp does not permit you to distinguish between
static and dynamic content.  When you use mod_webapp, Tomcat services all
requests; i.e., you can't do what you want to do--serve html with Apache
and jsp/servlets with Tomcat--using mod_webapp -- you would have to
continue using mod_jk if that's what you want to do.
--Jim

==
Jim Coble
Senior Technology Specialist
Center for Instructional Technology
Email: [EMAIL PROTECTED]
Voice: 919-660-5974  Fax: 919-660-5923
Box 90198, Duke University
Durham, NC 27708-0198
==



   

  Sigurður 

  BjarnasonTo:   "Tomcat Users List" 
<[EMAIL PROTECTED]>  
  <[EMAIL PROTECTED]cc: 

  m>   Subject:  Warp connections  

   

  09/28/2002 12:17 

  PM   

  Please respond to

  "Tomcat Users

  List"

   

   






Hi all..

I want to use the mod_webapp module for apache to connect it to tomcat.. I
have one question about this

The thing is.. i want apache to serve all static content.. like html and
let tomcat handle the jsp and servlets.

Now when i use the apj1.2 connector with mod_jk.so i use line like

JkMount /TESTSUITE/servlet/* ajp12
JkMount /TESTSUITE/*.jsp ajp12

when i use the mod_webapp.. i use lines like as follows

 WebAppDeploy examplesconn  /examples

..that is here that i have a problem !  how can i exclude the jsp
pages... with this. ?!

i have tryed to use

 WebAppDeploy examplesconn  /examples/*.jsp

But that have not worked for me.. so if someone out there have the answer..
i would be greatful ! :)

Regards
Siggi






(See attached file: winmail.dat)--
To unsubscribe, e-mail:   <
mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <
mailto:[EMAIL PROTECTED]>





=?iso-8859-1?Q?winmail.dat?=
Description: Binary data

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 


Warp connections

2002-09-28 Thread Sigurður Bjarnason


Hi all..
 
I want to use the mod_webapp module for apache to connect it to tomcat.. I have one 
question about this
 
The thing is.. i want apache to serve all static content.. like html and let tomcat 
handle the jsp and servlets.
 
Now when i use the apj1.2 connector with mod_jk.so i use line like
 
JkMount /TESTSUITE/servlet/* ajp12
JkMount /TESTSUITE/*.jsp ajp12
 
when i use the mod_webapp.. i use lines like as follows 
 
 WebAppDeploy examplesconn  /examples
 
..that is here that i have a problem !  how can i exclude the jsp pages... with 
this. ?!
 
i have tryed to use 
 
 WebAppDeploy examplesconn  /examples/*.jsp 
 
But that have not worked for me.. so if someone out there have the answer.. i would be 
greatful ! :)
 
Regards
Siggi
 

 
 
 
 

<>
--
To unsubscribe, e-mail:   
For additional commands, e-mail: 


Error Compiling JSP under 4.1.12

2002-09-28 Thread Sexton, George

I am getting these errors when I try to compile a JSP page under 4.1.12

/usr/local/jakarta-tomcat-4.1.12/work/Standalone/localhost/caldev/index_jsp.
java:7: '.' expected
import WebApp;
 ^
/usr/local/jakarta-tomcat-4.1.12/work/Standalone/localhost/caldev/index_jsp.
java:8: '.' expected
import CalServlet;
 ^
/usr/local/jakarta-tomcat-4.1.12/work/Standalone/localhost/caldev/index_jsp.
java:48: cannot resolve symbol
symbol  : variable WebApp
location: class org.apache.jsp.index_jsp
  out.print(WebApp.PRODUCT_NAME);


The WebApp, and CalServlet classes exist in my context/WEB-INF/classes
directory. I enabled debug for the JSP compiler and can see that the
classpath is correct. This JSP page works fine under 4.0.4 and most other
Servlet containers.

Any ideas on where I am going wrong would be appreciated.

George Sexton
MH Software, Inc.
Home of Connect Daily Web Calendar Software
http://www.mhsoftware.com/connectdaily.htm
Voice: 303 438 9585



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Deploy or install .war

2002-09-28 Thread Ben Walding

Once the war file is in the webapps directory it will auto-deploy when 
you restart TomCat.  I realise this doesn't truly answer your question, 
but it should fix your problem.


I'm presuming you are using a 4.1.x version (4.0.x is pretty much the 
same, but not quite as nice).

Marty Hagenston wrote:

>Greetings,
>
>I am very new at this.  I have tomcat running and I can view the index.jsp in my 
>browser set to localhost: 8080
>
>Now I want to deploy or install (not sure which one) a .war   I put the .war in 
>webapps and tried to use the manager command of both deploy and install by giving it 
>the path..
>
>No go..it doesn't recognize my command deploy.
>
>Stuck..Please help.
>
>Marty
>
>  
>




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Deploy or install .war

2002-09-28 Thread Marty Hagenston

Greetings,

I am very new at this.  I have tomcat running and I can view the index.jsp in my 
browser set to localhost: 8080

Now I want to deploy or install (not sure which one) a .war   I put the .war in 
webapps and tried to use the manager command of both deploy and install by giving it 
the path..

No go..it doesn't recognize my command deploy.

Stuck..Please help.

Marty



Alias Name

2002-09-28 Thread Vijayaraaghavan S

Hi,

How to configure tomcat server to provide an alias name for a web
page, please provide help with an example. I have the web page in
/webapps/vijay folder.

Regards,
Vijay

This communication contains information, which is confidential and may also
be privileged. It is for the exclusive use of the intended recipient(s). If
you are not the intended recipient(s), please note that any distribution,
printing, copying or use of this communication or the information in it is
strictly prohibited. If you have received this communication in error,
please notify the sender immediately and then destroy any copies of it.


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: HOW TO: How do I allocate memory in JVM for extra virtual hosts

2002-09-28 Thread Takaoglu, Uzay

 Check out perc 3.3 at http://www.newmonics.com/info/gc.shtml, it has a
pretty decent GC performing much better than Sun's. Also IBM's JVM is pretty
good too.

-Original Message-
From: Brad Plies
To: Tomcat Users List
Sent: 9/27/02 12:18 PM
Subject: Re: HOW TO: How do I allocate memory in JVM for extra virtual hosts

I am not aware of all the performance implications of
this, but it should be possible to create a Thread to
run on some interval you define which just infinitely
loops a call for garbage collection (gc() right?) then
goes back to sleep until next iteration.

At least then you can control how often garbage
collection happens, and I suppose it is possible that
doing it more regularly could imply less stuff needs
to be collected each iteration, than to wait for the
JVM to get the GC going.  Then again, maybe a GC
awakening, no matter how little the work, is a very
expensive process.  I don't know.

Anyway, if you absolutely need that kind of
performance, I do believe there are licenses available
for Realtime Garbage Collection engines.  At least Dr.
Mark Johnstone did his dissertation on them, so I
assume they exist somewhere.

--- Donie Kelly <[EMAIL PROTECTED]> wrote:
> Hi all
> I am running tomcat 4.0.1 with virtual hosting and
> was wondering how much
> memory to allocate to each additional host. By
> default, we use 64M for one
> host but adding another 64M for second host seems
> excessive considering it's
> the same tomcat instance.
> However, if we add a lot the JVM will use more
> memory before garbage
> collection and we've seen a 30 second (!!!) delay
> when using 1G Ram on JVM
> as it just kept using memory until it ran out. It
> then had almost 1G of ram
> to garbage collect. How can I force garbage
> collection to be more aggressive
> and do it more often when garbage is small enough
> not to cause a problem?
> As we need this to run in a production environment
> we cannot possible allow
> a JVM to go for a garbage break for 30 seconds
> Any insight or help is greatly appreciated.
> Donie
> 
> 
> --
> To unsubscribe, e-mail:  
> 
> For additional commands, e-mail:
> 
> 


__
Do you Yahoo!?
New DSL Internet Access from SBC & Yahoo!
http://sbc.yahoo.com

--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Start Apache/Jakarta-Tomcat as Non-root user

2002-09-28 Thread Jim Coble

I accomplished this yesterday on Solaris 8 using the following script 
called at system startup (linked to S40tomcat in rc3.d)  ... Replace 
"tomcat" after the two su commands with the user you want Tomcat to run as 
and, of course, change the paths as appropriate for your system.  You'll 
also need to make sure your tomcat user has appropriate permissions on 
your tomcat directories.
--Jim

#!/sbin/sh
#
# Jim Coble 09 Jun 02
# Modified 27 Sep 02 to try to get to run as user tomcat
 
CATALINA_HOME=/usr/local/tomcat;export CATALINA_HOME
JAVA_HOME=/usr/java;export JAVA_HOME
 
case "$1" in
start)
su tomcat /usr/local/tomcat/bin/startup.sh
sleep 5
;;
stop)
su tomcat /usr/local/tomcat/bin/shutdown.sh
;;
*)
echo "Usage: $0 {start|stop}"
exit 1
;;
esac
 
exit 0

==
Jim Coble
Senior Technology Specialist
Center for Instructional Technology
Email: [EMAIL PROTECTED]
Voice: 919-660-5974  Fax: 919-660-5923
Box 90198, Duke University
Durham, NC 27708-0198
==





Lars Nielsen Lind <[EMAIL PROTECTED]>
09/28/2002 10:12 AM
Please respond to "Tomcat Users List"

 
To: [EMAIL PROTECTED]
cc: 
Subject:Start Apache/Jakarta-Tomcat as Non-root user


Hi.

Are the some easy ways to start Apache / Jakarta-Tomcat as Non-root user 
- for instance with a  user created for the purpose?

Are the any security risks (for instance access to root) to be aware of?

Best regards,

Lars Nielsen Lind


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 






Re: How many people are using 4.1.12 successfully?

2002-09-28 Thread Remy Maucherat

Glenn Nielsen wrote:
> The discussion regarding Tomcat 4.1.12 was not related to its stability.
> I have been using Tomcat 4.1.x in production for over 6 months
> (but still with Jasper1), and recently upgraded to Jasper 2.
> 
> IMHO, Tomcat 4.1.x is a much better container for production than 4.0.x.
> 
> All of the issues raised were about some minor differences in behaviour.

So far I agree. I believe most differences are motivated by the attempt 
at making Tomcat more secure and reliable. There were a few gotchas in 
4.1.10, though (with Jasper bugs, and with Windows compatibility).

> Not about stability. Tomcat 4.1.x has been rock solid for me in production
> on a site that heavily uses JSP pages and has >500k page views per month.
> 
> Install and test your app in Tomcat 4.1.12. Your app and config may not
> even notice the difference, or at most there may be a couple of issues
> to resolve.
> 
> And if you use JSP with custom tags Jasper2 can really improve performance.

Hopefully you'll put 4.1.x on your higher volume sites and/or use it in 
standalone mode so that we see how it behaves.

Remy


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Changes to jakarta-tomcat-4.1.12-LE-jdk14 from older binaries?

2002-09-28 Thread Remy Maucherat

Tom Mikelson wrote:
> I have tried numerous tutorials on the web for
> installing my own apps on
> jakarta-tomcat-4.1.12-LE-jdk14.  My servlet will work
> if I place it in the examples/WEB-INF/classes
> directory but when I try to set it up anywhere else
> the .jsp files work but the servlets come back with
> the 404 error.  I see where all the tutorials use
> earlier versions of TomCat, possibly there has been
> some dramatic change in this new version.  What
> version should I go back to that is more stable?  TIA.

Due to possible security issues, the invoker servlet (which does the 
/servlet/* magic) is disabled by default.

Please read the release notes, it is mentioned explicitely.

Remy


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Upgrade to Tomcat 4.1.12 - WARNING: Exception getting SSL attributes

2002-09-28 Thread Remy Maucherat

Francisco Queiros Pinto wrote:
> Hi,
> 
> I've just upgraded Tomcat 4.1.10 to 4.1.12.
> When trying a secure connection, the browser asks me to
> accept the server certificate and seems to achieve it.
> However, contrary to the previous version, now the server
> generates the following error:
> 
>  (catalina.out) 
> WARNING: Exception getting SSL attributes
> javax.net.ssl.SSLPeerUnverifiedException: peer not authenticated
> at 
> com.sun.net.ssl.internal.ssl.SSLSessionImpl.getPeerCertificateChain(DashoA6275) 
> 
> at 
> org.apache.tomcat.util.net.JSSESupport.getPeerCertificateChain(JSSESupport.java:118) 
> 
> ...
> 
> 
> To see if there was anything wrong with the old certificate
> I've created a new certificate with:
> 
>keytool -genkey -alias tomcat -keyalg RSA
> 
> and started tomcat again. However, as previously, the browser
> still seems to open a secure connection with the server, but
> the server error still persists.
> 
> Is this a bug or a feature related with a security vulnerability
> in the previous version?

No, it's a warning that gets printed out although it shouldn't 
(basically, the connector tries to get the client certificate although 
client cert is not used). It has little ill effects except a performance 
decrease because the traces are printed out.

It is already fixed in CVS, and will be fixed in the next release.

Remy


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Handling sessions without cookies?????

2002-09-28 Thread ed banfa


Could you pls expand more on the techinque u talked about below, like how to actually 
implement it codewise. Thank you
Edward
 Tim Funk wrote:Another technique is to make the session id part of the URL - making 
it 
look like a directory entry. All url's for your application would then 
have the benefit of not needing rewritten avoiding the pain of wrapping 
all links in encodeURL(). But you are also restricted to make all your 
links relative.

You would also need a mechanism to take the sessionId from the URL and 
make tomcat know that is the session ID. This would need probably need 
to be done in a Valve.

Personally - I've never done this but would like to know if anyone has 
and if they like that technique.

Alfonso Martinez wrote:
> To enable sessions without cookies one must do an encodeURL() on every link. Are 
>there any other alternatives??? Does it really work???
> +That's a lot of work, so I wanted to ask before doing it. Thanks a lot, and sorry 
>if this tread is a little out of topic.
> 
> Jose Alfonso
> 
> 


--
To unsubscribe, e-mail: 
For additional commands, e-mail: 



-
Do you Yahoo!?
New DSL Internet Access from SBC & Yahoo!


Start Apache/Jakarta-Tomcat as Non-root user

2002-09-28 Thread Lars Nielsen Lind

Hi.

Are the some easy ways to start Apache / Jakarta-Tomcat as Non-root user 
- for instance with a  user created for the purpose?

Are the any security risks (for instance access to root) to be aware of?

Best regards,

Lars Nielsen Lind


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Default encoding Problems

2002-09-28 Thread Apirak Pantkool

I need to display Thai language (TIS-620) on Browser.
But I can't set this encoding to default when user open my web page.
user must select "IE-menu-->View-->Encoding-->Thai(Windows))" every time.

My environment is Redhat 7.3 + Tomcat 4.1 + struts 1.1

My jsp code is

<%@ page import="messages.*" %>
<%@ page import="java.util.*" %>

<%@ page contentType="text/html; charset=TIS620" %>


Home :: PeTerPan



Thai Language <%=messages.getValue("1")%>
<% System.out.println(comm.getValue("1")); %>



thank you


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Forward into a Bean

2002-09-28 Thread Gonzalo Rodríguez Doménech


Helo, making a web service using Tomcat 4.0.2, I have found a problem.

When I try to make a forward into a Bean It's produce an exception that the
server encounter.
In fact, I don't know if the problem it's in the jsp file or in the Bean.
With Tomcat 3.2 I didn't have problems so I thought that maybe it was
because of using a new version of Tomcat.

Jsp file is:


 
 


<%
  gestor.existeUsuario(pageContext);
%>

The method of the bean gestor (existeUsuario) receive the PageContext, so I
try to do the forward to this way:

rd = pageContext.getServletContext().getRequestDispatcher(goodURL);
rd.forward (pageContext.getRequest(), pageContext.getResponse());

Where rd is a RequestDispatcher and pageContext is the PageContext


But in the web browser appear:


java.lang.IllegalStateException: getOutputStream() ya ha sido llamado para esta 
respuesta
at org.apache.catalina.connector.ResponseBase.getWriter(ResponseBase.java:755)
at 
org.apache.catalina.connector.ResponseFacade.getWriter(ResponseFacade.java:165)
at org.apache.jasper.runtime.JspWriterImpl.initOut(JspWriterImpl.java:166)
at org.apache.jasper.runtime.JspWriterImpl.flushBuffer(JspWriterImpl.java:158)
at org.apache.jasper.runtime.JspWriterImpl.flush(JspWriterImpl.java:205)
at org.apache.jasper.runtime.PageContextImpl.release(PageContextImpl.java:177)
at 
org.apache.jasper.runtime.JspFactoryImpl.internalReleasePageContext(JspFactoryImpl.java:198)
at 
org.apache.jasper.runtime.JspFactoryImpl.releasePageContext(JspFactoryImpl.java:193)
at org.apache.jsp.Login$jsp._jspService(Login$jsp.java:186)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:202)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at 
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at 
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at 
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1012)
at 
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1107)
at java.lang.Thread.run(Thread.java:536)




Please, if anybody knows how make this forward I am very grateful for response me with 
the solution.
Thanks for read my e-mail.


Gonzalo




Re: SSL Broken in 4.1.12?

2002-09-28 Thread Bill Barker

If you are not using client-cert auth, this is just a useless waste of
log-space (e.g. debugging statements that weren't removed).  If you can
waste the space, then you can safely ignore the warnings.  Replacing
tomcat-util.jar from the nightly (This is a pretty stable package, so not
much risk) will fix the logs.If you are using client-cert auth with
Coyote, then you must upgrade the jar file, since it is broken in 4.1.12
with Coyote unless you are using 'clientAuth="true"'.

"Francisco Queiros Pinto" <[EMAIL PROTECTED]>
wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi,
>
> I've just upgraded Tomcat 4.1.10 to 4.1.12.
> When trying a secure connection, the browser asks me to
> accept the server certificate and seems to achieve it.
> However, contrary to the previous version, now the server
> generates the following error:
>
>  (catalina.out) 
> WARNING: Exception getting SSL attributes
> javax.net.ssl.SSLPeerUnverifiedException: peer not authenticated
>  at
>
com.sun.net.ssl.internal.ssl.SSLSessionImpl.getPeerCertificateChain(DashoA62
75)
>  at
>
org.apache.tomcat.util.net.JSSESupport.getPeerCertificateChain(JSSESupport.j
ava:118)
> ...
> 
>
> To see if there was anything wrong with the old certificate
> I've created a new certificate and started tomcat again.
> However, as previously, the browser still seems to open a
> secure connection with the server, but the server error still
> persists.
>
> Is this a bug or a feature related with a security vulnerability
> in the previous version?
>
> Anyone had similar problems?
> Regards,
>
>
> --
> Francisco





--
To unsubscribe, e-mail:   
For additional commands, e-mail: