Wolfe Linux. Tomcat and apache.

2003-01-13 Thread Triptpal Singh Lamba
Hi all,
I have been using Tomcat 4.1 ..on win XP and its been working fine. My
dev environment has been eclipse. Now I need to install it for staging
on a server which has multiple problems.
I plan to get apache-tomcat working together as a first subgoal.
Is it possible to install tomcat on a diff server than your web server
apache. Any web links/tutorials are welcome. Any mistakes I should avoid
 
 
  _  

Tript Singh
 
 
 
 



RE: Tomcat Won't start on NT

2003-01-13 Thread Triptpal Singh Lamba

Raj do a ctrl alt delete and tell us if tomcat the process is running or
not. It is possible that you chose run as a system process while
installing on NT.

To do a double check run it as you are and then check
http://localhost:portno/

If u see the page - it means tomcat is running as a background process
and u need to make it not "disappear". If not then tomcat could be
throwing some expceptions which is the 2nd thing we will go for.

Tript Singh


-Original Message-
From: Raj [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 13, 2003 5:51 AM
To: Tomcat Users List
Subject: Tomcat Won't start on NT


Hi,
I installed Tomcat 4.1.17 on Win NT 4. Installation went through fine
without any problems. Previously, I have installed JDK 1.3.0. When I
started installing, it said "Using JDK found in c:\jdk1.3". Then, when I
click on
Start>Program Files>Apache Group>Start Tomcat, nothing happens. The
Start>console
window comes up, stays for a second, and then vanishesIt is working
on a different Win NT machine. What could be the problem?

Thanks and regards,
Raj


--
To unsubscribe, e-mail:

For additional commands, e-mail:







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




Logger Problem

2003-01-06 Thread Triptpal Singh Lamba
I am using a simple logger I made for an application. It is used to debug my server 
side Java classes and JSPs . The idea is that the logger file name is made on the 
current date. 
Now the file name and path are set only once in the Lifecycle of the application(when 
the server is started).

How do I put an if condition such that the Log file path changes every "day". I dont 
want to compare the date in file name existing with current date with every Log 
statement.

Any Ideas?

Thanks
Tript Singh



Problem with Tomcat Mailing List...

2002-12-31 Thread Triptpal Singh Lamba

Hi all.

I am not too sure where to send this...I got a bounce error from this
mailing Lists program, I fwded it to the sys admin of the computer Science
Dept of my University (which is the account I use). The answer from her is
below..

The addresing format they use
>
is not compliant with internet RFCs on mail addressing standards,
therefore the mail software rejects it as probably spam.


To see the mistake, go below and read a copy of the ezmlm warning , the
problem could to be in ezmlm's  addressing format which has an extra ">"
such as  <"Tomcat Users List"<[EMAIL PROTECTED]>>
??

This is what I got


Hi! This is the ezmlm program. I'm managing the
[EMAIL PROTECTED] mailing list.

I'm working for my owner, who can be reached
at [EMAIL PROTECTED]


Messages to you from the tomcat-user mailing list seem to
have been bouncing. I've attached a copy of the first bounce
message I received.

If this message bounces too, I will send you a probe. If the probe bounces,
I will remove your address from the tomcat-user mailing list,
without further notice.


I've kept a list of which messages from the tomcat-user mailing list have
bounced from your address.

Copies of these messages may be in the archive.
To retrieve a set of messages 123-145 (a maximum of 100 per request),
send an empty message to:
   <[EMAIL PROTECTED]>

To receive a subject and author list for the last 100 or so messages,
send an empty message to:
   <[EMAIL PROTECTED]>

Here are the message numbers:

   45658
   46298
   46299

--- Enclosed is a copy of the bounce message I received.

Return-Path: <>
Received: (qmail 21978 invoked for bounce); 20 Dec 2002 02:44:03 -
Date: 20 Dec 2002 02:44:03 -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: failure notice

Hi. This is the qmail-send program at nagoya.betaversion.org.
I'm afraid I wasn't able to deliver your message to the following addresses.
This is a permanent error; I've given up. Sorry it didn't work out.

<[EMAIL PROTECTED]>:
130.245.1.15 failed after I sent the message.
Remote host said: 550 Syntax error in 'To' header: "@" or "." expected after
""Tomcat Users List"": failing address is: <"Tomcat Users
List"<[EMAIL PROTECTED]>>





Any Inputs anyone..? Who is responsible for the list management...

Tript Singh

There is no chance, no fate, no destiny that can circumvent, or hinder, or
control a firm resolve of a determined soul.






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




Reading wanted.

2002-12-03 Thread Triptpal Singh Lamba
Hi all.

Can someone direct me to the following two things please...

1. The most exhaustive online, free resource for Tomcat documentation
2. Whats the best newsletter to keep in touch with the J2EE World updates.
Like we have  IEEE software for SE, Dr Dobb blah blah, but whats  a good one
for j2ee in general. I tried google but there are so many results I dont
know what to do:)

Btw ,bless the soul of the man who suggested Eclipse. It rocks! I used VA fo
Java 3.5 last time I did a project , buthad to make do with Jbuilder till
eclipse came along.  I didnt find a fav. feature I like din editors --the
ctrl + bracket key to manually check brackets match or not and till where.

Thanks
Tript Singh



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




Re: Logging to catalina logger

2002-12-01 Thread Triptpal Singh Lamba
I dont know abt the cataline logger,I am using a small method I wrote and it
is working fine right now.



import java.io.FileWriter;

import java.io.IOException;

import java.util.Calendar;

import java.util.TimeZone;

public class Logger {

static FileWriter out = null;

static String filePath = "";

public boolean pathFound =false;


public void setPath(String path) {

System.out.println("Path for logger set = " + path);

this.pathFound = true ;

filePath = path;

}



synchronized public static void log(String message) {

try {

Calendar cal = Calendar.getInstance(TimeZone.getDefault());

String DATE_FORMAT = "dd_MM_";

java.text.SimpleDateFormat sdf =

new java.text.SimpleDateFormat(DATE_FORMAT);

if (out == null) {

out =

new FileWriter(

filePath

+ "ospLogs"

+ sdf.format(cal.getTime())

+ ".txt",

true);

System.out.println(

"Path we made is = "

+ filePath

+ "ospLogs"

+ sdf.format(cal.getTime())

+ ".txt");

}

out.write(message + "\n");

out.flush();

} catch (IOException e) {

System.out.println(

"Caught IOException in logger = " + e.getMessage());

} catch (Exception e) {

System.out.println(

"Caught General Exception in logger " + e.getMessage());

}

}

}

- Original Message -
From: "Peter Lee" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, December 01, 2002 8:05 PM
Subject: Logging to catalina logger


> How  do I produce log output to the catalina loggerwhen my program wants
to print out
> some exceptions or messages? Any documents on this?
>
> Thanks
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>
>
>



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




Re: help with multilingual JSP sites pls. using a Filter to rewrite the URL ?

2002-11-25 Thread Triptpal Singh Lamba
One way you can do this is using property files.

Prop_ file name _ language code.properties

So for say  abc.jsp , you have abc_en.properties and abc_fr.properties.

At comple time the JSP calls a class you write at server which gives say <%
String languageCode  = ObjectName.getLaguageCode(param 1 ,param 2);  %>

Then all JSP elements are picked from there.
Thanks
Tript Singh

- Original Message -
From: "Stephen Riek" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Sunday, November 24, 2002 6:42 PM
Subject: help with multilingual JSP sites pls. using a Filter to rewrite the
URL ?


>
> I'd like for a request to "/en/Folder/File" to be
> sent to "/Folder/File" but with a parameter 'lang'
>  set to 'en'.
>
> Likewise, a request to "/fr/Folder/File" to be
> sent to "/Folder/File" but with a parameter 'lang'
> set to 'fr'.
>
> Is this possible with Filters?
>
> If not, is there any way to accomplish this within Tomcat
> so that it works for any number of directories and
> subdirectories. The reason I want to do this is to avoid
> copying/pasting an entire sitemap to support a
> second language - I know that some people create a site
> in English then copy/paste the directory tree into another
> directory (eg. '/fr', '/de/', '/cn/') to support a
>  second language but this is not scalable and difficult to
> maintain. How do you circumvent doing such things ?
>
> Other mechanisms I've looked at are Apache rewrite rules
> but they're very complicated and I'd also like to make this
> work independent of Apache, and preferably for all servlet
> engines.
>
> Stephen.
>
>
>
>
>
> -
> With Yahoo! Mail you can get a bigger mailbox -- choose a size that fits
your needs
>



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




SOLVED : Servlet deploy with JSP :Thanks all

2002-11-21 Thread Triptpal Singh Lamba
SOLVED.

Thanks a lot.

To sum it all up :-

1. Have a JSP say index.jsp
2. Compile a decent servlet ,say Router.
3. The form tag shuld have

4. The servlet will be found by server.xml and web.xml

server.xml entry is :-
  

web.xml entry is :-


  Router
  osp.servlet.Router
   1



Router
/Router


5. The way it works is bottom up -- From the URL pattern to name to class
file.

Thats should be sufficient for jsp pages to talk  to the Servlet. In my case
this is a Router servlet which will simply be a router in a MVC kind of
Appln. I am using the
  RequestDispatcher dispatcher = context.getRequestDispatcher("
To: "Triptpal Singh Lamba" <[EMAIL PROTECTED]>
Sent: Thursday, November 21, 2002 3:18 PM
Subject: Re: urgent - servlet not found.


> On Thu, 2002-11-21 at 14:15, Triptpal Singh Lamba wrote:
> >
> > - Original Message -
> > From: "Ben Ricker" <[EMAIL PROTECTED]>
> > To: "Tomcat Users List" <[EMAIL PROTECTED]>
> > Sent: Thursday, November 21, 2002 2:50 PM
> > Subject: Re: urgent - servlet not found.
> > >
> > > 
> > >
> > > You might also need to add a '/' in front of 'servlet', depending on
how
> > > you set up your server.xml.
> > >
> > > The '' directive tells Tomcat what alias to give to the
> > > ''. You could do the full path, but looks better to the
> > > client to use the alias.
> > >
> > > Ben Ricker
> > > Wellinx.com
> > >
> >
> >
> > If i change it to servlet/Router the error is a 404 with
> > description The requested resource (/osp/servlet/Router) is not
available.
> >
> > If i change it to /servlet/Router the error is a 404 with
> > description The requested resource (/servlet/Router) is not available.
> >
> > The server.xml file hasthe entry
> >
> >   
> > >  prefix="osp_" suffix=".txt"
> >timestamp="true"/>
> >
> > Should I try to remove the servlet from the package com.osp.servlet and
try
> > something.
>
> Remove "servlet" from the JSP. Or, you can change the 'path=' in the
> Context statement in server.xml to '/osp/servlet' (one or the other
> might be more convenient, depending on how many JSP use "/osp/servlet"
> What the 'path=' parameter says is that all requests that begin with
> '/osp/*' are to be parsed as requests for servlets. It then goes through
> the web.xml (this is simplified) for the servlet-name and then for the
> class that name is aliased to. Then, it executes it if it can find it.
> If it cannot, it throws the 404.
>
> HTH,
>
> Ben Ricker
>
> > How do I get the index.jsp to submit to the servlet. Its taken too
long
> >
> > Tript
> >
> >
> >
>
>
>
>



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




Re: urgent - servlet not found.

2002-11-21 Thread Triptpal Singh Lamba

- Original Message -
From: "Ben Ricker" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Thursday, November 21, 2002 2:50 PM
Subject: Re: urgent - servlet not found.
>
> 
>
> You might also need to add a '/' in front of 'servlet', depending on how
> you set up your server.xml.
>
> The '' directive tells Tomcat what alias to give to the
> ''. You could do the full path, but looks better to the
> client to use the alias.
>
> Ben Ricker
> Wellinx.com
>


If i change it to servlet/Router the error is a 404 with
description The requested resource (/osp/servlet/Router) is not available.

If i change it to /servlet/Router the error is a 404 with
description The requested resource (/servlet/Router) is not available.

The server.xml file hasthe entry

  
   

Should I try to remove the servlet from the package com.osp.servlet and try
something.
How do I get the index.jsp to submit to the servlet. Its taken too long

Tript



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




urgent - servlet not found.

2002-11-21 Thread Triptpal Singh Lamba
This has taken too long so someone pls see if you can help me.

My form in index.jsp says



If index.jsp can find the servlet ,my job is done.

My web.xml has defined this in WEB-INF

webapps/osp  // context  = osp

in osp I have a WEB-INF which has web.xml with only this entry


  Router
  com.osp.servlet.Router
1


index.jsp is coming up , server.xml has the context entry.

What should the action be changed to ??

Tript Singh

Error is

HTTP Status 404 - /osp/servlet/com.osp.servlet.Router




type Status report

message /osp/servlet/com.osp.servlet.Router

description The requested resource (/osp/servlet/com.osp.servlet.Router) is
not available.





Apache Tomcat/4.1.12





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




Pls ignore prev mail :Re describing problem

2002-11-20 Thread Triptpal Singh Lamba
I referred to
http://www.onjava.com/pub/a/onjava/2001/04/19/tomcat.html


I encountered a problem - I cnat get the login page (index.jsp) in my case
to talk to the servlet  which is com.osp.servlet.Router.java

> Directory structure : osp is the project name.
>
> webapps/osp
>  jsps all here
>  - images folder  shows images in jsp pages ,reference is
> "/projectA/images/imageName.jpg" in jsp.
> -- WEB-INF
> +--- classes
>--- lib
> --- web.xml (attached)
>
>
> Form action is as below in index.jsp and still it dosent reach the
servlet.
>
> 
>
> The error is
> HTTP Status 404 - /osp/servlet/com.osp.servlet.Router
>
> --
--
> 
>
> type Status report
>
> message /osp/servlet/com.osp.servlet.Router
>
> description The requested resource (/osp/servlet/com.osp.servlet.Router)
is
> not available.
>
>
> --
--
> 
>
> Apache Tomcat/4.1.12
>
> I have copied the com folder to  WEB-INF/classes/ so com lies in this
> classes folder
>
> Someone pls tell me this , I have to get this done today...Enough time has
> been spent , but Something small is missing here.
>
> Thanks
> Tript
>
>
> - Original Message -
> From: <[EMAIL PROTECTED]>
> To: "Tomcat Users List" <[EMAIL PROTECTED]>; "Triptpal Singh
> Lamba" <[EMAIL PROTECTED]>
> Sent: Wednesday, November 20, 2002 4:06 PM
> Subject: Re: Servlet deployment.
>
>
> > See the article,"Deploying Web Applications to Tomcat" at
> > http://www.onjava.com/pub/a/onjava/2001/04/19/tomcat.html
> > > Hi all.
> > > I have worked with iPlanet and other servers but havent really
> > > deployed/coded for Tomcat much.
> > >
> > > I want some expert advise on structure of tomcat applications.
> > > I have the current structure :-
> > >
> > > webapps/examples/jsp has default examples.
> > >
> > > I started my project say  projectA like this
> > >
> > > webapps/examples/projectA
> > >
> > >  I want to ideally take it 1 level up to webapps/projectA. This would
> make
> > > me do some context settings in some xml files. Which all and how ?
> > >
> > > The jsp page came up instantly on
> > > http://localhost:8080/examples/ProjectA/index.jsp
> > >
> > > ==
> > >
> > > Now I have written a servlet  Router.java, how do I get the  jsp above
> to
> > > submit to this java program. Where do I put the java program in a
> project
> > > structure in Tomcat and what changes do I make. I tried changing the
> > > web.xml  (url patterm etc) in webapps\examples\WEB-INF\web.xml but I
> didnt
> > > know  how tomcat does this.
> > > So coudl someone tell me where I would get an example of how to
> configure
> > > the xml files to MAP the servlet I write for tomcat.
> > >
> > > Thanks all
> > >
> > > Tript Singh
> > >
> > >
> > >
> > >
> > > --
> > > 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]>




problem with servlet path

2002-11-20 Thread Triptpal Singh Lamba
I referred to the site.
I cant get the servlet.

Directory structure : projectA is the project name.

webapps/projectA
 jsps all here
 - images folder  shows images in jsp pages ,reference is
"/projectA/images/imageName.jpg" in jsp.
-- WEB-INF
+--- classes
   --- lib
--- web.xml (attached)


Form action is as below in index.jsp and still it dosent reach the servlet.



The error is
HTTP Status 404 - /osp/servlet/com.osp.servlet.Router




type Status report

message /osp/servlet/com.osp.servlet.Router

description The requested resource (/osp/servlet/com.osp.servlet.Router) is
not available.





Apache Tomcat/4.1.12

I have copied the com folder to  WEB-INF/classes/ so com lies in this
classes folder

Someone pls tell me this , I have to get this done today...Enough time has
been spent , but Something small is missing here.

Thanks
Tript


- Original Message -
From: <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>; "Triptpal Singh
Lamba" <[EMAIL PROTECTED]>
Sent: Wednesday, November 20, 2002 4:06 PM
Subject: Re: Servlet deployment.


> See the article,"Deploying Web Applications to Tomcat" at
> http://www.onjava.com/pub/a/onjava/2001/04/19/tomcat.html
> > Hi all.
> > I have worked with iPlanet and other servers but havent really
> > deployed/coded for Tomcat much.
> >
> > I want some expert advise on structure of tomcat applications.
> > I have the current structure :-
> >
> > webapps/examples/jsp has default examples.
> >
> > I started my project say  projectA like this
> >
> > webapps/examples/projectA
> >
> >  I want to ideally take it 1 level up to webapps/projectA. This would
make
> > me do some context settings in some xml files. Which all and how ?
> >
> > The jsp page came up instantly on
> > http://localhost:8080/examples/ProjectA/index.jsp
> >
> > ==
> >
> > Now I have written a servlet  Router.java, how do I get the  jsp above
to
> > submit to this java program. Where do I put the java program in a
project
> > structure in Tomcat and what changes do I make. I tried changing the
> > web.xml  (url patterm etc) in webapps\examples\WEB-INF\web.xml but I
didnt
> > know  how tomcat does this.
> > So coudl someone tell me where I would get an example of how to
configure
> > the xml files to MAP the servlet I write for tomcat.
> >
> > Thanks all
> >
> > Tript Singh
> >
> >
> >
> >
> > --
> > 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]>
>
>
>



http://java.sun.com/dtd/web-app_2_3.dtd";>






  Router
  com.osp.servlet.Router
1








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


SOLVING...seems ok so far. Re: Servlet deployment.

2002-11-20 Thread Triptpal Singh Lamba
Thanks.
The link provides exactly what I wanted.

Tript Singh
- Original Message -
From: <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>; "Triptpal Singh
Lamba" <[EMAIL PROTECTED]>
Sent: Wednesday, November 20, 2002 4:06 PM
Subject: Re: Servlet deployment.


> See the article,"Deploying Web Applications to Tomcat" at
> http://www.onjava.com/pub/a/onjava/2001/04/19/tomcat.html
> > Hi all.
> > I have worked with iPlanet and other servers but havent really
> > deployed/coded for Tomcat much.
> >
> > I want some expert advise on structure of tomcat applications.
> > I have the current structure :-
> >
> > webapps/examples/jsp has default examples.
> >
> > I started my project say  projectA like this
> >
> > webapps/examples/projectA
> >
> >  I want to ideally take it 1 level up to webapps/projectA. This would
make
> > me do some context settings in some xml files. Which all and how ?
> >
> > The jsp page came up instantly on
> > http://localhost:8080/examples/ProjectA/index.jsp
> >
> > ==
> >
> > Now I have written a servlet  Router.java, how do I get the  jsp above
to
> > submit to this java program. Where do I put the java program in a
project
> > structure in Tomcat and what changes do I make. I tried changing the
> > web.xml  (url patterm etc) in webapps\examples\WEB-INF\web.xml but I
didnt
> > know  how tomcat does this.
> > So coudl someone tell me where I would get an example of how to
configure
> > the xml files to MAP the servlet I write for tomcat.
> >
> > Thanks all
> >
> > Tript Singh
> >
> >
> >
> >
> > --
> > 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]>




Servlet deployment.

2002-11-20 Thread Triptpal Singh Lamba
Hi all.
I have worked with iPlanet and other servers but havent really
deployed/coded for Tomcat much.

I want some expert advise on structure of tomcat applications.
I have the current structure :-

webapps/examples/jsp has default examples.

I started my project say  projectA like this

webapps/examples/projectA

 I want to ideally take it 1 level up to webapps/projectA. This would  make
me do some context settings in some xml files. Which all and how ?

The jsp page came up instantly on
http://localhost:8080/examples/ProjectA/index.jsp

==

Now I have written a servlet  Router.java, how do I get the  jsp above to
submit to this java program. Where do I put the java program in a project
structure in Tomcat and what changes do I make. I tried changing the
web.xml  (url patterm etc) in webapps\examples\WEB-INF\web.xml but I didnt
know  how tomcat does this.
So coudl someone tell me where I would get an example of how to configure
the xml files to MAP the servlet I write for tomcat.

Thanks all

Tript Singh




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




Re: How to get Tomcat to accept attribute names "lang" and "maxRows"?

2002-11-18 Thread Triptpal Singh Lamba
I guess maxRows may be some class or some definite meaning somewhere.

You can change to diff intutive name I guess ..like maxResultRows etc.


org.idoox.uddi.client.api.v2.request.inquiry
Class MaxRows
java.lang.Object
  |
  +--org.idoox.uddi.client.api.v2.request.inquiry.MaxRows

  All Implemented Interfaces:
  java.io.Serializable





I do know the above conotation though.. for the MaxRows.


Thanks

Tript Singh

- Original Message -
From: "Jim Cobban" <[EMAIL PROTECTED]>
To: "Tomcat User Maillist" <[EMAIL PROTECTED]>
Sent: Monday, November 18, 2002 6:22 PM
Subject: How to get Tomcat to accept attribute names "lang" and "maxRows"?


I have found that Tomcat does not handle the attributes "lang" and "maxRows"
in my custom tags the way it does attributes with otherwise similar names.
With those two attribute names Tomcat complains that it is "unable to find
setter method".  But if I change the attributes to "ling" and "maxRoz"
Tomcat can find my setter methods.  Unfortunately I do not believe that my
customers will find "ling" and "maxRoz" to be intuitive attribute names to
describe the human language of the interface and the maximum number of rows
from the table to display.

Am I just SOL?  Am I forced to use non-intuitive attribute names in order to
comply with some implementation characteristic of Tomcat?  I have searched
the JSP specification from top to bottom.  I cannot find any occurrence of
the word "maxRows" and the only occurrences of the word "lang" is as part of
"java.lang.xxx".  Therefore I do believe that there is any restriction in
the JSP specification that I cannot use these attribute names.

Jim Cobban   [EMAIL PROTECTED]
34 Palomino Dr.
Kanata, ON, CANADA
K2M 1M1
+1-613-592-9438




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




SOLVED Re: Tomcat Startup 2 errors

2002-11-18 Thread Triptpal Singh Lamba
Solved the first problem. The tomcat window was not being seen because it
was being run as a NT service.

A simple re install without the NT option solved the second problem which
was an exception of  address.

Thats it...Pls note I was on  Win XP.

Thanks
Tript Singh

- Original Message -
From: "Triptpal Singh Lamba" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, November 17, 2002 12:58 PM
Subject: Tomcat Startup 2 errors


> 1. I have 3 versions of Tomcat, 2 are "associated" with Jbuilder.
> These 2 versions start off and give me an error described below. The
> point to note is that the command window(dos) in which I  run it stays and
> does not disappear.
>
> 2. Downloaded a version of Tomcat , the  port for which I have chosen as
> 8000. I have tried starting it from startup.bat and catalina.bat run
> options.
>
> In all cases above 1 and 2 , Tomcat is starting off - that is 100% sure.
(I
> can see http://localhost:portno/ page). In case 1 the tomcat server window
> stays on the screen. In case 2 it disappears but I can see it is running
as
> a process after doing CTRL-ALT-DELETE for windows XP.
>
> The exceptions in all cases is similar :-
> Why is this exception coming and how can I remove it.
>
> So my questions are :-
> 1. How do I remove the exception below.
> 2. In CASE 2 above, while running tomcat server ,why does the does window
> not remain on screen and  disappear ( something like "echo on" should make
> it remain,not go as a background process, I have tried catalina.bat start
> also, Funnily the Tomcat servers with JBuilder remain on screen , this is
> imp for jsp debugging later on and System.out.printlns etc . )
>
>
> Thanks
> Tript Singh
>
> I am copying pasting the exception below:-
>
> C:\Tomcat4\Tomcat 4.1\bin>catalina.bat run
> Using CATALINA_BASE:   ..
> Using CATALINA_HOME:   ..
> Using CATALINA_TMPDIR: ..\temp
> Using JAVA_HOME:   c:\j2sdk1.4.1
> Nov 17, 2002 12:44:00 PM org.apache.commons.modeler.Registry loadRegistry
> INFO: Loading registry information
> Nov 17, 2002 12:44:00 PM org.apache.commons.modeler.Registry getRegistry
> INFO: Creating new Registry instance
> Nov 17, 2002 12:44:01 PM org.apache.commons.modeler.Registry getServer
> INFO: Creating MBeanServer
> Nov 17, 2002 12:44:02 PM org.apache.coyote.http11.Http11Protocol init
> SEVERE: Error initializing endpoint
> java.net.BindException: Address already in use: JVM_Bind:8000
> at
>
org.apache.tomcat.util.net.PoolTcpEndpoint.initEndpoint(PoolTcpEndpoint.java
> :268)
> at
> org.apache.coyote.http11.Http11Protocol.init(Http11Protocol.java:150)
> at
>
org.apache.coyote.tomcat4.CoyoteConnector.initialize(CoyoteConnector.java:10
> 02)
> at
>
org.apache.catalina.core.StandardService.initialize(StandardService.java:579
> )
> at
>
org.apache.catalina.core.StandardServer.initialize(StandardServer.java:2245)
> at org.apache.catalina.startup.Catalina.start(Catalina.java:509)
> at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
> at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
> 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:324)
> at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
> Catalina.start: LifecycleException:  Protocol handler initialization
failed:
> java.net.BindException
>  Address already in use: JVM_Bind:8000
> LifecycleException:  Protocol handler initialization failed:
> java.net.BindException: Address alread
>  in use: JVM_Bind:8000
> at
>
org.apache.coyote.tomcat4.CoyoteConnector.initialize(CoyoteConnector.java:10
> 04)
> at
>
org.apache.catalina.core.StandardService.initialize(StandardService.java:579
> )
> at
>
org.apache.catalina.core.StandardServer.initialize(StandardServer.java:2245)
> at org.apache.catalina.startup.Catalina.start(Catalina.java:509)
> at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
> at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
> 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.inv

Tomcat Startup 2 errors

2002-11-17 Thread Triptpal Singh Lamba
1. I have 3 versions of Tomcat, 2 are "associated" with Jbuilder.
These 2 versions start off and give me an error described below. The
point to note is that the command window(dos) in which I  run it stays and
does not disappear.

2. Downloaded a version of Tomcat , the  port for which I have chosen as
8000. I have tried starting it from startup.bat and catalina.bat run
options.

In all cases above 1 and 2 , Tomcat is starting off - that is 100% sure. (I
can see http://localhost:portno/ page). In case 1 the tomcat server window
stays on the screen. In case 2 it disappears but I can see it is running as
a process after doing CTRL-ALT-DELETE for windows XP.

The exceptions in all cases is similar :-
Why is this exception coming and how can I remove it.

So my questions are :-
1. How do I remove the exception below.
2. In CASE 2 above, while running tomcat server ,why does the does window
not remain on screen and  disappear ( something like "echo on" should make
it remain,not go as a background process, I have tried catalina.bat start
also, Funnily the Tomcat servers with JBuilder remain on screen , this is
imp for jsp debugging later on and System.out.printlns etc . )


Thanks
Tript Singh

I am copying pasting the exception below:-

C:\Tomcat4\Tomcat 4.1\bin>catalina.bat run
Using CATALINA_BASE:   ..
Using CATALINA_HOME:   ..
Using CATALINA_TMPDIR: ..\temp
Using JAVA_HOME:   c:\j2sdk1.4.1
Nov 17, 2002 12:44:00 PM org.apache.commons.modeler.Registry loadRegistry
INFO: Loading registry information
Nov 17, 2002 12:44:00 PM org.apache.commons.modeler.Registry getRegistry
INFO: Creating new Registry instance
Nov 17, 2002 12:44:01 PM org.apache.commons.modeler.Registry getServer
INFO: Creating MBeanServer
Nov 17, 2002 12:44:02 PM org.apache.coyote.http11.Http11Protocol init
SEVERE: Error initializing endpoint
java.net.BindException: Address already in use: JVM_Bind:8000
at
org.apache.tomcat.util.net.PoolTcpEndpoint.initEndpoint(PoolTcpEndpoint.java
:268)
at
org.apache.coyote.http11.Http11Protocol.init(Http11Protocol.java:150)
at
org.apache.coyote.tomcat4.CoyoteConnector.initialize(CoyoteConnector.java:10
02)
at
org.apache.catalina.core.StandardService.initialize(StandardService.java:579
)
at
org.apache.catalina.core.StandardServer.initialize(StandardServer.java:2245)
at org.apache.catalina.startup.Catalina.start(Catalina.java:509)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
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:324)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
Catalina.start: LifecycleException:  Protocol handler initialization failed:
java.net.BindException
 Address already in use: JVM_Bind:8000
LifecycleException:  Protocol handler initialization failed:
java.net.BindException: Address alread
 in use: JVM_Bind:8000
at
org.apache.coyote.tomcat4.CoyoteConnector.initialize(CoyoteConnector.java:10
04)
at
org.apache.catalina.core.StandardService.initialize(StandardService.java:579
)
at
org.apache.catalina.core.StandardServer.initialize(StandardServer.java:2245)
at org.apache.catalina.startup.Catalina.start(Catalina.java:509)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
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:324)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
Catalina.stop: LifecycleException:  This server has not yet been started
LifecycleException:  This server has not yet been started
at
org.apache.catalina.core.StandardServer.stop(StandardServer.java:2212)
at org.apache.catalina.startup.Catalina.start(Catalina.java:541)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
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:324)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)






--
To unsubscribe, e-mail: