Re: Custom Tag / JavaBean question

2002-10-15 Thread Padhu Vinirs


Looks like you defined a type as java.util.Vector ( wtih rtexprvalue 
set to true ) in your tld for the accessList attribute ?

-- padhu


Cindy Ballreich wrote:

I have a custom tag that takes a collection as one of it's parameters. I'd like to be 
able to give the name of an attribute (a String) as the value and have the tag find 
the attribute from the pageContext. This doesn't seem like it should be too 
difficult. I have setters that look like this in my tag...

  protected Collection accessList;

  public void setAccessList(String accessList) {
Object o = pageContext.findAttribute(accessList);
if (o instanceof Collection) {
  this.accessList = (Collection)o;
}
  }

  public void setAccessList(Collection accessList) {
this.accessList = accessList;
  }

...and the tag looks like this on the jsp page...

  jsp:useBean id=accessList scope=request class=java.util.Vector /
  mpi:accessList id=access accessList=accessList ... 
 ...
  /mpi:accessList

... but I keep getting errors like this...

org.apache.jasper.JasperException: Unable to convert string 'accessList' to class 
java.util.Collection for attribute accessList: java.lang.IllegalArgumentException: 
Property Editor not registered with the PropertyEditorManager
   at 
org.apache.jasper.runtime.JspRuntimeLibrary.getValueFromPropertyEditorManager(JspRuntimeLibrary.java:749)

If I use a run time value in the tag I don't get the error...

  jsp:useBean id=accessList scope=request class=java.util.Vector /
  mpi:accessList id=access accessList='%= accessList % ... 
 ...
  /mpi:accessList

So I have a workaround for the problem, but I'd still like to understand why the 
first example doesn't work when everything I've read says that it should.

I'm using Tomcat 4.1.12 on NT 4.0 (development server) with j2sdk1.4.0_01.

Thanks

Cindy



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


  




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




Re: Avoid jsp reload

2002-10-15 Thread Padhu Vinirs


set reloadable=false in the context definition in server.xml. But this 
will require a restart of the server. Else, you can change the timestamp 
of the new source files to a older timestamp.

-- padhu


Alberto Romei wrote:

Hi all,
i wanted to know if it is possible to tell tomcat NOT to reload the jsp
pages in a context, so that it continues executing the last generated
servlets even if the source .jsp files have been modified or deleted.

I need this trick because i would like not to copy the jsp source, since i
have to deploy my webapp to a server that is maintained by people outside my
company.

Any suggestion is appreciated.

Thanks in advance.

Alberto




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


  




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




Re: 405 Error

2002-10-14 Thread Padhu Vinirs


In 4.0, I think you need an entry for the webapp context in server.xml 
and your servlet/jsp in web.xml unless you turn on the InvokerServlet.

-- padhu

Michael Finney wrote:

Version 3.3.1 of Tomcat.
Redirect via ISAPI filter IIS and Tomcat.

When I POST using a form, I get a 405 Error.  Why? 
This did not happen in 3.2.1 land.  Of course, I may
have missed a config file setting or something.

My web.xml is essentially empty.  The root tag is all
that is there.

Do I need to set the security in some way?

Michael


=
Michael Finney
Sun Certified Programmer for the Java 2 Platform
Sun Certified Developer for the Java 2 Platform
Sun Certified Web Component Developer for J2EE Platform 
Cofounder of PPJDG
Cofounder of cosAgile - Colorado Springs XP Users Group
If replying to this email address fails, try [EMAIL PROTECTED]

__
Do you Yahoo!?
Faith Hill - Exclusive Performances, Videos  More
http://faith.yahoo.com

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


  




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




Re: Unspecified NoClassDefFoundError

2002-10-13 Thread Padhu Vinirs


Just curious, why is a servlet calling paintComponent ? Is there any 
accompanying exception ?

-- padhu



Ben Monnahan wrote:

Hi all,

  I am getting NoClassDefFoundError in my servlet, but it doesn't tell me
which one it couldn't find.  I'm guessing its a problem with
GraphicsEnvironment.getLocalGraphicsEnvironment().  I tried a search on
google, but it didn't turn up anything.  Does anyone know what might be
wrong?  Here is a stack trace:

java.lang.NoClassDefFoundError
   at java.lang.Class.forName0(Native Method)
   at java.lang.Class.forName(Class.java:130)
   at
java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:62)
   at
java.awt.image.BufferedImage.createGraphics(BufferedImage.java:1053)
   at visad.java2d.VisADCanvasJ2D.paintComponent(Unknown Source)
   at visad.java2d.VisADCanvasJ2D.run(Unknown Source)
   at java.lang.Thread.run(Thread.java:536)


System Info:
   Redhat 7.2
   Tomcat 4.1.10 (invoker servlet disabled)
   (no apache)
   Java 1.4.0_01



Thanks for your time,
Ben Monnahan


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


  




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




Re: Why did not http://localhost:8080 work ...

2002-10-12 Thread Padhu Vinirs


Are you connecting through Apache ?  What version of Tomcat ?

-- padhu



Satish Sachdeva wrote:

... but http://localhost:8080/ worked?  What's the
importance of trailing /?

Thanks,
Satish

__
Do you Yahoo!?
Faith Hill - Exclusive Performances, Videos  More
http://faith.yahoo.com

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


  




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




Re: Using external login pages for web applications

2002-10-11 Thread Padhu Vinirs


Correct me if I understood this wrong:

Login Form html ( external web site )  ---Servlet/JSP  ( Your web 
site )

If you setup https access in your web site, then the external form can 
securely send the login info to your servlet, which can authenticate the 
user, set a session attribute, which every secure page can check before 
allowing user to continue. Else redirect to the login form again.


-- padhu



Johann Uhrmann wrote:

Hi,

our public internet site should contain a form which allows the user
to type in his/her user name and password.
Then, the user should be logged in with this data in a web application.

Does the form based login mechanism of tomcat support such a login
procedure or does it require that the user tries to access a protected
page before he/she can type in the username and password?

It would be more convenient to have a login form on a external (high
traffic) site than requesting the user to click a link to a different
login page. (one more click scares away a lot of users)

Is there a solution or is this already a supported scenario?

Thank You,

Hans




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


  




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




Re: wml or jsp to download midlets ?

2002-10-11 Thread Padhu Vinirs


Cant you access a jsp or servlet, which will set the right content type 
so that the browser can start the download ?

-- padhu

Daniel Hellstrand wrote:

Hello
I got tomcat to work so I can make a simple .wml file and access it
through my mobile phone. But if I want to be able to download .jar and
.jad files to my cell phone, how do I do that, do I have to serve them
through a .jsp or .wml file ?

/Daniel


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


  




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




Re: wml or jsp to download midlets ?

2002-10-11 Thread Padhu Vinirs


 From the little bit of wml I did 2-3 years back, I accessed a servlet 
that outputted wml to a ericcson and nokia cell-phone simulator. So  u 
can access any url as long as the client is able to handle the content 
type. In your case, wml  for WAP browser clients. Ofcourse your wap 
browser should support downloads.

-- padhu


Daniel Hellstrand wrote:

I thought I only could use .wml files when browsing with a cell phone (ie over
WAP) ??

/D

Padhu Vinirs wrote:

  

Cant you access a jsp or servlet, which will set the right content type
so that the browser can start the download ?

-- padhu

Daniel Hellstrand wrote:



Hello
I got tomcat to work so I can make a simple .wml file and access it
through my mobile phone. But if I want to be able to download .jar and
.jad files to my cell phone, how do I do that, do I have to serve them
through a .jsp or .wml file ?

/Daniel


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




  

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




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


  




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




Re: 404 on new webapp

2002-10-11 Thread Padhu Vinirs


Try:

http://localhost:8080/manager/install?path=/testwar=file:/tomcat/webapps/test

-- padhu



Michael Muller wrote:


 i just installed jakarta-tomcat-4.1.12-LE-jdk14.  i'm running version 
 1.4.0-b92 of sun's jdk on red hat linux 7.2.

 i created a test subdirectory off the webapps and created an index.jsp 
 in that webapps/test directory.  when i hit 
 http://localhost:8080/test/index.jsp, i get 404.

 this used to work for me in 3.3.  i'm assuming that there's an 
 additional configuration step required now.

 i tried restarting, no joy.  i added myself as a manager, but /test 
 doesn't show up in the list in the manager webapp.

 what am i missing?

 i apologize for what must be a faq -- i DID spend some time looking in 
 the archives.

 thanks,

   -- mike


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





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




getServletContext call from jsp page...

2002-10-11 Thread Padhu Vinirs


Wanted to know if this assumption is valid in most jsp containers:

Is calling getServletContext()  ( instead of 
getServletConfig().getServletContext() ) assuming that the servlet 
generated from the jsp will be derived from HttpServlet ?


This works ( in Tomcat ) because HttpJspBase derives from HttpServlet. 
 But getServletConfig() is part of the interface Servlet which every 
Servlet has to implement.

-- padhu



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




Re: New Install, New Question

2002-10-11 Thread Padhu Vinirs

Try

Context path=/newapp docBase=newapp debug=0 reloadable=true /


Also, install the web app using the manager webapp. I am not sure if a 
restart installs new webapps automatically.


-- pady


Scott Purcell wrote:

Hello,

New Install of Tomcat 4.1.12 on 2000. 
Installed on D:\jakarta-tomcat-4.1.12

I need a reloadable app to run below \webapps.
I created the folder and tried to add to the server.xml, but things have changed 
since my 3.x days.

I vi'd the server.xml file and added a Context like so:
Context path= docBase=ROOT debug=0 reloadable=true /
Context path= docBase=/newapp debug=0 reloadable=true /

But it dies on startup. I cannot even find the error: The black startup screen just 
dies a quiet death. I checked typing and I do not believe it is that.

How do I add a new context?



Scott Purcell | Developer | VERTIS | 555 Washington Ave. 4th Floor | St. Louis, MO 
63101 |
T 314.588.0720 | F 314.588.0735 | [EMAIL PROTECTED] | http://www.vertisinc.com

Vertis is a global powerhouse for integrated marketing and advertising solutions that 
seamlessly combine advertising, direct marketing, media, imaging and progressive 
technology. Vertis' products and services include: consumer and media research, media 
planning and placement, creative services, digital media production, targetable 
insert programs, fully integrated direct marketing programs, circulation-building 
newspaper products and eMarketing.




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


  




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




Re: Help Defining new webapp

2002-10-10 Thread Padhu Vinirs

That is correct.

-- padhu



Chuck Carson wrote:

I have the following app: /usr/local/tomcat/webapps/changemgmt/

Tomcat detects it upon startup and it works fine. However, I want to
enabled automatic reloading of classes.

Is this what I need to add to server.xml:

Context path=/changemgmt docBase=changemgmt debug=0
reloadable=true /


Thanks,
Chuck


--
This message contains confidential information and is intended only for
the individual named. If you are not the named addressee you should not
disseminate, distribute or copy this e-mail. Please notify the sender
immediately by e-mail if you have received this e-mail by mistake and
delete this e-mail from your system. E-mail transmission cannot be
guaranteed to be secure or error-free as information could be
intercepted, corrupted, lost, destroyed, arrive late or incomplete, or
contain viruses. The sender therefore does not accept liability for any
errors or omissions in the contents of this message, which arise as a
result of e-mail transmission. If verification is required please
request a hard-copy version. 

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


  




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




Re: Servlet config problem

2002-10-10 Thread Padhu Vinirs


I am seeing the same problem. Must be reported as a bug ?

-- padhu



freddy auwer wrote:

Hi,
I'am using Tomcat 4.0.6 on Windows NT.
I have a jsp declared in the DD with a init-param
When I try to retrieve with getInitParam() method the
value of this param, I receive null.

Here the part of the DD

  servlet
servlet-nameintro.jsp/servlet-name
jsp-file/intro.jsp/jsp-file
init-param
  param-namepath/param-name
  param-valuelogs/param-value
/init-param
  /servlet


The same jsp with the same DD works fine on WebLogic.

Any idea ?

Thx.

__
Do you Yahoo!?
Faith Hill - Exclusive Performances, Videos  More
http://faith.yahoo.com

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


  




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




reloading of jsp page...

2002-10-10 Thread Padhu Vinirs


Tomcat 4.1.12

I have a jsp page that compiles fine. Then I make a change and try to 
access the page again. The page is not recompiled. I am still getting 
back the old value. I do have reloadable=true for my context. I have to 
restart Tomcat to get the new page. Anybody else notice this ?

-- padhu


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




Re: reloading of jsp page...

2002-10-10 Thread Padhu Vinirs


Reloading of jsp works if I start a new browser window. But on same 
window ( Ctrl-r or reload ) doesnt show the new changes.

-- padhu

Padhu Vinirs wrote:


 Tomcat 4.1.12

 I have a jsp page that compiles fine. Then I make a change and try to 
 access the page again. The page is not recompiled. I am still getting 
 back the old value. I do have reloadable=true for my context. I have 
 to restart Tomcat to get the new page. Anybody else notice this ?

 -- padhu


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





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




Re: reloading of jsp page...

2002-10-10 Thread Padhu Vinirs


I have done this, and it is not helping. I saw in the apache bug list ( 
2885 )  in 4.0.4 which has been resolved. I reopened it.

-- padhu



Sam Seaver wrote:

I had this problem with galeon and simple html files, it should be in the
settings somewhere in your browser, that you can force it to actually reload
the page rather than look in the cache, even though I was pressing the
RELOAD button. once i made the change, RELOAD really RELOADed...

Sam


- Original Message -
From: Chris Wolcott [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, October 10, 2002 8:37 AM
Subject: Re: reloading of jsp page...


  

This may be caused by your browser cacheing the existing page.  Try
clearing the browser cashce and see what happens.  I know RELOAD is
supposed to actually RELOAD from the server, but. . . .

Padhu Vinirs wrote:



Reloading of jsp works if I start a new browser window. But on same
window ( Ctrl-r or reload ) doesnt show the new changes.

-- padhu

Padhu Vinirs wrote:

  

Tomcat 4.1.12

I have a jsp page that compiles fine. Then I make a change and try to
access the page again. The page is not recompiled. I am still getting
back the old value. I do have reloadable=true for my context. I have
to restart Tomcat to get the new page. Anybody else notice this ?

-- padhu


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





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


  


--
To unsubscribe, e-mail:


mailto:[EMAIL PROTECTED]
  

For additional commands, e-mail:


mailto:[EMAIL PROTECTED]
  


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


  




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




Re: reloading of jsp page...

2002-10-10 Thread Padhu Vinirs


I have also tried loading this page from 2 different client machines. 
Still get only old code...I have to restart Tomcat, cleanup the 
java/class files and only then this works.

-- padhu



Sam Seaver wrote:

I had this problem with galeon and simple html files, it should be in the
settings somewhere in your browser, that you can force it to actually reload
the page rather than look in the cache, even though I was pressing the
RELOAD button. once i made the change, RELOAD really RELOADed...

Sam


- Original Message -
From: Chris Wolcott [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, October 10, 2002 8:37 AM
Subject: Re: reloading of jsp page...


  

This may be caused by your browser cacheing the existing page.  Try
clearing the browser cashce and see what happens.  I know RELOAD is
supposed to actually RELOAD from the server, but. . . .

Padhu Vinirs wrote:



Reloading of jsp works if I start a new browser window. But on same
window ( Ctrl-r or reload ) doesnt show the new changes.

-- padhu

Padhu Vinirs wrote:

  

Tomcat 4.1.12

I have a jsp page that compiles fine. Then I make a change and try to
access the page again. The page is not recompiled. I am still getting
back the old value. I do have reloadable=true for my context. I have
to restart Tomcat to get the new page. Anybody else notice this ?

-- padhu


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





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


  


--
To unsubscribe, e-mail:


mailto:[EMAIL PROTECTED]
  

For additional commands, e-mail:


mailto:[EMAIL PROTECTED]
  


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


  




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




Re: reloading of jsp page...

2002-10-10 Thread Padhu Vinirs


I think I founf out what the problem is. My jsp page is on Linux. I have 
this drive shared through samba to my windows machine. Looks like 
windows is not updating the time stamp. When I saved the file from 
Linux, the reload worked fine. I saw that the 2885 bug was also related 
to this. Anybody know any solution on how to change the timestamp on 
windows 98 when saving - maybe there is a win fix ?

-- padhu



Chris Wolcott wrote:

 This may be caused by your browser cacheing the existing page.  Try 
 clearing the browser cashce and see what happens.  I know RELOAD is 
 supposed to actually RELOAD from the server, but. . . .

 Padhu Vinirs wrote:


 Reloading of jsp works if I start a new browser window. But on same 
 window ( Ctrl-r or reload ) doesnt show the new changes.

 -- padhu

 Padhu Vinirs wrote:


 Tomcat 4.1.12

 I have a jsp page that compiles fine. Then I make a change and try 
 to access the page again. The page is not recompiled. I am still 
 getting back the old value. I do have reloadable=true for my 
 context. I have to restart Tomcat to get the new page. Anybody else 
 notice this ?

 -- padhu


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





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





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





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




Re: Possible to disable session persistence?

2002-10-10 Thread Padhu Vinirs


Are you referring to creating a new session for every call ? If so, only 
way is to set timeout to 1 ( 1 minute !!! ) or call invalidate in every 
servlet/jsp.

-- padhu


Jonathan Eric Miller wrote:

Does anyone know if it is possible to turn off session persistence? I don't
have an immediate need to do so, but, I was thinking that it might be a nice
option to have while testing an application if you want to make sure all the
state is getting cleared out. You could do that by just opening a new Web
browser, so, it's not much of an issue. I was just curious.

Jon


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


  




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




Re: want to show a message to the user before issuing shutdown command

2002-10-09 Thread Padhu Vinirs


U want to show a message to the client ? If so, The server cannot 
instantiate a session on the client. If you want to send a email, then 
the ServletContextListener's contextDestroyed might help.  

-- pady



shoban kumar wrote:

 Hi there,
 I want to show a message to the END USER'S before shutting down the 
 tomcat. How can i achive this.
 thanks in advance
 shoban
 Mascon

 _
 MSN Photos is the easiest way to share and print your photos: 
 http://photos.msn.com/support/worldwide.aspx


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





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




Re: How to catch the thrown Exception

2002-10-09 Thread Padhu Vinirs


If the exception is thrown from a Servlet, then catch the Exception, 
wrap it with a ServletException, throw this. Then you can retrieve the 
exception from attribute  javax.servlet.error.exception, and get the 
root cause exception.

yourException = 
request.getAttribute(javax.servlet.error.exception).getRootCause();

-- padhu



Nagpal, Vikas wrote:

Hello Everybody,

I have been trying to catch the thrown exception and print it on my JSP
page. As I catch the exception and print it using System.out.println command
it displays NULL. But I want to print the number which threw the exception
not NULL. Can anyone tell me how to catch this number and print it on my JSP
page.

Thanks,
Vikas nagpal.

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


  




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




Re: Too Many Sessions!

2002-10-09 Thread Padhu Vinirs


Register a HttpSessionListener, and log the session destroy message in 
the sessionDestroyed method.

-- padhu

Michael Schulz wrote:

A few questions:

1) does the session listener document when sessions are destroyed?

2) are there other servlets in your web app that might be causing the
activity?

3) what does your access_log indicate in the way of inbound requests?

-Mike


-Original Message-
From: Cindy Ballreich [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 09, 2002 1:29 PM
To: [EMAIL PROTECTED]
Subject: Too Many Sessions!


I'm using Tomcat 4.1.12 on a NT 4.0 system. I've been watching my logs and
I'm noticing a lot of sessions being created for no apparent reason when
there is no user activity on the system and no activity (as far as I can
tell) in my servlet. Here's a sample from the logs...

2002-10-09 11:05:15 SessionListener:
sessionCreated('3A797C529EA64DFE2835FC163C808C74')
2002-10-09 11:06:15 SessionListener:
sessionCreated('62DB4B6BBFD87BD901CD67925BB7BA95')
2002-10-09 11:07:15 SessionListener:
sessionCreated('35769A4EDF71CA68BAA0B14F6B64348B')
2002-10-09 11:08:15 SessionListener:
sessionCreated('D6A1C6EC234A30520747F2F5B09DD202')
2002-10-09 11:09:15 SessionListener:
sessionCreated('8B0C9B610F981455C3FE6AA2F91E21E7')
2002-10-09 11:10:15 SessionListener:
sessionCreated('A1E38AF2FD1205E17D50FF3076AF5321')
2002-10-09 11:11:16 SessionListener:
sessionCreated('86F7A09B20EFE4543C616B06CEC466A5')
2002-10-09 11:12:16 SessionListener:
sessionCreated('D412A5666498AC7AB6BF399528ECEAE3')
2002-10-09 11:13:16 SessionListener:
sessionCreated('C0BE7ED4A39351037FFD3195F2FF')
2002-10-09 11:14:16 SessionListener:
sessionCreated('3A0636F5D4D9792046D34A93B73C0ACC')
2002-10-09 11:15:16 SessionListener:
sessionCreated('E88FF2298D7B759935645E9C1C42DC12')
2002-10-09 11:16:16 SessionListener:
sessionCreated('F7AC12D14074EA64011E68B6F172D11E')
2002-10-09 11:17:16 SessionListener:
sessionCreated('E92ECABF368D493D153C47C226FF866F')
2002-10-09 11:18:16 SessionListener:
sessionCreated('E9F98E0A3EA854651E1B0D4CCF733FC2')
2002-10-09 11:19:16 SessionListener:
sessionCreated('F801FDE7AEEBEE752557FB3643508588')
2002-10-09 11:20:16 SessionListener:
sessionCreated('97C59E7E75185C5827FA884FA11F61FC')
2002-10-09 11:21:16 SessionListener:
sessionCreated('EF50BAF04FE94D93A24F5CD4520BC613')

So you can see that about once per minute a new session is being created. I
can't see (from the listeners) that any of these sessions are ever
destroyed. Can anyone give me an idea of why this is happening and if it's
part of a normal Tomcat process, or might be the result of something stupid
I might be doing in my servlet.

I'd be happy to provide more info.

Thanks

Cindy

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


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


  




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




Re: Form-based authentication

2002-10-09 Thread Padhu Vinirs

Shouldnt the url format be http://url?user=xxxpassword=xxx ? Also, if 
you do this, you could encrypt the password it before calling 
sendRedirect and decrypt it at the url cgi.

-- padhu


Rajesh Kanderi wrote:

how do you access a webpage which has a form-based
authentication setup using java.

i am able to do it using an href
http://user:password@url...
but the problem is it shows the passowrd. 

I tried to construct the above url in a servlet and
then doing a sendRedirect. but the sendRedirect
doesn't seem to like the format of the
url,specifically having the user:password.

Is there a way to do it using java classes
URLconnection or HttpURLConnection



__
Do you Yahoo!?
Faith Hill - Exclusive Performances, Videos  More
http://faith.yahoo.com

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


  




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




Re: trivial question...

2002-10-07 Thread Padhu Vinirs


Then what is the use of setHeader/addHeader methods ? I dont 
understand how these values can be retrieved ?

-- padhu

Cox, Charlie wrote:

are you printing the headers in your servlet? If so, then no the response
headers will NOT be included in the request to your servlet. 

Charlie

  

-Original Message-
From: Padhu Vinirs [mailto:[EMAIL PROTECTED]]
Sent: Saturday, October 05, 2002 3:18 PM
To: Tomcat Users List
Subject: trivial question...



Tomcat 4.1...

I print all the header values. Then I set a new header value 
( response. 
setHeader ) in the service method. When I  refresh the page 
shouldnt the 
set header value be part of the printed header values ??? I am not 
seeing this value. Arent  header values persisted for the session ?

// print all headers...

// if header not defined, then set new header name/value.

Run this once. Then refresh the page again. Shouldnt the 
name/value be 
part of the output now.

Thanks

-- padhu




--
To unsubscribe, e-mail:   


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

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


  




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




reload objects...

2002-10-07 Thread Padhu Vinirs


When I recompile a servlet with changes, and call the servlet, the new 
object is not loaded unless I restart Tomcat ( 4.1.12 ). Is there a 
config parameter to reload the object everytime the class is changed ?

-- padhu


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




Re: Reload Servlets/Classes

2002-10-07 Thread Padhu Vinirs


I asked the same question few minutes back. One of two ways:

1. set reloadable=true for your web app context element in server.xml. 
Restart tomcat.

2. Copy the ant build.xml in tomcat-docs/appdev/sample into your web 
app, edit the build.xml for ur app and call ant reload everytime.


-- padhu




Chuck Carson wrote:

Sorry if this has been asked before, but when working in a development
environment, how can I reload newly compiled classes w/o restarting the
tomcat server?

Thanks,
CC


--
This message contains confidential information and is intended only for
the individual named. If you are not the named addressee you should not
disseminate, distribute or copy this e-mail. Please notify the sender
immediately by e-mail if you have received this e-mail by mistake and
delete this e-mail from your system. E-mail transmission cannot be
guaranteed to be secure or error-free as information could be
intercepted, corrupted, lost, destroyed, arrive late or incomplete, or
contain viruses. The sender therefore does not accept liability for any
errors or omissions in the contents of this message, which arise as a
result of e-mail transmission. If verification is required please
request a hard-copy version. 

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


  




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




Re: Reload Servlets/Classes

2002-10-07 Thread Padhu Vinirs


Uncomment that line and add reloadable=true. i tested this and it works 
fine.

-- padhu



Chuck Carson wrote:

I am wanting to do this for classes under ROOT/WEB-INF/classes

I noticed that Context path= docBase=ROOT debug=0/ is commented
out, do I uncomment this entry and add the reloadable to this section?

Thanks,
CC

  

-Original Message-
From: Padhu Vinirs [mailto:[EMAIL PROTECTED]] 
Sent: Monday, October 07, 2002 9:40 AM
To: Tomcat Users List
Subject: Re: Reload Servlets/Classes



I asked the same question few minutes back. One of two ways:

1. set reloadable=true for your web app context element in 
server.xml. 
Restart tomcat.

2. Copy the ant build.xml in tomcat-docs/appdev/sample into your web 
app, edit the build.xml for ur app and call ant reload everytime.


-- padhu




Chuck Carson wrote:



Sorry if this has been asked before, but when working in a 
  

development 


environment, how can I reload newly compiled classes w/o 
  

restarting the 


tomcat server?

Thanks,
CC


--
This message contains confidential information and is 
  

intended only for 


the individual named. If you are not the named addressee you 
  

should not 


disseminate, distribute or copy this e-mail. Please notify 
  

the sender 


immediately by e-mail if you have received this e-mail by 
  

mistake and 


delete this e-mail from your system. E-mail transmission cannot be 
guaranteed to be secure or error-free as information could be 
intercepted, corrupted, lost, destroyed, arrive late or 
  

incomplete, or 


contain viruses. The sender therefore does not accept 
  

liability for any 


errors or omissions in the contents of this message, which 
  

arise as a 


result of e-mail transmission. If verification is required please 
request a hard-copy version.

--
To unsubscribe, e-mail:   
  

mailto:tomcat-user- [EMAIL PROTECTED]


For 
  

additional commands, 
e-mail: 


mailto:[EMAIL PROTECTED]


 

  


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






--
This message contains confidential information and is intended only for
the individual named. If you are not the named addressee you should not
disseminate, distribute or copy this e-mail. Please notify the sender
immediately by e-mail if you have received this e-mail by mistake and
delete this e-mail from your system. E-mail transmission cannot be
guaranteed to be secure or error-free as information could be
intercepted, corrupted, lost, destroyed, arrive late or incomplete, or
contain viruses. The sender therefore does not accept liability for any
errors or omissions in the contents of this message, which arise as a
result of e-mail transmission. If verification is required please
request a hard-copy version. 

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


  




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




Re: TOmcat 4.0.1 and JDOM b8

2002-10-07 Thread Padhu Vinirs

JDOM is only a easy-to-use-wrapper for java programmers around standard 
xml parsers. The 'SAXNotRecognizedOption is an object in xerces.jar. 
make sure the xerces.jar that comes with JDOM beta 8 is in your web 
app's classpath. Maybe JDOM beta 8 supports a version of xerces that 
Tomcat is not supporting.

-- padhu



cyril vidal wrote:

Hi,

I'm using Tomcat 4.0.1 and I have such a code snippet, using JDOM beta 8:
import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;
import org.jdom.Element;
import org.jdom.Document;
import org.jdom.output.XMLOutputter;
import org.jdom.input.SAXBuilder;
import org.jdom.JDOMException;


public class AddToOrder extends HttpServlet {

public Document getDocument(File sourceFile, PrintWriter errorsOut) {
try {
  SAXBuilder builder = new SAXBuilder();
Document document = builder.build(sourceFile);
  return document;

} catch (JDOMException e) {
errorsOut.print(Un problème s'est produit pendant la construction du
document : 
   +e.getMessage() + br/  + Un document vide est retourné.);
   return new Document(new Element(blank));
...

I receive systematically the following error message :

root cause

java.lang.NoClassDefFoundError: org/xml/sax/SAXNotRecognizedException
 at AddToOrder.getDocument(AddToOrder.java:15)
 at AddToOrder.doGet(AddToOrder.java:68)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247

Waht's this class? I can't find it into xercesImpl.jar in the lib directory
of Tomcat, so why this method is called and by which component?

Thanks a lot for your response,
Best,
Cyril.







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


  




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




trivial question...

2002-10-05 Thread Padhu Vinirs


Tomcat 4.1...

I print all the header values. Then I set a new header value ( response. 
setHeader ) in the service method. When I  refresh the page shouldnt the 
set header value be part of the printed header values ??? I am not 
seeing this value. Arent  header values persisted for the session ?

// print all headers...

// if header not defined, then set new header name/value.

Run this once. Then refresh the page again. Shouldnt the name/value be 
part of the output now.

Thanks

-- padhu




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




authorization using tomcat...

2002-10-02 Thread Padhu Vinirs


I am testing web resource form-based authentication. I have created a 
dummy jsp page Details.jsp and have created the following nodes in 
web.xml:

security-constraint
web-resource-collection
web-resource-nameSecurePages/web-resource-name
url-patternDetails.jsp/url-pattern
/web-resource-collection
auth-constraint
role-nameEditUsers/role-name
/auth-constraint
user-data-constraint
transport-guaranteeCONFIDENTIAL/transport-guarantee
/user-data-constraint
/security-constraint
login-config
auth-methodFORM/auth-method
form-login-config
form-login-page/login.jsp/form-login-page
form-error-page/error.jsp/form-error-page
/form-login-config
/login-config
security-role
descriptionUsers who can edit/description
role-nameEditUsers/role-name
/security-role


I have created a EditUsers role in tomcat-users.xml.

But when I access Details.jsp, I am redirected to the Netscape search 
page !!! I am able to access the login and error.jsp pages fine.

Any ideas ?




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




Re: authorization using tomcat...

2002-10-02 Thread Padhu Vinirs


I did make that change and uncommented the MemoryRealm in servers.xml, 
restarted the server. Now I dont see any error in the logs files, but I 
get a error

The server encountered an internal error (/ExamBuilder/Details.jsp) that 
prevented it from fulfilling this request.

My servers.xml entry is:

Realm className=org.apache.catalina.realm.MemoryRealm /


Any ideas ?


Thanks


-- padhu





Craig R. McClanahan wrote:

On Wed, 2 Oct 2002, Padhu Vinirs wrote:

  

url-patternDetails.jsp/url-pattern



URL patterns need to start with a / character.  Change this to:

  url-pattern/Details.jsp/url-pattern

and you will have much better luck.

Craig


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


  




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




Re: authorization using tomcat...

2002-10-02 Thread Padhu Vinirs


When I commented out the data constraint CONFIDENTIAL the code worked.

Thanks everybody,

-- padhu



Craig R. McClanahan wrote:

On Wed, 2 Oct 2002, Padhu Vinirs wrote:

  

url-patternDetails.jsp/url-pattern



URL patterns need to start with a / character.  Change this to:

  url-pattern/Details.jsp/url-pattern

and you will have much better luck.

Craig


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


  




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




Re: authorization using tomcat...

2002-10-02 Thread Padhu Vinirs


Now I am able to access the secure page through the login page. But even 
if I close the browser ( whcih i assume will close the  session ), and 
restart it, I am able to access the secure page without going through 
the login page. Is there a place where I need to say that the login info 
should not be a permanent cookie but only session scope ???

Thanks

-- padhu




Rick Fincher wrote:

Hi Padu,

It looks like you have this set up OK.  Do you have a memory realm set up in
conf/web.xml as is required for this setup?

Also, since your transport guarantee is set up as confidential it is going
to use SSL so you either have to use an HTTPS:// url or you have to have
redirection turned on in port 80 (or whatever your HTTP port is) in
conf/web.xml.

If your HTTPS port isn't 443 you'll have to have :8443 (if 8443 is the HTTPS
port) in the url too.

Rick

- Original Message -
From: Padhu Vinirs [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, October 02, 2002 10:19 AM
Subject: authorization using tomcat...


  

I am testing web resource form-based authentication. I have created a
dummy jsp page Details.jsp and have created the following nodes in
web.xml:

security-constraint
web-resource-collection
web-resource-nameSecurePages/web-resource-name
url-patternDetails.jsp/url-pattern
/web-resource-collection
auth-constraint
role-nameEditUsers/role-name
/auth-constraint
user-data-constraint
transport-guaranteeCONFIDENTIAL/transport-guarantee
/user-data-constraint
/security-constraint
login-config
auth-methodFORM/auth-method
form-login-config
form-login-page/login.jsp/form-login-page
form-error-page/error.jsp/form-error-page
/form-login-config
/login-config
security-role
descriptionUsers who can edit/description
role-nameEditUsers/role-name
/security-role


I have created a EditUsers role in tomcat-users.xml.

But when I access Details.jsp, I am redirected to the Netscape search
page !!! I am able to access the login and error.jsp pages fine.

Any ideas ?





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


  




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




beginner question...

2002-09-19 Thread Padhu Vinirs


Tomcat 4.0.4.

I am trying to use the Manager application to deploy and start a 
web-app. Have created the directory under CATALINA_HOME/webapps ( 
c:\tomcat40\webapps\ExamBuilder ). Even have a default web.xml under 
web-inf. Have put a one-liner index.html under my app directory.

I call manager app as follows:

http://localhost:8080/manager/install?path=/myappwar=file:/tomcat40/webapps/ExamBuilder

Install is successful. I can do a list and it shows up.

Now I try:

http://localhost:8080/manager/start?path=/exambuilder

I get the following error:

FAIL - Application at context path /exambuilder could not be started


I checked the logs:

2002-09-19 09:16:43 Manager: start: Starting web application at 
'/exambuilder'
2002-09-19 09:16:43 StandardHost[localhost]: standardHost.start /exambuilder
2002-09-19 09:16:43 StandardContext[/exambuilder]: Error initializing 
resources: Document base 
C:\tomcat40\webapps\tomcat40\webapps\ExamBuilder does not exist or is 
not a readable directory
2002-09-19 09:16:43 StandardContext[/exambuilder]: Context startup 
failed due to previous errors
2002-09-19 09:16:43 StandardContext[/exambuilder]: Exception during 
cleanup after start failed
LifecycleException:  Container StandardContext[/exambuilder] has not 
been started
at org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1147)
..


Why is the server looking at 
C:\tomcat40\webapps\tomcat40\webapps\ExamBuilder and not 
C:\tomcat40\webapps\ExamBuilder ?


Even during installation, I see an exception:

2002-09-19 09:16:26 Manager: install: Installing web application at 
'/exambuilder' from 'file:/tomcat40/webapps/ExamBuilder'
2002-09-19 09:16:26 StandardHost[localhost]: Installing web application 
at context path /exambuilder from URL file:/tomcat40/webapps/ExamBuilder
2002-09-19 09:16:26 StandardContext[/exambuilder]: Error initializing 
resources: Document base 
C:\tomcat40\webapps\tomcat40\webapps\ExamBuilder does not exist or is 
not a readable directory
2002-09-19 09:16:26 StandardContext[/exambuilder]: Context startup 
failed due to previous errors
2002-09-19 09:16:26 StandardContext[/exambuilder]: Exception during 
cleanup after start failed
LifecycleException:  Container StandardContext[/exambuilder] has not 
been started
at org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1147)
at 
org.apache.catalina.core.StandardContext.stop(StandardContext.java:3495)


But if I try,

http://localhost:8080/manager/install?path=/myappwar=file:/ExamBuilder

the install itself fails.



Any ideas appreciated.


Thanks

-- padhu





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




Re: How to block listings on a SPECIFIC directory

2002-09-19 Thread Padhu Vinirs


Shouldnt the code that creates the directories dynamically also make the 
decision of whether the directory is browse-able  or not ? Depending on 
that, then it can copy a default file into each of these directories.

-- padhu



adi wrote:

new directories are being created dynamically and they should be browsable.
all the rest shouldnt be
thats why I can not put index.htm file in every directory
Any suggestions?

Adi

-Original Message-
From: Sexton, George [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 19, 2002 2:21 PM
To: Tomcat Users List
Subject: RE: How to block listings on a SPECIFIC directory


Hmmm... Why don't you put a file like index.html in the directory?
Assuming you have a welcome files list in your web.xml file, this will be
displayed. You can then put up a message, and re-direct to where you want
them to be.

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


-Original Message-
From: adi [mailto:[EMAIL PROTECTED]]
Sent: 19 September, 2002 6:49 AM
To: [EMAIL PROTECTED]
Subject: How to block listings on a SPECIFIC directory


Hello,

I am trying to enable listing on one directory ( and its children)
only.
the listings parameter set to false or true will affect everything.
is it possible in any way to define listings to individual directories in
my webapp?

Adi


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.372 / Virus Database: 207 - Release Date: 6/20/2002


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


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


---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.372 / Virus Database: 207 - Release Date: 6/20/2002

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.372 / Virus Database: 207 - Release Date: 6/20/2002


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


  




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




manual procedure to deploy...

2002-09-19 Thread Padhu Vinirs


What is the manual procedure to deploy web apps in Tomcat ? Also, does 
the server do a  auto reload for manual changes ?

Thanks

-- padhu


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




Re: manual procedure to deploy...

2002-09-19 Thread Padhu Vinirs


Forget this question. The copying manually into webapps works fine. But 
deployment through the manager app is still  a problem.

Thanks

-- padhu



Padhu Vinirs wrote:


 What is the manual procedure to deploy web apps in Tomcat ? Also, does 
 the server do a  auto reload for manual changes ?

 Thanks

 -- padhu


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





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




Re: Tomcat 4.0.4 - Error 500

2002-09-19 Thread Padhu Vinirs


You might have to print the full stack of the NullPointerException to 
find out which class could be creating this exception.

-- padhu




Natarajan, Raj wrote:

I have approx 25 applications deployed on a stand-alone Tomcat 4.0.4
instance. These apps retrieve data from a DB2 database via jsp's using a set
of custom tags. 

I have had three instances so far since the apps went live on 8/28 when all
the apps start returning a 500 Error with this message. 

java.lang.NullPointerException
at java.lang.String.equals(String.java(Compiled Code))

The only log entry I found is in the localhost_log.2002-09-19.txt

StandardWrapperValve[jsp]: Servlet.service() for servlet jsp threw exception
java.lang.NullPointerException
at java.lang.String.equals(String.java(Compiled Code))

Restarting Tomcat fixes the problem.

I would greatly appreciate any pointers that would help me resolve this
problem.

Thanks
Raj


--
This electronic mail and any files transmitted with it are confidential and are 
intended solely for the use of individual or entity to whom they are addressed. If 
you are not the intended recipient or the person responsible for delivering the 
electronic mail to the intended recipient, be advised that you have received this 
electronic mail in error and that any use, dissemination, forwarding, printing, or 
copying of this electronic mail is strictly prohibited. If you have received this 
electronic mail in error, please immediately notify the sender by return mail.

==

  




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




Re: two instances of tomcat (in diferent ports) on the same machine

2002-09-19 Thread Padhu Vinirs


You have to set CATALINA_HOME for each instance. A batch/shell script 
can export/set parent directory ( assuming you are in bin directory ) as 
CATALINA_HOME and then call startup/shutdown.

-- padhu



Christian J. Dechery wrote:

I tried that... but I get some kind of conflict with CATALINA_HOME...
 
.:| Christian J. Dechery
.:| FINEP - Depto. de Sistemas
.:| [EMAIL PROTECTED]
.:| (21) 2555-0332

  

[EMAIL PROTECTED] 09/19 4:52 pm 



Yes, this is absolutely possible.  I have 13 instances (Tomcat 3.1)
running
on a single server at the moment.

You will need a different server.xml for each, a different work
directory
for each, and each must be on its own connector port (whichever
connector
you choose to use).  At least, that is how it is set up on my server.

John

  

-Original Message-
From: Christian J. Dechery [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, September 19, 2002 3:48 PM
To: [EMAIL PROTECTED] 
Subject: two instances of tomcat (in diferent ports) on the 
same machine


How can I achieve this? Is it possible?
 
.:| Christian J. Dechery
.:| FINEP - Depto. de Sistemas
.:| [EMAIL PROTECTED] 
.:| (21) 2555-0332




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