http://tomcat.apache.org/faq/misc.html#externalJndi

2007-02-21 Thread Marc Farrow

http://tomcat.apache.org/faq/misc.html#externalJndi

I noticed from the above link that you cannot access Tomcat's JNDI provider
outside of Tomcat "at this time".  Is there plans to include it with Tomcat
6?

--
Marc Farrow


Connection Pooling Question

2007-02-19 Thread Marc Farrow

Slightly off topic, but the core of what I want is being done in the source
code of Tomcat. I am trying to use the Apache Commons DBCP classes to create
my own connection pooling factory that I can use within my servlet container
(Tomcat) and also in stand alone programs.  I see how the Datasource that
Tomcat creates when you use its connection pooling is put into a JNDI
context, but I have scoured over the Tomcat source code and I have not been
able to find the code that is actually doing the context bindings and where
the information is being held.  Can someone point me in the right direction
of the source code to review and also any "advanced" JNDI tutorials that
teach you how to bind to a context that can be reused by external resources
(meaning another JVM).

Also, has anyone seen or done this type of solution before?

Thank you,

--
Marc Farrow


Re: Sharing Tomcat DBCP connection

2006-09-14 Thread Marc Farrow

Mikolaj''s response may seem a bit curt, but the point is that one
connection to a database is very limiting and not real practical.

On 9/14/06, Mikolaj Rydzewski <[EMAIL PROTECTED]> wrote:


Foo Shyn wrote:
> Currently i'm using Tomcat 4.1 and my application uses the Tomcat's DBCP
to connect to a Derby database.
>
> However, since the Derby database only allow one application to connect
to it at a time, is it possible that i could configure the Tomcat's DBCP
connection so that other application (not web application) can uses it as
well?
>
> Any ideas and hints are welcomed.
>
Change the database?

--
Mikolaj Rydzewski <[EMAIL PROTECTED]>







--
Marc Farrow


Re: webapp.xml file from conf directory deleted over redeploy

2006-09-12 Thread Marc Farrow

Yes.  The exact same contents that you want to appear in your webapp.xmlfile.



On 9/12/06, Leon Rosenberg <[EMAIL PROTECTED]> wrote:


thank you marc.
so I place it under META-INF and name it context.xml?
The content is the same, right?

I'm using autodeploy, by simply copying the new .WAR file in the
webapps directory (its only for testing though).

thanx
leon

On 9/12/06, Marc Farrow <[EMAIL PROTECTED]> wrote:
> How are you redeploying it?  If you are deploying with a *.war and the
> Tomcat manager application (not sure about "auto deploy" and other
clients),
> then you can place your information in your  context.xml file under your
> /webappname/META-INF/ directory.  Then when the war is deployed, the
> information in the context.xml file is copied into your webapp.xml file
that
> is placed in the conf/Catalina/localhost/ directory.
>
> HTH
>
> On 9/12/06, Leon Rosenberg <[EMAIL PROTECTED]> wrote:
> >
> > Hi,
> >
> > I noticed that my context definition file
> > (conf/Catalina/localhost/webapp.xml) is getting deleted over war file
> > redeploy.
> >
> > Is there a way to prevent tomcat from deleting it?
> >
> > regards
> > Leon
> >
> > -
> > To start a new topic, e-mail: users@tomcat.apache.org
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
> --
> Marc Farrow
>
>

-----
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--
Marc Farrow


Re: webapp.xml file from conf directory deleted over redeploy

2006-09-12 Thread Marc Farrow

How are you redeploying it?  If you are deploying with a *.war and the
Tomcat manager application (not sure about "auto deploy" and other clients),
then you can place your information in your  context.xml file under your
/webappname/META-INF/ directory.  Then when the war is deployed, the
information in the context.xml file is copied into your webapp.xml file that
is placed in the conf/Catalina/localhost/ directory.

HTH

On 9/12/06, Leon Rosenberg <[EMAIL PROTECTED]> wrote:


Hi,

I noticed that my context definition file
(conf/Catalina/localhost/webapp.xml) is getting deleted over war file
redeploy.

Is there a way to prevent tomcat from deleting it?

regards
Leon

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--
Marc Farrow


Re: How to redirect to a jsp

2006-09-12 Thread Marc Farrow

Tim's solution is the easiest, but allow me to explain why your application
is behaving that way.

By specifying the following


  /



You are saying that all requests that come into your application are to be
forwarded to the servlet.  Thus when you redirect to "/jsp/index.jsp" it is
taking back into the servlet.  My guess is that you are trying to force
everyone to the /jsp/index.jsp" page no matter which "url" they use to get
to your application.  I do not know of an easy way to do this.  I like Tim's
solution and hopefully that will fulfill your needs.

HTH


On 9/12/06, Tim Funk <[EMAIL PROTECTED]> wrote:


If I am reading this correctly, an "easier" solution would be to create
an index.jsp at the root level that forwards to "/jsp/index.jsp"

-Tim

Romain Quilici wrote:
> Hi all,
> this question seems simple, but I did not figure out how to answer it.
>
> In my web.xml I have defined a default servlet. So it can handle
> requests that does not match other servlets pattern.
> 
>   DefaultServlet
>   /
>
>
> Then in my DefaultServlet, I want to redirect to a jsp page, so I use
> RequestDispatcher dispatcher =
> getServletContext().getRequestDispatcher("/jsp/index.jsp");
>if(dispatcher != null){
>dispatcher.forward(request,response);
>}
>
> But doing that, I reenter in my default servlet's doGet method.
>
> What I want is rather simple, when a user connect to the site
> http://server/myapp/, then the request is handled by the default
> servlet and the jsp page is displayed


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--
Marc Farrow


Re: Singleton and ServletContext

2006-09-08 Thread Marc Farrow

Would you not accomplish the same thing by placing it in shared/lib instead
of common/lib?  My understanding is that common/lib is also used by Tomcat
engine itself and also all webapps while the shared/lib is just shared among
all webapps?  Am I mistaken?

On 9/8/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:


I'll assume you mean shared between separate web applications, as, within
a single web app. is nothing special.  The key is the classloader.  In
order for the singleton to be a true singleton, (not one fo reach webapp)
it must be loaded rom a common classloader.  So the jar it is loaded from
should probably be in common/lib.  See
http://tomcat.apache.org/tomcat-4.1-doc/class-loader-howto.html for more
on Tomcat classloader hierarchy.



Please respond to "Tomcat Users List" 

To: "Tomcat Users List" 
cc:
Subject:Singleton and ServletContext



Dear All,

Is there anyone can point me to any sample how to use singleton object
across web application in Tomcat ?

--
Regards,
Feris
PT. Putera Handal Indotama
JL. KH. Moh. Mansyur No. 11 Blok B.8-12
Telp. +62-21-631 6688 (Hunting)
Fax. +62-21-6330211
Jakarta (10140) - INDONESIA







--
Marc Farrow


Re: Tool for monitoring Tomcat from the client side

2006-08-30 Thread Marc Farrow

Apache Benchmark will do the same as well.

On 8/30/06, Andrés González <[EMAIL PROTECTED]> wrote:


I'm using JMeter right now... and it's is *very* good. What provides
nagios that can't be done with JMeter?

On 8/30/06, Bruno M Luque <[EMAIL PROTECTED]> wrote:
> I would use Nagios, its worth the effort of dealing with C, you dont
have
> that meny choices!,
>
> cheers
>
> On 8/24/06, Andrés González <[EMAIL PROTECTED]> wrote:
> >
> > Hi.
> >
> > I'm searching a tool similar to nagios wich allows me do "client-side
> > real testing" of my Tomcat webapps. Something that lets me do a HTTP
> > request say every minute and store the result (OK or FAILED) of each
> > request.
> >
> > Nagios seems to be a good choice, but it requires C programming for
the
> > plugins.
> >
> > Any alternatives for java (or groovy)?
> >
> > Thanks.
> >
> > --
> >
> > -=-=-=-=-=-=-=-=-=-=-=-=-
> > Andrés González.
> >
> > -
> > To start a new topic, e-mail: users@tomcat.apache.org
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>


--

-=-=-=-=-=-=-=-=-=-=-=-=-
Andrés González.

-----
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--
Marc Farrow


Re: configuring Tomcat for protocols other than http/s

2006-08-28 Thread Marc Farrow

Instead of goign through the over head of Tomcat, why not write your own
custom port listener and implement whatever protocol you want?  You will
know that the sender has to adhere to that protocol standard and you would
adhere to same protocol as well..  Most protocols are just extensions of
TCPIP.

On 8/28/06, Viraj Turakhia <[EMAIL PROTECTED]> wrote:


Hi all,
I am starting to work with Tomcat's code and have no clue where to start
from.
Any pointers would be very very helpful.

To start with, I would like to know whether Tomcat is configurable to work
with protocols other than http/https?
I want to configure Tomcat in such a way that it gives me RAW data that is
posted on given port.
Please let me know which server element is to be configured (and where..
server.xml?) such that forming request/response from RAW data is possible
for me.
This RAW data is not necessarily a http/https specific data. It could be
specific to any other protocol like ftp://.

Waiting for reply, thanks.

--
The first right of human is the right of EGO.
--
http://www.xperienceexperience.blogspot.com





--
Marc Farrow


Re: javamail + tomcat

2006-08-28 Thread Marc Farrow

Ovi,
 Do you know the email address?  If so, then use JNDI and do a NSLOOKUP for
MX records on the domain name.

for example:

if you want to send mail to [EMAIL PROTECTED], then do a nslookup for MX
records on gmail.com.  From the command prompt it is:

nslookup -type=mx gmail.com

This will return several MX servers.  Loop through those using the lowest
numbered priority first.  You will need to do a search on how to do
nslookups with JNDI.

HTH

On 8/25/06, Ovi Comes <[EMAIL PROTECTED]> wrote:


Thanks Marc but how can I determine a valid MX entry for each email I
send?
I don't think that's viable solution since I don't know the target
subscribers a priori.



-Original Message-----
From: Marc Farrow [mailto:[EMAIL PROTECTED]
Sent: Friday, August 25, 2006 5:01 PM
To: Tomcat Users List
Subject: Re: javamail + tomcat

I am sure you can use a Mail session in Tomcat and set it up the same way,
but I am calling javamail directly.

if I am sending to gmail.com.  I would use this code..

 Properties props = new Properties();
 props.put("mail.smtp.host","gmail-smtp-in.l.google.com");
 props.put("mail.smtp.localhost", "localhost");
 Session s = Session.getInstance(props,null);
 s.setDebug(true);
 MimeMessage message = new MimeMessage(s);
 message.setSubject(getSubject());
 message.setFrom(InternetAddress.parse("[EMAIL PROTECTED]")[0]);
 message.setRecipient(Message.RecipientType.TO,"[EMAIL PROTECTED]");
 message.setText("this is a test message");
 Transport.send(message);



On 8/25/06, Propes, Barry L <[EMAIL PROTECTED]> wrote:
>
> I'll sure take that under advisement.
>
> Tomcat has an additional component for sending email? I don't think I
ever
> knew that. Where's it configured? In the server.xml file?
>
> -Original Message-
> From: Marc Farrow [mailto:[EMAIL PROTECTED]
> Sent: Friday, August 25, 2006 3:52 PM
> To: Tomcat Users List; [EMAIL PROTECTED]
> Subject: Re: javamail + tomcat
>
>
> If you want to send email directly via Tomcat, you can bypass relaying.
> Just set the "mail.smtp.host" attribute to a valid MX entry for the
> receiving domain.
>
>
>
> On 8/25/06, Ovi Comes <[EMAIL PROTECTED]> wrote:
> >
> > That is interesting. The funny thing is that I could send email to any
> > account inbox. That is, running the code standalone. I can't figure
out
> > how
> > Tomcat would possibly alter my email so that it ends up in the spam
box.
> > Plus, the headers are identical!
> >
> >
> >
> > -Original Message-
> > From: Propes, Barry L [mailto:[EMAIL PROTECTED]
> > Sent: Friday, August 25, 2006 4:08 PM
> > To: Tomcat Users List; [EMAIL PROTECTED]
> > Subject: RE: javamail + tomcat
> >
> > most likely you have to get relaying approved.
> >
> > I've had a similar problem and had to jettison the idea of JavaMail
for
> > now,
> > due to the relaying problem.
> >
> > I could send through my desktop and only my email address through my
ISP
> > would receive it, and then only in the Bulk Mail folder!
> >
> > Quite an aggravation, and I never found from anyone anywhere, short of
> > seeing the administrator, how to solve this problem.
> >
> > Problem for me was twofold:
> > 1) how I do get my ISP to let other email addresses approved?
> > 2) getting an email admin here at work to approve this was like
getting
> > Iran
> > to concede on every nuclear point the U.S. or U.N. wants to adopt!
> >
> > -Original Message-
> > From: Ovi Comes [mailto:[EMAIL PROTECTED]
> > Sent: Friday, August 25, 2006 3:04 PM
> > To: users@tomcat.apache.org
> > Subject: javamail + tomcat
> >
> >
> > Hi,
> >
> >
> >
> > I need help with javamail in tomcat. Here is my issue: if send an
email
> to
> > an yahoo account, from my junit class everything is ok. When I run the
> > same
> > code in Tomcat, on the same machine, my email goes to spam/bulk
folder.
> > What
> > is going on?
> >
> >
> >
> > Thanks,
> >
> > Ovi
> >
> >
> > --
> > No virus found in this outgoing message.
> > Checked by AVG Free Edition.
> > Version: 7.1.405 / Virus Database: 268.11.6/427 - Release Date:
> 8/24/2006
> >
> >
> > -
> > To start a new topic, e-mail: users@tomcat.apache.org
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
> > --
>

Re: javamail + tomcat

2006-08-25 Thread Marc Farrow

I am sure you can use a Mail session in Tomcat and set it up the same way,
but I am calling javamail directly.

if I am sending to gmail.com.  I would use this code..

 Properties props = new Properties();
 props.put("mail.smtp.host","gmail-smtp-in.l.google.com");
 props.put("mail.smtp.localhost", "localhost");
 Session s = Session.getInstance(props,null);
 s.setDebug(true);
 MimeMessage message = new MimeMessage(s);
 message.setSubject(getSubject());
 message.setFrom(InternetAddress.parse("[EMAIL PROTECTED]")[0]);
 message.setRecipient(Message.RecipientType.TO,"[EMAIL PROTECTED]");
 message.setText("this is a test message");
 Transport.send(message);



On 8/25/06, Propes, Barry L <[EMAIL PROTECTED]> wrote:


I'll sure take that under advisement.

Tomcat has an additional component for sending email? I don't think I ever
knew that. Where's it configured? In the server.xml file?

-Original Message-
From: Marc Farrow [mailto:[EMAIL PROTECTED]
Sent: Friday, August 25, 2006 3:52 PM
To: Tomcat Users List; [EMAIL PROTECTED]
Subject: Re: javamail + tomcat


If you want to send email directly via Tomcat, you can bypass relaying.
Just set the "mail.smtp.host" attribute to a valid MX entry for the
receiving domain.



On 8/25/06, Ovi Comes <[EMAIL PROTECTED]> wrote:
>
> That is interesting. The funny thing is that I could send email to any
> account inbox. That is, running the code standalone. I can't figure out
> how
> Tomcat would possibly alter my email so that it ends up in the spam box.
> Plus, the headers are identical!
>
>
>
> -Original Message-
> From: Propes, Barry L [mailto:[EMAIL PROTECTED]
> Sent: Friday, August 25, 2006 4:08 PM
> To: Tomcat Users List; [EMAIL PROTECTED]
> Subject: RE: javamail + tomcat
>
> most likely you have to get relaying approved.
>
> I've had a similar problem and had to jettison the idea of JavaMail for
> now,
> due to the relaying problem.
>
> I could send through my desktop and only my email address through my ISP
> would receive it, and then only in the Bulk Mail folder!
>
> Quite an aggravation, and I never found from anyone anywhere, short of
> seeing the administrator, how to solve this problem.
>
> Problem for me was twofold:
> 1) how I do get my ISP to let other email addresses approved?
> 2) getting an email admin here at work to approve this was like getting
> Iran
> to concede on every nuclear point the U.S. or U.N. wants to adopt!
>
> -Original Message-
> From: Ovi Comes [mailto:[EMAIL PROTECTED]
> Sent: Friday, August 25, 2006 3:04 PM
> To: users@tomcat.apache.org
> Subject: javamail + tomcat
>
>
> Hi,
>
>
>
> I need help with javamail in tomcat. Here is my issue: if send an email
to
> an yahoo account, from my junit class everything is ok. When I run the
> same
> code in Tomcat, on the same machine, my email goes to spam/bulk folder.
> What
> is going on?
>
>
>
> Thanks,
>
> Ovi
>
>
> --
> No virus found in this outgoing message.
> Checked by AVG Free Edition.
> Version: 7.1.405 / Virus Database: 268.11.6/427 - Release Date:
8/24/2006
>
>
> -
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
> --
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.1.405 / Virus Database: 268.11.6/427 - Release Date:
8/24/2006
>
>
> --
> No virus found in this outgoing message.
> Checked by AVG Free Edition.
> Version: 7.1.405 / Virus Database: 268.11.6/427 - Release Date:
8/24/2006
>
>
>
> -
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


--
Marc Farrow





--
Marc Farrow


Re: javamail + tomcat

2006-08-25 Thread Marc Farrow

If you want to send email directly via Tomcat, you can bypass relaying.
Just set the "mail.smtp.host" attribute to a valid MX entry for the
receiving domain.



On 8/25/06, Ovi Comes <[EMAIL PROTECTED]> wrote:


That is interesting. The funny thing is that I could send email to any
account inbox. That is, running the code standalone. I can't figure out
how
Tomcat would possibly alter my email so that it ends up in the spam box.
Plus, the headers are identical!



-Original Message-
From: Propes, Barry L [mailto:[EMAIL PROTECTED]
Sent: Friday, August 25, 2006 4:08 PM
To: Tomcat Users List; [EMAIL PROTECTED]
Subject: RE: javamail + tomcat

most likely you have to get relaying approved.

I've had a similar problem and had to jettison the idea of JavaMail for
now,
due to the relaying problem.

I could send through my desktop and only my email address through my ISP
would receive it, and then only in the Bulk Mail folder!

Quite an aggravation, and I never found from anyone anywhere, short of
seeing the administrator, how to solve this problem.

Problem for me was twofold:
1) how I do get my ISP to let other email addresses approved?
2) getting an email admin here at work to approve this was like getting
Iran
to concede on every nuclear point the U.S. or U.N. wants to adopt!

-Original Message-
From: Ovi Comes [mailto:[EMAIL PROTECTED]
Sent: Friday, August 25, 2006 3:04 PM
To: users@tomcat.apache.org
Subject: javamail + tomcat


Hi,



I need help with javamail in tomcat. Here is my issue: if send an email to
an yahoo account, from my junit class everything is ok. When I run the
same
code in Tomcat, on the same machine, my email goes to spam/bulk folder.
What
is going on?



Thanks,

Ovi


--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.405 / Virus Database: 268.11.6/427 - Release Date: 8/24/2006


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.405 / Virus Database: 268.11.6/427 - Release Date: 8/24/2006


--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.405 / Virus Database: 268.11.6/427 - Release Date: 8/24/2006



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--
Marc Farrow


Re: Security constraint/login form

2006-08-18 Thread Marc Farrow

Valid roles are whatever are defined to be valid.  The specific name does
not matter.  But if you are using a Database for validation, then the roles
are pulled from the database column that you have associated as the
"roles".  Depending on your database, they may or may not be case-sensitive
(the values that is).

On 8/18/06, Propes, Barry L <[EMAIL PROTECTED]> wrote:


Looking at the 4.1 doco, it states about the JDBC Realm and user tables
configuration:

"Role name of a valid role associated with this user"


So then I ask, what's a valid role? What are the choices? Is valid ONLY
service or admin?

-Original Message-
From: David Smith [mailto:[EMAIL PROTECTED]
Sent: Friday, August 18, 2006 6:26 AM
To: Tomcat Users List
Subject: Re: Security constraint/login form


Over an hour?  Not even ODBC has that kind of latency.  Could you be
looking at a caching issue?

--David

Propes, Barry L wrote:

>ok, thanks..I think there's a fair amount of latency between my database
query info and what's actually updated in there.
>
>Something I'd changed over an hour ago was still showing the old value,
and could have been causing some of the problems.
>
>
>
>-Original Message-
>From: Marc Farrow [mailto:[EMAIL PROTECTED]
>Sent: Thursday, August 17, 2006 4:03 PM
>To: Tomcat Users List
>Subject: Re: Security constraint/login form
>
>
>The names are irrelevant.  They just have to match between implementation
>and setup.
>
>On 8/17/06, Propes, Barry L <[EMAIL PROTECTED]> wrote:
>
>
>>quick answer is yes to they have to be service or admin or yes to I can
>>declare them anything that matches the column in another DB table I've
>>created or yest to my last question about the values being what I want?
>>
>>-Original Message-
>>From: Marc Farrow [mailto:[EMAIL PROTECTED]
>>Sent: Thursday, August 17, 2006 3:38 PM
>>To: Tomcat Users List
>>Subject: Re: Security constraint/login form
>>
>>
>>Quick answer is yes.
>>
>>On 8/17/06, Propes, Barry L <[EMAIL PROTECTED]> wrote:
>>
>>
>>>I wonder though...do the role_names have to be service or admin or
>>>something like that?
>>>
>>>Can they be anything I declare them to be that matches the  column in
>>>another DB table?
>>>
>>>i.e.
>>>I've got user_name and role_name as columns in the user_roles table.
>>>
>>>Can I make a 3rd table also having a column called role_name, but with
a
>>>value such as RISK, author, legaldept, etc.?
>>>
>>>-Original Message-
>>>From: Marc Farrow [mailto:[EMAIL PROTECTED]
>>>Sent: Thursday, August 17, 2006 2:11 PM
>>>To: Tomcat Users List
>>>Subject: Re: Security constraint/login form
>>>
>>>
>>>Are you talking about the tomcat-users.xml file and the roles defined
in
>>>there?
>>>
>>>The security-contraints are pretty flexible and you can use any number
>>>
>>>
>>of
>>
>>
>>>ways to define your realms.  If you look at the web.xml for the manager
>>>application (that is shipped with Tomcat), you can see how that realm
is
>>>defined and used.  You can even use encrypting on the passwords in that
>>>file.  If you don't mind maintaing that file for roles and users, then
>>>just
>>>modify it to fit your needs and change your security contraint for your
>>>web
>>>application to match those roles.  Below is a quick example.  If you
are
>>>wanting something for flexible, then you can research and use your
>>>favorite
>>>database for authentication or even your favorite LDAP.  Below is a
>>>
>>>
>>quick
>>
>>
>>>example of how to use a user-defined role in the tomcat-users.xml file
>>>
>>>
>>and
>>
>>
>>>how to match it to two different URLS in one web app.
>>>
>>>Please understand, this is just a quick example and I do not dare
>>>
>>>
>>declare
>>
>>
>>>that this will work.  Just a springboard to help you get your feet wet.
>>>
>>>
>>>tomcat-users.xml:
>>>
>>>
>>>   
>>>   
>>>   
>>>  
>>>
>>>
>>>application's web.xml:
>>>
>>>
>>>   
>>>   Restrict to role1 and role2/>
>>>   /welcome.jsp
>>>   
>>>   
>>>  role1
>>>   role2
>>>   
>>>
>>>
>>>
>>>  

Re: Security constraint/login form

2006-08-17 Thread Marc Farrow

The names are irrelevant.  They just have to match between implementation
and setup.

On 8/17/06, Propes, Barry L <[EMAIL PROTECTED]> wrote:


quick answer is yes to they have to be service or admin or yes to I can
declare them anything that matches the column in another DB table I've
created or yest to my last question about the values being what I want?

-Original Message-
From: Marc Farrow [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 17, 2006 3:38 PM
To: Tomcat Users List
Subject: Re: Security constraint/login form


Quick answer is yes.

On 8/17/06, Propes, Barry L <[EMAIL PROTECTED]> wrote:
>
> I wonder though...do the role_names have to be service or admin or
> something like that?
>
> Can they be anything I declare them to be that matches the  column in
> another DB table?
>
> i.e.
> I've got user_name and role_name as columns in the user_roles table.
>
> Can I make a 3rd table also having a column called role_name, but with a
> value such as RISK, author, legaldept, etc.?
>
> -Original Message-
> From: Marc Farrow [mailto:[EMAIL PROTECTED]
> Sent: Thursday, August 17, 2006 2:11 PM
> To: Tomcat Users List
> Subject: Re: Security constraint/login form
>
>
> Are you talking about the tomcat-users.xml file and the roles defined in
> there?
>
> The security-contraints are pretty flexible and you can use any number
of
> ways to define your realms.  If you look at the web.xml for the manager
> application (that is shipped with Tomcat), you can see how that realm is
> defined and used.  You can even use encrypting on the passwords in that
> file.  If you don't mind maintaing that file for roles and users, then
> just
> modify it to fit your needs and change your security contraint for your
> web
> application to match those roles.  Below is a quick example.  If you are
> wanting something for flexible, then you can research and use your
> favorite
> database for authentication or even your favorite LDAP.  Below is a
quick
> example of how to use a user-defined role in the tomcat-users.xml file
and
> how to match it to two different URLS in one web app.
>
> Please understand, this is just a quick example and I do not dare
declare
> that this will work.  Just a springboard to help you get your feet wet.
>
>
> tomcat-users.xml:
>
> 
>
>
>
>   
> 
>
> application's web.xml:
>
> 
>
>Restrict to role1 and role2/>
>/welcome.jsp
>
>
>   role1
>role2
>
> 
>
> 
>
>Restrict to role2 only/>
>/other.jsp
>
>
>   role2
>
> 
>
> 
>   some descr
>   role1
>role2
> 
>
>
> On 8/17/06, Propes, Barry L <[EMAIL PROTECTED]> wrote:
> >
> > to add to my question earlier below, would it be something as simple
as?
> >
> > String juser= (String) request.getAttribute("j_username");
> >
> > Granted I have no idea what the session attribute is under the hood,
> only
> > know that j_username is the input name for the user_name.
> >
> > I was thinking with that info, I could then run a select query to
> extract
> > the role_name from an additional joined table to authenticate a step
> > further. Does what I am explaining make sense? Forgive me if not.
> >
> > When I say additional table, I mean one in addition to the user_name
and
> > user_roles table that Tomcat requires for the form login security
> constraint
> > to work.
> >
> >
> >
> > -Original Message-
> > From: Propes, Barry L
> > Sent: Thursday, August 17, 2006 11:13 AM
> > To: Tomcat Users List
> > Subject: Security constraint/login form
> >
> >
> > I realize that in Tomcat (I'm using 4.1.3 and 4.0.1 by the way -- a
> > version on a prod. server and one ony my desktop) that you can create
> the
> > simple table titled users and configure it in the server.xml file and
> then
> > likewise configure the web.xml file's security constraint properties.
> >
> > My question is, can you add other columns to the table and then do a
> join
> > on another table as to further enhance security?
> >
> > If so, what is involved, and how involved is it?
> >
> > Thanks!
> >
> > Barry
> >
> >
> > -
> > To start a new topic, e-mail: users@tomcat.apache.org
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
> --
> Marc Farrow
>



--
Marc Farrow





--
Marc Farrow


Re: Security constraint/login form

2006-08-17 Thread Marc Farrow

Quick answer is yes.

On 8/17/06, Propes, Barry L <[EMAIL PROTECTED]> wrote:


I wonder though...do the role_names have to be service or admin or
something like that?

Can they be anything I declare them to be that matches the  column in
another DB table?

i.e.
I've got user_name and role_name as columns in the user_roles table.

Can I make a 3rd table also having a column called role_name, but with a
value such as RISK, author, legaldept, etc.?

-Original Message-
From: Marc Farrow [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 17, 2006 2:11 PM
To: Tomcat Users List
Subject: Re: Security constraint/login form


Are you talking about the tomcat-users.xml file and the roles defined in
there?

The security-contraints are pretty flexible and you can use any number of
ways to define your realms.  If you look at the web.xml for the manager
application (that is shipped with Tomcat), you can see how that realm is
defined and used.  You can even use encrypting on the passwords in that
file.  If you don't mind maintaing that file for roles and users, then
just
modify it to fit your needs and change your security contraint for your
web
application to match those roles.  Below is a quick example.  If you are
wanting something for flexible, then you can research and use your
favorite
database for authentication or even your favorite LDAP.  Below is a quick
example of how to use a user-defined role in the tomcat-users.xml file and
how to match it to two different URLS in one web app.

Please understand, this is just a quick example and I do not dare declare
that this will work.  Just a springboard to help you get your feet wet.


tomcat-users.xml:


   
   
   
  


application's web.xml:


   
   Restrict to role1 and role2/>
   /welcome.jsp
   
   
  role1
   role2
   



   
   Restrict to role2 only/>
   /other.jsp
   
   
  role2
   



  some descr
  role1
   role2



On 8/17/06, Propes, Barry L <[EMAIL PROTECTED]> wrote:
>
> to add to my question earlier below, would it be something as simple as?
>
> String juser= (String) request.getAttribute("j_username");
>
> Granted I have no idea what the session attribute is under the hood,
only
> know that j_username is the input name for the user_name.
>
> I was thinking with that info, I could then run a select query to
extract
> the role_name from an additional joined table to authenticate a step
> further. Does what I am explaining make sense? Forgive me if not.
>
> When I say additional table, I mean one in addition to the user_name and
> user_roles table that Tomcat requires for the form login security
constraint
> to work.
>
>
>
> -Original Message-
> From: Propes, Barry L
> Sent: Thursday, August 17, 2006 11:13 AM
> To: Tomcat Users List
> Subject: Security constraint/login form
>
>
> I realize that in Tomcat (I'm using 4.1.3 and 4.0.1 by the way -- a
> version on a prod. server and one ony my desktop) that you can create
the
> simple table titled users and configure it in the server.xml file and
then
> likewise configure the web.xml file's security constraint properties.
>
> My question is, can you add other columns to the table and then do a
join
> on another table as to further enhance security?
>
> If so, what is involved, and how involved is it?
>
> Thanks!
>
> Barry
>
>
> -----
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


--
Marc Farrow





--
Marc Farrow


Re: Security constraint/login form

2006-08-17 Thread Marc Farrow

Are you talking about the tomcat-users.xml file and the roles defined in
there?

The security-contraints are pretty flexible and you can use any number of
ways to define your realms.  If you look at the web.xml for the manager
application (that is shipped with Tomcat), you can see how that realm is
defined and used.  You can even use encrypting on the passwords in that
file.  If you don't mind maintaing that file for roles and users, then just
modify it to fit your needs and change your security contraint for your web
application to match those roles.  Below is a quick example.  If you are
wanting something for flexible, then you can research and use your favorite
database for authentication or even your favorite LDAP.  Below is a quick
example of how to use a user-defined role in the tomcat-users.xml file and
how to match it to two different URLS in one web app.

Please understand, this is just a quick example and I do not dare declare
that this will work.  Just a springboard to help you get your feet wet.


tomcat-users.xml:


   
   
   
  


application's web.xml:


   
   Restrict to role1 and role2/>
   /welcome.jsp
   
   
  role1
   role2
   



   
   Restrict to role2 only/>
   /other.jsp
   
   
  role2
   



  some descr
  role1
   role2



On 8/17/06, Propes, Barry L <[EMAIL PROTECTED]> wrote:


to add to my question earlier below, would it be something as simple as?

String juser= (String) request.getAttribute("j_username");

Granted I have no idea what the session attribute is under the hood, only
know that j_username is the input name for the user_name.

I was thinking with that info, I could then run a select query to extract
the role_name from an additional joined table to authenticate a step
further. Does what I am explaining make sense? Forgive me if not.

When I say additional table, I mean one in addition to the user_name and
user_roles table that Tomcat requires for the form login security constraint
to work.



-Original Message-
From: Propes, Barry L
Sent: Thursday, August 17, 2006 11:13 AM
To: Tomcat Users List
Subject: Security constraint/login form


I realize that in Tomcat (I'm using 4.1.3 and 4.0.1 by the way -- a
version on a prod. server and one ony my desktop) that you can create the
simple table titled users and configure it in the server.xml file and then
likewise configure the web.xml file's security constraint properties.

My question is, can you add other columns to the table and then do a join
on another table as to further enhance security?

If so, what is involved, and how involved is it?

Thanks!

Barry


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--
Marc Farrow


Re: Forwarding during container security

2006-08-14 Thread Marc Farrow

It may be ugly, but this comes to mind.

Map all requests to /admin* to your servlet.

Also setup the /admin* to be constrained.

Someone goes to http://www.yourserver.com/admin.

They must log in.  Once logged in, all requests go to your servlet.

The servlet strips off the URL information and redirects to a page or
whatever you choose for all requests.

So if you wanted an intro page and then they could click a link to go to
their requested page, then you could send all requests to the servlet
(regardless of URL) and then redirect to the page.  Of course you have to be
careful about URI mappings, etc so you don't get yoursefl caught in a loop.
But that is a general idea.


On 8/14/06, Eurig Jones <[EMAIL PROTECTED]> wrote:


That was my guess initially, but there is no way of knowing that the
request the filter is given has been through the security...

Unless I'm wrong about this...?


Marc Farrow wrote:
> My guess is that the easiest thing to do is to create a filter.
>
>
> On 8/14/06, Eurig Jones <[EMAIL PROTECTED]> wrote:
>>
>> Hi, hopefully someone can help me...
>>
>> My Secured area is /admin/* which requires the "administrator" role to
>> view.
>>
>> If someone requests /admin/edit.faces, they are prompted with a login
>> prompt as expected. If they login correctly they'll proceed to
>> /admin/edit.faces
>>
>> What I want to do is forward any request that goes to /admin/*, after
>> having to login, to go to /admin/index.faces and not the page they
>> initially requested.
>>
>> I have looked into extending the JDBCRealm (or JNDI) but I will not be
>> able to control where request/response from there. Can anyone point me
>> in the right direction to what I have to extend (or whatever I have to
>> do) to achieve the above?
>>
>>
>>
>> -
>> To start a new topic, e-mail: users@tomcat.apache.org
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
>

--

Fugro Robertson Limited  Telephone: +44+ (0)1492 581811
Tyn-y-coed Site  Fax: +44+ (0)1492 583416
Llanrhos
Llandudno
North Wales
UK   LL30 1SA

General Email: [EMAIL PROTECTED]

World Wide Website: www.fugro-robertson.com


* This email may contain  confidential and  privileged information *
* intended solely for the individual or organisation to whom it is *
* addressed. If the reader is not the  intended  addressee, or the *
* employee  or agent responsible  to deliver  it to the addressee, *
* you are hereby notified that any  dissemination, distribution or *
* copying is strictly prohibited.  If you have received this email *
* in error, please notify the  sender and either destroy the email *
* or return it to [EMAIL PROTECTED] *
* Please note this email is not intended to create legal relations.*



-----
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--
Marc Farrow


Re: Forwarding during container security

2006-08-14 Thread Marc Farrow

My guess is that the easiest thing to do is to create a filter.


On 8/14/06, Eurig Jones <[EMAIL PROTECTED]> wrote:


Hi, hopefully someone can help me...

My Secured area is /admin/* which requires the "administrator" role to
view.

If someone requests /admin/edit.faces, they are prompted with a login
prompt as expected. If they login correctly they'll proceed to
/admin/edit.faces

What I want to do is forward any request that goes to /admin/*, after
having to login, to go to /admin/index.faces and not the page they
initially requested.

I have looked into extending the JDBCRealm (or JNDI) but I will not be
able to control where request/response from there. Can anyone point me
in the right direction to what I have to extend (or whatever I have to
do) to achieve the above?



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--
Marc Farrow


Re: getting authentication information from apache

2006-08-11 Thread Marc Farrow

Thanks for the tip Pid.  How do you go the other way?  What if I have an
Apache installation on a server and I want to authenticate through Tomcat
and then pass that principal to Apache..  Is this possible?  They are not
connected using a connector.

On 8/11/06, Jason Nesbitt <[EMAIL PROTECTED]> wrote:


wow.  I must have glazed right over that when looking at the
documentation.

Thanks!

On 8/11/06, Pid <[EMAIL PROTECTED]> wrote:
>
> http://tomcat.apache.org/tomcat-5.5-doc/config/ajp.html
>
> set 
>
>
> Jason Nesbitt wrote:
> > I'm using apache as a front end to my tomcat 5.5 server and they are
> > connected through the AJP 1.3 Connector.  The problem I am having is
> that
> > the authentication info doesn't seem like its getting propagated from
> > apache
> > to tomcat.  When I call request.getRemoteUser() it returns null though
I
> > was
> > authenticated through apache.  The weird thing is that we have a
> > tomcat 4.0container that the same apache server directs some requests
> > to and the
> > authentication information is propagated without a problem.  It
however
> is
> > using the older tomcat4.Ajp13Connector though.
> > The following is the Connector element in my tomcat 5.5 server.xmlfile
> >  > protocol="AJP/1.3" />
> >
> > Any hints?
> >
> > Thanks
> >
> > Jason
> >
>
> -----
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>





--
Marc Farrow


Re: Webapp Deploy Problem

2006-07-18 Thread Marc Farrow

Just a thought, but try using HTTP protocol such as:

file://c:/directory/filename.xml


On 7/18/06, Ravi Tharakan <[EMAIL PROTECTED]> wrote:


Hi. I'm having some trouble deploying a webapp I have installed on my
local
hard drive to my Tomcat server. I have an XML configuration file which I
am
using to make the deploy. I put the URL in as the full path to the file on
my hard drive, but when I try to deploy I get the error Encountered
exception java.net.MalformedURLException.

This is a trial run for me to see if I can get my server database working,
so both the database and the webapp to access it are installed on my
computer here. I am using the 5.0.28 version.

Thanks,

-ravi





--
Marc Farrow


OT (Mostly)

2006-07-14 Thread Marc Farrow

I am using JUNIT to test java code.  However, we have a class that pulls the
connection pooling from Tomcat's connection pooling facility.  If I am
running these JUNIT tests outside of the Tomcat container is there a way to
grab a connection pool from a running Tomcat instance?

--
Marc Farrow


Re: war file deployment on openvms

2006-07-14 Thread Marc Farrow

can you post the listing of your war file


jar -tf filename.war




On 7/14/06, [EMAIL PROTECTED] <
[EMAIL PROTECTED]> wrote:



I have developed a web application in Rational
Application developer on
Windows XP.
From this I have created a war file.

I have copied the war to an alpha running openVMS, put it
in the webapps
directory, changed the record attributes as required
(stream_lf), and
started tomcat.


The application has seemed to deploy OK, but when I try
to access it
through IE i get a 502 error. However, I use essentially
the same
address as I use to test locally - obviously the actual
ip address is
different, but the application/servlet name bit is the
same.


While trying to work out what is going wrong, I noticed
that the
servlet I am trying to access, instead of being put at
the bottom of a
directory path that reflects the package name, is simply
being put into
the classes directory, which seems wrong to me.


I intend to try manually creating the directory path and
moving the
servlet there, but in the meantime, if anyone has
encountered this sort of problem before, I would
appreciate any light you can shed on the cause/solution.


I checked the conents of the war file and the servlet
does have the
correct path.








CSWS tomcat v 4.1.24 java 1.3.1



---

For more information on Standard Life Healthcare, visit our website
www.standardlifehealthcare.co.uk

Standard Life Healthcare, registered in England (02123483), Marshall
Point, 4 Richmond Gardens, Bournemouth BH1 1JD, is authorised and regulated
by the Financial Services Authority. 01202 292464. Calls may be
recorded/monitored. This confidential e-mail is for the addressee only. If
received in error, do not retain/copy/disclose it without our consent and
please return it to us. We virus scan and monitor all e-mails but are not
responsible for any damage caused by a virus or alteration by a third party
after it is sent.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--
Marc Farrow


Re: Parameter List

2006-06-30 Thread Marc Farrow

http://tomcat.apache.org/tomcat-5.5-doc/config/server.html
http://tomcat.apache.org/tomcat-5.0-doc/config/server.html
http://tomcat.apache.org/tomcat-4.1-doc/config/server.html


Just choose the link that matches your version of Tomcat.

HTH


On 6/30/06, Asad Habib <[EMAIL PROTECTED]> wrote:


Anyone know where I can find a complete list of all the possible
parameters allowed for the server.xml ResourceParams element? I could
not find this on the ASF site and Google did not yield any comprehensive
results as well. Thanks.

- Asad

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--
Marc Farrow


Re: sort an array

2006-06-28 Thread Marc Farrow

Password,
 You need to move this line of questioning to a Java Forum.  The questions
you are asking has nothing to do with Tomcat running/setup.


On 6/28/06, password password <[EMAIL PROTECTED]> wrote:


Hi I have created this class (ExampleClass as Ségio told me) but and I
don't know how i can see the content the List with the position. I have put
this but it return an error

  for (int i = 0; i < listToSort.size(); i++) {
  System.out.println(listToSort.get(i));
}



Sérgio Costa <[EMAIL PROTECTED]> escribió:
This first class should be you domain object.
You should add all related data here.

public class ExampleClass implements Comparable {
public String astrName;

/*
* All other members you need here
*
*/

public ExampleClass(String astrName) {
this.astrName = astrName;
}

public int compareTo(Object arg0) {
ExampleClass obj=(ExampleClass) arg0;
return astrName.compareTo(obj.astrName);
}

}

After you have this done, sorting a list of object is as simple as:
public class ExampleMain {
public static void main(String[] args) {
List listToSort= new ArrayList();
listToSort.add(new ExampleClass("here's one"));
listToSort.add(new ExampleClass("here's another"));
listToSort.add(new ExampleClass("just one more"));

Collections.sort(listToSort);
//the list is sorted
}

}

Notice the type checking to make sure you don't put anything other than
your
class on your list.

If you're not using Java 5.0, remove the from the list
declaration.


On 6/27/06, password password wrote:
>
> Please, can you put an example? I don't know how put the compareTo
Method
> in my servlet.
>
> Sérgio Costa escribió: Put them in a list and
> Collections.sort() them.
>
> All you'll need to do is create a Class with all those fields
implementing
> Comparable, and implement the compareTo Method.
>
> hope it helps
> SC
>
> On 6/26/06, password password wrote:
> >
> > Hi,
> >
> > I have a servlet and in this servlet I have a problem when sort an
> > array. If in Tomcat 5.5.4 (on windows) the order is very fast (about 2
> > seconds) , but in tomcat 5.5.9 is slower (about 25 seconds). I don't
> Know
> > why the same code has diferent time.
> > The code is the next. The array has 7000 elements.
> >
> >
>
//
> > java.util.Date datTiempoInicio, datTiempoFin;
> > java.util.Calendar calTiempoInicio = Calendar.getInstance();
> > java.util.Calendar calTiempoFin = Calendar.getInstance();
> > long intTiempoUtilizado;
> > datTiempoInicio = new java.util.Date();
> > calTiempoInicio.setTime(datTiempoInicio );
> >
> > if (astrName.length > 1) {
> > //ordenacion de los arrays: astrName[intFilaArray]
> > int i, pasadas;
> > String strTemp;
> > double dblIntensityTemp;
> > double dblBackgroundTemp;
> > int intComparacion;
> > for (pasadas = 1; pasadas < astrName.length; pasadas++) {
> > for (i = 0; i> intComparacion = astrName[i].compareTo(astrName[i+1]);
> > if (intComparacion > 0) {
> > strTemp = astrName[i];
> > astrName[i] = astrName[i + 1];
> > astrName[i + 1] = strTemp;
> > dblIntensityTemp = adblIntensity1[i];
> > adblIntensity1[i] = adblIntensity1[i + 1];
> > adblIntensity1[i + 1] = dblIntensityTemp;
> > dblIntensityTemp = adblIntensity2[i];
> > adblIntensity2[i] = adblIntensity2[i + 1];
> > adblIntensity2[i + 1] = dblIntensityTemp;
> > dblBackgroundTemp = adblBackground1[i];
> > adblBackground1[i] = adblBackground1[i + 1];
> > adblBackground1[i + 1] = dblBackgroundTemp;
> > dblBackgroundTemp = adblBackground2[i];
> > adblBackground2[i] = adblBackground2[i + 1];
> > adblBackground2[i + 1] = dblBackgroundTemp;
> > } // end if (intComparacion > 0)
> > } //end for i
> > } //end for pasadas
> >
> > } // end if (astrName.length > 1)
> >
> > datTiempoFin = new java.util.Date();
> > calTiempoFin.setTime(datTiempoFin );
> >
> > intTiempoUtilizado = Math.abs( (calTiempoFin.getTimeInMillis() -
> > calTiempoInicio.getTimeInMillis()) / (1000) );
> > System.out.println("(ProcessFile) Time = " + intTiempoUtilizado );
> >
> >
>

> >
> >
> > Can You help me?
> >
> >
> >
> > -
> >
> > LLama Gratis a cualquier PC del Mundo.
> > Llamadas a fijos y móviles desde 1 céntimo por minuto.
> > http://es.voice.yahoo.com
> >
>
>
>
> -
>
> LLama Gratis a cualquier PC del Mundo.
> Llamadas a fijos y móviles desde 1 céntimo por minuto.
> http://es.voice.yahoo.com
>



-

LLama Gratis a cualquier PC del Mundo.
Llamadas a fijos y móviles desde 1 céntimo por minuto.
http://es.voice.yahoo.com





--
Marc Farrow


Re: sort an array

2006-06-27 Thread Marc Farrow

This is just basic Java coding.  Search on google for an example. I am sure
there are tons out there.

On 6/27/06, password password <[EMAIL PROTECTED]> wrote:


>Yes, you need to create an array of a data bean/value bean/private class
>(whatever buzz word you want to give) and then sort that array. So you
>would have an array of arrays and then sort the array of arrays.

Can you put an example of this (array of arrays)? How can I do the order
with this method?




-

LLama Gratis a cualquier PC del Mundo.
Llamadas a fijos y móviles desde 1 céntimo por minuto.
http://es.voice.yahoo.com





--
Marc Farrow


Re: sort an array

2006-06-27 Thread Marc Farrow

Yes, you need to create an array of a data bean/value bean/private class
(whatever buzz word you want to give) and then sort that array.  So you
would have an array of arrays and then sort the array of arrays.

On 6/27/06, Robert Harper <[EMAIL PROTECTED]> wrote:


If you need to keep one array in a certain order, why not add the
references
to another sorted array. Then you could have a primary array and a sorted
array. They would both hold references to the same objects. The down side
is
that when you remove an element from one array, you will have to also
remove
it from the other array.

Robert S. Harper
Information Access Technology, Inc.

-Original Message-
From: password password [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 27, 2006 8:57 AM
To: Tomcat Users List; [EMAIL PROTECTED]
Subject: Re: sort an array

Hi,

Arrays.sort(astrName);



I can not use the sort method because I have the arrays have an relation.
I mean, the first element of astrName have relation with first element of
adblBackground1, adblBackground2, adblItensity1 and
adblItensity2.
Then I can sort each array independently, if I sort an element of astrName
I have to sort the rest of arrays.
Can you tell me a way to do this?
Thanks.




-

LLama Gratis a cualquier PC del Mundo.
Llamadas a fijos y móviles desde 1 céntimo por minuto.
http://es.voice.yahoo.com



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--
Marc Farrow


Re: sort an array

2006-06-27 Thread Marc Farrow

Search on Interface of Collections (specifically the comparable method).
This should allow you to write your own way to compare objects and thus the
Java engine will sort based upon your comparable method.

On 6/27/06, password password <[EMAIL PROTECTED]> wrote:


Hi,

Arrays.sort(astrName);



I can not use the sort method because I have the arrays have an relation.
I mean, the first element of astrName have relation with first element of
adblBackground1, adblBackground2, adblItensity1 and
adblItensity2.
Then I can sort each array independently, if I sort an element of astrName
I have to sort the rest of arrays.
Can you tell me a way to do this?
Thanks.




-

LLama Gratis a cualquier PC del Mundo.
Llamadas a fijos y móviles desde 1 céntimo por minuto.
http://es.voice.yahoo.com





--
Marc Farrow


Re: servlet as an index page ?

2006-06-19 Thread Marc Farrow

Change your ROOT index.jsp to redirect to the servlet.  Or you can map "ALL"
ROOT requests to go to the servlet.  Not sure the latter is something you
want.

On 6/19/06, Leonel <[EMAIL PROTECTED]> wrote:


Hello

I'm trying  to make a  Servlet  act as a Index page

when  I request the url http://server/ how  can I  tell tomcat
to execute  the servlet I want
it works when  I request   http://server/servlet but I don't want
to issue  the  servlet name on the url

thanks


--
Leonel

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--
Marc Farrow


Re: Tomcat not setting session cookies ??

2006-06-16 Thread Marc Farrow

This seems like a browser (client) problem to me.  Tomcat doesn't have
permission to write the cookie so it is using the old standby of appending
the JsessionID to the URL.  Check to make sure your client's cache isn't
full or you haven't maxed out the number of cookies for the browser.

On 6/16/06, Mon Cab <[EMAIL PROTECTED]> wrote:


Hi


All of a sudden tomcat has stopped settign session cookies.  I have
been developing on my local machine for approx 1yr. Now, When I goto my
webapps home page.  (http:/127.0.0.1:8080/webapp), tomcat is rewriting
the URL as

http://127.0.0.1:8080/webapp/Welcome.do;jsessionid=DAF0604E76E234C157A9BFDF53FD2617
indicating that it is not setting a session cookie.  When I check the
session cookie folder C:\Documents and Settings\user\Cookies, there is
no jsessionid cookie.

When I set a cookie from within webapp, the cookie is set as normal and
stored in the cookie folder C:\Documents and Settings\user\Cookies, and
is retrieved by my web application.

Why is Tomcat not setting a session cookie?

I configured my browser to accept all session cookies.  I am using
Windows XP Pro, with IE6.  j2sdk1.4.2_08, Tomcat 5.0.28.

This has been working as it is supposed to for 1 year.

Can anyone explain what is going on?





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

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

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--
Marc Farrow


Re: web-jsptaglibrary_1_1.dtd

2006-06-14 Thread Marc Farrow

If connection is timing out, then I would suggest this as a firewall issue
and you are not allowed to get to the HTTP address.  As Rick suggested, just
remove the DOCTYPE tag all together unless you need to validate the XML
file.

On 6/14/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]>
wrote:


The connection is timing out
.Severity   Description ResourceIn Folder   LocationCreation Time
Id
1 The file cannot be validated as there was a connection problem.
struts-html.tld   SplitTransaction/WebContent/WEB-INF line 9  June 14,
2006 3:37:49 PM   249


Carrie Latimer
Florida's Turnpike Enterprise
Tolls Data Center
Main 561.488.5361
SC 247.5361
Fax 561.470.6615
Mobile: 561.239.6189
Nextel: 158*763*109
[EMAIL PROTECTED]




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--
Marc Farrow


[SEMI - OT]

2006-06-14 Thread Marc Farrow

We have an internal DNS of "somename".  This DNS points to a specific
machine with IIS running.  When the user goes to http://somename the default
web page pulls up which redirects the user to http://machinename/somename.
Our current setup is Apache 2 with Tomcat 5.5.9 using MOD_JK2 on OpenVMS.
Is there a way to have a virtual IP/DNS entry/or whatever that will allow us
to have the user go to http://somename and have it redirect to an HTML page
defined within Apache where somename is an alias defined within apache and
the DNS of machinename points to that Apache server.

--
Marc Farrow


Re: web-jsptaglibrary_1_1.dtd

2006-06-14 Thread Marc Farrow

I think it needs a protocol.  try:





On 6/14/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]>
wrote:


I could not find this file on my computer.  I did a cut and paste from the
web of this file.  I updated my struts-bean.tld file to use it locally and
I get an error "Severity  Description ResourceIn Folder   Location
Creation Time Id
1 The file cannot be validated as the XML Schema
"c:\TEMP\web-jsptaglibrary_1_1.dtd (The system cannot find the file
specified)" that is specified as describing the syntax of the file cannot
be located. struts-html.tld   SplitTransaction/WebContent/WEB-INF line 2
June 14, 2006 9:10:13 "

It is referred to in the struts-bean.tld as well as struts-html.tld and it
really exists there...  What am I doing wrong?


I downloaded it and renamed it(the download indicated it was an html
file).





-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--
Marc Farrow


Re: getContext(uri) returns null

2006-06-14 Thread Marc Farrow

you need to have "crosscontext" set to true in your configuration file.

On 6/14/06, Laurent SAUVAGE <[EMAIL PROTECTED]> wrote:


Hi,



I am using Tomcat 5.5.16, and a getServletContext().getContext('toto')
call
returns null.

'toto' is a web app deployed on same instance of tomcat where there is
another wep app containing the servlet doing the call.

What should I do for this call returns the correct ServletContext ?



Regards,



Laurent.






--
Marc Farrow


Re: I'm a Newbie - problem with recognition of html tags

2006-06-13 Thread Marc Farrow

Actually, it was I who suggested it.  Replace:

<%@ taglib URI="WEB-INF/struts-bean" prefix="bean">
<%@ taglib URI="WEB-INF/struts-html" prefix="bean">

with

<%@ taglib URI="WEB-INF/struts-bean.tld" prefix="bean">
<%@ taglib URI="WEB-INF/struts-html.tld" prefix="bean">


Also,
  Make sure the TLD file is in your WEB-INF directory of your application.
Or at least make sure the TLD files  are located in the same place as
referenced by your URI tag.

On 6/13/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]>
wrote:


David, I did not understand what you meant by "Try placing the file
extension on your URI of your taglib tag."


Carrie Latimer
Florida's Turnpike Enterprise
Tolls Data Center
Main 561.488.5361
SC 247.5361
Fax 561.470.6615
Mobile: 561.239.6189
Nextel: 158*763*109
[EMAIL PROTECTED]




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--
Marc Farrow


Re: I'm a Newbie - problem with recognition of html tags

2006-06-13 Thread Marc Farrow

David,
 Those tags are from the prefix of using teh "struts-bean" and
"struts-html" tag libraries.  I think you just do not know (or have not been
exposed) to tag libraries before.

Carrie,
  Try placing the file extension on your URI of your taglib tag.

On 6/13/06, David Kerber <[EMAIL PROTECTED]> wrote:


[EMAIL PROTECTED] wrote:

>When I compile my jsp and java files, I get 9 warnings from the jsp file.
>It appears not to recognize the html tags ie unknown tag (html:cancel).
>What have I done wrong?  Here is the login.jsp file.
>
><%@ taglib uri="/WEB-INF/struts-bean" prefix="bean" %>
><%@ taglib uri="/WEB-INF/struts-html" prefix="html" %>
>
>
>
>
>
>
>
>
>
Where are you coming up with these html tags?  I've never seen tags that
start with ', , etc.


>
>
>
>
>
>
>
>
>
>
>  
>
>
>  Please Enter your Login
>
>  
>
>  
>
>Name
>
>  
>
>
>  
>
>  
>  
>
>Password
>
>
>  />
>
>  
>  
>
>  Submit
>
>
>  Cancel
>
>  
>
>
>
>
>
>
>Carrie Latimer
>Florida's Turnpike Enterprise
>Tolls Data Center
>Main 561.488.5361
>SC 247.5361
>Fax 561.470.6615
>Mobile: 561.239.6189
>Nextel: 158*763*109
>[EMAIL PROTECTED]
>
>
>
>
>-
>To start a new topic, e-mail: users@tomcat.apache.org
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>
>



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--
Marc Farrow


Re: Restricting access to localhost for an HTTP connector - Email has different SMTP TO: and MIME TO: fields in the email addresses

2006-06-12 Thread Marc Farrow

I think the address tag will accept a regular expression.  So you could put
a negative 127.0.01 address entry in there.  I am not good at regular
expressions so google them.

On 6/12/06, Mark Claassen <[EMAIL PROTECTED]> wrote:


Thanks for all your help and I have gotten it to work.  It seems to be,
however, dependant on the name it is being access by.  I was hoping that I
could just put 127.0.0.1 in there and then it would only accept
connections
from the local machine.  It turns out that doing this only accepts
connections that come in with this name.

To clarify what I mean, here is an example:
Say Tomcat is on a machine called TestMachine.
If I put "127.0.0.1" in the address field, it accepts connections of the
form "http: //127.0.0.1/..." only
It does not accept connections from "http: //TestMachine/...", even though
the server is this same machine.
I was hoping that it would accept all connections from the local machine,
regardless of what the connection was called.

Is there a way to do this?  Is this be design?  Can IP spoofing get around
this protection?

Mark

-Original Message-
From: Leo Donahue - PLANDEVX [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 08, 2006 2:13 PM
To: Tomcat Users List
Subject: RE: [SPAM:] - RE: Restricting access to localhost for an HTTP
connector - Email has different SMTP TO: and MIME TO: fields in the email
addresses

In your server.xml you will add an address element and specify it as:
127.0.0.1

   
   


Leo



From: Mark Claassen [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 08, 2006 10:51 AM
To: 'Tomcat Users List'
Subject: [SPAM:] - RE: Restricting access to localhost for an HTTP
connector
- Email has different SMTP TO: and MIME TO: fields in the email addresses


Thanks.  I thought I heard that it was possible though the address, but
was not sure.  I read this in the docs, but I guess I didn't / don't
understand the short explanation of "address".




From: Filip Hanik - Dev Lists [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 08, 2006 1:24 PM
To: Tomcat Users List
Subject: Re: Restricting access to localhost for an HTTP connector


yes, you can bind the connector the 127.0.0.1, meaning it will only
listen on that address
use the "address" attribute in the connector
http://tomcat.apache.org/tomcat-5.5-doc/config/http.html


Mark Claassen wrote:

   Is there to configure an HTTP Connector to only allow
connections from
   localhost?  We have a server that has an HTTPS port that handles
all public
   access.  However, we would like to leave a non SSL port open for
a
   monitoring program we have running on the same machine.  We
would like to
   not allow anyone else to be able to access the non-SSL port.

   I know that the apache webserver has mechanism to do this, but I
was
   wondering if a standalone tomcat could also do what we need.

   Thanks,
   Mark




-
   To start a new topic, e-mail: users@tomcat.apache.org
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]






--


Filip Hanik



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--
Marc Farrow


Re: Deploying application containing applet embedded

2006-06-11 Thread Marc Farrow

Which version of tomcat are you using?  You need to add a context tag either
in the in the server.xml (for Tomcat 4.X) or place a yourappname.xml file
with the context tag in your $tomcat_home/catalina/localhost folder (if you
haven't changed your engine/host names).

check out:

http://tomcat.apache.org/tomcat-5.5-doc/deployer-howto.html



On 6/11/06, keyur sheth <[EMAIL PROTECTED]> wrote:


Hi everybody,

I am trying to deploy an application inside the tomcat
webapps folder. But the problem is that when I put the necessary folder like
.jar file in lib folder, class files in classes folder and restart the
tomcat I don't see the application listed or deployed inside the tomcat.

Can anybody tell me what major changes should  I make so
that it is possible to run applet and deploy the application successfully.

Keyur



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





--
Marc Farrow


Re: mod_jk - querystring

2006-06-09 Thread Marc Farrow

In my experience in the past, 3200 chars was a more than I could ever get a
successful get method.  It would always truncate the query string.  How are
are you submitting the data?  Can you change it to use a form/post
submission?

On 6/9/06, Arnar Gestsson <[EMAIL PROTECTED]> wrote:


Hi,

I have a setup of Apache2.0.54, mod_jk1.2.15 and tomcat 4.1.31 and I'm
requesting page with a long querystring, as soon as it becomes longer
than 3200chars the application seems to break.  I've somewhere seen that
querystring can be upto 8K  So I'm wondering if mod_jk has further
limits. I'm looking for causes in the application but have not been
successful finding bug so I wonder.

TIA

Arnar Gestsson

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--
Marc Farrow


Re: Tomcat 5.5.17 - undeploy fails for app containing log4j.properties

2006-06-09 Thread Marc Farrow

What platform are you on?  I do know that the manager app will say it
"undeployed" the application even if it does not have permission to delete
all the files.  Then when you try to deploy/undeploy again it will fail.  If
the log4j file is the only file not being deleted, then start with
permissions on this file.

On 6/9/06, Hawkes, Rycharde (HP Labs) <[EMAIL PROTECTED]> wrote:


I have a web-app that uses log4j-1.2.13.  I specify my own
log4j.properties file which is contained in a jar file in WEB-INF/lib.

Deployment is fine.  When I try to undeploy everything seems to work,
and the manager confirms this, however one file remains - the jar file
containing the log4j.properties file!  Any further attempts to undeploy
or deploy are unsuccessful and the server has to be stopped and the
remaining file (and folder structure deleted).

If I remove this file from the jar prior to the initial deployment then
undeploy works fine.

Anyone else seen this/is this a known problem?

Regards,

Rych






--
Marc Farrow


Re: Configure Resource in context.xml does not work as expected

2006-06-08 Thread Marc Farrow

The big question is how you are deploying it.

On 6/8/06, Timm Frenzel <[EMAIL PROTECTED]> wrote:


Hello,

I want to configure a JDBC-Resource within the Context of my web-app. I
placed a -entry and a -entry as child-elements
of  in the META-INF/contxt.xml-file. When I deployed my app
(via a file-URL) it gets configured accordingly at first, but the
resulting xml-file in conf\Catalina\localhost for the web-app does not
contain any child-elements within the -Tag any more. So when I
need to restart Tomcat my web-app is not configured with the Resource
anymore. I also tried to use the override-Attribute, but this does not
do any difference. I cannot place the Resource in the server.xml since I
have no access to it. So my question is: How can I configure a Resource
for a single web-app only without using server.xml ? I'm using Tomcat
5.0.28.

Thanks
Timm



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--
Marc Farrow


Re: NetBeans 5.0 and Tomcat 5.5.16 ... Please Help (Problem after migrating to tomcat 5.5.16 from tomcat 5.0.28)

2006-06-08 Thread Marc Farrow

Couple of things.

First, I have the JNDI working in Tomcat 5.5.9 without the  tag
in my web.xml.

Secondly, can you describe more specifically where you are having the
problem.  Is it with trying to the the JNDI reference or when you actually
try to use the reference or actually trying to use the Connection object
return?  Posting the stack trace might help, if the problem is in Java code.


On 6/8/06, Vijaya <[EMAIL PROTECTED]> wrote:


My web.xml is



.
http://java.sun.com/xml/ns/j2ee";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd";
version="2.4">
   
   
   30
   
   

   
  DB Connection
  jdbc/AYS
  javax.sql.DataSource
  Container
   
   

 action
 
org.apache.struts.action.ActionServlet
 
 
config
/WEB-INF/struts-config.xml
 
 
   application
   ApplicationResources
 
 1
   

   
action
*.do
   

   
login.jsp
   

  
   
  /WEB-INF/struts-html.tld
  /WEB-INF/struts-html.tld
   
   
  /WEB-INF/struts-logic.tld
  /WEB-INF/struts-logic.tld
   
   
  /WEB-INF/struts-bean.tld
  /WEB-INF/struts-bean.tld
   
  
/WEB-INF/struts-menu
/WEB-INF/struts-menu.tld
  




server.xml is

...
...


   
   
   

.
.

Regards,
Vijaya

-Original Message-
From: Marc Farrow [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 07, 2006 6:11 PM
To: Tomcat Users List
Subject: Re: NetBeans 5.0 and Tomcat 5.5.16 ... Please Help (Problem
after migrating to tomcat 5.5.16 from tomcat 5.0.28)

It might be helpful to post your web.xml and context.xml (appname.xml or
the
server.xml if your context tag is still in there).



On 6/7/06, Vijaya <[EMAIL PROTECTED]> wrote:
>
>
> Hi,
>
> I am sorry for being vague in my earlier mail. This is the background
of
> my problem.
>
> We developed the portal using Tomcat 5.0.28. In this version we
> connected to the database (SQL Server) without the JNDI lookup. I.e.
get
> the data source from the request object. Also we configured the
> struts-config.xml to have the db definitions. Everything worked okay
> till we moved the application to staging server.
>
> The staging server has tomcat 5.5.16 and when we deployed the
> application as it is, we got a 404 error (Servlet action not
available).
> So I downloaded tomcat 5.5.16 in my development machine as a
stand-alone
> tomcat and I deployed the application in my development machine.
>
> The 404 error was fixed when I connected to the DB using JNDI lookup
(by
> making changes to server.xml and application web.xml and the action
> coded to get the data source using the context). However, I am now
> getting a Nullpointer exception while connecting to database.
>
> Jtds is the third party jdbc driver used to connect to the SQL Server.
>
> I am totally frustrated with this problem and do not have a clue what
> could be wrong.
>
> Any help is greatly appreciated.
>
> Thanks in advance for all help.
>
> Regards,
> Vijaya
>
> --- Vijaya <[EMAIL PROTECTED]> wrote:
>
> > Hi,
> >
> > I downloaded NetBeans 5,0 and tomcat 5.5.16. I want
> > to connect to a
> > remote SQL Server. I am using jtds. I am not
> > successful in using both
> > NB50 and Tomcat 5.5.16 together. NB5.0 comes with
> > bundled tomcat 5.5.9
> > and if I use this, I get a '404 error' while
> > accessing the remote
> > sql*server.
> >
> > Can someone help me on this? Is there a problem with
> > NetBeans 5.0?
> >
> > Is there any other IDE can I use?
> >
> > Lastly, is there a tomcat user group in Bangalore,
> > India?
> >
> > Thanks in advance for your help.
> >
> > Vijaya
> >
>
> One, your question is terribly vague.  I get a 404
> when  accessing the remote sql server?  Are you trying
> to connect to a JSP page under your Tomcat?  Are you
> running the web application in Netbeans?  Did NB
> launch your external browser and point you to the
> running Tomcat instance address and port?  Are you
> running a different version of Tomcat then the one
> that shipped with it?  Are you actually running it in
> Netbeans?  Have you ever used JDBC and jTDS together
> and that is working fine?  Have you gotten it working
> in other web applications period?  I'm on both this
> list and the NB list.  You can ask your question
> there, but if it comes down to something with your
> configuration and Tomcat you might be directed back
> here.  Ask on [EM

Re: java.lang.NoSuchMethodError: javax.servlet.jsp.tagext.TagInfo

2006-06-08 Thread Marc Farrow

looks like you have your tag library set up for a certain version of the tag
library jars, but the jars are a different version.  Check there to start
with.

On 6/7/06, Dave Kennedy <[EMAIL PROTECTED]> wrote:


The Servlet Exception is displayed running SimpleExample.jsp
Any help would be greatly appreciated

SET CATALINA_HOME=C:\Program Files\Apache Software
Foundation\jakarta-tomcat-5.5.9
SET JAVA_HOME=C:\Program Files\Java\jdk1.5.0_06

http://localhost:8080/stuff09/SimpleExample.jsp

javax.servlet.ServletException:
javax.servlet.jsp.tagext.TagInfo.(Ljava/lang/String;Ljava/lang/Str
ing;Ljava/lang/String;Ljava/lang/String;Ljavax/servlet/jsp/tagext/TagLib
raryInfo;Ljavax/servlet/jsp/tagext/TagExtraInfo;[Ljavax/servlet/jsp/tage
xt/TagAttributeInfo;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Strin
g;[Ljavax/servlet/jsp/tagext/TagVariableInfo;Z)V

org.apache.jasper.servlet.JspServlet.service(JspServlet.java:249)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

root cause
java.lang.NoSuchMethodError:
javax.servlet.jsp.tagext.TagInfo.(Ljava/lang/String;Ljava/lang/Str
ing;Ljava/lang/String;Ljava/lang/String;Ljavax/servlet/jsp/tagext/TagLib
raryInfo;Ljavax/servlet/jsp/tagext/TagExtraInfo;[Ljavax/servlet/jsp/tage
xt/TagAttributeInfo;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Strin
g;[Ljavax/servlet/jsp/tagext/TagVariableInfo;Z)V

org.apache.jasper.compiler.TagLibraryInfoImpl.createTagInfo(TagLibraryIn
foImpl.java:435)

org.apache.jasper.compiler.TagLibraryInfoImpl.parseTLD(TagLibraryInfoImp
l.java:248)

org.apache.jasper.compiler.TagLibraryInfoImpl.(TagLibraryInfoImpl.
java:162)

org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:418)

org.apache.jasper.compiler.Parser.parseDirective(Parser.java:483)

org.apache.jasper.compiler.Parser.parseElements(Parser.java:1543)
   org.apache.jasper.compiler.Parser.parse(Parser.java:126)

org.apache.jasper.compiler.ParserController.doParse(ParserController.jav
a:211)

org.apache.jasper.compiler.ParserController.parse(ParserController.java:
100)

org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:146)
   org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)
   org.apache.jasper.compiler.Compiler.compile(Compiler.java:267)
   org.apache.jasper.compiler.Compiler.compile(Compiler.java:255)

org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.ja
va:556)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja
va:293)

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

org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

SimpleExample.jsp





<%@ taglib uri="csajsp-taglib.tld" prefix="csajsp" %>












csajsp-taglib.tld

http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_1.dtd";>






1.0
1.1
csajsp



   A tag library from Core Servlets and JavaServer Pages,
   http://www.coreservlets.com/.





   example
   coreservlets.tags.ExampleTag
   Simplest example: inserts one line of output
   



   simplePrime
   coreservlets.tags.SimplePrimeTag
   Outputs a random 50-digit prime.
   



   prime
   coreservlets.tags.PrimeTag
   Outputs a random N-digit prime.
   
   
 length
 false
   



   heading
   coreservlets.tags.HeadingTag
   Outputs a 1-cell table used as a heading.
   
   
 bgColor
 true  
   
   
 color
 false
   
   
 align
 false
   
   
 fontSize
 false
   
   
 fontList
 false
   
   
 border
 false
   
   
 width
 false
   



   debug
   coreservlets.tags.DebugTag
   Includes body only if debug param is set.
   



   filter
   coreservlets.tags.FilterTag
   Replaces HTML-specific characters in body.
   



   repeat
   coreservlets.tags.RepeatTag
   Repeats body the specified number of times.
   
   
 reps
 true
 
 true
   



   if
   coreservlets.tags.IfTag
   if/condition/then/else tag.
   



   condition
   coreservlets.tags.IfConditionTag
   condition part of if/condition/then/else tag.
   



   then
   coreservlets.tags.IfThenTag
   then part of if/condition/then/else tag.
   



   else
   coreservlets.tags.IfElseTag
   else part of if/condition/then/else tag.
   











--
Marc Farrow


Re: TNS entry JNDI

2006-06-08 Thread Marc Farrow

Please post your stack trace from where the context reference in your code
is blowing out.

On 6/7/06, Scott Purcell <[EMAIL PROTECTED]> wrote:


I am having trouble connecting. That string does fine using JDBC, but when
in the 
To: "Tomcat Users List" 
Sent: Wednesday, June 07, 2006 12:44 PM
Subject: Re: TNS entry JNDI


> Are you having a database connection problem or problem getting the
> reference from JNDI in your code?
>
> On 6/7/06, Scott Purcell <[EMAIL PROTECTED]> wrote:
> >
> >
> >
> > I am running Tomcat 5.x and have been using Oracle 9i. We are now
> > running Oracle 10g and it only uses TNS names. Here is my context
> > element: The one commented out used to work for 9i, and the other one
is
> > for the tns names. I am having trouble finding information about
Tomcat
> > and TNS names for connection. Does this look correct?
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > 
> >
> >
> >
> >  > prefix="cpe10g." suffix=".log" timestamp="true"/>
> >
> >
> >
> >
> >
> > 
> >
> >  >
> >type="javax.sql.DataSource" username="new" password="xxx"
> >
> >driverClassName="oracle.jdbc.driver.OracleDriver"
> >
url="jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP
> > )(HOST=.com)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=xxx.com
)(SERVER
> > =DEDICATED)))"
> >
> >maxActive="8" maxIdle="4"/>
> >
> >
> >
> >
> >
> > 
> >
> >
> >
> >
> >
>
>
> --
> Marc Farrow
>

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--
Marc Farrow


Re: SEVERE: Error reading tld listeners javax.servlet.ServletException. HELP

2006-06-08 Thread Marc Farrow

Have you checked the version of the struts jar files to make sure they are
the same level from your old install of tomcat to your new install?

It may just be that tomcat 5.5.X expects a certain level of struts.  /shrug


On 6/7/06, Richard DeGrande <[EMAIL PROTECTED]> wrote:


I've recently upgraded to tomcat 5.5.15.  I'm migrating current apps the
the new tomcat.  I get this error when starting/deploying a specific
app.  I have one other app deployed, it too uses struts,  I have no
problems with it.

thanks



Jun 7, 2006 4:28:51 PM org.apache.catalina.core.StandardContext
processTlds
SEVERE: Error reading tld listeners javax.servlet.ServletException:
Exception processing TLD at resource path /WEB-INF/struts-logic.tld in
context /paimport
javax.servlet.ServletException: Exception processing TLD at resource
path /WEB-INF/struts-logic.tld in context /paimport
   at
org.apache.catalina.startup.TldConfig.tldScanTld(TldConfig.java:547)
   at
org.apache.catalina.startup.TldConfig.execute(TldConfig.java:300)
   at
org.apache.catalina.core.StandardContext.processTlds(StandardContext.jav

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--
Marc Farrow


Re: Fw: POST-Data from Form can not be read-out

2006-06-08 Thread Marc Farrow

Bill's suggestion is the correct one.

On 6/8/06, Bill Barker <[EMAIL PROTECTED]> wrote:


If you need multipart/form-data, then you will also need a third-party
module to process it (e.g. commons-fileupload:
http://jakarta.apache.org/commons/fileupload/).  Tomcat won't ever (unless
the 2.6 Servlet spec changes things for TC 7.x :) attempt to parse the
parameters from an enctype="multipart/form-data".

"Oliver Enders" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
Hy Jon, hy Marc,

after removing the enctype from the form tag it works fine !!!

My problem will be, that in the next implementation step, i´ll need to add
an type="file" form element to upload a file...and that is only possible
with method="post" and enctype="multipart/form-data", isnt it ?

How are these issues normaly implemented ? Perhaps that is an issue for a
jsp mailing list...

Thanx in advance
Ön


-Ursprüngliche Nachricht-
Von: Jon Wingfield [mailto:[EMAIL PROTECTED]
Gesendet: Mittwoch, 7. Juni 2006 17:31
An: Tomcat Users List
Betreff: Re: Fw: POST-Data from Form can not be read-out

What happens when you remove the enctype attribute from your form?

The enctype you specified is for binary uploads. Tomcat doesn't
automatically parse the http inputstream for parameters for this content
type.

HTH,

Jon

Oliver Enders wrote:
> Browser is IE6.0, here´s the code:
>
> <%
> String m = request.getParameter("m");
> String flf = request.getParameter("flf");
> String modeDisp = "Display";
>
> if(flf == null){
>  flf = "1";
> }
>
> if(m != null){
>  if(m.equalsIgnoreCase("c")) {
>modeDisp = "Create";
>  } else if (m.equalsIgnoreCase("m")) {
>modeDisp = "Modify";
>  } else if (m.equalsIgnoreCase("d")) {
>modeDisp = "Delete";
>  } else {
>modeDisp = "Display";
>  }
> }
>
> %>
> 
> 
>  
>  
>  <%=modeDisp%> Test Request
> 
> 
>  m: <%=m%>
>  flf: <%=flf%>
>  <%
>  Enumeration enumeration = request.getParameterNames();
>   while (enumeration.hasMoreElements()) {
>  String name = (String)enumeration.nextElement();
>  %>
>  Feld: <%=name%> 
>  <%
>   }
>   %>
>  
>
><%=modeDisp%> Test Request
> (<%=m%>)
>
><%
>if(flf.equals("1")){
>%>
>  enctype="multipart/form-data">
>   fl 
>   
>   
> 
><%
>} else {
>%>
>  kein fl
><%
>}
>%>
>  
> 
> 
>
> The pages is submitted to itself.  flf is used to define two different
> contents.
>
> Thanx in advance
> Ön
>
> - Original Message - From: "Marc Farrow" <[EMAIL PROTECTED]>
> To: "Tomcat Users List" 
> Sent: Wednesday, June 07, 2006 4:25 PM
> Subject: Re: Fw: POST-Data from Form can not be read-out
>
>
>> This could be any number of issues from browser bugs on.  What browser
>> are
>> you using?  Also, can you post the rendered HTML page that is
>> submitting the
>> request to the servlet?
>>
>>
>>
>>
>> On 6/7/06, Oliver Enders <[EMAIL PROTECTED]> wrote:
>>>
>>>
>>>
>>>
>>> Hy List,
>>>
>>> I have a problem concerning submitting form-data by using POST.
>>>
>>> If I send the form using GET, the content of the form can be read out
>>> using:
>>>
>>> request.getParameter("xyz");
>>>
>>> If I change to POST,  the parameters can not be read out.
>>>
>>> I´m using am Tomcat 4.1.
>>>
>>> Any Ideas ? Suggestions ?
>>>
>>> Thanx in advance
>>> Ön
>>>
>>
>>
>>
>> --
>> Marc Farrow
>>
>
>
> -
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--
Marc Farrow


Re: TNS entry JNDI

2006-06-07 Thread Marc Farrow

Are you having a database connection problem or problem getting the
reference from JNDI in your code?

On 6/7/06, Scott Purcell <[EMAIL PROTECTED]> wrote:




I am running Tomcat 5.x and have been using Oracle 9i. We are now
running Oracle 10g and it only uses TNS names. Here is my context
element: The one commented out used to work for 9i, and the other one is
for the tns names. I am having trouble finding information about Tomcat
and TNS names for connection. Does this look correct?




































--
Marc Farrow


Re: Webapp Reload

2006-06-07 Thread Marc Farrow

Things brings up an interesting point.  How do you make the standard tomcat
session attributes Serializable?  Because, I currently am using a security
constraint against an LDAP server.  However, every time I redeploy the
application the session is lost.

On 6/7/06, Filip Hanik - Dev Lists <[EMAIL PROTECTED]> wrote:


My guess is that your session attributes do not implement
java.io.Serializable

if they don't tomcat can not store them for a restart or reload
Filip



Asensio, Rodrigo wrote:
> Hello,
>   We have a call center webapp with 100 simultaneous sessions all
> time ( 24/7 ). This webapp has several sections that are updated with
> new JSPs or Java Classes like 3 times a week.
> Each time that we need update the webapp all users loose their sessions.
> This is a big problem all time. Our solution was create a mirror server.
> Then, each time that we need update server#1, everybody moves to #2. But
> this solution I don't like at all.
>
> If I have to update just JSPs there is no problem. But the big issue is
> if I have to change class files. They do not take effect until next
> tomcat restar or webapp reload.
>
> Is there any way to avoid this ? Like a replace classes in the
> classloader ? Or load dinamically new classes ?
>
> Thanks all.
>
> ---
> Rodrigo Asensio
> Fuel Management Services
> Gilbarco Veeder Root
> phone: +1 336 547 5023
> email: [EMAIL PROTECTED]
>
> This message (including any attachments) contains confidential
> and/or proprietary information intended only for the addressee.
> Any unauthorized disclosure, copying, distribution or reliance on
> the contents of this information is strictly prohibited and may
> constitute a violation of law.  If you are not the intended
> recipient, please notify the sender immediately by responding to
> this e-mail, and delete the message from your system.  If you
> have any questions about this e-mail please notify the sender
> immediately.
>
> -
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>


--


Filip Hanik

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--
Marc Farrow


Re: Fw: POST-Data from Form can not be read-out

2006-06-07 Thread Marc Farrow

I was thinking the same thing as Jon (however, I do not know anything
specifically about that tag).  Try to remove that atrribute from the form
tag and see if it still happens.

On 6/7/06, Jon Wingfield <[EMAIL PROTECTED]> wrote:


What happens when you remove the enctype attribute from your form?

The enctype you specified is for binary uploads. Tomcat doesn't
automatically parse the http inputstream for parameters for this content
type.

HTH,

Jon

Oliver Enders wrote:
> Browser is IE6.0, here´s the code:
>
> <%
> String m = request.getParameter("m");
> String flf = request.getParameter("flf");
> String modeDisp = "Display";
>
> if(flf == null){
>  flf = "1";
> }
>
> if(m != null){
>  if(m.equalsIgnoreCase("c")) {
>modeDisp = "Create";
>  } else if (m.equalsIgnoreCase("m")) {
>modeDisp = "Modify";
>  } else if (m.equalsIgnoreCase("d")) {
>modeDisp = "Delete";
>  } else {
>modeDisp = "Display";
>  }
> }
>
> %>
> 
> 
>  
>  
>  <%=modeDisp%> Test Request
> 
> 
>  m: <%=m%>
>  flf: <%=flf%>
>  <%
>  Enumeration enumeration = request.getParameterNames();
>   while (enumeration.hasMoreElements()) {
>  String name = (String)enumeration.nextElement();
>  %>
>  Feld: <%=name%> 
>  <%
>   }
>   %>
>  
>
><%=modeDisp%> Test Request
> (<%=m%>)
>
><%
>if(flf.equals("1")){
>%>
>  enctype="multipart/form-data">
>   fl 
>   
>   
> 
><%
>} else {
>%>
>  kein fl
><%
>}
>%>
>  
> 
> 
>
> The pages is submitted to itself.  flf is used to define two different
> contents.
>
> Thanx in advance
> Ön
>
> - Original Message - From: "Marc Farrow" <[EMAIL PROTECTED]>
> To: "Tomcat Users List" 
> Sent: Wednesday, June 07, 2006 4:25 PM
> Subject: Re: Fw: POST-Data from Form can not be read-out
>
>
>> This could be any number of issues from browser bugs on.  What browser
>> are
>> you using?  Also, can you post the rendered HTML page that is
>> submitting the
>> request to the servlet?
>>
>>
>>
>>
>> On 6/7/06, Oliver Enders <[EMAIL PROTECTED]> wrote:
>>>
>>>
>>>
>>>
>>> Hy List,
>>>
>>> I have a problem concerning submitting form-data by using POST.
>>>
>>> If I send the form using GET, the content of the form can be read out
>>> using:
>>>
>>> request.getParameter("xyz");
>>>
>>> If I change to POST,  the parameters can not be read out.
>>>
>>> I´m using am Tomcat 4.1.
>>>
>>> Any Ideas ? Suggestions ?
>>>
>>> Thanx in advance
>>> Ön
>>>
>>
>>
>>
>> --
>> Marc Farrow
>>
>
>
> -
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--
Marc Farrow


Re: Fw: POST-Data from Form can not be read-out

2006-06-07 Thread Marc Farrow

This could be any number of issues from browser bugs on.  What browser are
you using?  Also, can you post the rendered HTML page that is submitting the
request to the servlet?




On 6/7/06, Oliver Enders <[EMAIL PROTECTED]> wrote:





Hy List,

I have a problem concerning submitting form-data by using POST.

If I send the form using GET, the content of the form can be read out
using:

request.getParameter("xyz");

If I change to POST,  the parameters can not be read out.

I´m using am Tomcat 4.1.

Any Ideas ? Suggestions ?

Thanx in advance
Ön





--
Marc Farrow


Re: NetBeans 5.0 and Tomcat 5.5.16 ... Please Help (Problem after migrating to tomcat 5.5.16 from tomcat 5.0.28)

2006-06-07 Thread Marc Farrow

It might be helpful to post your web.xml and context.xml (appname.xml or the
server.xml if your context tag is still in there).



On 6/7/06, Vijaya <[EMAIL PROTECTED]> wrote:



Hi,

I am sorry for being vague in my earlier mail. This is the background of
my problem.

We developed the portal using Tomcat 5.0.28. In this version we
connected to the database (SQL Server) without the JNDI lookup. I.e. get
the data source from the request object. Also we configured the
struts-config.xml to have the db definitions. Everything worked okay
till we moved the application to staging server.

The staging server has tomcat 5.5.16 and when we deployed the
application as it is, we got a 404 error (Servlet action not available).
So I downloaded tomcat 5.5.16 in my development machine as a stand-alone
tomcat and I deployed the application in my development machine.

The 404 error was fixed when I connected to the DB using JNDI lookup (by
making changes to server.xml and application web.xml and the action
coded to get the data source using the context). However, I am now
getting a Nullpointer exception while connecting to database.

Jtds is the third party jdbc driver used to connect to the SQL Server.

I am totally frustrated with this problem and do not have a clue what
could be wrong.

Any help is greatly appreciated.

Thanks in advance for all help.

Regards,
Vijaya

--- Vijaya <[EMAIL PROTECTED]> wrote:

> Hi,
>
> I downloaded NetBeans 5,0 and tomcat 5.5.16. I want
> to connect to a
> remote SQL Server. I am using jtds. I am not
> successful in using both
> NB50 and Tomcat 5.5.16 together. NB5.0 comes with
> bundled tomcat 5.5.9
> and if I use this, I get a '404 error' while
> accessing the remote
> sql*server.
>
> Can someone help me on this? Is there a problem with
> NetBeans 5.0?
>
> Is there any other IDE can I use?
>
> Lastly, is there a tomcat user group in Bangalore,
> India?
>
> Thanks in advance for your help.
>
> Vijaya
>

One, your question is terribly vague.  I get a 404
when  accessing the remote sql server?  Are you trying
to connect to a JSP page under your Tomcat?  Are you
running the web application in Netbeans?  Did NB
launch your external browser and point you to the
running Tomcat instance address and port?  Are you
running a different version of Tomcat then the one
that shipped with it?  Are you actually running it in
Netbeans?  Have you ever used JDBC and jTDS together
and that is working fine?  Have you gotten it working
in other web applications period?  I'm on both this
list and the NB list.  You can ask your question
there, but if it comes down to something with your
configuration and Tomcat you might be directed back
here.  Ask on [EMAIL PROTECTED] (you'll need to
sign up for the list).  You'll need to provide some
common sense basics though to help someone help you.

Wade

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--
Marc Farrow


Re: Undeploy task not working

2006-06-07 Thread Marc Farrow

Which still implies a permission problem.  On Windows 2000 check the
security tab of the webapps folder under Tomcat.  Make sure the account that
is running Tomcat has permission to "delete".  The "archive" set is the file
type and doesn't really have much to do with permissions.

On 6/7/06, Alberto Montoya <[EMAIL PROTECTED]> wrote:


2006/6/7, Venkatesh Babu <[EMAIL PROTECTED]>:
>
> Hi,


Hi,

Thanks for the replies and suggestions. I'm running
> Tomcat on a Windows 2000 machine. I saw the directory
> permissions and it is just an "Archive" set. Also, our
> webapp is not having any database connection open.
>
> Still I'm unable to undeploy the app using undeploy
> target.


I've noticed that, sometimes, I can't undeploy my application and It's due
that Tomcat can't remove my application directory, so I have to remove it
manually after stopping Tomcat.

Thank you,
> Venkatesh
>
> --- Marc Farrow <[EMAIL PROTECTED]> wrote:
>
> > It also could be a permissions problem.  What
> > platform is the server?  I
> > know on OpenVMS that if you use the manager
> > application to deploy an
> > application and then try to undeploy it, the
> > permissions on the directory
> > are not correct and thus it cannot delete the
> > directories.  (There is a
> > logical to change this behavior for OpenVMS).  So I
> > would suggest to check
> > your permissions before you try to undeploy and make
> > sure you have delete
> > privileges.
> >
> > HTH
> >
> >
> > On 6/6/06, Peter Hubbard <[EMAIL PROTECTED]>
> > wrote:
> > >
> > > On Mon, 2006-06-05 at 23:40 -0700, Venkatesh Babu
> > wrote:
> > > > Hello All,
> > > >
> > > > I'm using Tomcat 4.1 and trying to
> > deploy/undeploy
> > > > application using ant targets.
> > > >
> > > > Earlier I posted a mail on deploy task not
> > working due
> > > > to some protocol error. Got the solution for
> > that :-)
> > > >
> > > > But right now undeploy task is not working. It
> > is
> > > > giving an error saying:
> > > >
> > > > FAIL - Cannot remove document base for path
> > /app1
> > >
> > > I found this often happened to me if there were
> > open database
> > > connections in the webapp, and I tried to undeploy
> > it before stopping
> > > it.
> > >
> > >
> > > --
> > > Peter Hubbard <[EMAIL PROTECTED]>
> > >
> > >
> > >
> >
> -
> > > To start a new topic, e-mail:
> > users@tomcat.apache.org
> > > To unsubscribe, e-mail:
> > [EMAIL PROTECTED]
> > > For additional commands, e-mail:
> > [EMAIL PROTECTED]
> > >
> > >
> >
> >
> > --
> > Marc Farrow
> >
>
>
> __
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>
> -
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>





--
Marc Farrow


Re: Undeploy task not working

2006-06-06 Thread Marc Farrow

It also could be a permissions problem.  What platform is the server?  I
know on OpenVMS that if you use the manager application to deploy an
application and then try to undeploy it, the permissions on the directory
are not correct and thus it cannot delete the directories.  (There is a
logical to change this behavior for OpenVMS).  So I would suggest to check
your permissions before you try to undeploy and make sure you have delete
privileges.

HTH


On 6/6/06, Peter Hubbard <[EMAIL PROTECTED]> wrote:


On Mon, 2006-06-05 at 23:40 -0700, Venkatesh Babu wrote:
> Hello All,
>
> I'm using Tomcat 4.1 and trying to deploy/undeploy
> application using ant targets.
>
> Earlier I posted a mail on deploy task not working due
> to some protocol error. Got the solution for that :-)
>
> But right now undeploy task is not working. It is
> giving an error saying:
>
> FAIL - Cannot remove document base for path /app1

I found this often happened to me if there were open database
connections in the webapp, and I tried to undeploy it before stopping
it.


--
Peter Hubbard <[EMAIL PROTECTED]>


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--
Marc Farrow


Re: Allocate exception

2006-06-06 Thread Marc Farrow

What is in the demo.jar file?

On 6/6/06, Miguel Angel Ruz <[EMAIL PROTECTED]> wrote:



I'm going to describe the process that I have followed to develop servlet
Authorize. What problem do you find in this development? I create to have
followed all the steps to make work it. Thanks.


The Authorize.class is in:

/u/jakarta-tomcat-5.5.4/webapps/demo/WEB-INF/classes/Authorize.java
/u/jakarta-tomcat-5.5.4/webapps/demo/WEB-INF/classes/Authorize.class


The servlet Authorize es defined in:

/u/jakarta-tomcat-5.5.4/webapps/demo/WEB-INF/classes/web.xml

http://mydomain.com/demo/servlet/Authorize



The source code for the Authorize class is:


import java.io.*;
import java.lang.*;
import java.text.*;
import java.util.*;
import javax.servlet.*;
import javax.servlet.http.*;

import com.demo.global.DEMO.*;

public class Authorize extends HttpServlet {
   protected void service(HttpServletRequest request,HttpServletResponse
response)
   throws IOException, ServletException
{

try{
   DEMO demoobj = new DEMO ();

}catch (Exception e) {}
}



And the demo.jar is defined in catalina.sh classpath

# Add on extra jar files to CLASSPATH


CLASSPATH="$CLASSPATH":"$CATALINA_HOME"/bin/bootstrap.jar:"$CATALINA_HOME"/b
in/commons-
logging-api.jar:/usr/java/jdk1.5.0/lib/soap.jar:/usr/java/jdk1.5.
0/lib/demo.jar:/usr/java/jdk1.5.0/lib/src/


The log error:


SEVERE: Allocate exception for servlet Authorize
javax.servlet.ServletException: Error instantiating servlet class
Authorize
   at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java
:10
20)
   at
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java
:711)
   at
org.apache.catalina.core.StandardWrapperValve.invoke(
StandardWrapperValve.ja
va:131)
   at
org.apache.catalina.core.StandardContextValve.invoke(
StandardContextValve.ja
va:178)
   at
org.apache.catalina.authenticator.AuthenticatorBase.invoke
(AuthenticatorBase
.java:407)
   at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
:126
)
   at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
:105
)
   at
org.apache.catalina.core.StandardEngineValve.invoke(
StandardEngineValve.java
:107)
   at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java
:148)
   at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:825)
   at

org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne
ction(Http11Protocol.java:731)
   at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(
PoolTcpEndpoint.jav
a:526)
   at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt
(LeaderFollowerWo
rkerThread.java:80)
   at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(
ThreadPool.jav
a:684)
   at java.lang.Thread.run(Thread.java:595)


-Mensaje original-
De: Marc Farrow [mailto:[EMAIL PROTECTED]
Enviado el: lunes, 05 de junio de 2006 18:35
Para: Tomcat Users List
Asunto: Re: Allocate exception

is the Authorize class (the servlet) in a package?  if so, you need the
package qualified name.  If not, then Java strongly urges the use of one.
Also, where is the Authorize.class file or the jar containing the
Authorize.class located?

On 6/5/06, Miguel Angel Ruz <[EMAIL PROTECTED]> wrote:
>
>
> Thanks Marc for your answer!!!
>
>
> The servlet "Authorize" is definid in web.xml
>
> ...
>
>
>Authorize
>Authorize
>
>
> ..
>
>    
>    Authorize
>/servlet/Authorize
>
>
> .
>
>
>
> -Mensaje original-
> De: Marc Farrow [mailto:[EMAIL PROTECTED] Enviado el: lunes, 05
> de junio de 2006 18:13
> Para: Tomcat Users List
> Asunto: Re: Allocate exception
>
> This looks like a configuration error.  It seems as though a servlet
> named "Authorize" has been declared somewhere, but not properly
> defined.  Check your web.xml.
>
> On 6/5/06, Miguel Angel Ruz <[EMAIL PROTECTED]> wrote:
> >
> >
> >
> > Hi !!
> >
> > I´m programming a Servlet with Tomcat 5.5
> >
> > It´s running but with this code
> >
> >
> > try{
> >DEMO demoobj = new DEMO ();
> >
> > }catch (Exception e) {}
> >
> >
> > Do you Know something about this error ??
> >
> > Thanks.
> >
> >
> >
> >
> > I get this error in catalina.log
> >
> > SEVERE: Allocate exception for servlet Authorize
> > javax.servlet.ServletException: Error instantiating servlet class
> > Authorize
> >at
> > org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper
> > .j
> > ava
> > :10
> > 20)
> >at

Re: Image files and DeployTask...

2006-06-06 Thread Marc Farrow

No issues.   Thanks for the explanation

I will test the WEBDAV setting again and see what happens.


On 6/5/06, Mark Thomas <[EMAIL PROTECTED]> wrote:


Marc Farrow wrote:
> Mark,
>
>  Why do you have to mark the WEBDAV servlet as NOT read-only in order to
> use the ant tasks?  By default the read-only/false parameter is
commented
> out.  The ant tasks will not work unless you uncomment them out.

You don't have to do this. The Ant tasks use the manager servlet. The
manager servlet does not use the webdav servlet. The webdav servlet is
in a separate web-app all of it's own. As can be seen from the source,
nothing in either the Ant tasks or the manager servlet expects the
webdav servlet or application to be present.

The deploy task does require the readonly parameter of the default
servlet to be configured so PUT works. It is possible that someone may
have added the WEBDAV servlet to the manager application as an
alternative method of enabling PUT. I can see how this might work but
it certainly isn't the standard way of doing things neither have I
tested it. I would also have security concerns about the using the
webdav servlet in this way and would want to check exactly what was
and wasn't exposed for edit in such a configuration. I am not saying
it couldn't be secured, just that I would want to be careful.

>> 2. To what fault in the WEBDAV are you referring? When I last looked
>> at the WEBDAV servlet it had no problems handling the upload of images
>> or any other files for that matter.

You didn't answer this point. If there is an issue with webdav and
images I would very much like to know about it since it hasn't
appeared in any of my testing.

Mark

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--
Marc Farrow


Re: Image files and DeployTask...

2006-06-05 Thread Marc Farrow

Mark,

 Why do you have to mark the WEBDAV servlet as NOT read-only in order to
use the ant tasks?  By default the read-only/false parameter is commented
out.  The ant tasks will not work unless you uncomment them out.

At least on OpenVMS, the manager application uses WEBDAV to remotely
download the WAR file and set the file attributes properly.



 
   webdav
   org.apache.catalina.servlets.WebdavServlet

   
 debug
 0
   
   
 listings
 true
   
   
   
 readonly
 false
   
   
 

On 6/5/06, Mark Thomas <[EMAIL PROTECTED]> wrote:


Marc Farrow wrote:
> I am not going to be able to give you the resolution to this problem.
> However, the ant tasks use the WEBDAV application from within Tomcat and
> this is the source of your problem.  Are you deploying to local or
remote
> host?  If it is a remote host, then it could be a bug in the Tomcat
version
> running on the remote host.

1. The Ant tasks go nowhere near the WEBDAV application. They use the
manager application.
2. To what fault in the WEBDAV are you referring? When I last looked
at the WEBDAV servlet it had no problems handling the upload of images
or any other files for that matter.

Mark


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--
Marc Farrow


Re: Image files and DeployTask...

2006-06-05 Thread Marc Farrow

I am not going to be able to give you the resolution to this problem.
However, the ant tasks use the WEBDAV application from within Tomcat and
this is the source of your problem.  Are you deploying to local or remote
host?  If it is a remote host, then it could be a bug in the Tomcat version
running on the remote host.

On 6/5/06, Greg Allen <[EMAIL PROTECTED]> wrote:


I have a build.xml that used DeployTask to deploy my application. Here's
the build.xml:





   

   





In my deployed application I have some image files (GIF format), which
end up in the /images directory.



However, for some reason, when the application is deployed the images
end
up being corrupted and displaying incorrectly on the screen. I have
verified that
the deployed images with the pre-deployed ones, and they are the same
number of bytes. But when I try to view the deployed images, the images
themselves are hosed.



I've tried using jar and bundling up my application by hand, and if I do
that
the images end up fine.



Has anybody see this before?  Do I have to do something special with
image files?



Thanks,



-- Greg








--
Marc Farrow


Re: Problems with

2006-06-05 Thread Marc Farrow

More of the stack trace would be helpful.  We need to see what class was
trying to execute the rename method, etc.

On 6/5/06, Roland Rabben <[EMAIL PROTECTED]> wrote:


I am seeing some problems with my webapp that I can't figure out. I get
this exception while Tomcat compiles my app in the work directory.:

java.io.IOException: tmpFile.renameTo(classFile) failed

I can't see a pattern to this. Any clues?

I am running JRE 1.5.0_06, Tomcat 5.17 and Windows XP SP2.

Regards

Roland Rabben
[EMAIL PROTECTED]


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--
Marc Farrow


Re: Allocate exception

2006-06-05 Thread Marc Farrow

is the Authorize class (the servlet) in a package?  if so, you need the
package qualified name.  If not, then Java strongly urges the use of one.
Also, where is the Authorize.class file or the jar containing the
Authorize.class located?

On 6/5/06, Miguel Angel Ruz <[EMAIL PROTECTED]> wrote:



Thanks Marc for your answer!!!


The servlet "Authorize" is definid in web.xml

...

   
   Authorize
   Authorize
   

..

   
   Authorize
   /servlet/Authorize
   

.



-Mensaje original-
De: Marc Farrow [mailto:[EMAIL PROTECTED]
Enviado el: lunes, 05 de junio de 2006 18:13
Para: Tomcat Users List
Asunto: Re: Allocate exception

This looks like a configuration error.  It seems as though a servlet named
"Authorize" has been declared somewhere, but not properly defined.  Check
your web.xml.

On 6/5/06, Miguel Angel Ruz <[EMAIL PROTECTED]> wrote:
>
>
>
> Hi !!
>
> I´m programming a Servlet with Tomcat 5.5
>
> It´s running but with this code
>
>
> try{
>DEMO demoobj = new DEMO ();
>
> }catch (Exception e) {}
>
>
> Do you Know something about this error ??
>
> Thanks.
>
>
>
>
> I get this error in catalina.log
>
> SEVERE: Allocate exception for servlet Authorize
> javax.servlet.ServletException: Error instantiating servlet class
> Authorize
>at
> org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.j
> ava
> :10
> 20)
>at
> org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java
> :711)
>at
> org.apache.catalina.core.StandardWrapperValve.invoke(
> StandardWrapperValve.ja
> va:131)
>at
> org.apache.catalina.core.StandardContextValve.invoke(
> StandardContextValve.ja
> va:178)
>at
> org.apache.catalina.authenticator.AuthenticatorBase.invoke
> (AuthenticatorBase
> .java:407)
>at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.ja
> va
> :126
> )
>at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.ja
> va
> :105
> )
>at
> org.apache.catalina.core.StandardEngineValve.invoke(
> StandardEngineValve.java
> :107)
>at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java
> :148)
>at
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
:825)
>at
>
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proces
> sConne
> ction(Http11Protocol.java:731)
>at
> org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(
> PoolTcpEndpoint.jav
> a:526)
>at
> org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt
> (LeaderFollowerWo
> rkerThread.java:80)
>at
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(
> ThreadPool.jav
> a:684)
>at java.lang.Thread.run(Thread.java:595)
>
>
>
>
> -
> To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe,
> e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


--
Marc Farrow



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--
Marc Farrow


Re: Allocate exception

2006-06-05 Thread Marc Farrow

This looks like a configuration error.  It seems as though a servlet named
"Authorize" has been declared somewhere, but not properly defined.  Check
your web.xml.

On 6/5/06, Miguel Angel Ruz <[EMAIL PROTECTED]> wrote:




Hi !!

I´m programming a Servlet with Tomcat 5.5

It´s running but with this code


try{
   DEMO demoobj = new DEMO ();

}catch (Exception e) {}


Do you Know something about this error ??

Thanks.




I get this error in catalina.log

SEVERE: Allocate exception for servlet Authorize
javax.servlet.ServletException: Error instantiating servlet class
Authorize
   at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java
:10
20)
   at
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java
:711)
   at
org.apache.catalina.core.StandardWrapperValve.invoke(
StandardWrapperValve.ja
va:131)
   at
org.apache.catalina.core.StandardContextValve.invoke(
StandardContextValve.ja
va:178)
   at
org.apache.catalina.authenticator.AuthenticatorBase.invoke
(AuthenticatorBase
.java:407)
   at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
:126
)
   at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
:105
)
   at
org.apache.catalina.core.StandardEngineValve.invoke(
StandardEngineValve.java
:107)
   at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java
:148)
   at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:825)
   at

org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne
ction(Http11Protocol.java:731)
   at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(
PoolTcpEndpoint.jav
a:526)
   at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt
(LeaderFollowerWo
rkerThread.java:80)
   at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(
ThreadPool.jav
a:684)
   at java.lang.Thread.run(Thread.java:595)




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--
Marc Farrow


Re: How to deploy one application under two different port?

2006-06-05 Thread Marc Farrow

Are you saying that if a certain user logs in (one that has admin
privileges) that you want this person to run the same application on port
9090 while someone else with port 8080?  Your question is confusing.  Please
be more clear.




On 6/5/06, red phoenix <[EMAIL PROTECTED]> wrote:


I hava a web application with JSP and servlet,I want to deploy it using
Tomcat5,but I deploy it under two different port,such as 8080 and
9090,8080
port for general visit,and 9090 port for administrator visit. How to do
it?

Thanks in advance.





--
Marc Farrow


Re: Realm Tag in webappnamecontext.xml

2006-06-02 Thread Marc Farrow

Thanks Mark.  I did figure out my configuration problem!

On 6/2/06, Mark Thomas <[EMAIL PROTECTED]> wrote:


Marc Farrow wrote:
>  

And there is the problem. An empty  allows
unauthenticated access as per SRV.12.8.1

An empty  is not the same as an 
that specifies no roles and therefore denies access to all as per
SRV.12.8.1.


Mark

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--
Marc Farrow


Re: error when starting tomcat 4.1.27

2006-06-02 Thread Marc Farrow

It means that you have something specified to write/read a log file and you
do not have permission to do that.  Check your permissions on the directory
or file for:

java.io.FileNotFoundException:/log/fdk_server.log (Permission denied)


On 6/2/06, bhavik shah <[EMAIL PROTECTED]> wrote:


Hi I have tomcat 4.1.27 server.
when ever i start the tomcat i saw a message below

Starting service Tomcat-Standalone

Apache Tomcat/4.1.27

 Documentum Java Method Server

 Docbase Names = 

 Host Names = 

 IP Addresses = 

 Java Method Dir = /java_methods

 DoMethod

CLASSPATH=$CLASSPATH:/java_methods/:/opt/docu/dev/dba/java_methods/mailmethod.jar

CacheQueriesServlet initialized

 Documentum Java Method Server

 Docbase Names = 

 Host Names =

 IP Addresses = 

 Java Method Dir = /java_methods

 DoMethod

CLASSPATH=$CLASSPATH:/java_methods/:/opt/docu/dev/dba/java_methods/mailmethod.jar

*log4j:ERROR setFile(null,true) call failed.*

java.io.FileNotFoundException:/log/fdk_server.log (Permission denied)

I dont know what does it mean

can anybody please help me

thanks

bhavik





--
Marc Farrow


Re: Auto Reload Features by Tomcat

2006-06-02 Thread Marc Farrow

I remember something about a reloadable parameter in the Server.xml (in a
tag above context either host or engine I think) that has that attribute as
well. Unless the "override" attribute is included, the attribute in the
context tag is not applied.  I may be chasing the wrong horse, but it
somewhere for you start.  check the docs.  Also, with tomcat5+ it is
recommended that you do not place your context tag in your server.xml but
use the new method.  read the section on contexts in the docs.




On 6/2/06, ks.foong <[EMAIL PROTECTED]> wrote:


Forget to mentioned, I have make sure my  tag in server.xml have
included the reloadable="true" entity



Foong Kim Seong

-Original Message-
From: ks.foong [mailto:[EMAIL PROTECTED]
Sent: Friday, June 02, 2006 4:52 PM
To: 'Tomcat Users List'
Subject: Auto Reload Features by Tomcat

Hi, I notice that starting from Tomcat 5 onwards; we can enjoy the benefit
of the "Auto-reload" features of it.



I personally have tried it with my Eclipse development. Each time I have
changed any servlet coding, the eclipse (or more specific, Tomcat) able to
detect the changes and Reload for itself.



But for my production, I am not sure how this is work. I have replaced my
servlet, ProfileServlet.java to the
[CATALINA_HOME]/webapps/project/WEB-INF/src/com/servlet folder.



I login into my system; I didn't see any changes at all.



So, any ideas how can is this reload features work in production machine?
Do
I need to issues any command for this?





-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--
Marc Farrow


Re: Redeploying a war file from a build script

2006-05-31 Thread Marc Farrow

do some sort of iffail type error handling with your ant script.

On 5/31/06, William Press <[EMAIL PROTECTED]> wrote:


I am writing a build script that would redeploy a war file at the end of
the build.



If I use DeployTask and the application was already deployed from a
previous build, I get an error.



If I use UndeployTask first and the application is not already deployed
(which would happen the first time somebody runs the script on their
machine or if there's a failure between calls to UndeployTask and
DeployTask), I get an error.



I would like the script to be robust enough that it doesn't require the
user to do more than install Tomcat (and my distro, natch) on their
machine.



I thought ListTask useful, here, but I've read through the docs and
could not figure out how to capture the output for parsing (so I could
check whether this particular application is already deployed).



Any thoughts would be helpful,

Bill






--
Marc Farrow


Re: Realm Tag in webappnamecontext.xml

2006-05-31 Thread Marc Farrow

Ok, I have read both the Tomcat's Realm How-to and also the Servlet Specs.
I have the following application context and web.xml files.  When I go to
http://localhost:8080/mywebappcontext/index.jsp, then page pulls up and no
dialog box comes up asking the user for username/password.  I know I am
missing something.  I can only guess that the way I have it set up, that the
servlet container is validating against LDAP (anonymous access is turned
off) without any credentials being presented.

Are there any thoughts/leads?

Goal of security constraint:
More information on the LDAP setup in case that may be culprit.  We created
a new group called TestGroup that is in the structure defined by the URL.
We want to check the memberOf attribute of this group to see if the username
the is a member of that group.


mywebappcontext.xml:

   


web.xml:
http://java.sun.com/xml/ns/j2ee";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd";
version="2.4">

   
   Servlet
   com.mycompany.MyServlet
   1
   
   
   Turnover Servlet
   /servlet
   
   
   5
   
   
   
   index.jsp
   
   
   
 
  Restricted web resources (all)
  /*
 
 
   





On 5/30/06, Mark Thomas <[EMAIL PROTECTED]> wrote:


Marc Farrow wrote:
> I have a context with the following Realm tag.  However, when I navigate
to
> the page, the page pulls up without any type of authentication.  What am
I
> missing?  I have read the "Realm Configuration HOW-TO" at apache.org.

How you read chapter SRV.12 of the servlet spec? Specifically, what
did you put in web.xml?

Mark

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--
Marc Farrow


Re: JspC.bat

2006-05-31 Thread Marc Farrow

There is a JSPC ant task that you can call from a build script if you wish.
I was mainly giving you more information to help fuel your searches.  You
can always just use the java -jar command and run a specific class.  So if
you can research and find what class Tomcat (or another servlet container)
calls to compile JSPs you could just do the same thing programmatically.  If
you are just wanting to precompile JSPs, then the ant task might be simplest
(assuming you have ant installed).




On 5/31/06, Venkatesh Jayapal <[EMAIL PROTECTED]> wrote:


Thank you Marc.

  What is that Ant task(jspc). Is that a similar batch file that
will be present in %ANT_HOME%. or do i need to create a build.xml using
Ant.

Venkly



On 5/31/06, Marc Farrow <[EMAIL PROTECTED]> wrote:
>
> JspC.bat is just a windows "batch" file that probably just calls a java
> command to compile the JSPs.  I would search for the jspc compiler.  The
> version of the install you have for Tomcat probably just doesn't have
that
> "batch" file included.  There is an Ant task (jspc) that will do this as
> well.
>
>
>
>
> On 5/31/06, Venkatesh Jayapal <[EMAIL PROTECTED]> wrote:
> >
> > Hi all
> >
> >  i have installed Apache Tomcat 5.5.9 Server. i need to
> precompile
> > JSPs.But that *JspC.bat* is not found in CATALINA_HOME/bin.May i know
> > where
> > it will be? or how to do the same in this Tomcat 5.5.9
> >
> > Regards,
> > Venkly
> >
> >
>
>
> --
> Marc Farrow
>
>





--
Marc Farrow


Re: JspC.bat

2006-05-31 Thread Marc Farrow

JspC.bat is just a windows "batch" file that probably just calls a java
command to compile the JSPs.  I would search for the jspc compiler.  The
version of the install you have for Tomcat probably just doesn't have that
"batch" file included.  There is an Ant task (jspc) that will do this as
well.




On 5/31/06, Venkatesh Jayapal <[EMAIL PROTECTED]> wrote:


Hi all

 i have installed Apache Tomcat 5.5.9 Server. i need to precompile
JSPs.But that *JspC.bat* is not found in CATALINA_HOME/bin.May i know
where
it will be? or how to do the same in this Tomcat 5.5.9

Regards,
Venkly





--
Marc Farrow


Re: ClassNotFoundException after successful Servlet run

2006-05-30 Thread Marc Farrow

the CODEBASE tag is for use of the base to where the code is located.  This
should be URL or even relative to your html page.  Also, the CODE tag needs
to be the fully package qualified name of the class such as
com.mycompany.mypackage.MyClass.class (I think the .class extension could be
left off).  You can use the ARCHIVE tag if the classes are in a JAR.  Also
below is the HTML specs link for OBJECT tag (since the applet tag is
deprecated but still usable).

try this:

http://localhost/mydeploymentjarlocation"; Archive="
myjar.jar" CODE="olb.HomeMenu" WIDTH="400"
HEIGHT="280">

http://www.w3.org/TR/1999/REC-html401-19991224/struct/objects.html


On 5/30/06, Eric Harbeston <[EMAIL PROTECTED]> wrote:


Greetings,

For the past few-several days I have been scouring the internet and this
list extensively to no avail.  First I'll describe the error and then give
as much detail as possible about the structure of our web-app project as
possible.  Before I came to work on this project, it was running fine on a
tomcat 4.1 server by simply having all class files in a single jar file,
however it wasn't being managed very well and was being developed in
Windows
even though our deployment was to be in Red Hat, so I decided to get the
project into Netbeans under a Red Hat VM with tomcat 5.5 and after a day
had
it compiling and reporting no errors (there were plenty of errors when
first
imported into netbeans).  But ever since then, its always been the same
problem with tomcat not being able to detect the class necessary for
loading
the GUI.

After proper authentication with a db2 database, our servlets call up an
html page with an embedded applet in a new window (we've even tried
loading
in the same window).  This applet has given me a ClassNotFoundException in
every instance I have tried.  I am using Netbeans 5.0 and it correctly
places all class files in the classes directory under WEB-INF with correct
package directory appearance and all jar library files in the lib
directory.  All of our program's custom classes now belong to a single
package, including the servlets (originally all custome classes had no
package), 3rd party classes are in their appopriate packages as well (they
are now in jars in the lib dir), and the whole thing compiles without any
errors.  The tomcat servers also starts without any errors, and both the
standalone and bundled Netbeans tomcats always give this same error in
every
instance as well.  The Netbeans output tab shows that the user is being
appropriately authenticated after logging in and checking against the
database within our servlet (which also uses other classes within our
package).  After attempting the load the applet the only thing in netbeans
which indicates a problem has occurred is upon inspection of the HTTP
requests, which shows that two requests failed:
/ONLINEBOM/olb/HomeMenu.class and
/ONLINEBOM/olb/HomeMenu/class.class.  The
former seems like it should be correct, since I assume netbeans
automatically sets correct classpaths and such. The latter is an
inexistant
file whose lookup doesn't really seem to affect this particular problem.

the standard structure of the files is as follows:
-the olb package is in WEB-INF/classes/olb/*.class
-all 3rd party libraries are in WEB-INF/lib/*.jar
-the web.xml file with the servlet declaration stuff is in WEB-INF
-html files are in the root directory of the project

the html file which calls the applet contains the following in its body:

I have also tried not using codebase and placing in CODE both "
olb.HomeMenu.class" and "olb/HomeMenu.class".  I have also tried using the
ARCHIVE options when trying this and other attempts described below.


I have tried the following besides the standard for placement of
classes/packages:
-placing all classes in a single jar file (in lib, classes, or even in the
root folder for the webapp where the html is)
-placing our classes in one jar, 3rd party classes in 2 other jars (in
lib,
classes, etc.)
-placing all classes in the directory structure without the use of jars
(in
classes directory and lib)
-placing all classes/jars in the shared/classes and shared/lib tomcat
directories (when attempted with the standalone tomcat server)


Is this just a simple CLASSPATH problem? I assumed it wasn't from reading
that tomcat sets its own classpath anyway.  Is it entirely the fault of
the
servlet?  Is there some other configuration settings I'm entirely missing
here?  I would really, completely, and utterly appreciate some help which
could get this poor web-app back on its feet and ready for continued
development.

Thanks!

Eric Harbeston





--
Marc Farrow


Realm Tag in webappnamecontext.xml

2006-05-30 Thread Marc Farrow

I have a context with the following Realm tag.  However, when I navigate to
the page, the page pulls up without any type of authentication.  What am I
missing?  I have read the "Realm Configuration HOW-TO" at apache.org.



   


--
Marc Farrow


Re: I cannot not compile

2006-05-30 Thread Marc Farrow

This seems like a question for an Eclipse mailing list.  Tomcat is not a
compiler.




On 5/30/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]>
wrote:


I don't see any errors in the console but I can not locate any *.class
files.  I am creating an application with a login form, action and jsp.  I
ask Eclipse to build the project but I cannot locate these files.  Is
there
somewhere I need to be looking for error messages?

I also am unsure how to refer to my application.  I created a project
called Split
and my packages are all named starting with com.patron.login.  When I
bring
up the application in the web browser, how should I refer to it?  I tried
http://localhost:8080/login and pressed enter I received the 404 message
but then I went to look for the class files and there were none.

It looks like tomcat launches because I do not seen anything not launched.

I am using Eclipse 3.1 on XP with an oracle db running on an alpha
machine.


Carrie Latimer
Florida's Turnpike Enterprise
Tolls Data Center
Main 561.488.5361
SC 247.5361
Fax 561.470.6615
Mobile: 561.239.6189
Nextel: 158*763*109
[EMAIL PROTECTED]




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--
Marc Farrow


Re: Problem starting Tomcat in Netbeans

2006-05-29 Thread Marc Farrow

I don't know why you have the Common folder of tomcat in your classpath.
that should not be needed.



On 5/28/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:


On Mon, May 29, 2006 at 12:31:12AM +0800, Justin See wrote:

> I've tried to search for it but couldn't find an answer.
> Please try to help me.

> I've created an application and deployed and run successfully in the
> first PC.  I copied everything over, installed everything as the
> first PC.

> 1) I've the mysql-connector-java-3.1.12-bin.jar in the common/lib.

> 2) Added this to the server.xml:

> 

>  type="javax.sql.DataSource" username="root"
password="password"
>driverClassName=" com.mysql.jdbc.Driver"
> url="jdbc:mysql://localhost:3306/transport"
>maxActive="8" maxIdle="4"/>

> 

> 3) Added this to the web.xml

> MySQL Connection
>   
>DB Connection
>jdbc/MySQLDB
> javax.sql.DataSource
>Container
>   

> 4) Set the environment variable: CLASSPATH=C:\Program Files\netbeans-
> 5.0\enterprise2\jakarta-tomcat-5.5.9\common
> lib

> Now when i deploy and start the application on the Tomcat, Tomcat
> logs give me this error:

> May 28, 2006 10:46:10 PM
> org.apache.catalina.mbeans.ServerLifecycleListenercreateMBeans

> SEVERE: createMBeans: Throwable

> java.lang.NullPointerException

>at org.apache.catalina.mbeans.MBeanUtils.createObjectName(
> MBeanUtils.java:1079)

Are you using the Tomcat server distributed with NB, have you set this
one up as an "external" server in NB or is this problem occurring
outside of NB?

If it is occurring when you 'run project' from within NB, then you may
want to connect with the NetBeans user mailing list.  Additionally, if
the application functions properly within NB but blows up when you
deploy the .war file, the same applies.  Occasionally, there can be
intricacies with deployment internally as opposed to externally.
Usually, in my limited experience, this is because of difficulties in
properly specifying the location of libraries.

Thanks.

mp

--
Michael Powe[EMAIL PROTECTED]Naugatuck CT USA


47.3% of all statistics are made up on the spot. - Steven Wright






--
Marc Farrow


Re: jsessionid

2006-05-26 Thread Marc Farrow

Oh yeah!  Parameters are case sensitive.  You need to make sure the case is
the same as what is produced automatically.  I don't recall it being all
lowercase.

On 5/26/06, Gilbert, Antoine <[EMAIL PROTECTED]> wrote:


Tried these without success

http://myurl;jsessionid=xx?otherparams
http://myurl?jsessionid=xx&otherparams
http://myurl?otherparams;jsessionid=xx



-Original Message-----
From: Marc Farrow [mailto:[EMAIL PROTECTED]
Sent: May 26, 2006 9:10 AM
To: Tomcat Users List
Subject: Re: jsessionid

should not the jsessionid be just another parameter like the rest?

have you tried this?

http://myurl?jsessionid=xx&otherparams


On 5/26/06, Gilbert, Antoine <[EMAIL PROTECTED]> wrote:
>
> Hi
>
>
>
> I have a problem related to http sessions.
>
>
>
> I have an image tag in a page. Using JavaScript I change the source of
> the image and calling a servlet hosted by tomcat 5. In this particular
> case I have to specify the jsessionid in the url to bind the call to
an
> existing session.
>
>
>
> http://myurl;jsessionid=xx?otherparams
> <http://myurl;jsessionid=xx/?otherparams> =...
>
>
>
> I don't know why, but this is not working. It seem to be on a
different
> session than the existing one.
>
>
>


--
Marc Farrow


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--
Marc Farrow


Re: Native connector startup problem

2006-05-26 Thread Marc Farrow

Then I am way off base.

On 5/26/06, Fenlason, Josh <[EMAIL PROTECTED]> wrote:


I don't follow what you're getting at.  I'm just trying to get Tomcat to
startup.  Apache isn't up yet.  I have Tomcat's HTTP connector disabled.
The only two ports that Tomcat is using is the shutdown port and the ajp
port.  I know that nothing else is using those ports.  Thanks.
,
Josh.

> -Original Message-
> From: Marc Farrow [mailto:[EMAIL PROTECTED]
> Sent: Friday, May 26, 2006 8:08 AM
> To: Tomcat Users List
> Subject: Re: Native connector startup problem
>
> I am making a blind stab in the dark here, but it seems as
> though your Tomcat AJP connector is listening is on another
> port than what your actual AJP is running on.
>
> On 5/26/06, Fenlason, Josh <[EMAIL PROTECTED]> wrote:
> >
> > Thanks for the suggestion, but the port isn't in use.  If I disable
> > the native connector, Tomcat starts up fine.  I ran netstat and
> > nothing was using that port.  Changing the AJP port to
> something else
> > that I know is open doesn't fix it either.  I'm pretty sure
> there is
> > something fishy going on (at least from AIX's perspective) in the
> > native code when it binds the port.  However, I'm not real
> experienced
> > with C, so I'm not sure what else to look at.  Any familiar
> with the
> > native apr connector have any suggestions?  Thanks.
> > ,
> > Josh.
> >
> > > -Original Message-
> > > From: Martin Gainty [mailto:[EMAIL PROTECTED]
> > > Sent: Thursday, May 25, 2006 5:15 PM
> > > To: Tomcat Users List
> > > Subject: Re: Native connector startup problem
> > >
> > > Looks more like AJP port is bound ..grep thru http*.conf
> , find the
> > > AJPPort specifier (usually 8009) then netstat -a | grep ThatPort
> > > (then go after the process id) If that doesnt solve it shutdown
> > > Tomcat/ shutdown Apache, and start Apache / start Tomcat If that
> > > doesnt  solve it you may have to power cycle the box
> Anyone else ???
> > > M-
> > >
> 
> > > * This email message and any files transmitted with it contain
> > > confidential information intended only for the person(s) to whom
> > > this email message is addressed.  If you have received this email
> > > message in error, please notify the sender immediately by
> telephone
> > > or email and destroy the original message without making a copy.
> > > Thank you.
> > >
> > >
> > >
> > > - Original Message -
> > > From: "Fenlason, Josh" <[EMAIL PROTECTED]>
> > > To: "Tomcat Users List" 
> > > Sent: Thursday, May 25, 2006 5:44 PM
> > > Subject: Native connector startup problem
> > >
> > >
> > > I'm running into the error when I try to startup Tomcat
> > > 5.5.17 with the
> > > 1.1.3 native connector on AIX.  It starts up fine on the
> same port
> > > when not using the native connector, so there's nothing
> else using
> > > the port.
> > > Has anyone else seen this?  Anyone have any suggestions on what's
> > > wrong?
> > > Thanks in advance.
> > > ,
> > > Josh.
> > >
> > > -bash-3.00$
> > > LD_LIBRARY_PATH=/home/snow/jfenlason/aix/install/tomcat5.5.17/
> > > tomcat/bin
> > > /native ./catalina.sh run
> > > Using CATALINA_BASE:
> > > /home/snow/jfenlason/aix/install/tomcat5.5.17/tomcat
> > > Using CATALINA_HOME:
> > > /home/snow/jfenlason/aix/install/tomcat5.5.17/tomcat
> > > Using CATALINA_TMPDIR:
> > > /home/snow/jfenlason/aix/install/tomcat5.5.17/tomcat/temp
> > > Using JRE_HOME:   /usr/java5
> > > May 25, 2006 4:35:02 PM org.apache.coyote.ajp.AjpAprProtocol init
> > > SEVERE: Error initializing endpoint
> > > java.lang.Exception: Socket bind failed: [22] A system
> call received
> > > a parameter that is not valid.
> > > at
> > > org.apache.tomcat.util.net.AprEndpoint.init(AprEndpoint.java:571)
> > > at
> > > org.apache.coyote.ajp.AjpAprProtocol.init(AjpAprProtocol.java:183)
> > > at
> > > org.apache.catalina.connector.Connector.initialize(Connector.j
> > > ava:1016)
> > > at
> > > org.apache.catalina.core.StandardService.initialize(StandardSe
> > > rvice.java
> > > :580)
> > > at

Re: jsessionid

2006-05-26 Thread Marc Farrow

should not the jsessionid be just another parameter like the rest?

have you tried this?

http://myurl?jsessionid=xx&otherparams


On 5/26/06, Gilbert, Antoine <[EMAIL PROTECTED]> wrote:


Hi



I have a problem related to http sessions.



I have an image tag in a page. Using JavaScript I change the source of
the image and calling a servlet hosted by tomcat 5. In this particular
case I have to specify the jsessionid in the url to bind the call to an
existing session.



http://myurl;jsessionid=xx?otherparams
<http://myurl;jsessionid=xx/?otherparams> =...



I don't know why, but this is not working. It seem to be on a different
session than the existing one.






--
Marc Farrow


Re: Native connector startup problem

2006-05-26 Thread Marc Farrow
t
> org.apache.catalina.startup.Catalina.load(Catalina.java:523)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccess
> orImpl.jav
> a:64)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMeth
> odAccessor
> Impl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:615)
> at
> org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:266)
> at
> org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:431)
> May 25, 2006 4:35:02 PM org.apache.catalina.startup.Catalina load
> INFO: Initialization processed in 1145 ms
> May 25, 2006 4:35:03 PM org.apache.catalina.core.StandardService start
> INFO: Starting service Catalina
> May 25, 2006 4:35:03 PM org.apache.catalina.core.StandardEngine start
> INFO: Starting Servlet Engine: Apache Tomcat/5.5.17
> May 25, 2006 4:35:03 PM org.apache.catalina.core.StandardHost start
> INFO: XML validation disabled
> May 25, 2006 4:35:06 PM org.apache.coyote.ajp.AjpAprProtocol start
> SEVERE: Error starting endpoint
> java.lang.Exception: Socket bind failed: [22] A system call received a
> parameter that is not valid.
> at
> org.apache.tomcat.util.net.AprEndpoint.init(AprEndpoint.java:571)
> at
> org.apache.tomcat.util.net.AprEndpoint.start(AprEndpoint.java:681)
> at
> org.apache.coyote.ajp.AjpAprProtocol.start(AjpAprProtocol.java:211)
> at
> org.apache.catalina.connector.Connector.start(Connector.java:1089)
> at
> org.apache.catalina.core.StandardService.start(StandardService
> .java:459)
> at
> org.apache.catalina.core.StandardServer.start(StandardServer.java:709)
> at
> org.apache.catalina.startup.Catalina.start(Catalina.java:551)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccess
> orImpl.jav
> a:64)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMeth
> odAccessor
> Impl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:615)
> at
> org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294)
> at
> org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)
> May 25, 2006 4:35:06 PM org.apache.catalina.startup.Catalina start
> SEVERE: Catalina.start:
> LifecycleException:  service.getName(): "Catalina";  Protocol handler
> start failed: java.lang.Exception: Socket bind failed: [22] A system
> call received a parameter that is not valid.
> at
> org.apache.catalina.connector.Connector.start(Connector.java:1096)
> at
> org.apache.catalina.core.StandardService.start(StandardService
> .java:459)
> at
> org.apache.catalina.core.StandardServer.start(StandardServer.java:709)
> at
> org.apache.catalina.startup.Catalina.start(Catalina.java:551)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccess
> orImpl.jav
> a:64)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMeth
> odAccessor
> Impl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:615)
> at
> org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294)
> at
> org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)
> May 25, 2006 4:35:06 PM org.apache.catalina.startup.Catalina start
> INFO: Server startup in 4047 ms
>
>

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--
Marc Farrow


Re: More (Unending) "Resource Not Found"/ Directory Problems

2006-05-25 Thread Marc Farrow

The main thing is to keep the main thing the main thing and oh yeah I am
happy you got your problem resolved.

On 5/25/06, Allen Williams <[EMAIL PROTECTED]> wrote:


Well, I'd first like to say (before I make a complete fool of
myself) thanks to all who helped me.  I have (embarassing moment
here) finally found the problem.

When I was running under the old configuration, I had the test
URL bookmarked as /smsinfo/login.jsp.  The directory doesn't
(or, didn't, until now) have an index.* file.

Since the default page and all the examples worked, I decided to
put my app directory as a link on the default page and see if I
could get it to work that way.  So, I took apart the default
ROOT/WEB-INF/web.xml file (i. e., unmapped the precompiled
default default page, so it would use the uncompiled index.jsp
in the ROOT/ directory, added my link to it, and still nothing.
Starting there, I found the problem.

Is there an emoticon that denotes severe embarrassment?  All I
can say, is at least at some point I said it would be some
trivial thing.  Well, it was.


> -Original Message-
> From: Hassan Schroeder [mailto:[EMAIL PROTECTED]
> Sent: Thursday, May 25, 2006 6:30 PM
> To: Tomcat Users List
> Subject: Re: More (Unending) "Resource Not Found"/ Directory Problems
>
>
> On 5/25/06, Allen Williams <[EMAIL PROTECTED]> wrote:
> > Yeah, I fixed that.  That error is no longer in the logs.
>
> Let me assure you that absolute appBase and absolute docBase
> paths work fine together -- I've got systems in production set up
> that way.
>
> In any case, what *does* show up in your log when you start up
> Tomcat now? There should be some reference to why /smsinfo
> isn't found, or isn't starting.
>
> --
> Hassan Schroeder  [EMAIL PROTECTED]
>
> -
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--
Marc Farrow


Re: More (Unending) "Resource Not Found"/ Directory Problems

2006-05-25 Thread Marc Farrow

As Hassan pointed out your docbase tag is wrong.  change to docBase (case
sensitive) and check the other tags.

On 5/25/06, Allen Williams <[EMAIL PROTECTED]> wrote:


I am not using a context.xml.  Someone suggested I do so, it would be
under META-INF, but I don't have a META-INF subdir except under one
of the example apps.  I'm more than happy to do so in the future,
which this person pointed out was better form (more modular?), but
not sure where it is supposed to go, and for the moment just want
to get back to square one, with everything working.

Therefore, the germane addition to my server.xml file is here:

**
 
   
 

   
   

    From: Marc Farrow [mailto:[EMAIL PROTECTED]
> Sent: Thursday, May 25, 2006 3:57 PM
> To: Tomcat Users List
> Subject: Re: More (Unending) "Resource Not Found"/ Directory Problems
>
>
> paste your context.xml and server.xml.  As info.  The docbase can be
> absolute or relative.  I would suggest using relative (which would be
> relative to appBase).
>
> On 5/25/06, AJ Jonen <[EMAIL PROTECTED]> wrote:
> >
> > Linux is case sensitive do you have the write case.
> >
> >
> > Allen Williams wrote:
> >
> > >Nope, unfortunately, didn't work.  Still get the "Resource not
> > >found" message.
> > >
> > >What am I missing here?
> > >
> > >
> > >
> > >>-Original Message-
> > >>From: Allen Williams [mailto:[EMAIL PROTECTED]
> > >>Sent: Thursday, May 25, 2006 3:28 PM
> > >>To: Tomcat Users List
> > >>Subject: RE: More (Unending) "Resource Not Found"/ Directory
Problems
> > >>
> > >>
> > >>Ahh!  Thanks!  I found the appBase attribute in the  element.
> > >>I'm putting absolute paths in everything (of the form
> > >>"/usr/local/tomcat/...",
> > >>not of the form
> > >>"http://localhost:8080/...";)
> > >>to see if that gets it working.  The only context.xml
> > >>file I've found is in the CATALINA_HOME/conf directory, not a
META-INF
> > >>directory.
> > >>
> > >>
> > >>
> > >>>-Original Message-
> > >>>From: Marc Farrow [mailto:[EMAIL PROTECTED]
> > >>>Sent: Thursday, May 25, 2006 3:18 PM
> > >>>To: Tomcat Users List
> > >>>Subject: Re: More (Unending) "Resource Not Found"/ Directory
Problems
> > >>>
> > >>>
> > >>>the appBase is an attribute that is defined in your server.xml.
> > >>>By default
> > >>>it is your TOMCAT_HOME/WEBAPPS folder.
> > >>>
> > >>>On 5/25/06, Allen Williams <[EMAIL PROTECTED]> wrote:
> > >>>
> > >>>
> > >>>>I will take your advice and figure out how to use
> META-INF/context.xml
> > >>>>as soon as I get back to where I was (I wondered what that
META-INF
> > >>>>directory was for;-). Are the absolute paths like
> > >>>>"http://localhost:8080/smsinfo";
> > >>>>or like "/usr/local/tomcat/webapps/smsinfo"?  This has always been
a
> > >>>>point of confusion for me.
> > >>>>
> > >>>>Also, I assume by docBase you mean the docbase attribute in
> > >>>>
> > >>>>
> > >>the Context
> > >>
> > >>
> > >>>>element.
> > >>>>What do you mean by appBase?
> > >>>>
> > >>>>TIA
> > >>>>
> > >>>>
> > >>>>
> > >>>>>-Original Message-
> > >>>>>From: Hassan Schroeder [mailto:[EMAIL PROTECTED]
> > >>>>>Sent: Thursday, May 25, 2006 11:45 AM
> > >>>>>To: Tomcat Users List
> > >>>>>Subject: Re: More (Unending) "Resource Not Found"/
> > >>>>>
> > >>>>>
> > >>Directory Problems
> > >>
> > >>
> > >>>>>On 5/25/06, Allen Williams <[EMAIL PROTECTED]> wrote:
> > >>>>>
> > >>>>>
> > >>>>>
> > >>>>>>I added this to the server.xml file:
> > >>>>>>
> > >>>>>>   > >>>>>>   unpackWARs="true" autoDeploy=&qu

Re: tomcat and java

2006-05-25 Thread Marc Farrow

google "java resource bundles".  This should lead you in the correct
direction to how to use multiple languages and text/etc for different types
of resources/languages/etc

On 5/25/06, AJ Jonen <[EMAIL PROTECTED]> wrote:


Is it possible to have 2 different java connections in Tomcat. And
1. set the language settings for each java connection differently

2. based on what web page is calling tomcat. display correct language.
Aaron

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--
Marc Farrow


Re: More (Unending) "Resource Not Found"/ Directory Problems

2006-05-25 Thread Marc Farrow

paste your context.xml and server.xml.  As info.  The docbase can be
absolute or relative.  I would suggest using relative (which would be
relative to appBase).

On 5/25/06, AJ Jonen <[EMAIL PROTECTED]> wrote:


Linux is case sensitive do you have the write case.


Allen Williams wrote:

>Nope, unfortunately, didn't work.  Still get the "Resource not
>found" message.
>
>What am I missing here?
>
>
>
>>-Original Message-
>>From: Allen Williams [mailto:[EMAIL PROTECTED]
>>Sent: Thursday, May 25, 2006 3:28 PM
>>To: Tomcat Users List
>>Subject: RE: More (Unending) "Resource Not Found"/ Directory Problems
>>
>>
>>Ahh!  Thanks!  I found the appBase attribute in the  element.
>>I'm putting absolute paths in everything (of the form
>>"/usr/local/tomcat/...",
>>not of the form
>>"http://localhost:8080/...";)
>>to see if that gets it working.  The only context.xml
>>file I've found is in the CATALINA_HOME/conf directory, not a META-INF
>>directory.
>>
>>
>>
>>>-Original Message-
>>>From: Marc Farrow [mailto:[EMAIL PROTECTED]
>>>Sent: Thursday, May 25, 2006 3:18 PM
>>>To: Tomcat Users List
>>>Subject: Re: More (Unending) "Resource Not Found"/ Directory Problems
>>>
>>>
>>>the appBase is an attribute that is defined in your server.xml.
>>>By default
>>>it is your TOMCAT_HOME/WEBAPPS folder.
>>>
>>>On 5/25/06, Allen Williams <[EMAIL PROTECTED]> wrote:
>>>
>>>
>>>>I will take your advice and figure out how to use META-INF/context.xml
>>>>as soon as I get back to where I was (I wondered what that META-INF
>>>>directory was for;-). Are the absolute paths like
>>>>"http://localhost:8080/smsinfo";
>>>>or like "/usr/local/tomcat/webapps/smsinfo"?  This has always been a
>>>>point of confusion for me.
>>>>
>>>>Also, I assume by docBase you mean the docbase attribute in
>>>>
>>>>
>>the Context
>>
>>
>>>>element.
>>>>What do you mean by appBase?
>>>>
>>>>TIA
>>>>
>>>>
>>>>
>>>>>-Original Message-
>>>>>From: Hassan Schroeder [mailto:[EMAIL PROTECTED]
>>>>>Sent: Thursday, May 25, 2006 11:45 AM
>>>>>To: Tomcat Users List
>>>>>Subject: Re: More (Unending) "Resource Not Found"/
>>>>>
>>>>>
>>Directory Problems
>>
>>
>>>>>On 5/25/06, Allen Williams <[EMAIL PROTECTED]> wrote:
>>>>>
>>>>>
>>>>>
>>>>>>I added this to the server.xml file:
>>>>>>
>>>>>>  >>>>>   unpackWARs="true" autoDeploy="true"
>>>>>>   xmlValidation="false" xmlNamespaceAware="false">
>>>>>>
>>>>>>
>>>>>>>>>>> debug="5" reloadable="true" />
>>>>>>
>>>>>>
>>>>>>What's wrong here, and can someone help me with this immediate
>>>>>>
>>>>>>
>>>>problem?
>>>>
>>>>
>>>>>1) putting context configuration in server.xml is
>>>>>
>>>>>
>>>discouraged; you'd be
>>>
>>>
>>>>>well off to get used to using META-INF/context.xml early
>>>>>
>>>>>
>>>:-)  but --
>>>
>>>
>>>>>2) when troubleshooting a problem like this, especially if
>>>>>
>>>>>
>>you've been
>>
>>
>>>>> moving things around,  try using *absolute paths* for
>>>>>
>>>>>
>>appBase and
>>
>>
>>>>> docBase so you *know* there's no ambiguity.
>>>>>
>>>>>
>>>>>
>>>>>>Is there some definitive guide to how the hell you're supposed
>>>>>>
>>>>>>
>>>>>to organize a
>>>>>
>>>>>
>>>>>>directory structure with multiple applications?
>>>>>>
>>>>>>
>>>>>Exactly as you have it, as proven by the fact that the ROOT
>>>>>
>>>>>
>>>and example
>>>
>>>
>>>>>contexts work -- it's your context config that's causing
>>>>>
>>>>>
>>your problem.
>>
>>
>>>>>HTH!
>>>>>--
>>>>>Hassan Schroeder  [EMAIL PROTECTED]
>>>>>
>>>>>
>>>>>
>>>>>
>>-
>>
>>
>>>>>To start a new topic, e-mail: users@tomcat.apache.org
>>>>>To unsubscribe, e-mail: [EMAIL PROTECTED]
>>>>>For additional commands, e-mail: [EMAIL PROTECTED]
>>>>>
>>>>>
>>>>-
>>>>To start a new topic, e-mail: users@tomcat.apache.org
>>>>To unsubscribe, e-mail: [EMAIL PROTECTED]
>>>>For additional commands, e-mail: [EMAIL PROTECTED]
>>>>
>>>>
>>>>
>>>>
>>>--
>>>Marc Farrow
>>>
>>>
>>>
>>-
>>To start a new topic, e-mail: users@tomcat.apache.org
>>To unsubscribe, e-mail: [EMAIL PROTECTED]
>>For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>>
>
>
>-
>To start a new topic, e-mail: users@tomcat.apache.org
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--
Marc Farrow


Re: More (Unending) "Resource Not Found"/ Directory Problems

2006-05-25 Thread Marc Farrow

the appBase is an attribute that is defined in your server.xml.  By default
it is your TOMCAT_HOME/WEBAPPS folder.

On 5/25/06, Allen Williams <[EMAIL PROTECTED]> wrote:


I will take your advice and figure out how to use META-INF/context.xml
as soon as I get back to where I was (I wondered what that META-INF
directory was for;-). Are the absolute paths like
"http://localhost:8080/smsinfo";
or like "/usr/local/tomcat/webapps/smsinfo"?  This has always been a
point of confusion for me.

Also, I assume by docBase you mean the docbase attribute in the Context
element.
What do you mean by appBase?

TIA

> -Original Message-
> From: Hassan Schroeder [mailto:[EMAIL PROTECTED]
> Sent: Thursday, May 25, 2006 11:45 AM
> To: Tomcat Users List
> Subject: Re: More (Unending) "Resource Not Found"/ Directory Problems
>
>
> On 5/25/06, Allen Williams <[EMAIL PROTECTED]> wrote:
>
> > I added this to the server.xml file:
> >
> >>unpackWARs="true" autoDeploy="true"
> >xmlValidation="false" xmlNamespaceAware="false">
> >
> > 
> >  >  debug="5" reloadable="true" />
>
> > What's wrong here, and can someone help me with this immediate
problem?
>
> 1) putting context configuration in server.xml is discouraged; you'd be
> well off to get used to using META-INF/context.xml early :-)  but --
> 2) when troubleshooting a problem like this, especially if you've been
>  moving things around,  try using *absolute paths* for appBase and
>  docBase so you *know* there's no ambiguity.
>
> > Is there some definitive guide to how the hell you're supposed
> to organize a
> > directory structure with multiple applications?
>
> Exactly as you have it, as proven by the fact that the ROOT and example
> contexts work -- it's your context config that's causing your problem.
>
> HTH!
> --
> Hassan Schroeder  [EMAIL PROTECTED]
>
> -
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--
Marc Farrow


Re: Creating "Busy Page" while Tomcat is processing

2006-05-24 Thread Marc Farrow

this question would get a much better response by asking in a JSP/Java
forum/list.

On 5/24/06, Calvin Deiterich <[EMAIL PROTECTED]> wrote:


In my ongoing project to create a PDF phone list I know find it
necessary to create a "busy" page while tomcat is processing the data.
I am using servlets and java code to do all the work.
Any ideas on if or how I should proceed.
Thanks
Calvin

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--
Marc Farrow


Re: Question on csv import using browser into MySQL database

2006-05-23 Thread Marc Farrow

Once you use the apache project's fileupload class you can just use a simple
filereader to read through the file record by record and use the
split(String regex) method from the String class to split the data into a
string array.  Then loop through array and write the sql statements to
update your database.

On 5/23/06, Juan Jose Garcia Lau <[EMAIL PROTECTED]> wrote:


If you want to upload files, take a look at

http://jakarta.apache.org/commons/fileupload/

Cheers,

Juan

-Original Message-
From: Christopher Molnar [mailto:[EMAIL PROTECTED]
Sent: Martes, 23 de Mayo de 2006 10:17 a.m.
To: Tomcat Users List
Subject: Question on csv import using browser into MySQL database

Hello,

I need to ask a question from any of the java experts out there. Can
anyone suggest or share a code segment that allows a web user to upload
a csv file and then parse it on the server end with the end goal of it
going into a mysql table?

I have searched everything I can think to search but can't find
anything.

Thanks,
-Chris


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




This message contains information from Banco Cuscatlan Guatemala, which
may be confidential
and privileged.  If you are not an intended recipient, please refrain from
any
disclosure, copying, distribution or use of this information and note that
such actions are prohibited.  If you have received this transmission in
error,
please disregard it.


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--
Marc Farrow


Re: Deploying under 1 specific name doesn't work

2006-05-23 Thread Marc Farrow

Just to make sure you are not missing anything, but are you removing the old
application first and then deploying it again?  you have to remove first.

On 5/23/06, Dirk Moolman <[EMAIL PROTECTED]> wrote:


Sorry, I copy the file onto my PC (it gets e-mailed to me), and then go
into Internet Explorer (http://myserver:8080), and deploy through the
Tomcat Manager (browse option)



-Original Message-
From: Marc Farrow [mailto:[EMAIL PROTECTED]
Sent: 23 May 2006 02:31 PM
To: Tomcat Users List
Subject: Re: Deploying under 1 specific name doesn't work

The main question everyone is going to have is how are you deploying it?




On 5/23/06, Dirk Moolman <[EMAIL PROTECTED]> wrote:
>
>
> Apache Tomcat/5.5.17
> JVM 1.5.0_06-b05
>
>
> I have a very strange problem on a new server.  We deployed an
> application successfully.  After that we even redeployed the
application
> a day or 2 later, after making some changes.
>
> We have now made some more changes, and this time the war file does
not
> want to deploy properly (it deploys actually, but the application does
> not start up) - and here is the strange part.  If I RENAME the war
file,
> and deploy it, it starts up perfectly - only under the old name does
it
> not want to start up.
>
> What could be causing this ?
>
>
>
>
>
>
>
> Dirk Moolman
> Database and Unix Administrator
> Digicare Technologies (HealthCorp)
>
>
>
> The other day I was trapped on an escalator for hoursthe power
went
> out!!!
>
>
> >
> The information on this e-mail including any attachments relates to
the
> official business of DigiCare (Pty) Ltd. The information is
confidential and
> legally privileged and is intended solely for the addressee. Access to
this
> e-mail by anyone else is unauthorised and as such any disclosure,
copying,
> distribution or any action taken or omitted in reliance on it is
unlawful.
> Please notify the sender immediately if it has inadvertently reached
you and
> do not read, disclose or use the content in any way.
> >
> No responsibility whatsoever is accepted by DigiCare (Pty) Ltd if the
> information is, for whatever reason, corrupted or does not reach its
> intended destination. The views expressed in this e-mail  are the
views of
> the individual sender and should in no way be construed as the views
of
> DigiCare (Pty) Ltd, except where the sender has specifically stated
them to
> be the views of DigiCare (Pty) Ltd.
> >
>
>
> ---------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


--
Marc Farrow

>
The information on this e-mail including any attachments relates to the
official business of DigiCare (Pty) Ltd. The information is confidential and
legally privileged and is intended solely for the addressee. Access to this
e-mail by anyone else is unauthorised and as such any disclosure, copying,
distribution or any action taken or omitted in reliance on it is unlawful.
Please notify the sender immediately if it has inadvertently reached you and
do not read, disclose or use the content in any way.
>
No responsibility whatsoever is accepted by DigiCare (Pty) Ltd if the
information is, for whatever reason, corrupted or does not reach its
intended destination. The views expressed in this e-mail  are the views of
the individual sender and should in no way be construed as the views of
DigiCare (Pty) Ltd, except where the sender has specifically stated them to
be the views of DigiCare (Pty) Ltd.
>


-----
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--
Marc Farrow


Re: Deploying under 1 specific name doesn't work

2006-05-23 Thread Marc Farrow

The main question everyone is going to have is how are you deploying it?




On 5/23/06, Dirk Moolman <[EMAIL PROTECTED]> wrote:



Apache Tomcat/5.5.17
JVM 1.5.0_06-b05


I have a very strange problem on a new server.  We deployed an
application successfully.  After that we even redeployed the application
a day or 2 later, after making some changes.

We have now made some more changes, and this time the war file does not
want to deploy properly (it deploys actually, but the application does
not start up) - and here is the strange part.  If I RENAME the war file,
and deploy it, it starts up perfectly - only under the old name does it
not want to start up.

What could be causing this ?







Dirk Moolman
Database and Unix Administrator
Digicare Technologies (HealthCorp)



The other day I was trapped on an escalator for hoursthe power went
out!!!


>
The information on this e-mail including any attachments relates to the
official business of DigiCare (Pty) Ltd. The information is confidential and
legally privileged and is intended solely for the addressee. Access to this
e-mail by anyone else is unauthorised and as such any disclosure, copying,
distribution or any action taken or omitted in reliance on it is unlawful.
Please notify the sender immediately if it has inadvertently reached you and
do not read, disclose or use the content in any way.
>
No responsibility whatsoever is accepted by DigiCare (Pty) Ltd if the
information is, for whatever reason, corrupted or does not reach its
intended destination. The views expressed in this e-mail  are the views of
the individual sender and should in no way be construed as the views of
DigiCare (Pty) Ltd, except where the sender has specifically stated them to
be the views of DigiCare (Pty) Ltd.
>


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--
Marc Farrow


Re: JAVA_HOME / JRE_HOME still necessary?

2006-05-10 Thread Marc Farrow

Did I reply to the wrong thread?  Or did I reply to a high-jacked thread?  I
am sorry.

On 5/10/06, Marc Farrow <[EMAIL PROTECTED]> wrote:


 The question is:  Where will Tomcat be running?

If Tomcat is only running on one server, then only that server needs to be
set up.  If you are going to be running Tomcat on each machine, then
modify/create the start up scripts to set the JAVA_HOME/JAVA_JRE paths in
the script.  (Easily done on Windows).



On 5/10/06, Stefan Wachter <[EMAIL PROTECTED]> wrote:
>
> Hi Tim (et al.),
>
> ok, I understand the necessity for using different JDKs. I thought that
> adjusting the JAVA_HOME environment variable for certain situations
> might be the same effort as adjusting the PATH environment variable.
>
> Maybe an option would be to use the JAVA_HOME/JRE_HOME variables if they
> are present and to rely on the path if they are absent?
>
> What about tools.jar? Is it needed?
>
> Grettings,
> --Stefan
>
> PS: I have to write a setup for an application that uses Tomcat. Tomcat
> is running for end users on their local machines and not on an
> administrated server. I think the average end user should not be forced
> to set an environment variable.
>
>
> Tim Lucia wrote:
> > What about multiple JREs or JDKs on your system?  Unlike Microsoft
> products,
> > you can actually have multiple versions of Java on your system
> coexisting
> > peacefully.  Try installing the public beta of IE 7--and you are now
> running
> > beta software in the core of your OS (assuming of course you have a
> Windows
> > desktop ;-)
> >
> > Also, for security reasons, daemon processes and/or services should
> not
> > require or rely on PATH variables.
> >
> > Tim
> >
> > -Original Message-
> > From: Stefan Wachter [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, May 10, 2006 7:13 AM
> > To: users@tomcat.apache.org
> > Subject: JAVA_HOME / JRE_HOME still necessary?
> >
> > Hi all,
> >
> > wouldn't it be nice if Tomcat does not need the JAVA_HOME or JRE_HOME
> > environment variable? After installation of the SUN-JDK these
> > environment variables are not set. Java is in the "path" and that's
> it.
> >
> > While starting Tomcat the script "setclasspath.bat " checks if one of
> the
> > environment variables JAVA_HOME or JRE_HOME is set. Then one of these
> > variables is used to construct the execution commands and to set the
> > CLASSPATH environment variable such that is contains tools.jar.
> >
> > As far as the execution command is concerned using one of the
> > HOME-variables is not necessary as long as Java is in the path.
> >
> > I wonder why the classpath must contain tools.jar . Tomcat 5.5 uses
> the
> > Eclipse Java compiler for compiling JSPs. Therefore I think that
> > tools.jar is no more needed.
> >
> > Patching "setclasspath.bat" such that it no more relies on one of the
> > HOME variables I started Tomcat. It seems to work as usual.
> >
> > Thanks for your attention,
> > --Stefan
> >
> >
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


--

Marc Farrow





--
Marc Farrow


Re: JAVA_HOME / JRE_HOME still necessary?

2006-05-10 Thread Marc Farrow

The question is:  Where will Tomcat be running?

If Tomcat is only running on one server, then only that server needs to be
set up.  If you are going to be running Tomcat on each machine, then
modify/create the start up scripts to set the JAVA_HOME/JAVA_JRE paths in
the script.  (Easily done on Windows).



On 5/10/06, Stefan Wachter <[EMAIL PROTECTED]> wrote:


Hi Tim (et al.),

ok, I understand the necessity for using different JDKs. I thought that
adjusting the JAVA_HOME environment variable for certain situations
might be the same effort as adjusting the PATH environment variable.

Maybe an option would be to use the JAVA_HOME/JRE_HOME variables if they
are present and to rely on the path if they are absent?

What about tools.jar? Is it needed?

Grettings,
--Stefan

PS: I have to write a setup for an application that uses Tomcat. Tomcat
is running for end users on their local machines and not on an
administrated server. I think the average end user should not be forced
to set an environment variable.


Tim Lucia wrote:
> What about multiple JREs or JDKs on your system?  Unlike Microsoft
products,
> you can actually have multiple versions of Java on your system
coexisting
> peacefully.  Try installing the public beta of IE 7--and you are now
running
> beta software in the core of your OS (assuming of course you have a
Windows
> desktop ;-)
>
> Also, for security reasons, daemon processes and/or services should not
> require or rely on PATH variables.
>
> Tim
>
> -Original Message-
> From: Stefan Wachter [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, May 10, 2006 7:13 AM
> To: users@tomcat.apache.org
> Subject: JAVA_HOME / JRE_HOME still necessary?
>
> Hi all,
>
> wouldn't it be nice if Tomcat does not need the JAVA_HOME or JRE_HOME
> environment variable? After installation of the SUN-JDK these
> environment variables are not set. Java is in the "path" and that's it.
>
> While starting Tomcat the script "setclasspath.bat" checks if one of the
> environment variables JAVA_HOME or JRE_HOME is set. Then one of these
> variables is used to construct the execution commands and to set the
> CLASSPATH environment variable such that is contains tools.jar.
>
> As far as the execution command is concerned using one of the
> HOME-variables is not necessary as long as Java is in the path.
>
> I wonder why the classpath must contain tools.jar. Tomcat 5.5 uses the
> Eclipse Java compiler for compiling JSPs. Therefore I think that
> tools.jar is no more needed.
>
> Patching "setclasspath.bat" such that it no more relies on one of the
> HOME variables I started Tomcat. It seems to work as usual.
>
> Thanks for your attention,
> --Stefan
>
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>


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





--
Marc Farrow


Re: Virtual Hosts + Tomcat 5 + Windows

2006-05-09 Thread Marc Farrow

The HTTPD.CONF file is an Apache file, not a Tomcat file.  You are mixing
two different products.

On 5/9/06, Jorge Isaac Martínez Hatch <[EMAIL PROTECTED]> wrote:


Hi,

I found information of how to create a virtual host adding some code to
the
httpd.conf file, but I'm running Windows not Linux. I don't have a
httpd.conf file.

Should I put this code somewhere else? maybe in the server.xml?


   ServerName www.somedomain.com
   DocumentRoot [path]
   ServerAdmin [EMAIL PROTECTED]
   ErrorLog [path]
   TransferLog [path]



   ServerName www.otherdomain.com
   DocumentRoot [path]
   ServerAdmin [EMAIL PROTECTED]
   ErrorLog [path]
   TransferLog [path]


Thank you,
Isaac Martinez


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





--
Marc Farrow


Re: URL with WWW problem

2006-05-09 Thread Marc Farrow

Filters are your best bet or using another server in front and using URL
rewriting.



On 5/9/06, Scott Purcell <[EMAIL PROTECTED]> wrote:


Hello,



Tomcat 5.5 standalone.



Yesterday I had a thread stating that sometimes users, and google may
refer to my site something like http://mysite.com <http://mysite.com/>
omitting the www portion of the URL.  As I stated yesterday, my site
needs the www.mysite.com <http://www.mysite.com/>  because of a
certificate I am using.



The site was built using the struts framework, so I asked some users on
that list about the problem. And they said that this should be
configurable within the container, or within Tomcat.



So my question to this list, is there a way to have Tomcat accept the
http://mysite.com <http://mysite.com/>  and then call for
http://www.mysite.com <http://www.mysite.com/>  through some type of
configuration setting?



I know someone yesterday mentioned filters, but I could not find any
examples of this type via a heavy google search. I know some simple
solutions would be to use redirects, etc. but doing so will screw up my
indexing via bots. I woiuld like to handle this situation cleanly and
not mess with code to do so?





Thanks,

Scott












--
Marc Farrow


Re: "This page contains secure and non secure elements" (was "mod_jk : "connection aborted or network problems", but apache and tomcat are on the same machine??")

2006-05-08 Thread Marc Farrow

You said it gives a warning in Firefox, but IE doesn't allow page to be
pulled up.  I am pretty sure this is a security setting within IE (and can
be disabled or changed to prompt) and not anything you can control (however
the user/client could).  You would have to remove the warning totally to get
around it.

On 5/8/06, Francis Galiegue <[EMAIL PROTECTED]> wrote:


OK, I have some more information...

The whole webapp is served through mod_ssl, as such (in the webapp
specific config file):



[...]
   SSLEngine on
   SSLProtocol all -SSLv2
   SSLCipherSuite ALL:!ADH:RC4+RSA:+HIGH:-MEDIUM:-SSLv2:-LOW:-eNULL
   SSLOptions +StdEnvVars +ExportCertData
   SSLCertificateKeyFile conf/ssl.key/one2team.key
   SSLCertificateFile conf/ssl.crt/one2team.crt
[...]


The dates of the messages in jk.log match precisely the moment where
users see a security popup (well, at least during work hours) warning
them that the page contains secure and non secure items. When they
choose to see the page anyway, IE says that "the page cannot be
loaded" (doh). Those same pages work fine the rest of the time.

But IE is not the only "culprit", since Firefox users also get the
warning and observe the same behaviour: ask to view the page anyway,
but it immediately fails to load - this time with a message saying
(translated from French, so very probably inaccurate) 'Timeout - The
server took too much time to respond'. Whenever you click Yes
immediately or 5 seconds later.

From what I've read, this message can appear when an empty response is
sent back to the browser, even if this response is supposedly SSL (the
mod_ssl configuration looks fine AFAICT). I use konqueror myself, but
don't use the site regularly enough that I encountered this problem.

The question which I still didn't find an answer for is what mod_jk
actually calls the client...

TIA,
--
Francis Galiegue, [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED]
One2team - 12bis rue de la Pierre Levée, 75011 Paris - 0143381980
"When it comes to performance, weight is everything" - Tiff Needell

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





--
Marc Farrow


Re: META-INF/context.xml and custom Manager

2006-05-05 Thread Marc Farrow

server/lib doesn't seem like the correct place for it, but I am just
guessing here.  Just for kicks try common/lib or shared/lib.

On 5/5/06, John D'Emic <[EMAIL PROTECTED]> wrote:


Its in ose.jar in server/lib. From looking at the tomcat logs, it don't
see
any exceptions trying to load it or anything like that.  I additionally
can
see tomcat reading the jar from the filesystem successfully.  The tomcat
manager entry for my webapp shows this:

Name: Catalina:type=Manager,path=/ose,host=localhost
modelerType: org.apache.catalina.session.StandardManager
algorithm: MD5
randomFile: /dev/urandom
className: org.apache.catalina.session.StandardManager
distributable: false
entropy: [EMAIL PROTECTED]
maxActiveSessions: -1
maxInactiveInterval: 1800
processExpiresFrequency: 6
sessionIdLength: 16
name: StandardManager
pathname: SESSIONS.ser
activeSessions: 1
sessionCounter: 0
maxActive: 0
sessionMaxAliveTime: 0
sessionAverageAliveTime: 0
rejectedSessions: 0
expiredSessions: 0
processingTime: 0
duplicates: 0


-Original Message-----
From: Marc Farrow [mailto:[EMAIL PROTECTED]
Sent: Friday, May 05, 2006 4:07 PM
To: Tomcat Users List
Subject: Re: META-INF/context.xml and custom Manager

Where is this class located?
net.badcurrent.ose.tomcat.manager.CustomManager


Maybe it needs to be somewhere else.  Just a guess.


On 5/5/06, John D'Emic <[EMAIL PROTECTED]> wrote:
>
> Hey all,
>
>
>
> I have a custom Manager class I'm trying to use for a single webapp.  It
> seems the way to do this is to have a context.xml file in the exploded
> webapp's META-INF directory.  I have the following:
>
>
>
> 
>
> className="net.badcurrent.ose.tomcat.manager.CustomManager"/>
>
> 
>
>
>
> The webapp loads fine, but from looking at
> http://localhost:8080/manager/jmxproxy?qry=*:type=Manager,* I don't see
> the
> CustomManager as the manager for my webapp.  I've tried adding the path
> and
> docRoot to  to no avail.  I'm running tomcat 5.5.17 on windows
xp
> sp2 with a stock server.xml and context.xml.  The jar for the custom
> manager
> is in server/lib (I also tried it in common/lib.)  I'm at a loss what to
> try
> next, any help would be appreciated.
>
>
>
> Thanks,
>
> -john
>
>
>
>
>


--
Marc Farrow


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





--
Marc Farrow


Re: META-INF/context.xml and custom Manager

2006-05-05 Thread Marc Farrow

Where is this class located? net.badcurrent.ose.tomcat.manager.CustomManager


Maybe it needs to be somewhere else.  Just a guess.


On 5/5/06, John D'Emic <[EMAIL PROTECTED]> wrote:


Hey all,



I have a custom Manager class I'm trying to use for a single webapp.  It
seems the way to do this is to have a context.xml file in the exploded
webapp's META-INF directory.  I have the following:





   





The webapp loads fine, but from looking at
http://localhost:8080/manager/jmxproxy?qry=*:type=Manager,* I don't see
the
CustomManager as the manager for my webapp.  I've tried adding the path
and
docRoot to  to no avail.  I'm running tomcat 5.5.17 on windows xp
sp2 with a stock server.xml and context.xml.  The jar for the custom
manager
is in server/lib (I also tried it in common/lib.)  I'm at a loss what to
try
next, any help would be appreciated.



Thanks,

-john








--
Marc Farrow


Re: Tomcat: The Definitive Guide Question

2006-05-05 Thread Marc Farrow

Tomcat 4 and Tomcat 5 changed a bit in the way they handle and load
contexts.  I wouldn't suggest getting a Tomcat 4 book for a Tomcat 5
server.  SAMS has a Tomcat 5 Unleashed which is pretty good, but I don't
think it covers Tomcat 5.5.

On 5/5/06, Scott Purcell <[EMAIL PROTECTED]> wrote:


Hello,

I am running Tomcat 5.5 and figured its about time to grab a book so I
can understand the product better. The one that received good reviews
appears to be the OReilly Definitive Guide. But it covers 4.0 Tomcat.



Is there a 5.0 Oreilly book coming out? Or does this current book
covering 4.0 work good enough with 5.0?





Thanks,






--
Marc Farrow


Re: Crashing Tomcat 4.1 on Debain

2006-05-04 Thread Marc Farrow

Min,

 You commited what is known as thread stealing.  Read the FAQs.  When you
want to submit a new question/topic then send a clean email to
users@tomcat.apache.org and DO NOT REPLY to someone else's post.

On 5/4/06, Min Huang <[EMAIL PROTECTED]> wrote:


I've been stumped on a (what seems to be) a simple classpath
problem for nearly a day now, and I am feeling like an idiot
for not being able to figure it out.

I wrote a jar that is bundled within a war, as part of a web
app that was written long ago.  My application jar references a
bunch of configuration files, all located inside the jar.

When testing the app, it seems that none of my configuration
files within the jar can be found, causing my code to fail.  I'm using
Log4J, Hibernate3, and Commons Configuration - none of whose
configuration files are found.

However, I decided to play around with the problem a little bit,
and I found that if I unpack my jar into the /WEB-INF/classes
folder, and the tomcat log shows that all of my configuration files,
save for my hibernate.cfg.xml, are found.

Now, a few twists to make things interesting:
- I'm using Hibernate 3, but the old webapp is using Hibernate2, which
I assumed wouldn't cause namespace conflicts because they are located
in different packages.
- The Hibernate2 configuration file is located in /WEB-INF/classes
and can be found.  *My* Hibernate3 configuration file is located within
my jar in /WEB-INF/lib, and can't be found.
- My configuration files aren't located in the base path within the
jar, if that makes a difference.
- My application jar runs fine on its own if I make a quick and dirty
JSP with a scriplet that executes the code.

Is this a classpath issue?  Do different versions of Hibernate just
not play around nicely with each other?  Will I have hair left before
this problem is resolved?

If anybody knows, please tell!



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





--
Marc Farrow


Re: Fw: JAVAHOME

2006-05-03 Thread Marc Farrow

Also, depending on the Tomcat version (windows installer) the JAVA_HOME is
actually read from registry and not environment entry.

On 5/3/06, Jacob Fenwick <[EMAIL PROTECTED]> wrote:


It should point to the location of your JDK.
Examples:

Windows:
set JAVA_HOME=C:\sun-jdk-1.5.0.06

Linux:
export JAVA_HOME=/opt/sun-jdk-1.5.0.06

Gustav Wiberg wrote:

> Hi there!
>
> Se down below. I get that fault when I try to run an ischolar
> application.
>
> It seems to be the JAVAHOME-variable that isn't registrered. But where
> do I
> find that specific variable? (can't find it)
> is jvm and JAVAHOME the same?
>
> Should this variable point to the JVM-client?
>
> Best regards
> /Gustav Wibeg
>
>>
>>
>>
>>
>> type Exception report
>> message
>> description The server encountered an internal error () that
>> prevented it from fulfilling this request.
>> exception
>> org.apache.jasper.JasperException: Unable to compile class for JSP
>> org.apache.jasper.compiler.DefaultErrorHandler.javacError(
DefaultErrorHandler.java:97)
>> org.apache.jasper.compiler.ErrorDispatcher.javacError(
ErrorDispatcher.java:346)
>> org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:414)
>> org.apache.jasper.compiler.Compiler.compile(Compiler.java:472)
>> org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)
>> org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
>> org.apache.jasper.JspCompilationContext.compile(
JspCompilationContext.java:511)
>> org.apache.jasper.servlet.JspServletWrapper.service(
JspServletWrapper.java:295)
>> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java
:292)
>> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
>> javax.servlet.http.HttpServlet.service(HttpServlet.java:802)root
>> causeUnable to find a javac compiler;com.sun.tools.javac.Main is not
>> on the classpath.Perhaps JAVA_HOME does not point to the JDK
>>
org.apache.tools.ant.taskdefs.compilers.CompilerAdapterFactory.getCompiler
(CompilerAdapterFactory.java:106)
>> org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:935)
>> org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:764)
>> org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:382)
>> org.apache.jasper.compiler.Compiler.compile(Compiler.java:472)
>> org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)
>> org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
>> org.apache.jasper.JspCompilationContext.compile(
JspCompilationContext.java:511)
>> org.apache.jasper.servlet.JspServletWrapper.service(
JspServletWrapper.java:295)
>> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java
:292)
>> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
>> javax.servlet.http.HttpServlet.service(HttpServlet.java:802)note The
>> full stack trace of the root cause is available in the
>> ApacheTomcat/5.0.28 logs.
>
>
>
> ---------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


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





--
Marc Farrow


Re: Connection between Tomcat and JSP

2006-05-03 Thread Marc Farrow

most of the time, the default page to be pulled up is the index.jsp under
your webapp, whether that is ROOT or your context.

On 5/3/06, Gustav Wiberg <[EMAIL PROTECTED]> wrote:


Hi!

I have now started Tomcat and accessed the Tomcat-default page
http://localhost:8080/

But I can't figure out  where the default page is located

Through Tomcat default-page, I look at a few examples and the jsp-examples
succesfully executes! :-)
http://localhost:8080/jsp-examples/

I can't found the map jsp-examples (but obviously it exists)
I can't found any index.jsp (that ought to be the default Tomcat-page?)

I tried to replace the ischolare_webcourse to the ROOT-map, but there
seems
to be no change ):

What can I be doing doing wrong?

Best regards
Gustav Wiberg

- Original Message -
From: "David Smith" <[EMAIL PROTECTED]>
To: "Tomcat Users List" 
Sent: Wednesday, May 03, 2006 1:53 PM
Subject: Re: Connection between Tomcat and JSP


> The "root" folder in tomcat is R00T (all caps, tomcat is case sensitive)
> and you need to replace the whole webapp ROOT with your iScholar webapp.
> Just copying the iScholar webapp to the webapps/ROOT folder won't do it.
> Basically, just trash or rename ROOT, then copy iScholar to the webapps
> folder renaming it ROOT.  Then restart tomcat.  After that, if you
haven't
> changed anything in server.xml, you should be able to see iScholar by
> accessing http://localhost:8080  in your favorite web browser.
>
> -- David
>
> Gustav Wiberg wrote:
>> Hi!
>>
>> I'm a newbie using this Tomcat-application. I figured out that it is a
>> application that in some way acts as a containter for
Java-applications?
>> (like Apache Server could as a a containter for PHP?) Don't know if I
>> have got this right or not.
>>
>> I have Windows XP Pro Edition. I have installed an application called
>> ischolar Courseware, that relies on Tomcat and the webroot were
installed
>> under C:\tomcat\webapps\root\
>>
>> I don't know how i activate so I can run jsp-applications from
>> C:\tomcat\webapps\root\   The Apache Tomcat service is running as a
>> service.
>> Is it any setting for the Apace Tomcat server?
>>
>> (Don't know if this is useful, but I have the Apace-server running at
the
>> root c:\webb\ where I can run PHP-applications.)
>>
>> Best regards
>> /Gustav Wiberg
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>
>
> -----
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


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





--
Marc Farrow


Re: Allow web access to /WEB-INF?

2006-05-03 Thread Marc Farrow

I think the Servlet Specs do not allow this, so I doubt any Servlet
container will allow this via HTTP.  You can do it via File/Stream I/O
however.



On 5/3/06, Dong, Roland <[EMAIL PROTECTED]> wrote:



Is there a way to have web access to /WEB-INF? I want to have this
capability to access a directory under /WEB-INF by URL. Is there a way
to configure that?

I understand the secruity concern on this, but it is an internal
application and we want to use WebDav to access that directory.

Thanks

Richard

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





--
Marc Farrow


Re: iSeries AS400 Install

2006-05-03 Thread Marc Farrow

you will have to read docs on AS400 to see how to set environment
variables.  Or you can modify the startup script to hard-code your JDK you
want to use.

On 5/3/06, Mike Scherer <[EMAIL PROTECTED]> wrote:


 We are installing Tomcat 5.5.17 on an AS400 V5R3. We have installed J2SE
5.0 but the system does not seem to recognize it.

The messages below occur when we try to start Tomcat. I think jdk15 is
J2SE 5.0.

I understand that we can have multiple JDK's on the iSeries but how do we
specify which one to use?



/java/jakarta/tomcat/bin/catalina400.sh


CPC2206:  Ownership of object QZSHSYSTEM in QTEMP type *USRSPC
changed.

Using Classpath: /java/jakarta/apache-tomcat-5.5.17
/bin/bootstrap.jar:/QIBM/P

rodData/Java400/jdk15/lib/tools.jar


Using CATALINA_BASE: /java/jakarta/apache-tomcat-5.5.17


Using CATALINA_HOME: /java/jakarta/apache-tomcat-5.5.17


Using JAVA_HOME:
/QIBM/ProdData/Java400/jdk15

This release of Apache Tomcat was packaged to run on J2SE 5.0


or later. It can be run on earlier JVMs by downloading
and

installing a compatibility package from the Apache
Tomcat

binary download page.




Mike





--
Marc Farrow


Re: Tomcat/IIS - how to map all web apps and not conflict with IIS content...

2006-05-03 Thread Marc Farrow

My only suggestion here is to use some type of generic naming convention.

We use the deprecated MOD_JK2, but it is similar in that it has a properties
file as well.

We just have our URI mappings to something like this and we are asking our
users to use the /servlet* URI for all servlet calls.  This allows all
regular content on port 80 to remain in Apache (in our case) and forward all
the requests that map to the URIs below to Tomcat.  However, with this
approach (depending on what we are doing) we do create Aliases in Apache for
each webapp's directory.

**/*.jsp=ajp13
**/servlet*=ajp13


On 5/3/06, Josh Jacob <[EMAIL PROTECTED]> wrote:


Hello,

   I have Tomcat and IIS successfully communicating with the AJP
1.3/isapi_redirect setup, however, I do have a question about the URL
mappings. I'd like to provide someone the ability to upload/FTP WARs and
have them automatically deploy and served with IIS without having to
edit the "uriworkermap.properties" file and restart IIS.

   I know I can wildcard the whole Tomcat install like this:

   /=ajp13
   /*=ajp13

   but this conflicts with existing IIS content.

   My first thought was to try and get an IIS directory called
something like "/webapps" and map that to the root of the Tomcat install
so IIS URLs like this:

   http://www.site.com/webapps/jsp-examples/

   get mapped to Tomcat URLs like this:

   http://www.site.com:8080/jsp-examples/

   but I think there would be issues with the web apps knowing
their context and linking. Maybe if I could get Tomcat to prefix all
contexts with "/webapps" this would work. Anyone know if this is
possible?

   My second thought was to come up with some naming convention for
web apps. For example, if all web apps start with a "j" then I could
maybe map the URLs like this:

   /j*/*=ajp13

   and the user would just need to not name directories in IIS with
a "j" as the first character.

   Anyone out there doing something similar to this? Or any
suggestions on something else to look into? Thanks in advance for any
pointers.

   Here's the environment I'm running:

   + Windows Server 2003
   + Tomcat 5.5.17
   + isapi_redirect.dll 1.2.14




- josh jacob


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





--
Marc Farrow


Re: jndi.properties

2006-05-03 Thread Marc Farrow

Probably a Java expert could help more, but I think you can use a
ResourceBundle (and place the properties in your package with your java
class files) to retrieve it or even a URL to load the properties file.

URL method psuedo code:
Properties props = new Properties();
URL url = new URL(http://localhost:8080/mywebapp/test.properties);
props.load(url.openStream());
//props.load(InputStream is) is the method defintion so any InputStream will
work

ResourceBundle psuedo code:
ResourceBundle myResource = ResourceBundle.getBundle("
com.yourcompany.yourpackage.jndi");
String myProperty = myResource.getString("mypropertyname");



On 5/3/06, Feris Thia <[EMAIL PROTECTED]> wrote:


Ic so we cannot just load it from the directory where jsp are and
use this code ?

=
InitialContext jndiContext = new InitialContext();
=

On 5/3/06, abdurrahman sahin <[EMAIL PROTECTED]> wrote:
>
> i think , it is actully related to where you are looking for.
> i think you can put it anyware as long as the diretory you put it is
> accessible.
>
> http://asahin.net
>
> private static final String CONFIG_FILE="resources/jndi.properties";
> FileInputStream fis = new FileInputStream(CONFIG_FILE);
> myProperties.load(fis);
>
>


--
Regards,
Feris
PT. Putera Handal Indotama
JL. KH. Moh. Mansyur No. 11 Blok B.8-12
Telp. +62-21-631 6688 (Hunting)
Fax. +62-21-6330211
Jakarta (10140) - INDONESIA

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





--
Marc Farrow


Re: Connection between Tomcat and JSP

2006-05-03 Thread Marc Farrow

Since you have Tomcat running as a service, then you should be able to
access Tomcat via http://localhost:8080.  Is this true?  Can you also access
Apache at http://localhost? If both of these are true and you have Apache
seen from the outside work via http://www.yourdomain.com, then you will need
to look at using some type of connector to forward requests from Apache to
Tomcat (specifically URI requests that are Servlets or JSPs).  MOD_JK is one
of the most popular and it is maintained by the apache.org foundation.  So
start by going to apache.org and looking around.

HTH


On 5/3/06, Gustav Wiberg <[EMAIL PROTECTED]> wrote:


Hi!

I'm a newbie using this Tomcat-application. I figured out that it is a
application that in some way acts as a containter for Java-applications?
(like Apache Server could as a a containter for PHP?) Don't know if I have
got this right or not.

I have Windows XP Pro Edition. I have installed an application called
ischolar Courseware, that relies on Tomcat and the webroot were installed
under C:\tomcat\webapps\root\

I don't know how i activate so I can run jsp-applications from
C:\tomcat\webapps\root\   The Apache Tomcat service is running as a
service.
Is it any setting for the Apace Tomcat server?

(Don't know if this is useful, but I have the Apace-server running at the
root c:\webb\ where I can run PHP-applications.)

Best regards
/Gustav Wiberg


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





--
Marc Farrow


  1   2   >