tld files inside jars are not auto discovered

2005-11-25 Thread Aaron Loucks
I can't get TLD auto discovery to work for any custom taglibs i write 
when I package them as jars. It works fine for the standard taglibs 
(core, fmt, etc..). The tld file is packaged inside the jar as 
'/meta-inf/breadcrumbs_1_0.tld', and breadcrumbs-1.0.jar is located in 
/WEB-INF/lib. If i put a copy of the tld in the WEB-INF directory and 
add a  entry for it in web.xml, I'm able to use the tags. I 
don't understand why Tomcat (5.0.28) is auto detecting the TLD files 
inside the standard taglibs (standard.jar), but it won't autodetect them 
in jar files i produce. Any help would be greatly appreciated.


-Aaron

test.jsp:

<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
   pageEncoding="ISO-8859-1" %>
 
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"; %>
<%@ taglib prefix="bc" 
uri="http://projects.cofront.net/tablibs/breadcrumbs"; %>






Breadcrumb Test


   
   page1
   page2
   page3
   




Produces the following error:

org.apache.jasper.JasperException: The absolute uri: 
http://projects.cofront.net/tablibs/breadcrumbs cannot be 
resolved in either web.xml or the jar files deployed with this application
   
org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:50)
   
org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:411)
   
org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:118)
   
org.apache.jasper.compiler.TagLibraryInfoImpl.generateTLDLocation(TagLibraryInfoImpl.java:316)
   
org.apache.jasper.compiler.TagLibraryInfoImpl.(TagLibraryInfoImpl.java:147)

   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:1539)
   org.apache.jasper.compiler.Parser.parse(Parser.java:126)
   
org.apache.jasper.compiler.ParserController.doParse(ParserController.java:220)
   
org.apache.jasper.compiler.ParserController.parse(ParserController.java:101)

   org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:203)
   org.apache.jasper.compiler.Compiler.compile(Compiler.java:470)
   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 
Apache Tomcat/5.0.28 logs.




_breadcrumbs_1_0.tld:



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-jsptaglibrary_2_0.xsd";

   version="2.0">
  
 Breadcrumbs library

 Breadcrumbs
 1.1
 bc
 http://projects.cofront.net/tablibs/breadcrumbs
 
   Creates Breadcrumbs.
   breadcrumbs
   net.cofront.taglibs.breadcrumbs.BreadCrumbsTag
   JSP
   
   Separator string.
   separator
   yes
   true
   
   
   CSS style to be applied to all breadcrumb 
links.

   style
   no
   true
   
   
   CSS style class to be applied to all breadcrumb 
links.

   styleClass
   no
   true
   
 
 
   A Breadcrumb.
   breadcrumb
   net.cofront.taglibs.breadcrumbs.BreadCrumbTag
   JSP
   
   URL
   href
   true
   false
   
 



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

   ROOT

   
   action
   
org.apache.struts.action.ActionServlet

   
   config
   /WEB-INF/config/struts-config.xml
   
   1
   
  
   @maven.tomcat.generated@
  
   

   action
   *.do
   

   
   
   
  
   

   index.html
   index.htm
   index.jsp
  






Re: Expanding WAR file in "home" directory

2005-11-25 Thread Wendy Smoak
On 11/25/05, Jeff Brewer <[EMAIL PROTECTED]> wrote:
> When I create a WAR file containing my index.html page (and my test JSF 
> "project" pages and classes and xml files) then upload that WAR file to my 
> server and wait for a few minutes my WAR file is expanded into a new 
> sub-directory with the same name as my WAR file, which we'll call "mywarfile" 
> for the sake of the example. When I open my browser and go to 
> www.mydomain.com there is nothing there becuase my index.html file now exists 
> in a subdirectory called mywarfile. If I go to www.mydomain.com/mywarfile I 
> can see my index.html page.

A quick look at their FAQ says that your home directory is already
configured to "be" a webapp.  (They talk about a WEB-INF folder *in*
your home directory.)  My guess is that you will not be able to deploy
a .war as your root webapp, because it will always expand into a
sub-folder.

Fortunately, a .war file is nothing special, it's just a bunch of
files in a particular directory structure zipped up for convenience. 
Once you've built your webapp, simply use your favorite zip/jar
program (WinZip, or 'jar' at the command line:  jar xvf filename.war)
to unzip your .war file into a temp directory, then FTP those files up
to your home directory.

Start here and click on the 'related' links, there's plenty of information:
https://www.godaddy.com/gdshop/faq/faq.asp?se=%2B&app%5Fhdr=99&faq_id=781&topic_id=16&topic=Traffic%20Facts&return=

And feel free to ask again if you have any questions.  I only know
what I found on the website, which may not be correct for your
particular situation.

--
Wendy

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



Expanding WAR file in "home" directory

2005-11-25 Thread Jeff Brewer
This is probably too basic a question to ask here, and it is definitely a long 
question because I feel it needs a lot of explaination so I beg your 
forgiveness in advance and advise you to please just skip it if you have no 
tolerance for new users with stupid questions. I have spent most of my free 
time the past three days trying to find an answer and am on the verge of 
despair and I've avoided coming to your wonderful forum until I reached the 
point where there was simply no other hope. If you can't help me I've got to 
just quit and get on with building the website with or without WAR files so 
that I get the thing built at all. 

I have a tomcat website from a reputable host (godaddy.com). When I FTP into it 
I arrive at the "home" directory. I can create sub-directories and navigate 
"down" from the "home" directory, but I can't navigate upwards. If I upload an 
index.html file into this directory then open a browser and go to 
www.mydomain.com it returns the index.html file. I've up loaded a JSF "project" 
to the site and it all works fine.

I have never used WAR files before, but would like to try. I'm using a product 
called MyEclipse to create my web files and "build" my WAR file.

When I create a WAR file containing my index.html page (and my test JSF 
"project" pages and classes and xml files) then upload that WAR file to my 
server and wait for a few minutes my WAR file is expanded into a new 
sub-directory with the same name as my WAR file, which we'll call "mywarfile" 
for the sake of the example. When I open my browser and go to www.mydomain.com 
there is nothing there becuase my index.html file now exists in a subdirectory 
called mywarfile. If I go to www.mydomain.com/mywarfile I can see my index.html 
page. 

It seems to me that I want my WAR file to expand into the "home" directory, so 
that my index.html file ends up at www.mydomain.com/index.html and not at 
www.mydomain.com/mywarfile/index.html. But there doesn't seem to be any way to 
do this and every time I bring the question up everyone tends to treat me like 
a crazy uncle at Thanksgiving dinner. 

So I'm pretty sure I am not understanding something very fundamental about WAR 
files that everyone else seems to understand. 

Is it appropriate, common, good practice to package all of one's web files (for 
a small website) up into a WAR file and deploy it to one's server? If so, how 
do people get their index files and other "home"-directory-level files to 
expand into their "home" directories (i.e. the same directory into which they 
upload their WAR files)?

Or are WAR files just used for smaller pieces of one's website? For example if 
I had a homepage and an "about us" page and a "contact us" page all in the 
"home" directory and then a blog applicaiton in a sub-directory and a photo 
album in another sub-directory, would it be a standard/common practice to just 
upload the "home"-level pages up to the server individually and use the WAR 
files for only the blog and photo album.

Thanks in advance to any who stuck it out this far and still have any patience 
left to help out this pathetic ex ASP developer in search of a worthier medium.



Re: Issues When Restarting Tomcat

2005-11-25 Thread Bill Barker
This version has a known memory leak in the AJP/1.3 Connector.  The 
work-around is to set:
  request.registerRequests=false
in your $CATALINA_HOME/conf/jk2.properties file.

"Carroll, Simon, CND" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
Hi,

I have the following problem and I was wondering if anyone else had a 
similar issue which they managed to resolve.

I have a web application which is installed on 2 tomcat instances (version 
4.1.30 using jdk 1.4.2_05), each on separate boxes.  I have 2 apache 
(version 2) instances, also on separate boxes, which are configured to pass 
requests to the tomcat instances via the mod_jk plugin.  The configuration 
works as expected and the requests from apache are equally balanced between 
the two tomcat instances.

The issue I have is that the web application installed on tomcat seems to 
have a memory leak and if it is left to run for a prolonged period the 
tomcat processes begin to hog the CPU.  To counter this I have set up a cron 
job which restarts the tomcat instances every morning, the restarts are 
staggered so that the first instance is restarted at 07:00 and the second at 
07:20.  However after the restarts I can see from the apache logs that a 
number of HTTP requests are taking 190 seconds to process.  From the logging 
I have determined that the hold up occurs when the request is passed to 
tomcat.  I see this issue for approximately 3 hours and then it clears 
itself up until the following day when we restart the tomcat instances 
again.

Does anyone know why this is occuring?
Should I be restarting the apache instances after I have restarted the 
tomcat instances?
Is there anyway I can clear down the CPU usage without restarting tomcat?

If anyone can help me with this issue I would be very grateful.

Thanks in advance

Simon 




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



Re: ThreadPool logFull, Tomcat not responding anymore

2005-11-25 Thread Bill Barker

"Konrath Thomas" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
> Hi ..
>
>
> We have a problem on our product server with our web application (which
> is too complicated to go into the details of here).
> Every day at least once our web application is mysteriously hanging. The
> application don't seem to crash or emit error messages, it just stop
> responding.
>
>
> In the catalina.out file I found the following error message:
> Nov 23, 2005 2:15:39 PM org.apache.tomcat.util.threads.ThreadPool
> logFull
> SEVERE: All threads (75) are currently busy, waiting. Increase
> maxThreads (75) or check the servlet status
> => complete error message below
>

The exception should be fixed in the latest SVN code.  I've no idea when 
4.1.32 is going to be release however.

>
> I have search in the internet for this problem. It seems that increasing
> the number of max threads is not the solution. The problem will be still
> there, just with the new max thread number. I have found several
> postings, describes this problem on a Red Hat Server (like
> http://mail-archives.apache.org/mod_mbox/jakarta-tomcat-user/200408.mbox
> /[EMAIL PROTECTED]).
>

On Linux machines, this is generally true.  The work-around is to set a 
connectionTimeout="6" (you'll probably have to tune the value for your 
system) on the  element in server.xml.  This tells Tomcat to 
release any thread that hasn't done anything in the last minute.


>
> Our configuration is:
>
>
>Jakarta Tomcat 4.1.31
>j2sdk 1.4.2_06
>Suse Linux Enterprise Server 8
>
>
> Please note that this server is not under our control. It is controlled
> by the IT department of our customer. We have no root privileges on the
> server!!! So we are not able to create a stack thumb of the threads up
> to now. But we are working on it ...
>

The APR and (experimental) NIO AJP/1.3 Connectors are designed to deal with 
this problem.  However, to get them, you either have to build TC 4.1 from 
SVN or upgrade to TC 5.5.

>
> Can anyone help me or give me a hint to solve this problem???
>
>
> kind regards
> Tom
>
>
>
>
> Nov 23, 2005 2:15:39 PM org.apache.tomcat.util.threads.ThreadPool
> logFull
> SEVERE: All threads (75) are currently busy, waiting. Increase
> maxThreads (75) or check the servlet status
> Nov 23, 2005 4:05:27 PM org.apache.commons.modeler.Registry
> registerComponent
> SEVERE: Error registering
> Catalina:type=RequestProcessor,worker=jk-8017,name=JkRequest10631
> javax.management.InstanceAlreadyExistsException:
> Catalina:type=RequestProcessor,worker=jk-8017,name=JkRequest10631
>at
> mx4j.server.MBeanServerImpl.register(MBeanServerImpl.java:1123)
>at
> mx4j.server.MBeanServerImpl.registerImpl(MBeanServerImpl.java:1054)
>at
> mx4j.server.MBeanServerImpl.registerMBeanImpl(MBeanServerImpl.java:1002)
>
>at
> mx4j.server.MBeanServerImpl.registerMBean(MBeanServerImpl.java:978)
>at
> org.apache.commons.modeler.Registry.registerComponent(Registry.java:871)
>
>at
> org.apache.jk.common.ChannelSocket.registerRequest(ChannelSocket.java:43
> 6)
>at
> org.apache.jk.common.HandlerRequest.decodeRequest(HandlerRequest.java:44
> 3)
>at
> org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:352)
>at
> org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:743)
>at
> org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:
> 675)
>at
> org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:866)
>at
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool
> .java:683)
>at java.lang.Thread.run(Thread.java:534)
> Nov 23, 2005 4:05:27 PM org.apache.jk.common.ChannelSocket
> registerRequest
> WARNING: Error registering request
>
> 




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



OT: Java database schema managers?

2005-11-25 Thread Joe Reger, Jr.
A bit off-topic but I haven't found a good answer elsewhere.

Problem: Single Tomcat/Java/MySql app deployed to many
companies/users.  As users upgrade the app we need to change their
database schema (update tables, add columns, delete columns, etc).

Current solution:  We have a homegrown infrastructure of simple java
classes that manunally make database updates.  I.e. we send "ALTER
table..." commands.

Problem with current solution: Database-dependent.  Seems like this is
a common problem and there would be open source projects to handle it.
 We've seen Hibernate's schema management features and are impressed
but we can't move to Hibernate completely right now.

Any other ideas?

Thanks and sorry for the off-topic.

Joe

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



Re: ssl deployment recommendations

2005-11-25 Thread Hassan Schroeder
Chris Pat wrote:

> I am setting up a cc processing component of my
> application.  Can anyone recommend how to deploy the
> ssl layer? 

I'm not sure what your question is; are you talking about setting
up Tomcat to use SSL for inbound connections, or doing encrypted
*outbound* requests from your app to an authorization gateway?

-- 
Hassan Schroeder - [EMAIL PROTECTED]
Webtuitive Design ===  (+1) 408-938-0567   === http://webtuitive.com

  dream.  code.



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



ssl deployment recommendations

2005-11-25 Thread Chris Pat
Hello
I am setting up a cc processing component of my
application.  Can anyone recommend how to deploy the
ssl layer?  Do I do it from Tomcat w/Struts ssl?  I
assume that would require me to config Tomcat to send
out over 443.  Do I configure ssl at the Apache layer
and use mod jk?  This will leave the cc# exposed
between Apache & Tomcat.  Is that a problem? I am a
newbie on this so any insight would be appreciated.





__ 
Yahoo! Mail - PC Magazine Editors' Choice 2005 
http://mail.yahoo.com

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



How to capture Status 503

2005-11-25 Thread Thomas Strauß
Hi,

I would like to setup a "maintenance in progress" page.

I want to cover the following situations:
1 - Removing an application -> tomcat throws 404
2 - Stopping an application -> tomcat throws 503
3 - Restarting Tomcat   -> tomcat does not answer 

(1) is already solved using an error page in the ROOT Context.
(2) is open to be solved, as tomcat does know the context is stopped
and I cannot convince him to use an error page from another context
(3) is not to be solved with tomcat. I think about an apache server that 
normally just forwards everything. If I want to reboot apache, I switch 
on forwarding to an apache Maintenance Page instead of tomcat. I have no 
idea yet how to do it, but this should work.

My question now is: How do you solve problem (2) and (3)? Is there a best 
practice for that? I searched for status redirection, but did not find anything.

Best regards, 
   Thomas

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

Re: Displaying PDF's within a servlet

2005-11-25 Thread Mark
Check out either PDFBox, it allows you to convert PDF pages into JPG.


On 11/23/05, Caldarale, Charles R <[EMAIL PROTECTED]> wrote:
>
> > From: Khawaja Shams [mailto:[EMAIL PROTECTED]
> > Subject: Displaying PDF's within a servlet
> >
> > However, starting Acrobat for this purpose
> > everytime could be rather slow and inconvenient.
>
> It appears that, at least with IE on XP, Acrobat Reader stays loaded as
> long as the browser is active.  Consequently, a new process is not
> started with each download; all that happens is a new document window is
> opened by the already active .  Don't know if it works that way with
> Firefox.
>
> - Chuck
>
>
> THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
> MATERIAL and is thus for use only by the intended recipient. If you
> received this in error, please contact the sender and delete the e-mail
> and its attachments from all computers.
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: Servlets (total beginner)

2005-11-25 Thread Mark
Check out the Web Tools Platform, as part of the Eclipse project.  It does a
great job of getting a new servlet developer up and running.

On 11/22/05, Suresh Nair <[EMAIL PROTECTED]> wrote:
>
> You must have send this to me by mistake.
>
> Please delete me from your message list.
>
> Thank you.
>
>
> SURESH NAIR
> (o) [EMAIL PROTECTED]
> (h) [EMAIL PROTECTED]
> (h) [EMAIL PROTECTED]
> [image: Inactive hide details for "Milan Tomic" <[EMAIL PROTECTED]>]"Milan
> Tomic" <[EMAIL PROTECTED]>
>
>
>
> *"Milan Tomic" <[EMAIL PROTECTED]>*
>
> 23/11/2005 01:18 AM Please respond to
> "Tomcat Users List" 
>
>
> To
>
> "'Tomcat Users List'" 
> cc
>
>
> Subject
>
> Servlets (total beginner)
>
>
>
> I have compiled my first servlet and copied it into
> apache-tomcat-5.5.12\webapps\servlets-examples\WEB-INF\classes but when I
> navigate my browser to http://localhost:8080/servlets-examples/DemoServlet
> or http://localhost:8080/servlets-examples/servlet/DemoServlet I got an
> HTTP
> 404 error message. Other servlets from Tomcat examples (same folder) works
> just fine. What am I doing wrong? Do I have to edit web.xml in order to
> inform Tomcat that I have deployed new servlet? While testing JSPs I
> didn't
> had to do this for new JSP page. Btw, is there a good tutorial (or tool)
> about configuring web.xml file?
>
>
>
>
> NOTE: Privileged/Confidential Information may be contained in this
> message. If you are not the addressee indicated in this message (or
> responsible for delivery of the message to such person), you may not copy or
> deliver this message to anyone. In such case, you should destroy this
> message and kindly notify the sender by reply email. All opinions,
> conclusions and other information expressed in this message not of an
> official nature shall not be deemed as given or endorsed by Singapore Press
> Holdings Ltd or any of its subsidiaries unless otherwise indicated by an
> authorised representative independent of this message.
> Singapore Press Holdings Ltd
> Co. Regn No. 198402868E
>
>


Re: Server push

2005-11-25 Thread Hassan Schroeder
Andrew.du wrote:
> Can somebody tell me server push?

C'mon, the *first* hit from googling "server push" is this classic
(and definitive) page:

  

-- 
Hassan Schroeder - [EMAIL PROTECTED]
Webtuitive Design ===  (+1) 408-938-0567   === http://webtuitive.com

  dream.  code.



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



Re: BASEDIR problem with Tomcat 5.5 + compat

2005-11-25 Thread Anthony Rabaa
On November 25, 2005 10:13 am, Caldarale, Charles R wrote:
> > From: Anthony Rabaa [mailto:[EMAIL PROTECTED]
> > Subject: BASEDIR problem with Tomcat 5.5 + compat
> >
> > The BASEDIR environment variable is not defined correctly
> > This environment variable is needed to run this program
> >
> > $CATALINA_HOME=/home/foo/bin/apache-tomcat-5.5.12
> > $JAVA_HOME=/opt/sun-jdk-1.4.2.09

'JAVA_HOME=/opt/sun-jdk-1.4.2.09 ; export JAVA_HOME' in /etc/profile, 
'CATALINA_HOME=/home/foo/bin/apache-tomcat-5.5.12 ; export CATALINA_HOME' 
in /home/foo/.bash_profile.  I can echo both and see the value's set properly 
after login.  Setting $CATALINA_HOME in startup.sh had no effect either.
-- 
Anthony Rabaa
SGML/XML Systems Designer & Network Administrator
AMCon Research Inc., http://www.amconresearch.com

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



Re: Server push

2005-11-25 Thread Dhaval Patel
Hi,

  I dont know about your environment. But I know few things about push that I
would like to share. 

  I researched "push" a while ago. Basically I was looking for server push. HTTP
is not push enabled protocol. So the answer is you can not push from server to
client using HTTP. Client has to poll server. (may be in low priority thread).

  J2ME (MIDP 2.0) has push capabalities. I am not sure whether all phones
supports it the way it is written. :)

  You might want to take a look at "pushlet" (http://www.pushlets.com/) which 
may
help you get going quickly.

  Hope about things help you.


Regards,
D

--- "Andrew.du" <[EMAIL PROTECTED]> wrote:

> Can somebody tell me server push?
> 
> --
> [EMAIL PROTECTED]
> 




__ 
Start your day with Yahoo! - Make it your home page! 
http://www.yahoo.com/r/hs

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



RE: BASEDIR problem with Tomcat 5.5 + compat

2005-11-25 Thread Caldarale, Charles R
> From: Anthony Rabaa [mailto:[EMAIL PROTECTED] 
> Subject: BASEDIR problem with Tomcat 5.5 + compat
> 
> The BASEDIR environment variable is not defined correctly
> This environment variable is needed to run this program
> 
> $CATALINA_HOME=/home/foo/bin/apache-tomcat-5.5.12
> $JAVA_HOME=/opt/sun-jdk-1.4.2.09

If you're trying to set the above variables, take out the $.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

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



SSL certificate usage

2005-11-25 Thread Michael Pahle

Solved the problem myself: the certificate based on a key that
was produced "outside" of keytool.
In that way proceed as described in:
http://www.jguru.com/faq/view.jsp?EID=532461

Michael

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



BASEDIR problem with Tomcat 5.5 + compat

2005-11-25 Thread Anthony Rabaa
Hello,

I've been fiddling with Tomcat 5.5, looking to get it setup on a laptop 
running Sun's 1.4 SDK.  I'm having an issue with the BASEDIR variable:

The BASEDIR environment variable is not defined correctly
This environment variable is needed to run this program

$CATALINA_HOME=/home/foo/bin/apache-tomcat-5.5.12
$JAVA_HOME=/opt/sun-jdk-1.4.2.09

I see in catalina.sh and tool-wrapper.sh that BASEDIR="$CATALINA_HOME", but 
the error is being thrown in setclasspath.sh.  I tried running with an 
exported BASEDIR but that's a no go.  I haven't much time to continue 
prodding this and I want to keep my setup modifications as minimal as 
possible, hopefully someone can point me in the right direction?

Thanks in advance!
-- 
Anthony Rabaa
SGML/XML Systems Designer & Network Administrator
AMCon Research Inc., http://www.amconresearch.com

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



RE: Filters

2005-11-25 Thread Carl Olivier
AH.

Damn, my aplogies - the mapping!  Of course - *slaps forhead* :)

Thanks a stack!

Rgds,

Carl 

-Original Message-
From: Reynir Hubner [mailto:[EMAIL PROTECTED] 
Sent: 25 November 2005 14:23
To: Tomcat Users List
Subject: Re: Filters

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

hi,

Sure, you can map your filter on to /* or something like that. That way you
can intercept any URL you like and either rewrite, or redirect.
It doesn't matter if your URL reads /something/something/default.asp or not,
if you know how to handle that url from your filter (usually done by reading
config from file or database). If you are using mod_jk then you might have
to change your mapping in to tomcat.

I've been implementing this by using filters for a long time, never had
problems with it.

hope it helps
- -reynir




Carl Olivier wrote:
> Greetings.
>  
> I have a questions regarding Filter servlets.  If a request is made 
> for a non-existent/non *.jsp or servlet URI - will the Filter be
instantiated?
> Reason I ask is because I want to interect old bookmarked requests for 
> an old site - which has been migrated to a new tomcat based JSP site - 
> however the old site was ASP based.
>  
> Many users of the old site would have bookmarked something like:
> /index.asp?PageID=16 or something similar - and I am hoping to be able 
> to intercept that - using a Filter seemed a logical choice - and send 
> back a redirect to the new URL /some.jsp for those requests.
>  
> Thanks in advance,
>  
> Carl
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.5 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFDhx5K19KgIQihNwgRAjtxAJ9SjYarLFkzoBNAWHc6OeLUiD3S6QCgqN9v
BzHRkrnr2XJC1jQ6VKEoDH8=
=JLxP
-END PGP SIGNATURE-

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



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



Re: Filters

2005-11-25 Thread ALEX HYDE
Carl,

I'm quite new to this but I'd guess that the Filter is
instantiated at start-up by Tomcat. You might direct
your new requests, plus the old requests for the asp
pages, to Tomcat, using say Apache. Using a filter you
could intercept *.asp and then forward/redirect to the
new resource.

--- Carl Olivier <[EMAIL PROTECTED]> wrote:

> Greetings.
>  
> I have a questions regarding Filter servlets.  If a
> request is made for a
> non-existent/non *.jsp or servlet URI - will the
> Filter be instantiated?
> Reason I ask is because I want to interect old
> bookmarked requests for an
> old site - which has been migrated to a new tomcat
> based JSP site - however
> the old site was ASP based.
>  
> Many users of the old site would have bookmarked
> something like:
> /index.asp?PageID=16 or something similar - and I am
> hoping to be able to
> intercept that - using a Filter seemed a logical
> choice - and send back a
> redirect to the new URL /some.jsp for those
> requests.
>  
> Thanks in advance,
>  
> Carl
> 
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 




___ 
How much free photo storage do you get? Store your holiday 
snaps for FREE with Yahoo! Photos http://uk.photos.yahoo.com

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



Re: Filters

2005-11-25 Thread Reynir Hubner
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

hi,

Sure, you can map your filter on to /* or something like that. That way
you can intercept any URL you like and either rewrite, or redirect.
It doesn't matter if your URL reads /something/something/default.asp or
not, if you know how to handle that url from your filter (usually done
by reading config from file or database). If you are using mod_jk then
you might have to change your mapping in to tomcat.

I've been implementing this by using filters for a long time, never had
problems with it.

hope it helps
- -reynir




Carl Olivier wrote:
> Greetings.
>  
> I have a questions regarding Filter servlets.  If a request is made for a
> non-existent/non *.jsp or servlet URI - will the Filter be instantiated?
> Reason I ask is because I want to interect old bookmarked requests for an
> old site - which has been migrated to a new tomcat based JSP site - however
> the old site was ASP based.
>  
> Many users of the old site would have bookmarked something like:
> /index.asp?PageID=16 or something similar - and I am hoping to be able to
> intercept that - using a Filter seemed a logical choice - and send back a
> redirect to the new URL /some.jsp for those requests.
>  
> Thanks in advance,
>  
> Carl
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.5 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFDhx5K19KgIQihNwgRAjtxAJ9SjYarLFkzoBNAWHc6OeLUiD3S6QCgqN9v
BzHRkrnr2XJC1jQ6VKEoDH8=
=JLxP
-END PGP SIGNATURE-

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



Filters

2005-11-25 Thread Carl Olivier
Greetings.
 
I have a questions regarding Filter servlets.  If a request is made for a
non-existent/non *.jsp or servlet URI - will the Filter be instantiated?
Reason I ask is because I want to interect old bookmarked requests for an
old site - which has been migrated to a new tomcat based JSP site - however
the old site was ASP based.
 
Many users of the old site would have bookmarked something like:
/index.asp?PageID=16 or something similar - and I am hoping to be able to
intercept that - using a Filter seemed a logical choice - and send back a
redirect to the new URL /some.jsp for those requests.
 
Thanks in advance,
 
Carl


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



SSL certificate usage

2005-11-25 Thread Michael Pahle
When I import a ca-issued certificate the following occurs error when 
starting up tomcat:


javax.net.ssl.SSLException: No available certificate corresponds to the 
SSL cipher suites which are enabled.


Importing was done as described in the docs. Obviously, a certain cipher 
suite that corresponds
to my certificate is missing??? What can i do, what further information 
is required???


Any help appreciated / Michael

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



Help embedding apache tomcat and axis within java app

2005-11-25 Thread Piers Finlayson
Hi there,

I'm fairly new to tomcat, and I'm trying to deploy axis within apache
tomcat, with tomcat embedded within my own java application.

I've followed the instructions to run tomcat embedded within another
application, and tomcat is now running.  However, I can't figure out how
to actually get axis deployed and running within tomcat.  I suspect I've
done something spectacularly stupid, but if you could help me, I'd be
very grateful.  The code I have in my java application to run tomcat is
as follows.

tomcat = new Embedded();
tomcatEngine = tomcat.createEngine();
tomcatHost = tomcat.createHost("localhost",
"y:\\tomcat\\webapps\\axis\\WEB-INF");
tomcatEngine.addChild(tomcatHost);
tomcatEngine.setDefaultHost(tomcatHost.getName());
tomcatContextdefault = tomcat.createContext("", "");
tomcatHost.addChild(tomcatContextdefault);
tomcat.addEngine(tomcatEngine);
tomcatConnector = tomcat.createConnector(tomcatHost.getName(), 8080,
false);
tomcat.addConnector(tomcatConnector);

The bit I suspect is totally wrong is this line, but I'm at a loss to
what I should do.

tomcatHost = tomcat.createHost("localhost",
"y:\\tomcat\\webapps\\axis\\WEB-INF");

I'm using tomcat 5.5 and axis 1.3.

TIA for you help!

Cheers,
Piers





ThreadPool logFull, Tomcat not responding anymore

2005-11-25 Thread Konrath Thomas
Hi .. 


We have a problem on our product server with our web application (which
is too complicated to go into the details of here). 
Every day at least once our web application is mysteriously hanging. The
application don't seem to crash or emit error messages, it just stop
responding. 


In the catalina.out file I found the following error message: 
Nov 23, 2005 2:15:39 PM org.apache.tomcat.util.threads.ThreadPool 
logFull 
SEVERE: All threads (75) are currently busy, waiting. Increase 
maxThreads (75) or check the servlet status 
=> complete error message below 


I have search in the internet for this problem. It seems that increasing
the number of max threads is not the solution. The problem will be still
there, just with the new max thread number. I have found several
postings, describes this problem on a Red Hat Server (like
http://mail-archives.apache.org/mod_mbox/jakarta-tomcat-user/200408.mbox
/[EMAIL PROTECTED]). 


Our configuration is: 


Jakarta Tomcat 4.1.31 
j2sdk 1.4.2_06 
Suse Linux Enterprise Server 8 


Please note that this server is not under our control. It is controlled
by the IT department of our customer. We have no root privileges on the
server!!! So we are not able to create a stack thumb of the threads up
to now. But we are working on it ...


Can anyone help me or give me a hint to solve this problem??? 


kind regards 
Tom 


 

Nov 23, 2005 2:15:39 PM org.apache.tomcat.util.threads.ThreadPool 
logFull 
SEVERE: All threads (75) are currently busy, waiting. Increase 
maxThreads (75) or check the servlet status 
Nov 23, 2005 4:05:27 PM org.apache.commons.modeler.Registry 
registerComponent 
SEVERE: Error registering 
Catalina:type=RequestProcessor,worker=jk-8017,name=JkRequest10631 
javax.management.InstanceAlreadyExistsException: 
Catalina:type=RequestProcessor,worker=jk-8017,name=JkRequest10631 
at 
mx4j.server.MBeanServerImpl.register(MBeanServerImpl.java:1123) 
at 
mx4j.server.MBeanServerImpl.registerImpl(MBeanServerImpl.java:1054) 
at 
mx4j.server.MBeanServerImpl.registerMBeanImpl(MBeanServerImpl.java:1002)

at 
mx4j.server.MBeanServerImpl.registerMBean(MBeanServerImpl.java:978) 
at 
org.apache.commons.modeler.Registry.registerComponent(Registry.java:871)

at 
org.apache.jk.common.ChannelSocket.registerRequest(ChannelSocket.java:43
6) 
at 
org.apache.jk.common.HandlerRequest.decodeRequest(HandlerRequest.java:44
3) 
at 
org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:352) 
at 
org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:743) 
at 
org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:
675) 
at 
org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:866) 
at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool
.java:683) 
at java.lang.Thread.run(Thread.java:534) 
Nov 23, 2005 4:05:27 PM org.apache.jk.common.ChannelSocket 
registerRequest 
WARNING: Error registering request 



IncompatibleClassChangeError handling

2005-11-25 Thread Paul Singleton

If I update a jar file within a JSP web app while Tomcat (5.5.9)
is stopped, I may get an IncompatibleClassChangeError at the
first request after restart.  I fix this by stopping, deleting
the work stuff, and restarting.  Is it possible in principle
for Tomcat to automatically regard the compiled pages as out
of date, and recompile them as they are encountered?

Paul Singleton


--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.1.362 / Virus Database: 267.13.7/182 - Release Date: 24/Nov/2005


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



RE: enable log4j

2005-11-25 Thread Nehal Sangoi
Hi Dhaval,

We never start our Tomcat-Base. We only run Tomcat Instances. So, i need
log4j be enabled individually. I have gone thru the docs and did same as its
suggested there. But no luck. Is there any way, for tomcat instance to know
abt the properties file added into classes

-Original Message-
From: Dhaval Patel [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 22, 2005 7:13 PM
To: Tomcat Users List; [EMAIL PROTECTED]
Subject: RE: enable log4j


Hi Nehal,

   I dont know how to work with multiple tomcat instances. The way I
configured
my tomcat (single user) to use log4j is different then yours. I followed
guide
from http://tomcat.apache.org/tomcat-5.5-doc/logging.html . Basically it
says,

1. Create a file called log4j.properties with the following content and save
it
into common/classes. (The one with yours is fine).

2. Place the log4j jar in $CATALINA_HOME/common/lib. (In our case, it is
log4j-1.2.12.jar. Make sure you place it in common/lib rather than in any
webapps.)

3. Place the commons-logging.jar (not commons-logging-api.jar) in
$CATALINA_HOME/common/lib with the log4j jar. (Again it is common/lib not
webapps)

4. Restart tomcat.

I followed above steps and I could run my tomcat instance in debug mode.
For
customized debugging, you can read API documentation of Tomcat and may be
you can
able to find something. This way you can customize your log4j.properties. I
will
keep looking but I don't have that sort of environment here to play with. If
I
find any thing, I will let you know.

I hope above things help a bit.

Regards,
D

--- Nehal Sangoi <[EMAIL PROTECTED]> wrote:

> Hi Dhaval,
>
> I want to enable log4j in debug mode only for one of the tomcat instances
> which is running using different user -- i.e. other than tomcat-base.
> This means, i don't want to apply log4j on all tomcat instaces by
> implemeting it onto tomcat-base.
>
> -Original Message-
> From: Dhaval Patel [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, November 22, 2005 6:25 PM
> To: Tomcat Users List; [EMAIL PROTECTED]
> Subject: Re: enable log4j
>
>
> Hi Nehal,
>
>Do you want to enable log4j in your application or you want to enable
> log4j
> inside tomcat? Inside tomcat means, tomcat uses log4j instead of J2SE
> logging
> utility so that you can configure tomcat loggin in log4j.
>
> Regards,
> D
>
> --- Nehal Sangoi <[EMAIL PROTECTED]> wrote:
>
> >
> > Hi,
> >
> > I want to enable log4j logger in one of my tomcat instances. I copied
> > "log4j-1.2.12.jar" to my webapps - war file.
> > This means, under WEB-INF/lib, copied jar file and under
WEB-INF/classes,
> > copied log4j.properties. Later, re-sreated warfile and started my tomcat
> > instance.
> >
> > log4j.properties :
> >
> > log4j.rootLogger=debug, R
> > log4j.appender.R=org.apache.log4j.RollingFileAppender
> > log4j.appender.R.File=${catalina.base}/logs/tomcat.log
> > log4j.appender.R.MaxFileSize=10MB
> > log4j.appender.R.MaxBackupIndex=10
> > log4j.appender.R.layout=org.apache.log4j.PatternLayout
> > log4j.appender.R.layout.ConversionPattern=%p %t %c - %m%n
> > log4j.logger.org.apache.catalina=DEBUG, R
> >
> > Also, notice that i have tomcat 5.5.9 on solaris 10. But my jar file is
> > log4j-1.2.12.jar.
> >
> > Is there anything 'm doing wrong or incomplete?
> >
> > Please help as soon as possible
> >
> > Thanks.
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
>
>
> __
> Yahoo! FareChase: Search multiple travel sites in one click.
> http://farechase.yahoo.com
>
> -
> 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]
>
>





__
Yahoo! Mail - PC Magazine Editors' Choice 2005
http://mail.yahoo.com

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


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



Re: Tomcat 5 error during startup - 2nd connector doesn't work

2005-11-25 Thread Peter Rossbach

Download MX4j 3.0.1 and cp mx4j.jar to bin/jmx.jar at your tomcat release.
Regards
Peter

Oded Arbel schrieb:


Hi people.

I'm using tomcat5 to host a commercial web site, and due to some 
integration issues we are using a single service with two 
CoyoteConnectors - one on port 8080 and one on port 8081.

Here is the relevant configuration:





I've noticed that some times, when catalina is starting, I get this 
error in the logs:


Nov 24, 2005 4:28:30 PM org.apache.coyote.tomcat5.MapperListener init
WARNING: Error registering contexts
java.util.ConcurrentModificationException
 at java.util.HashMap$HashIterator.nextEntry(HashMap.java:782)
 at java.util.HashMap$EntryIterator.next(HashMap.java:824)
 at java.util.HashMap.putAllForCreate(HashMap.java:424)
 at java.util.HashMap.clone(HashMap.java:656)
 at 
mx4j.server.DefaultMBeanRepository.clone(DefaultMBeanRepository.java:56)
 at 
mx4j.server.MBeanServerImpl.findMBeansByPattern(MBeanServerImpl.java:1603)
 at 
mx4j.server.MBeanServerImpl.queryObjectNames(MBeanServerImpl.java:1568)
 at 
mx4j.server.MBeanServerImpl.queryMBeans(MBeanServerImpl.java:1512)
 at 
org.apache.coyote.tomcat5.MapperListener.init(MapperListener.java:115)
 at 
org.apache.coyote.tomcat5.CoyoteConnector.start(CoyoteConnector.java:1537)
 at 
org.apache.catalina.core.StandardService.start(StandardService.java:489)


When that happens, HTTP requests to the second connector (port 8081) 
return with error 400 - no host matches, while requests to the first 
connector are handled just fine.


It looks to me like a race condition where something (possibly 
MBeanServerImpl) isn't locking a shared resource (or isn't locking it 
properly) and an contained HashMap gets modifier concurrently. 
I though initially about writing to the dev list, but I don't have any 
idea what is that mx4j so I'm not sure if its the correct place to ask.


BTW - I'm using tomcat 5.0.28.

TIA
 




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