RE: Servlet thread safety in Tomcat

2004-02-09 Thread Yu, Albert

If you implement the SingleThreadModel interface for your Servlet class,
TomCat will create a new instance for each request. 

Albert

-Original Message-
From: kwirirai [mailto:[EMAIL PROTECTED] 
Sent: Monday, February 09, 2004 2:12 PM
To: Tomcat Users List
Subject: Re: Servlet thread safety in Tomcat

But if  I am to synchronise my code blocks won't that slow done the 
application, or is there a mode that you can put Tomcat into so that 
it will create a new instance
servlet thread  with its own variables and execution space and stuff 
like that .Because I was thinking  putting all those synchronized blocks 
will slow down the app.

David Ramsey wrote:

Your primary mistake seems to be in assuming that Tomcat will create a
new instance of a servlet for every thread started. This is not what
happens, therefore servlet instance variables are not thread safe
unless you take additional actions to make them safe. Likewise,
application global entities, such as singletons, won't be thread safe
without taking additional actions on your part. The short rule is
simply if two threads might access this data concurrently, then you
need to protect yourself from such a collision. About the only thing
that is mostly thread safe are objects whose scope is limited to a
single method, but even these can get you in trouble if you put
references to those objects in global locations (such as an application
wide cache).


--- kwirirai [EMAIL PROTECTED] wrote:
  

The app is simply meant to grab some mails from a pop server and
simply 
display it using Java Mail.
I realise part of my mistake is using global variables
,unsynchronized 
collections and unsynchronized code blocks.I am not using the single 
thread model.
My initial thought ( :-)  forgive me its some time since I have coded

servlets) was that Tomcat will create a new servlet instance that is 
totally independed of the other,  for each request.On testing the app
on 
two client machines I have realized that the data is corrupted all
mixed 
up and my velocity template is throwing an error  caused by
concurrent 
modification.
My question is there some way of making this app thread safe and also

how does Tomcat  actually many requests , in terms of the  threading 
method used?I am using Tomcat 4.1


Shapira, Yoav wrote:



Howdy,
State your specific requirements and we can help you design
servlets/objects that will meet those requirements.  Your original
  

post


is too broad to solicit a detailed response.

Yoav Shapira
Millennium ChemInformatics


 

  

-Original Message-
From: kwirirai [mailto:[EMAIL PROTECTED]
Sent: Monday, February 09, 2004 12:48 PM
To: [EMAIL PROTECTED]
Subject: Servlet thread safety in Tomcat

Hi All
I am developing an application that uses JavaMail.What I am


concered is


the issue of thread safety,and efficiency.My question is do I need


to


employ synchronized blocks in my Servlet code or is there another


way


   



to
 

  

implement thread safety.I have been experimenting with the


application


and I have seen that the data is actualy mixing up.I realy need to


now


how Tomcat handles request and issues those request ,this is in
connection with threading. I have thought about the single thread


model


in my servlets but I think this is an inefficient method to use.

Thanks
Kwiri






-
  

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


[EMAIL PROTECTED]


   





This e-mail, including any attachments, is a confidential business
  

communication, and may contain information that is confidential,
proprietary and/or privileged.  This e-mail is intended only for the
individual(s) to whom it is addressed, and may not be saved, copied,
printed, disclosed or used by anyone else.  If you are not the(an)
intended recipient, please immediately delete this e-mail from your
computer system and notify the sender.  Thank you.


  

-


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


 

  





__
Do you Yahoo!?
Yahoo! Finance: Get your refund fast by filing online.
http://taxes.yahoo.com/filing.html

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



Disabling JSP execution under certain dirs

2003-12-12 Thread Albert Moliner

Hello.

I've searched the archives on this subject, but the nearest I've reached has
been some posts about not serving static content. It's a bit of a surprise that
no one has asked this before, so sorry if it is a recurrent question.

I want Tomcat (4) to execute JSPs as usual, but prevent it from running the
files that are under a certain directory for security reasons. These files can
be published by external people and are supposed to be static, but if some
mischievous publisher posts a JSP and it is executed then there can be havoc.

Apart from preventing the publishing of files with that extension, is there a
possible configuration that can be set up?

I've tried mapping requests to that dir to the default servlet in web.xml, but
404 errors are returned (why??), and some other wierd things like using an
intermediate servlet that forwards to the default servlet through its named
request dispatcher (the forward method does not seem to do anything when using
the dault servlet, while any other seems to work) or setting up a separate
context for that dir and forward requests to the context, which maps *.jsp to
the default context (I'll skip the details), but I can't find the solution...

What astonishes me more is that forwarding or mapping to the default servlet
does not work, but anyway I must be doing something wrong...

Thank you very much,

Albert.



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



Re: Disabling JSP execution under certain dirs

2003-12-12 Thread Albert Moliner

Finally I'll add the restriction on publication, but anyway it would nice to
know whether there's a solution to prevent the JSP from being served (yes,
retrieving an error message or just returning the JSP contents without executing
the class would be alright), at least for the sake of knowing.

The only problem with your alternative is that the mapping is not valid: Perhaps
Tomcat accepts it (I don't think so, as manymonths ago I tried similar mappings
and did not succeed), but anyway the servlet specs only regard four types of
mapping:
- exact path,
- directory (/foo/bar/*),
- extension (*.jsp),
- default(/).
I don't know why (performance?), but there's no place for things like
/whatever/*.ext.

About Tim's answer, there are some things that I don't see clear, basically
dealing with the default servlet. The default servlet is after all a servlet, so
it ought to be forwardable (something to do with having it defined in the
general web.xml and the forwarder servlet in the app's?). Anyway, the security
constraint seems the best approach. I'll look up the security documentation.

Thank you very much (though alternatives are still welcome, as I said before).

Albert.


- Original Message -
From: Ben Souther [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Friday, December 12, 2003 3:36 PM
Subject: Re: Disabling JSP execution under certain dirs


It sounds like Albert wants certain (static) files to be viewable.
He just doesn't want anyone to be able to execute JSPs from this directory.

One thing you could try is a servlet mapping that sends all requests ending in
that directory that end with .jsp to a servlet that sends back a message
(FORBIDDEN FILE).

  servlet-mapping
servlet-nameForbiddenFileServlet/servlet-name
url-pattern/DIRECTORY_NAME/*.jsp/url-pattern
  /servlet-mapping

-Ben

On Friday 12 December 2003 09:10 am, Tim Funk wrote:
 Ideally, files you don't want to be seen should be placed in WEB-INF.

 An alternative is to use a security constraint on the directory that has
 all of the content. This can be done in apache too via the Location
 directive.

 Another way is to place all those JSP's with a different extension and then
 add the mapping to web.xml. Then add the security contraint for that file
 extension. (Or let apache disallow that file extension)

 Forwarding to the default servelt WILL provide a 404 because it is a 404.
 The default servlet gets any request not assigned to any other servlet. So
 if the default servlet find the resource, it returns a 404.

 -Tim

 Albert Moliner wrote:
  Hello.
 
  I've searched the archives on this subject, but the nearest I've reached
  has been some posts about not serving static content. It's a bit of a
  surprise that no one has asked this before, so sorry if it is a recurrent
  question.
 
  I want Tomcat (4) to execute JSPs as usual, but prevent it from running
  the files that are under a certain directory for security reasons. These
  files can be published by external people and are supposed to be static,
  but if some mischievous publisher posts a JSP and it is executed then
  there can be havoc.
 
  Apart from preventing the publishing of files with that extension, is
  there a possible configuration that can be set up?
 
  I've tried mapping requests to that dir to the default servlet in
  web.xml, but 404 errors are returned (why??), and some other wierd things
  like using an intermediate servlet that forwards to the default servlet
  through its named request dispatcher (the forward method does not seem to
  do anything when using the dault servlet, while any other seems to work)
  or setting up a separate context for that dir and forward requests to the
  context, which maps *.jsp to the default context (I'll skip the details),
  but I can't find the solution...
 
  What astonishes me more is that forwarding or mapping to the default
  servlet does not work, but anyway I must be doing something wrong...

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

--
Ben Souther
F.W. Davison  Company, Inc.



-
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: Disabling JSP execution under certain dirs

2003-12-12 Thread Albert Moliner

Touché.
I don't know why I had not thought of filters for this...

Oh, yes, now I know:
My initial intention was to return the JSP file contents as if it were a .txt
file, and though ServletContext.getResourceAsStream could be used, it involved
having to implement the same behaviour as the default servlet does (last
modified checks, etc.). So after all I wanted the default servlet to serve the
request, and the filter would have needed the same behaviour as the forwarding
servlet I had implemented.

Therefore, my question now becomes: If I needed the default servlet (or the jsp
servlet, as it seems to have the same problems) to serve all requests inside a
subdirectory, or perhaps just some files with a pattern under a subdir, how
should I proceed?

In other words: What's wrong with doing (don't consider code quality, it's just
to show the procedure)


RequestDispatcher defaultDispatcher =
getServletContext().getNamedDispatcher(default);
defaultDispatcher.forward(request, response);


? Why doesn't it work (and jsp doesn't, either), while any other servlet name
just seems to work fine?

Or, otherwise, in the app's web.xml,


servlet-mapping
servlet-namedefault/servlet-name
url-pattern/foo/bar/*/url-pattern
/servlet-mapping


? Amazingly,


servlet-mapping
servlet-namedefault/servlet-name
url-pattern/foo/bar/file.jsp/url-pattern
/servlet-mapping


does seem to work, while not the /foo/bar/* mapping (and this mapping works
with any other servlet name defined in the same web.xml file).

Is it that today it's a Friday? Am I misunderstanding something very basic? Is
this a common behaviour, or just happens in Tomcat (4.1.something)?

Thanks,
Albert.


- Original Message -
From: Mark R. Diggory [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Friday, December 12, 2003 4:24 PM
Subject: Re: Disabling JSP execution under certain dirs


 Yes, Unfortunately, I bounced off this as well, it would have behooved
 the Servlet API developers to allow URL Rewrites to be a little more
 powerful from a REGEXP standpoint. Look at the j2sdk1.4 api, we now have
 regexp's available there default. One would suspect that the Servlet API
 could easily start allowing more complex regexp into these entries.

 I would recommend writing a Filter that gets run prior to all jsp's and
 applying your own regexp/forwarding to the jsp's when you deem it
 appropriate. This requires j2sdk 1.4 and is pseudo code.


 public final class BlockJspFilter implements Filter {

 String regexp = *.(/foo/bar.jsp|/bim/bam.jsp).*;

 public void doFilter(ServletRequest request,
ServletResponse response, FilterChain chain)
throws IOException, ServletException {

if(request.getRequestURL().matches(regexp)){
/*send an error response*/
else{
 chain.doFilter(request, wrapper);
}
...
 }
 }

 filter
filter-nameBlockJspFilter/filter-name
filter-classBlockJspFilter/filter-class
 /filter
 filter-mapping
filter-nameBlockJspFilter/filter-name
url-pattern*.jsp/url-pattern
 /filter-mapping

 One could even go as far as to use the FilterConfig to pass in the
 regexps which could then be dynamically adjusted in the web.xml

 http://java.sun.com/products/servlet/Filters.html

 -Mark Diggory




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



Tomcat service on Windows 2000 stopped unexpectedly

2003-07-14 Thread Yu, Albert

Hi, All

I'm running multiple Tomcat4.1.18/JSDK1.4.2 instances on Windows 2000 (SP3)
as services. Unfortunately, those tomcat services randomly stopped
unexpectedly. Windows event log didn't tell much detail, Tomcat log either.

Does anyone have this kind of experience? How can I address it? Any
information appreciated.  

Albert
 

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



Re: mod_jk installation

2003-03-21 Thread Albert Lunde
I am trying to configure mod_jk 1.3 to work between Apache 1.3.27 with
mod_ssl and Tomcat 4.1.18 on Linux Version 7.1.
After installing Apache 1.3.27 and Tomcat 4.1.18 when I update
httpsd.conf with following two lines LoadModule jk_module
/libexec/mod_jk.so AddModule mod_jk.c
And then when I restart Apache 1.3.27 I get the following error:
=
Cannot load /usr/local/apache_1.3.27/libexec/mod_jk.so into
server: /usr/local/apache_1.3.27/libexec/mod_jk.so: undefined symbol:
ap_ctx_get
./httpsdctl start: httpsd could not be started.
===
I had a similar error that I fixed by changing the order modules were
loaded/added in httpd.conf: it was mod_jk using a routine from an
non-core Apache module. But I just tried searching the Tomcat/Apache
1.3.27/mod_jk sources for the string ap_ctx_get and I couldn't find
it, so I can't confirm that is the explanation here. The ap_ makes
me think it's an Apache routine. Could you be using mod_jk
built for the other Apache version (2.x)?
(I'm also still unable to get Apache 1.3.27+mod_jk+CoyoteConnector
all working together, but I'm stuck an a different error.)
--
Albert Lunde [EMAIL PROTECTED] (new address)
 [EMAIL PROTECTED] (old address)
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


JSP Issue with tomcat 4.1.18

2003-03-17 Thread Albert Sidelnik
I am in need of some help with an issue that I've encountered. I have an
application that's currently running on Weblogic 6.1 and I'm trying to
port the application to JBoss w/ Tomcat 4.1.18. The problem is that on
my JSP pages, the word null is being displayed on the page. Weblogic
treated these as blank strings (), but when I am trying to switch to
Jboss the word null is being printed. We had the same problem when
upgrading to Weblogic 7 from Weblogic 6.1, but they provided a fix that
when pre-compiling the JSP's, we could set a NoPrintNulls flag that
would basically use an empty string in place of the null string. Is
there a similar fix in Tomcat? I am sure that other people have had this
issue, but I have not been able to find anything in the other user
forums. I know this feature was changed as part of the JSP 1.2
specification, but I'm really hoping there might be a way to revert back
just like weblogic allows you. Thanks


Error while opening the workers: apache 1.3.27 Tomcat 4.1.18mod_jk

2003-03-09 Thread Albert Lunde
I am trying to use Apache 1.3.27, with Tomcat 4.1.18, and mod_jk on
Red Hat Linux 7.0

At the moment I'm getting what look like errors in the setup of 
mod_jk: two messages in the error_log saying Error while opening the 
workers, jk will not work. (see below)

(We are using Apache 1.3.x rather than Apache 2.x, because we need to
use some locally written authentication modules without translating
them to the 2.x API.)

This is Apache from the Red Hat RPM version 'apache-1.3.27-1.7.1', 
Tomcat from the binary distribution, and mod_jk built from 
jakarta-tomcat-connectors-4.1.18-src.

The Apache error log messages when I restart the servers:
- - -
[Sun Mar  9 20:12:19 2003] [info] removed PID file /var/run/httpd.pid (pid=23516)
[Sun Mar  9 20:12:19 2003] [notice] caught SIGTERM, shutting down
[Sun Mar  9 20:12:31 2003] [info] mod_unique_id: using ip addr 129.105.188.79
[Sun Mar  9 20:12:32 2003] [error] (2)No such file or directory: Error while opening 
the workers, jk will not work

[Sun Mar  9 20:12:32 2003] [info] Created shared memory segment #123905
[Sun Mar  9 20:12:32 2003] [info] allocated semaphore #36864
[Sun Mar  9 20:12:34 2003] [info] mod_unique_id: using ip addr 129.105.188.79
[Sun Mar  9 20:12:35 2003] [error] (25)Inappropriate ioctl for device: Error while 
opening the workers, jk will not work

[Sun Mar  9 20:12:35 2003] [info] Created shared memory segment #124930
[Sun Mar  9 20:12:35 2003] [info] allocated semaphore #37376
[Sun Mar  9 20:12:35 2003] [info] created shared memory segment #124931
[Sun Mar  9 20:12:35 2003] [notice] Apache/1.3.27 (Unix)  (Red-Hat/Linux) 
mod_ssl/2.8.12 OpenSSL/0.9.6 mod_perl/1.24 mod_throttle/3.1.2 configured -- resuming 
normal operations
[Sun Mar  9 20:12:35 2003] [info] Server built: Oct 23 2002 14:51:49
[Sun Mar  9 20:12:35 2003] [notice] Accept mutex: sysvsem (Default: sysvsem)
- - -

I've posted a copy of my httpd.conf and files from the tomcat
configuration directory /var/tomcat41/conf under this directory on the web:

http://pubweb.northwestern.edu/~lunde/tomcat-3-9-03/

I've tried using both org.apache.coyote.tomcat4.CoyoteConnector and 
org.apache.ajp.tomcat4.Ajp13Connector as the ajp13 connector with 
seemingly similar results.

I have both these files:

conf/jk/workers.properties
conf/jk2.properties

but I'm not too sure if they are correct or necessary. Are they read 
only by the connector class on the Tomcat side of the connection, or 
are they read by mod_jk as well?

I was able to find the line issuing the error in the mod_jk
source code, but I don't understand enough to say what is really
going on underneath, to know where I should be looking for a cause
or more specific symptoms.

The message is at line 1787 in jk/native/apache-1.3/mod_jk.c:

- - -  
/* we add the URI-WORKER MAP since workers using AJP14 will feed it */
worker_env.uri_to_worker = conf-uw_map;
worker_env.virtual   = *; /* for now */
worker_env.server_name   = (char *)ap_get_server_version();
if(wc_open(init_map, worker_env, conf-log)) {
/* we don't need this any more so free it */
return;
}
}

ap_log_error(APLOG_MARK, APLOG_ERR, NULL,
 Error while opening the workers, jk will not work\n);
- - -


-- 
Albert Lunde [EMAIL PROTECTED] (new address)
 [EMAIL PROTECTED] (old address)

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



building just one connector module?

2003-02-26 Thread Albert Lunde
I'd like to to build mod_jk for use with an existing build of Apache
1.3.27 and the binary distribution of Tomcat 4.1.18.
But I've like to avoid building from source all the connectors for
all Apache versions. I'm not sure that I need anything beyond
the apache module for 1.3.x.
Is it feasible to build such a limited subset of stuff?

My initial experiments suggested two approaches: setting some
properties in a build.properties file to empty strings, and plugging
in jar files from the binary distribution where the build process
expects to find them.
Any advice on how to do this, other than trial and error?

(I'm presently working on Red Hat Linux 7.0 but will need
to do this again for Solaris 8 and/or a later version of Red Hat.)
--
Albert Lunde [EMAIL PROTECTED] (new address)
 [EMAIL PROTECTED] (old address)
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


please trim quotes

2003-02-26 Thread Albert Lunde
Could folks trim quotes to a smaller amount of context?

Seeing one or more copies of an entire thread, with a dozen levels of
quoting, in every digest, is making digests very frequent and hard to
read.
--
Albert Lunde [EMAIL PROTECTED] (new address)
 [EMAIL PROTECTED] (old address)
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: RE: using regexp in JSPs on Tomcat

2002-12-25 Thread Albert Wang


- Original Message -
From: PELOQUIN,JEFFREY (HP-Boise,ex1) [EMAIL PROTECTED]
Date: Tuesday, December 24, 2002 2:56 pm
Subject: RE: using regexp in JSPs on Tomcat

 hmmm,  do you use RE at all in the init method of your class?

Nope, not at all.

 
 also now that I look more carefully at the stack trace, you might try
 looking at the compiled java for the calling jsp page. From your 
 stack trace
 the calling jsp page is viewSample.jsp, do you use any RE's in 
 this jsp?

No, I just instantiated that class and called the method.


 
 the compiled java code will be found within the
 $TOMCAT/work/servername/path/to/jsp
 the offending line will be 367, because of the use of a $ in the 
 file name
 you may have trouble vi'ing or more'ing the file.  I usaully ftp 
 such files
 to a windows machine.
 

Right, I looked at that java file, but the problem is the bulk of the entire 
generated class is one big Try block, and line 367 is just where the 
REException is thrown in the corresponding catch block.  So the actual 
problem could be anywhere...

The more I look at it, the more it seems to me like this is a potential Jasper 
bug.  I hope I'm wrong...





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




using regexp in JSPs on Tomcat

2002-12-24 Thread Albert Wang
Hi all,

I have a Java class which uses the Jakarta regexp package for some 
string parsing.  It works perfectly fine on its own.  I'm developing a 
set of JSPs, one of which instantiates this class and calls some 
methods.  However, Tomcat is throwing me the following exception:

javax.servlet.ServletException: org/apache/regexp/RESyntaxException
   at 
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:471)
   at org.apache.jsp.viewSample$jsp._jspService(viewSample$jsp.java:367)
   at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
   at 
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:201)
   at 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)
   at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
   at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
   at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
   at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
   at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
   at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
   at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
   at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
   at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
   at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
   at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
   at 
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
   at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
   at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
   at 
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
   at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
   at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
   at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
   at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
   at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
   at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
   at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
   at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
   at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
   at 
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1027)
   at 
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1125)
   at java.lang.Thread.run(Thread.java:484)

As you can see, it's a regexp exception, but it's not my class that's 
throwing it, it's Jasper.  When I do not instantiate this class of mine, 
the JSP displays perfectly.  Is there some documented incompatibility 
with using regexp within JSPs on Tomcat?  The only workaround I can 
think of is to use some other regular expression package that isn't used 
inherently within Tomcat.  Any suggestions?

Thanks for any help,
-Al

--
--
Albert Wang
DDED Informatics
Bristol-Myers Squibb Pharmaceutical Research Institute



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



Re: using regexp in JSPs on Tomcat

2002-12-24 Thread Albert Wang
Hi Jeff,

PELOQUIN,JEFFREY (HP-Boise,ex1) wrote:


Albert,

The stack trace you show would imply that your class is indeed throwing the
RESyntaxExeception.
I would guess you class definition or class method allows the passing of the
Exception to the invoking class, in this case Jasper.

I would remove any Throws RESyntaxException from the class/method def and
wrap a try/catch around the new RE() statement.


I'm pretty sure that's what I'm doing.  Here is the particular method 
that I'm calling, which is contained in a class called InternalLink:
   public String parseDescription(String phrase)
   {
   String linkTypeDescription = getLinkType().getDescription();
   String primaryEntityLabel = phrase +   + 
getPrimaryEntity().getId();
   String secondaryEntityLabel = phrase +   + 
getSecondaryEntity().getId();
   RE ent1Expression = null;
   RE ent2Expression = null;
   try {
   ent1Expression = new RE(_ENT1_);
   ent2Expression = new RE(_ENT2_);
   } catch (org.apache.regexp.RESyntaxException e) {
   throw new TrackerException(regexp problem);
   }
   linkTypeDescription = 
ent1Expression.subst(linkTypeDescription, primaryEntityLabel);
   linkTypeDescription = 
ent2Expression.subst(linkTypeDescription, secondaryEntityLabel);
   return linkTypeDescription;
   }

Here's the offending little snippet of JSP code:

   %
   }

   InternalLink[] sampleIntLinks = sample.getAllInternalLinks();
   int numIntLinks = sampleIntLinks.length;
   if(numIntLinks  0) {
   %
   h2Internal Links/h2
   table border=1
   tr
   thDescription/th
   thActions/th
   /tr
   %
   Arrays.sort(sampleIntLinks);
   for(int i = 0; i  numIntLinks; i++) {
   int linkId = sampleIntLinks[i].getId();
   %
   tr
   td%= 
sampleIntLinks[i].parseDescription(Sample) %/td
   tda href = 
deleteInternalLink.jsp?sampleId=%= idString %linkId=%= linkId 
%delete/a/td
   /tr
   %
   }
   %
   /table

Strangely enough, even if I don't call parseDescription() within the 
JSP, I still get the exception as long as I just instantiate 
InternalLink.  Any clue what's going on here?

Thanks for the help, and happy holidays to all,
-Al

--
--
Albert Wang
DDED Informatics
Bristol-Myers Squibb Pharmaceutical Research Institute




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



Re: sites suddenly give internal server error

2002-10-23 Thread Albert Csaba
Yes, I started configuring it to support SSL, but I had no time to finish
it.
I removed the line where I specified the 8443 port, and it works fine again.

Thanks for your help and response,

Csaba


- Original Message -
From: Robert L Sowders
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Wednesday, October 23, 2002 01:36
Subject: Re: sites suddenly give internal server error


 Hmmm,

 Can't really say what's definitely wrong.  Are you preloading any new JSPs
 or servlet'.  Something has changed, if you had a working system one day
 and the next it goes off like this.  Have you upgraded anything lately,
 JSDK, JRE?  Have the class paths been changed in anyway?

 rls






 Albert Csaba
 10/22/2002 03:37 AM
 Please respond to Tomcat Users List


 To: Tomcat Users List [EMAIL PROTECTED]
 cc:
 Subject:Re: sites suddenly give internal server error


 Yes, you're right, it stops. I found this error in catalina.out

 Exception during startup processing
 java.lang.reflect.InvocationTargetException:
 java.lang.NoClassDefFoundError:
 javax/net/ServerSocketFactory
 at java.lang.Class.forName0(Native Method)
 at java.lang.Class.forName(Class.java:115)
 at
 org.apache.catalina.util.xml.ObjectCreate.start(XmlMapper.java:616)
 at
 org.apache.catalina.util.xml.XmlMapper.matchStart(XmlMapper.java:412)
 at
 org.apache.catalina.util.xml.XmlMapper.startElement(XmlMapper.java:91)
 at

org.xml.sax.helpers.XMLReaderAdapter.startElement(XMLReaderAdapter.java:329)
 at
 org.apache.xerces.parsers.SAXParser.startElement(SAXParser.java:1376)
 at

org.apache.xerces.validators.common.XMLValidator.callStartElement(XMLValidat
 or.java:1284)
 at

org.apache.xerces.framework.XMLDocumentScanner.scanElement(XMLDocumentScanne
 r.java:1806)
 at

org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(XM
 LDocumentScanner.java:1182)
 at

org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.
 java:381)
 at
 org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1098)
 at
 org.xml.sax.helpers.XMLReaderAdapter.parse(XMLReaderAdapter.java:223)
 at javax.xml.parsers.SAXParser.parse(SAXParser.java:362)
 at javax.xml.parsers.SAXParser.parse(SAXParser.java:301)
 at
 org.apache.catalina.util.xml.XmlMapper.readXml(XmlMapper.java:228)
 at org.apache.catalina.startup.Catalina.start(Catalina.java:725)
 at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
 at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
 at java.lang.reflect.Method.invoke(Native Method)
 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)

 What does this mean?

 Csaba


 - Original Message -
 From: Robert L Sowders
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Tuesday, October 22, 2002 11:28
 Subject: Re: sites suddenly give internal server error


  Looks like Tomcat is not running.  Look for the process with ps.  Those
  old versions had memory leaks if my memory hasn't leaked it that is :-)
 
  rls
 
 
 
 
 
  Albert Csaba
  10/22/2002 03:15 AM
  Please respond to Tomcat Users List
 
 
  To: Tomcat Users List [EMAIL PROTECTED]
  cc:
  Subject:sites suddenly give internal server error
 
  Hi,
 
  I've setuped a few month ago on a Linux box
  jakarta-tomcat-4.0.4
  jdk1.3.1_04
  jakarta-ant-1.4
  mod_jk
  on apache 1.3.6 with virtualhosts.
 
  It worked fine, till a few days ago, when suddenly started giving the
  error
  The server encountered an internal error or misconfiguration and was
  unable to complete your request. upon accessing the Java sites.
 
  What could it be? As I understood from the logs, from the mod_jk log, it
  can't connect to Tomcat process.
  ...
  [Tue Oct 22 11:57:08 2002]  [jk_connect.c (115)]: jk_open_socket, try to
  connect socket = 8
  [Tue Oct 22 11:57:08 2002]  [jk_connect.c (124)]: jk_open_socket, after
  connect ret = -1
  [Tue Oct 22 11:57:08 2002]  [jk_connect.c (143)]: jk_open_socket,
  connect() failed errno = 111
  [Tue Oct 22 11:57:08 2002]  [jk_ajp13_worker.c (196)]: In
  jk_endpoint_t::connect_to_tomcat, failed errno = 111
  [Tue Oct 22 11:57:08 2002]  [jk_ajp13_worker.c (635)]: Error connecting
 to
  the Tomcat process.
  ...
 
  What could be wrong?
 
  Csaba
 
 
 
  --
  To unsubscribe, e-mail:
 mailto:tomcat-user-unsubscribe;jakarta.apache.org
  For additional commands, e-mail:
 mailto:tomcat-user-help;jakarta.apache.org
 
 




 --
 To unsubscribe, e-mail:
mailto:tomcat-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail:
mailto:tomcat-user-help;jakarta.apache.org





 --
 To unsubscribe, e-mail:
mailto:tomcat-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail:
mailto:tomcat-user-help;jakarta.apache.org






--
To unsubscribe, e-mail:   mailto:tomcat

sites suddenly give internal server error

2002-10-22 Thread Albert Csaba
Hi,

I've setuped a few month ago on a Linux box 
jakarta-tomcat-4.0.4
jdk1.3.1_04
jakarta-ant-1.4
mod_jk 
on apache 1.3.6 with virtualhosts.

It worked fine, till a few days ago, when suddenly started giving the error
The server encountered an internal error or misconfiguration and was unable to 
complete your request. upon accessing the Java sites.

What could it be? As I understood from the logs, from the mod_jk log, it can't connect 
to Tomcat process.
...
[Tue Oct 22 11:57:08 2002]  [jk_connect.c (115)]: jk_open_socket, try to connect 
socket = 8
[Tue Oct 22 11:57:08 2002]  [jk_connect.c (124)]: jk_open_socket, after connect ret = 
-1
[Tue Oct 22 11:57:08 2002]  [jk_connect.c (143)]: jk_open_socket, connect() failed 
errno = 111
[Tue Oct 22 11:57:08 2002]  [jk_ajp13_worker.c (196)]: In 
jk_endpoint_t::connect_to_tomcat, failed errno = 111
[Tue Oct 22 11:57:08 2002]  [jk_ajp13_worker.c (635)]: Error connecting to the Tomcat 
process.
...

What could be wrong?

Csaba


Re: sites suddenly give internal server error

2002-10-22 Thread Albert Csaba

Yes, you're right, it stops. I found this error in catalina.out

Exception during startup processing
java.lang.reflect.InvocationTargetException: java.lang.NoClassDefFoundError:
javax/net/ServerSocketFactory
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:115)
at
org.apache.catalina.util.xml.ObjectCreate.start(XmlMapper.java:616)
at
org.apache.catalina.util.xml.XmlMapper.matchStart(XmlMapper.java:412)
at
org.apache.catalina.util.xml.XmlMapper.startElement(XmlMapper.java:91)
at
org.xml.sax.helpers.XMLReaderAdapter.startElement(XMLReaderAdapter.java:329)
at
org.apache.xerces.parsers.SAXParser.startElement(SAXParser.java:1376)
at
org.apache.xerces.validators.common.XMLValidator.callStartElement(XMLValidat
or.java:1284)
at
org.apache.xerces.framework.XMLDocumentScanner.scanElement(XMLDocumentScanne
r.java:1806)
at
org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(XM
LDocumentScanner.java:1182)
at
org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.
java:381)
at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1098)
at
org.xml.sax.helpers.XMLReaderAdapter.parse(XMLReaderAdapter.java:223)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:362)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:301)
at
org.apache.catalina.util.xml.XmlMapper.readXml(XmlMapper.java:228)
at org.apache.catalina.startup.Catalina.start(Catalina.java:725)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
at java.lang.reflect.Method.invoke(Native Method)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)

What does this mean?

Csaba


- Original Message -
From: Robert L Sowders
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Tuesday, October 22, 2002 11:28
Subject: Re: sites suddenly give internal server error


 Looks like Tomcat is not running.  Look for the process with ps.  Those
 old versions had memory leaks if my memory hasn't leaked it that is :-)

 rls





 Albert Csaba
 10/22/2002 03:15 AM
 Please respond to Tomcat Users List


 To: Tomcat Users List [EMAIL PROTECTED]
 cc:
 Subject:sites suddenly give internal server error

 Hi,

 I've setuped a few month ago on a Linux box
 jakarta-tomcat-4.0.4
 jdk1.3.1_04
 jakarta-ant-1.4
 mod_jk
 on apache 1.3.6 with virtualhosts.

 It worked fine, till a few days ago, when suddenly started giving the
 error
 The server encountered an internal error or misconfiguration and was
 unable to complete your request. upon accessing the Java sites.

 What could it be? As I understood from the logs, from the mod_jk log, it
 can't connect to Tomcat process.
 ...
 [Tue Oct 22 11:57:08 2002]  [jk_connect.c (115)]: jk_open_socket, try to
 connect socket = 8
 [Tue Oct 22 11:57:08 2002]  [jk_connect.c (124)]: jk_open_socket, after
 connect ret = -1
 [Tue Oct 22 11:57:08 2002]  [jk_connect.c (143)]: jk_open_socket,
 connect() failed errno = 111
 [Tue Oct 22 11:57:08 2002]  [jk_ajp13_worker.c (196)]: In
 jk_endpoint_t::connect_to_tomcat, failed errno = 111
 [Tue Oct 22 11:57:08 2002]  [jk_ajp13_worker.c (635)]: Error connecting to
 the Tomcat process.
 ...

 What could be wrong?

 Csaba



 --
 To unsubscribe, e-mail:
mailto:tomcat-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail:
mailto:tomcat-user-help;jakarta.apache.org






--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




httpd + tomcat, using the root url

2002-09-05 Thread albert

Hi,
  I have to use cocoon (with tomcat) and squirrelmail in the same server.
  I wanted to use vitual hosts but cocoon must be used with SSL and named
  virtual hosts are not possible. Thus, I'd like to use
  https://www.myaddress.com for cocoon and https://www.myaddress.com/mail
  for squirrelmail, and possibly also http://www.myaddress.com/mail.

  I've tried something like this in the httpd.conf

Alias /usuaris /var/lib/tomcat/webapps/usuaris

Directory /var/lib/tomcat/webapps/usuaris
   Options Indexes FollowSymLinks
/Directory

Location /var/lib/tomcat/webapps/WEB-INF/
   AllowOverride None
   deny from all
/Location

LocationMatch /*
   SetHandler jk-servlet
/LocationMatch

Because I saw something similar with jserv but it seems jk-servlet doesn't
exist. Am I in the correct way? Does somebody have a smart solution for
the this?
  Thanks in advance!



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




tomcat virtualhost 404 error

2002-07-29 Thread Albert Csaba

I have Tomcat4.0.4 with mod_jk running. I'm not sure if it's setup correctly. I'm 
trying to test it with an example found on the net, 
uploaded to a virtualhost, but I'm getting a Apache Tomcat 404 error.

What else do I have to set for the test.jsp to be found there?

Thank you,
Csaba




This is in my server.xml file for that virtualhost:

Host name=www.vhost.xx
  Context path= docBase=/home/sites/www.vhost.xx/web debug=0/
  Context path=/examples 
   docBase=/home/sites/www.vhost.xx/web/examples 
   debug=0 
 reloadable=true /
  Context path=/test docBase=/home/sites/www.vhost.xx/web/test debug=0
   reloadable=true /

  
  Logger className=org.apache.catalina.logger.FileLogger
   prefix=jsoft_examples_log. suffix=.txt
 timestamp=true/
Ejb   name=ejb/EmplRecord type=Entity
   home=com.wombat.empl.EmployeeRecordHome
 remote=com.wombat.empl.EmployeeRecord/ 
Environment name=maxExemptions type=java.lang.Integer
value=15/
Parameter name=context.param.name value=context.param.value
   override=false/
  
  Resource name=jdbc/jSoft auth=SERVLET type=javax.sql.DataSource/
  ResourceParams name=jdbc/jSoft
 
  parameternameuser/namevalueuser/value/parameter
 
  parameternamepassword/namevaluepw/value/parameter
  
parameternamedriverClassName/namevalueorg.gjt.mm.mysql.Driver/value/parameter
  
parameternamedriverName/namevaluejdbc:mysql://localhost//value/parameter
  
  /ResourceParams
  Resource name=mail/Session auth=Container
  type=javax.mail.Session/
ResourceParams name=mail/Session
  parameter
namemail.smtp.host/name
valuelocalhost/value
  /parameter
/ResourceParams
  
 Logger className=org.apache.catalina.logger.FileLogger
   prefix=jsoft_examples_log. suffix=.txt
 timestamp=true/
Ejb   name=ejb/EmplRecord type=Entity
   home=com.wombat.empl.EmployeeRecordHome
 remote=com.wombat.empl.EmployeeRecord/ 
Environment name=maxExemptions type=java.lang.Integer
value=15/
Parameter name=context.param.name value=context.param.value
   override=false/ 
 Resource name=jdbc/jSoft auth=SERVLET type=javax.sql.DataSource/
  
  ResourceParams name=jdbc/jSoft
 
  parameternameuser/namevalueuser/value/parameter
 
  parameternamepassword/namevaluepw/value/parameter

  
parameternamedriverClassName/namevalueorg.gjt.mm.mysql.Driver/value/parameter

  
parameternamedriverName/namevaluejdbc:mysql://localhost//value/parameter
   /ResourceParams
  
  
Resource name=mail/Session auth=Container
  type=javax.mail.Session/
ResourceParams name=mail/Session
  parameter
namemail.smtp.host/name
valuelocalhost/value
  /parameter
/ResourceParams
  

  
/Host

And that's in my httpd.conf:

LoadModule jk_module  /usr/lib/apache/mod_jk.so

AddModule mod_jk.c

# Configure mod_jk
#
JkWorkersFile /home/jakarta-tomcat-4.0.4/conf/jk/workers.properties
JkLogFile /var/log/httpd/mod_jk.log
JkLogLeveldebug


JkMount /examples ajp13
JkMount /examples/* ajp13

JkMount /jk ajp13
JkMount /jk/* ajp13

JkMount /cocoon ajp13
JkMount /cocoon/* ajp13



VirtualHost xxx.xxx.xxx.xxx
ServerName www.vhost.xx
ServerAdmin admin
DocumentRoot /home/sites/site4/web
ServerAlias vhost.xx
JkMount /*.jsp ajp13
JkMount /servlet/* ajp13

JkMount /examples ajp13
JkMount /examples/* ajp13

JkMount /jk ajp13
JkMount /jk/* ajp13

JkMount /cocoon ajp13
JkMount /cocoon/* ajp13


RewriteEngine on
RewriteCond %{HTTP_HOST}!^212.67.192.29(:80)?$
RewriteCond %{HTTP_HOST}!^www.vhost.xx(:80)?$
RewriteOptions inherit
AliasMatch ^/~([^/]+)(/(.*))? /home/sites/site4/users/$1/web/$3
AliasMatch ^/users/([^/]+)(/(.*))? /home/sites/site4/users/$1/web/$3
AddHandler cgi-wrapper .cgi
AddHandler cgi-wrapper .pl
/VirtualHost





RE:setting virtualhost .jsp path (was: tomcat virtualhost 404 error)

2002-07-29 Thread Albert Csaba


Yes, I can see a page telling me that the installation of tomcat was 
successfull. But where do I have to define the virtualhosts? I guess 
the problem is that when I'm trying to access 
http://www.vhost.xx/main.jsp, it doesn't actually gets the page 
from /home/sites/www.vhost.xx/web/main.jsp. 
I've read several documents for configuring tomcat for virtualhosts, 
but it's still not working.

Any help is appreciated,
thank you, 

Csaba




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




Re: confused - Installing tomcat4.0.4 on RaQ3 (Apache)

2002-07-26 Thread Albert Csaba


Thanks for your help. I'm not confused anymore. But still cannot download
the mod_jk from anywhere.
Google indeed gives so many links. But I tried that before. This list was my
last resource... The google links are or broken or getting me to the
download page for tomcat 3.x.

I have CVS on my server (1.11), but never used it. I could connect with it,
it says updating and stuff, but what then? How do I compile it?
Or how do I download what shows to me on the site?

Thanks,
Csaba

- Original Message -
From: Simon Stewart [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Friday, July 26, 2002 14:51
Subject: Re: confused - Installing tomcat4.0.4 on RaQ3 (Apache)


 On Fri, Jul 26, 2002 at 01:42:19PM +0200, Ralph Einfeldt wrote:
 
  Where you can download them I don't know, all links that I=20
  had are invalid by now.

 If you can use CVS, the best thing for jk2 (and possibly mod_webapp)
 is to grab the source that way. There are links to the CVS
 repositories on the jakarta tomcat homepage (
 http://jakarta.tomcat.org/ : take a look down the left hand side nav)
 including instructions on how to get the source.

 All of the apache/tomcat connectors are in the
 jakarta-tomcat-connectors module.

 Cheers,

 Simon

 --
 As the saying goes, if you give a man a fish, he eats for a day. If you
 teach him to grep for fish, he'll leave you alone all weekend. If you
 encourage him to beg for fish, pretty soon c.l.p.misc will smell like a
 three-week-dead trout. -- Tom Phoenix, c.l.p.misc.

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






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




problems configuring Interclient on Tomcat

2002-07-22 Thread albert woltman

Hello,

I'm using Tomcat 4.0 and Interbase 6.5 together with interclient 2.5.
Now I would like to setup JDBC Realms so I made an entry in server.xml

Realm classname=org.apache.catalina.realm.JDBCRealm debug=99
 drivername=interbase.interclient.Driver
 
connectionurl=jdbc:interbase://localhost/d:/ou_webshop.gdb?user=dba;password=dba
 usertable=users usernamecol=user_name usercredcol=user_pass
 userroletable=user_roles rolenamecol=role_name/

And I put my Interclient jar in my classpath, but Tomcat keeps on saying it can't find 
any suitable driver, but Interclient is in my classpath.
What am I doing wrong, or knows anybody a workaround 'cause I'm going nuts here.

CLASSPATH = d:\InterBase\InterClient\interclient.jar



How was the precompiled mod_webapp.so binary built for Solaris 8

2002-06-16 Thread Albert Chin

How was the precompiled binary of mod_webapp available from
http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0.3/bin/solaris8/sparc/
built?

I'm trying to build it with the Sun C compiler (Forte 6.2) as follows:
  ./configure CFLAGS=-mr -Qn -xstrconst -xO2 -xtarget=generic -xarch=v8 \
  CC=cc JAVA_HOME=/opt/java1.4 --with-apxs=[blah] --with-perl=[blah] \
  --disable-docs --disable-apidoc-java --disable-apidoc-c \
  --with-java=[tomcat dir] --with-ant=[path to ant]

I followed the instructions at:
  http://archive.covalent.net/jakarta/tomcat-user/2002/03/0209.xml
to fetch webapp and apr but get an error when trying to connect:

  $ telnet localhost 80
  Trying 127.0.0.1...
  Connected to localhost.
  Escape character is '^]'.
  GET /examples/ HTTP/1.0

  Connection closed by foreign host.

Using the precompiled binary above works fine!

-- 
albert chin ([EMAIL PROTECTED])

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




Catalina - Memory Usage always accumulating after one week

2002-04-24 Thread Albert Oscarina

Hi Tomcat User,

I use catalina for my application. Everything seems good, but everyday, the
memory usage
accumulating, until every one week 99% memory has been usage. I must always
restart my Catalina
and everything back to normal again.

Do any body knows what happens ? Is it because my program ? or any body
encountered the same problem in Catalina ?

thanks

Albert Oscarina




winmail.dat
Description: application/ms-tnef

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]


Re: Tomcat 4.0 and IterationTag

2002-03-19 Thread Albert Pastrana

Yes, I thought the same, because I did a similar tag some months ago, but I
looked at the JSP1.2 specification and docs and I saw that now, TagSupport
is implementing IterationTag (a new interface) and that the right way (the
other will be deprecated) to do an iteration tag is extending TagSupport.

thanks

- Original Message - 
From: Rich Sneiderman [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, March 18, 2002 6:30 PM
Subject: RE: Tomcat 4.0 and IterationTag


 I haven't implemented on of these yet but it sounds like you should be
 inheriting from BodyTagSupport not TagSupport.
 
 - Rich
 
 -Original Message-
 From: Albert Pastrana [mailto:[EMAIL PROTECTED]] 
 Sent: Monday, March 18, 2002 9:25 AM
 To: tomcat-list
 Subject: Tomcat 4.0 and IterationTag
 
 
 Hi,
 
 I've a tomcat 4.0 (downloaded latest week) in a Win2k pro.
 
 I've a little problem running it as service, but running stand-alone
 everything it's right.
 
 The first problem comes when creating an iteration tag. I've followed
 many explanations and, of course, read all the javadocs, and I cannot
 understand what I'm doing wrong.
 
 My code is something like that:
 
 public class RepeatTag
 extends  TagSupport
 {
int num = 0;
 
boolean endLoop()   { return num==10; }
voidnextElement() { num++;  }
 
public int doStartTag() throws JspException {
   if (!endLoop()) {
  nextElement();
  return EVAL_BODY_AGAIN;
  }
  return SKIP_BODY;
}
 
public int doAfterBody() throws JspException {
   if (!endLoop()) {
  nextElement();
  return EVAL_BODY_AGAIN;
   } else {
  return SKIP_BODY;
   }
   }
 
 } //end class RepeatTag
 
 And the problem is that my Tomcat is saying me that exception:
 javax.servlet.ServletException: Since tag handler class
 com.ludicus.general.taglib.RepeatTag does not implement BodyTag, it
 can't return BodyTag.EVAL_BODY_TAG
 
 I've read a lot of documentation about JSP1.2 and I think that's the
 right solution, but I supose I'm doing something wrong, could anyone
 tell me what's the problem?
 
 thanks a lot
 
   albert
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Tomcat 4.0 and IterationTag

2002-03-18 Thread Albert Pastrana

Hi,

I've a tomcat 4.0 (downloaded latest week) in a Win2k pro.

I've a little problem running it as service, but running stand-alone
everything it's right.

The first problem comes when creating an iteration tag. I've followed many
explanations and, of course, read all the javadocs, and I cannot understand
what I'm doing wrong.

My code is something like that:

public class RepeatTag
extends  TagSupport
{
   int num = 0;

   boolean endLoop()   { return num==10; }
   voidnextElement() { num++;  }

   public int doStartTag() throws JspException {
  if (!endLoop()) {
 nextElement();
 return EVAL_BODY_AGAIN;
 }
 return SKIP_BODY;
   }

   public int doAfterBody() throws JspException {
  if (!endLoop()) {
 nextElement();
 return EVAL_BODY_AGAIN;
  } else {
 return SKIP_BODY;
  }
  }

} //end class RepeatTag

And the problem is that my Tomcat is saying me that exception:
javax.servlet.ServletException: Since tag handler class
com.ludicus.general.taglib.RepeatTag does not implement BodyTag, it can't
return BodyTag.EVAL_BODY_TAG

I've read a lot of documentation about JSP1.2 and I think that's the right
solution, but I supose I'm doing something wrong, could anyone tell me
what's the problem?

thanks a lot

  albert


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: Tomcat 4.0 and IterationTag

2002-03-18 Thread Albert Pastrana

Ok, thanks a lot, but that not solves my problem :(. I knew already the
IterateTag from Struts, but the question is that my tag will (should) be
something more than this Tag, and I need to make my own Iteration tag.
thanks

- Original Message -
From: Barney Hamish [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Monday, March 18, 2002 6:32 PM
Subject: RE: Tomcat 4.0 and IterationTag


 Although this doesn't address the problem you're having with your tag, you
 should consider using the Struts tag library. The Iteration Tag in the
logic
 tags does exactly what you want and it's been tested extensively.
 http://jakarta.apache.org/struts/doc-1.0.2/struts-logic.html#iterate
 Hamish

 -Original Message-
 From: Albert Pastrana [mailto:[EMAIL PROTECTED]]
 Sent: Monday, March 18, 2002 6:25 PM
 To: tomcat-list
 Subject: Tomcat 4.0 and IterationTag


 Hi,

 I've a tomcat 4.0 (downloaded latest week) in a Win2k pro.

 I've a little problem running it as service, but running stand-alone
 everything it's right.

 The first problem comes when creating an iteration tag. I've followed many
 explanations and, of course, read all the javadocs, and I cannot
understand
 what I'm doing wrong.

 My code is something like that:

 public class RepeatTag
 extends  TagSupport
 {
int num = 0;

boolean endLoop()   { return num==10; }
voidnextElement() { num++;  }

public int doStartTag() throws JspException {
   if (!endLoop()) {
  nextElement();
  return EVAL_BODY_AGAIN;
  }
  return SKIP_BODY;
}

public int doAfterBody() throws JspException {
   if (!endLoop()) {
  nextElement();
  return EVAL_BODY_AGAIN;
   } else {
  return SKIP_BODY;
   }
   }

 } //end class RepeatTag

 And the problem is that my Tomcat is saying me that exception:
 javax.servlet.ServletException: Since tag handler class
 com.ludicus.general.taglib.RepeatTag does not implement BodyTag, it can't
 return BodyTag.EVAL_BODY_TAG

 I've read a lot of documentation about JSP1.2 and I think that's the right
 solution, but I supose I'm doing something wrong, could anyone tell me
 what's the problem?

 thanks a lot

   albert


 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]

 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




IIS with Tomcat: Change default servlet directory

2001-09-12 Thread Albert

Hi All,

I've installed Tomcat on Winnt4 with IIS4 and I've
followed the instructions in Tomcat IIS HowTo to let
IIS cooperate with Tomcat. It works if I set the home
directory of my Web site in IIS to d:\tomcat (for my
case, TOMCAT_HOME = d:\tomcat). I can run the servlet
examples included in Tomcat successfully. Now I decide
to change the home directory of my Web site in IIS to
another directory (for my case, new home directory =
d:\myWeb) and also put my servlet classes into another
directory e:\myServlet. However, I don't know how to
set config files to let my servlet classes be
executed. Would anyone help me with an example for my
case? Thanks in advance!!

Albert


__
Do You Yahoo!?
Get email alerts  NEW webcam video instant messaging with Yahoo! Messenger
http://im.yahoo.com



Tomcat with IIS: errno = 61

2001-09-10 Thread Albert

Hi All,

I'm new in this mail list and I would ask for help. My problem is that I
installed Tomcat on Win2K Prof. with IIS5 for testing some servlet programs.
I followed the instructions in Tomcat IIS HowTo to let IIS cooperate with
Tomcat. After finishing all steps stated in Tomcat IIS HowTo and
restarting IIS, jakarta filter is marked with a green up-pointing arrow.
Then I added a virtual directory servlet which maps to
D:\Tomcat\webapps\examples\servlets under the default Web site where
D:\Tomcat is the TOMCAT_HOME. Afterwards, I restarted IIS again and tried to
open http://localhost/servlet/index.html in the browser, but no page was
displayed. I found that there was an error from isapi.log. The following is
a fragment of the log:

[jk_worker.c (82)]: Into wc_open
[jk_worker.c (207)]: Into build_worker_map, creating 2 workers
[jk_worker.c (213)]: build_worker_map, creating worker ajp12
[jk_worker.c (138)]: Into wc_create_worker
[jk_worker.c (152)]: wc_create_worker, about to create instance ajp12 of
ajp12
[jk_ajp12_worker.c (264)]: Into ajp12_worker_factory
[jk_worker.c (161)]: wc_create_worker, about to validate and init ajp12
[jk_ajp12_worker.c (182)]: Into jk_worker_t::validate
[jk_ajp12_worker.c (194)]: In jk_worker_t::validate for worker ajp12 contact
is localhost:8007
[jk_worker.c (177)]: wc_create_worker, done
[jk_worker.c (223)]: build_worker_map, removing old ajp12 worker
[jk_worker.c (213)]: build_worker_map, creating worker ajp13
[jk_worker.c (138)]: Into wc_create_worker
[jk_worker.c (152)]: wc_create_worker, about to create instance ajp13 of
ajp13
[jk_ajp13_worker.c (711)]: Into ajp23_worker_factory
[jk_worker.c (161)]: wc_create_worker, about to validate and init ajp13
[jk_ajp13_worker.c (386)]: Into jk_worker_t::validate
[jk_ajp13_worker.c (399)]: In jk_worker_t::validate for worker ajp13 contact
is localhost:8009
[jk_ajp13_worker.c (425)]: Into jk_worker_t::init
[jk_worker.c (177)]: wc_create_worker, done
[jk_worker.c (223)]: build_worker_map, removing old ajp13 worker
[jk_worker.c (235)]: build_worker_map, done
[jk_worker.c (102)]: wc_open, done
[jk_isapi_plugin.c (408)]: HttpFilterProc started
[jk_isapi_plugin.c (429)]: In HttpFilterProc test redirection of
/servlet/index.html
[jk_uri_worker_map.c (345)]: Into jk_uri_worker_map_t::map_uri_to_worker
[jk_uri_worker_map.c (407)]: jk_uri_worker_map_t::map_uri_to_worker, Found a
match ajp12
[jk_isapi_plugin.c (439)]: HttpFilterProc [/servlet/index.html] is a servlet
url - should redirect to ajp12
[jk_isapi_plugin.c (461)]: HttpFilterProc check if [/servlet/index.html] is
points to the web-inf directory
[jk_isapi_plugin.c (517)]: HttpExtensionProc started
[jk_worker.c (123)]: Into wc_get_worker_for_name ajp12
[jk_worker.c (127)]: wc_get_worker_for_name, done  found a worker
[jk_isapi_plugin.c (539)]: HttpExtensionProc got a worker for name ajp12
[jk_ajp12_worker.c (223)]: Into jk_worker_t::get_endpoint
[jk_ajp12_worker.c (121)]: Into jk_endpoint_t::service
[jk_connect.c (108)]: Into jk_open_socket
[jk_connect.c (115)]: jk_open_socket, try to connect socket = 1268
[jk_connect.c (124)]: jk_open_socket, after connect ret = -1
[jk_connect.c (143)]: jk_open_socket, connect() failed errno = 61
[jk_ajp12_worker.c (134)]: In jk_endpoint_t::service, sd = -1
[jk_ajp12_worker.c (152)]: In jk_endpoint_t::service, Error sd = -1
[jk_isapi_plugin.c (554)]: HttpExtensionProc error, service() failed
[jk_ajp12_worker.c (163)]: Into jk_endpoint_t::done
[jk_isapi_plugin.c (408)]: HttpFilterProc started

I heard that the problem is connection refusion due to unmatched ports
between Tomcat and IIS. However, I didn't modify any ports in
workers.properties, uriworkermap.properties and server.xml. I just used the
default settings. The port for ajp12 is 8007.

I really have no idea to solve the problem. If you want to examine my conf
files or have more information, please let me know. Thanks in advance!!

Albert


_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com




classpath questions

2001-08-21 Thread Albert Yip

Hi all,

I am wondering if someone can instruct me or point me in the direction on
how to make apps I create in the same tomcat to start with different
classpaths and libraries? Currently I add the jar file into the global
classpath but when I have more than one apps on tomcat, I run into trouble.
Tomcat is not able to call the servlets intended. For example, if I have 2
apps, App A with servlet a and App B with servlet b. When i use a browser
and call App A with servlet b, say http://127.0.0.1/appA/servlet/b,  it will
still work. How to avoid this?

Thanks,
Albert



FONT SIZE=1 FACE=ARIAL  
p_

This e-mail (and any attachment) is intended only for the addressee and
may contain confidential information.  If you are not the intended recipient
you must not use, copy, print or distribute this e-mail. If you receive this
e-mail in error, please contact the sender and destroy the original./p
pThis footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.
_/p
/FONT



FW: tomcat+oracle sample

2001-07-17 Thread albert




Dear 
Jerry

I 
never do JSP file that access directly to Oracle 8i, but I did like 
this:
From 
JSP ( Tomcat ) i send data to another interface java file,Iuse Java 
Beans and then from that interface
i send 
to business logic, which is can access Oracel 8i
I give 
you two file
1) 
UtilityDB, this object you can use for access Oracle
2) 
CallingUtility, this java file that use UtilityDB to access and exceute Oracle 
database

For 
private company reason, some data I delete, so may be you need to fix a little 
debug whenencounter problem when you compile UtilityDB
for 
CallingUtility I didn't meant you can compile, you must create your own code to 
call UtilityDB

regards


Albert Oscarina System Specialist Solution Made 
Pocketable http://www.SMPdirect.com Phone : (65) 276 7624 Fax 
: (65) 274 4770 mail : 
[EMAIL PROTECTED] 
"If we have a strong reason, we will find the 
way" (Bits  Pieces, The Economics 
Press) 


  -Original Message-From: Jerry Qu 
  [mailto:[EMAIL PROTECTED]]Sent: Wednesday, July 18, 2001 6:27 
  AMTo: [EMAIL PROTECTED]Subject: 
  tomcat+oracle sample 
  Hi All
  
  could someone provide a sample jspfor 
  tomcat that access oracle 8i with detailed setting?
  
  TIA
  
  Jerry
  
 OracleAccess.zip


RE: help...help

2001-07-13 Thread albert

For http://localhost:8080/examples it must be run when we install Tomcat for
the first time, may be you put some tags
that make the Tomcat can't recognise the localhost, try reinstall the tomcat

For http://www.concept.com/numguess.jsp? someone give this to me,
http://www.verysimple.com/scripts/support_tc_iis.html

regards

Albert Oscarina
System Specialist
Solution Made Pocketable
http://www.SMPdirect.com
Phone : (65) 276 7624
Fax   : (65) 274 4770
mail : [EMAIL PROTECTED]

If we have a strong reason, we will find the way
(Bits  Pieces, The Economics Press)


-Original Message-
From: Dhwani K. Bhayani [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 13, 2001 3:58 PM
To: [EMAIL PROTECTED]
Subject: help...help



I cannot access through http://localhost:8080/examples/jsp/index.html
but through IP http://127.0.0.1:8080/examples/jsp/index.html
Is it something wrong? And now how to access through
e.g http:/www.concept.com/numguess.jsp ?
I have done each and evry steps but not able to run this.
The IP of this site is different so how to set up.I read
setting virtual host section but still not done.Please
tell me the steps to do.I have already done successfully all the
steps mentioned in tomcat-iis-howto.html.What else I need to do?
please help me if anyone can?

Dhwani









jk_nt_service and NT error 2140

2001-07-12 Thread Juergen . Albert



Hi,

I'm trying to start tomcat as a Windows NT service and get an error when I
try to start the service.
The steps, I did:

- install tomcat 3.3m4 to x:\jakarta-tomcat-3.3m4  (drive x: is my
harddisk)
- install jk_nt_service.exe in the x:\jakarta-tomcat-3.3m4\bin directory
- edit the the file x:\jakarta-tomcat-3.3m4\conf\jk\wrapper.properties and
change TOMCAT_HOME and JAVA_HOME:
 wrapper.tomcat_home=x:\jakarta-tomcat-3.3-m4   (i also
triedtomcat-3.3-m3)
 wrapper.java_home=x:\jdk1.2.2 (i also tried jdk 1.3.0)
- install the service with:
 jk_nt_service.exe -I tomcat-3.3m4
x:\jakarta-tomcat-3.3-m4\conf\jk\wrapper.properties   (NT says ok)
- TRY TO start the service in the control panel/services dialog:

--- NT says: Error 2140

Did I forgot something or did I misunderstood something or is there a real
problem with jk_nt_service.exe?

Thanks in advance,
juergen









RE: tomcat exception

2001-07-06 Thread albert

hi,
I try to help, may be this can solve your problem
1) Delete all the *.java file inside the jar file 
2) put the class in \webapps\ROOT\WEB-INF\lib
3) check your classpath setting, it must be point to your jar file, (e.g :
\webapps\ROOT\WEB-INF\lib\myjar.jar)
 

[albertoscarina] 
 
 
 -Original Message-
From: Lakshminarayanan Ramakrishnan [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 06, 2001 5:18 PM
To: [EMAIL PROTECTED]
Subject: tomcat exception



Hi 

When given a jsp request, tomcat throws an exception saying... 

What could be the probable reasons?(FYI.class files placed in
webpps/root/WEB-INF/classes folder) 
Pls. Help.. 

Thanx in adv 
Lax 

EXCEPTION TROWN: 

javax.servlet.ServletException 
at
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp
l.java:459) 
at
BOM._0002fBOM_0002fjwm_0005fFeature_0002ejspjwm_0005fFeature_jsp_0._jspServi
ce(_0002fBOM_0002fjwm_0005fFeature_0002ejspjwm_0005fFeature_jsp_0.java:425)

at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119) 
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) 
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:177) 
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318) 
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) 
at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404) 
at org.apache.tomcat.core.Handler.service(Handler.java:286) 
at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) 
at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79
7) 
at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:743) 
at
org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection
(Ajp12ConnectionHandler.java:166)

at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416) 
at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498) 
at java.lang.Thread.run(Thread.java:484) 
Root cause: 
java.lang.NullPointerException 
at
BOM._0002fBOM_0002fjwm_0005fFeature_0002ejspjwm_0005fFeature_jsp_0._jspServi
ce(_0002fBOM_0002fjwm_0005fFeature_0002ejspjwm_0005fFeature_jsp_0.java:112)

at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119) 
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) 
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:177) 
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318) 
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) 
at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404) 
at org.apache.tomcat.core.Handler.service(Handler.java:286) 
at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) 
at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79
7) 
at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:743) 
at
org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection
(Ajp12ConnectionHandler.java:166)

at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416) 
at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498) 
at java.lang.Thread.run(Thread.java:484) 


 winmail.dat


Why sid:null for the first time ?

2001-07-02 Thread albert

Dear Tomcat user,
Do anybody can help me for this problem ?

everytime i run the Tomcat, it always give me blank page for the first time
loading
after i refresh the web page, than everything run smoothly
It seems that the servlet doesn't have smgr.props.url but i don't know how
to fix this
I use ver 3.1

this is the error message

## ServletSessionManager: No 'smgr.props.url' system property defined.
## ServiceLocator:  Loaded plugin com.ecential.RMI.ServiceLocatorPlugin
## Trying to read properties from http://127.0.0.1:8080/smp/127.0.0.1.props
## Failed: java.io.FileNotFoundException:
http://127.0.0.1:8080/smp/127.0.0.1.pr
ops
## Trying to read properties from http://127.0.0.1:8080/127.0.0.1.props
## Failed: java.io.FileNotFoundException:
http://127.0.0.1:8080/127.0.0.1.props
## Cannot locate a config file 127.0.0.1.props under /smp
java.rmi.RemoteException: Could not restore site properties from sid: null
at com.ecential.Document.StandaloneSessionManager.init(Unknown
Source)

at com.ecential.Document.ServletSessionManager.init(Unknown
Source)
at com.ecential.Document.ServletSessionManager.init(Unknown
Source)
at
smp._0002fsmp_0002fsample_00033_0002ejspsample3_jsp_0._jspService(_00
02fsmp_0002fsample_00033_0002ejspsample3_jsp_0.java:154)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:126)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspSer
vlet.java:174)
at
org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:2
61)
at org.apache.jasper.runtime.JspServlet.service(JspServlet.java:369)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.ja
va:503)
at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:559
)
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnectio
n(HttpConnectionHandler.java:160)
at
org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.j
ava:338)
at java.lang.Thread.run(Thread.java:484)


thanks,

Albert Oscarina
System Specialist
Solution Made Pocketable
http://www.SMPdirect.com
Phone : (65) 276 7624
Fax   : (65) 274 4770
mail : [EMAIL PROTECTED]

If we have a strong reason, we will find the way
(Bits  Pieces, The Economics Press)





re: if mod_jk can be compiled statically in Apache

2001-05-18 Thread Khokhlov, Albert

Hello all,
I'm a bit new to Tomcat so please pardon me if this issue has been addressed
before but I have followed as much as I could from the documentation and
could not find solution for my needs. 
Basically, our company has been used JServ for number of months and now we
are trying to implement Tomcat (simple replacement Jserv on Tomcat). 
With Jserv we had build Apache statically. The idea behind TOMCAT is same,
- keep Apache statically.
- build TOMCAT as out-of-process servlet engine. 
Prior to send email to users mailing list, I checked TOMCAT documentation +
mailing archive but could not find an answer  if I can compile mod_jk
statically in Apache --with-apache flag. 
I been able to find some discussion about it under developers mailing list
but still not be able to find exact syntax for ./configure to build mod_jk
statically on SUN Solaris platform ( all documentation refer to Apache with
DSO and apxs command).
If anyone from users group will be able to answer my question, it would be
real appreciated. 
Awaiting kind reply.
Regards,
Albert Khokhlov
Tech Consultant 
Global Logistics Technologies Inc (PA , USA)
 
Environment:
- Apache 1.3.14 (will try to upgrade to 1.3.19 as soon as Tomcat installed)
- JDK 1.2.1-04 
- Solaris 7
- Tomcat 3.2.1 (trying to implement).






Re: isapi_redirect.dll problem

2001-03-19 Thread Albert Schreuder

 Error in the Win2000, event viewer, system log:
 The HTTP Filter DLL C:\jakarta-tomcat\bin\win32\i386\isapi_redirect.dll 
 failed to load.  The data is the error.
Yup.

I have the same problem. Still nobody with a solution?

Albert




Re: How to configure mod_jk.conf-auto

2001-03-13 Thread Christopher Albert

Jrg Petschat wrote:
 
 Hallo,
 
 Where can i configure the mod_jk.conf-auto.
 Tomcat use only ajp12 in the mod_jk.conf-auto ? Can someone help ?
 
 J  R G   P E T S C H A T
 -- Systemadministrator --
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, email: [EMAIL PROTECTED]

Jorg,

Have you looked at
http://jakarta.apache.org/tomcat/jakarta-tomcat/src/doc/index.html

Chris


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




Re: need a lot of help

2001-03-13 Thread Christopher Albert

Bob,

Have you looked at
http://jakarta.apache.org/tomcat/jakarta-tomcat/src/doc/appdev/index.html   
?

Chris



Bob Kersten wrote:
 
 Hi,
 
 After reading several doc's, faq's and other things, I still can't
 figure it out. I've created a package with JBuilder 3.5 which includes
 several classes. After compiling this package, I have a directory with
 the name of my package, which holds files with an .class extension.
 Where do I put these files? I want to be able to create a .JSP page
 which uses these classes.
 
 I'm using Tomcat 3.2.1 and the Java SDK standard edition 1.3.0 which
 I've installed in c:\tomcat_3.2.1\jdk. How do I use this class and
 where do I place the various files?
 
 Thanx in advance,
  Bop.
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, email: [EMAIL PROTECTED]


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




Re: need a lot of help

2001-03-13 Thread Christopher Albert

Bob Kersten wrote:
 
 Hi,
 
  CA Have you looked at [..]
 
 Yes, I've read those, but that doesn't work. Tomcat still gives me
 an Class "dbapi.dbHandler not found" error. I've created a JBuilder
 project in h:\local\browser\WEB-INF and after compilation the
 'classes' and 'src' directories are present in this directory. I've
 created a context in Tomcat which docbase is h:\local\browser, but
 still it can't use the classes.
 
 What more needs to be done? Anyone?
 
 Mvg,
  Bop.
 
Bob,
Have you tried to package your application in
a WAR archive along the lines of the doc I suggested earlier, and
deployed that in TOMCAT_HOME/webapps ?
I don't know much about Jbuilder but if you have the right war
structure, web.xml and tomcat server.xml configurations it should work.

For example, lets suppose your application is called
"browser", then "browser" should be a directory containing, say, at
least the following, assuming one class:

browser/WEB-INF/web.xml
browser/WEB-INF/classes/dbapi/dbHandler.java
browser/your-jsp.jsp

Where your-jsp.jsp has something like

jsp: ... class="dbapi.dbHandler" .../



Chris


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




isapi_redirect.dll won't load with IIS 5.0, Win 2K and Tomcat 3.2.1

2001-03-13 Thread Albert Schreuder



Dear readers,

We have problems loading the isapi_redirect.dll to 
run Tomcat in combination with IIS.
We have followed all the instructions in the How-to 
document.

But it seems like the isapi_redirect.dll is not 
loading. In the document is stated that een green up-pointing arrow should 
appear. All that we get is een red down-pointing arrow.

Who can help us?

With kind regard


Albert Schreuder


Coupling IIS - Tomcat

2001-03-12 Thread Albert Schreuder



Dear reader,

I tried to couple IIS with Tomcat. For so far I 
know, I followed all the instructions described in the document "Tomcat IIS How 
To".

Only I have one problem, in the document is pointed 
out that when the ISAPI filter is installed, I should get an uppointing green 
arrow. All I get is a downpointing red arrow. 

I double checked all the entries in register. But I 
could find nothing wrong.

I use IIS 5.0, Win 2K, Tomcat 3.2.1 and het 
ISAPI_redirect.dll that was found under binairies from tomcat 3.2.1. 
beta.

Do you have any clou's about what can be 
wrong?

With kind regards,

Albert Schreuder
Topicus BV


Re: Tomcat/Apache port number use

2001-03-09 Thread Christopher Albert

Hans,

Lets try one more time, assuming there are some configuration
problems. For example, I can replicate the analagous error on
my linux box by commenting out the JkMount lines in my mod_jk.conf file.
So I'll start with a series of diagnostic questions, trying to figure
out what is going wrong.

1. After you restart Tomcat, do you restart Apache?
Whenever the httpd.conf file changes, apache needs to restart,
and thanks to the Include of mod_jk.conf, this latter file is
part of httpd.conf.

2.The apache httpd.conf file is very sensitive to the order
of its arguments and instructions. Make sure the LoadModule and
AddModule lines for mod_jk are in the right place.

3. Try making a copy of your mod_jk.conf and workers.properties
files and put them in you apache-root/conf directory, and configure
these files appropriately, along with httpd.conf for the new paths.
Then restart tomcat, and then restart apache and see what happens.

Chris


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




Re: Tomcat/Apache port number use

2001-03-08 Thread Christopher Albert

Hans Kind wrote:

 Hi Chris,

 We run on a Solaris 2.7 server, with Apache DSO 1.3.14.

 The workers.properties file has been updated so that workers.tomcat_home,
 workers.java_home point to the correct location on the server. Changed ps
 to the correct syntax on Unix, ps=/.

 Used apxs to install mod_jk from source

 Included the following line in httpd.conf file:

 Include /opt2/kindserv/tomcat/conf/mod_jk.conf-auto

 http://www.kindserver.com:8080/examples/jsp/dates/date.jsp

 is working as expected

 http://www.kindserver.com/examples/jsp/dates/date.jsp

 results in a server error with the following in the mod_jk.log

 [jk_connect.c (143)]: jk_open_socket, connect() failed errno = 146
 [jk_ajp12_worker.c (152)]: In jk_endpoint_t::service, Error sd = -1

 rgds

 Hans

 At 15:47 7-3-01 +0100, you wrote:
 Hans Kind wrote:
  
   Hi,
  
   We got Apache running on port 80, and Tomcat on port 8080.
  
   Running http://www.kindserver.com:8080 takes me to the Tomcat example page,
   and the JSP and JServ pages work ok.
  
   When I go to
  
   http://www.kindserver.com/examples/servlets/
   http://www.kindserver.com/examples/jsp/
  
   all the examples return a document contains no data error.
  
   How do I setup Apache so that without the need of the port number in the
   url, the JServ and JSP pages are handled bij Tomcat corecty.
  
   I went trough the install instructions, mailing lists and other
   documentation, but couldn't find a slid answe:~(
  
   rgds
  
   Hans Kind
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, email: [EMAIL PROTECTED]
 
 Hans,
 You need to get and install the appropriate apache module;
 porbably mod_jk . There are Mod_jk faqs available on the jakarta site.
 Cant really tell you more without details about you apache, tomcat
 versions
 and your system.
 
 Chris
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, email: [EMAIL PROTECTED]

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

Hans,

You are getting a connection refused error,
http://www.linuxos.net/docs/solaris/common_err.html#korea146

Since I can get the source files of the jsp dislayed
on your site, it seems like the basic apache config is good;
Do you have some lines like the folloing in "workers.properties"

worker.ajp12.port=8007
worker.ajp12.host=localhost
worker.ajp12.type=ajp12

and like the following in mod_jk.conf

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

...
JkMount /examples/servlet/* ajp12
JkMount /examples/*.jsp ajp12

Is there some other service running on
the port 8007, or another reason why
you cant connect there?

Chris



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




Re: Tomcat/Apache port number use

2001-03-08 Thread Christopher Albert

Hans,
I'm running out of ideas too.
One last: does your server.xml file contain the lines

 !-- Apache AJP12 support. This is also used to shut down tomcat.
  --
Connector
className="org.apache.tomcat.service.PoolTcpConnector"
Parameter name="handler"
  
value="org.apache.tomcat.service.connector.Ajp12ConnectionHandler"/
Parameter name="port" value="8007"/
/Connector 

Chris




Hans Kind wrote:
 
 Hi Chris,
 
 workers.properties
 
 worker.ajp12.port=8007
 worker.ajp12.host=localhost
 worker.ajp12.type=ajp12
 
 mod_jk_conf-auto
 
 JkMount /*.jsp ajp12
 JkMount /servlet/* ajp12
 ...
 JkMount /examples/servlet/* ajp12
 JkMount /examples/*.jsp ajp12
 
 Staring Tomcate generates these file, and httpd.conf include the
 mod_jk_conf-auto file.
 
 There is nothing else running on port 8007.
 
 I'm very very lost:~(
 
 rgds
 
 Hans
 
 At 13:35 8-3-01 +0100, you wrote:
 Hans Kind wrote:
 
   Hi Chris,
  
   We run on a Solaris 2.7 server, with Apache DSO 1.3.14.
  
   The workers.properties file has been updated so that workers.tomcat_home,
   workers.java_home point to the correct location on the server. Changed ps
   to the correct syntax on Unix, ps=/.
  
   Used apxs to install mod_jk from source
  
   Included the following line in httpd.conf file:
  
   Include /opt2/kindserv/tomcat/conf/mod_jk.conf-auto
  
   http://www.kindserver.com:8080/examples/jsp/dates/date.jsp
  
   is working as expected
  
   http://www.kindserver.com/examples/jsp/dates/date.jsp
  
   results in a server error with the following in the mod_jk.log
  
   [jk_connect.c (143)]: jk_open_socket, connect() failed errno = 146
   [jk_ajp12_worker.c (152)]: In jk_endpoint_t::service, Error sd = -1
  
   rgds
  
   Hans
  
   At 15:47 7-3-01 +0100, you wrote:
   Hans Kind wrote:

 Hi,

 We got Apache running on port 80, and Tomcat on port 8080.

 Running http://www.kindserver.com:8080 takes me to the Tomcat
  example page,
 and the JSP and JServ pages work ok.

 When I go to

 http://www.kindserver.com/examples/servlets/
 http://www.kindserver.com/examples/jsp/

 all the examples return a document contains no data error.

 How do I setup Apache so that without the need of the port number
  in the
 url, the JServ and JSP pages are handled bij Tomcat corecty.

 I went trough the install instructions, mailing lists and other
 documentation, but couldn't find a slid answe:~(

 rgds

 Hans Kind

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, email: [EMAIL PROTECTED]
   
   Hans,
   You need to get and install the appropriate apache module;
   porbably mod_jk . There are Mod_jk faqs available on the jakarta site.
   Cant really tell you more without details about you apache, tomcat
   versions
   and your system.
   
   Chris
   
   
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, email: [EMAIL PROTECTED]
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, email: [EMAIL PROTECTED]
 
 Hans,
 
 You are getting a connection refused error,
 http://www.linuxos.net/docs/solaris/common_err.html#korea146
 
 Since I can get the source files of the jsp dislayed
 on your site, it seems like the basic apache config is good;
 Do you have some lines like the folloing in "workers.properties"
 
 worker.ajp12.port=8007
 worker.ajp12.host=localhost
 worker.ajp12.type=ajp12
 
 and like the following in mod_jk.conf
 
 JkMount /*.jsp ajp12
 JkMount /servlet/* ajp12
 
 ...
 JkMount /examples/servlet/* ajp12
 JkMount /examples/*.jsp ajp12
 
 Is there some other service running on
 the port 8007, or another reason why
 you cant connect there?
 
 Chris
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, email: [EMAIL PROTECTED]
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, email: [EMAIL PROTECTED]


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




Re: Tomcat/Apache port number use

2001-03-08 Thread Christopher Albert

Well Hans,
I tried to ask all the simple, obvious questions.
TOmcat is working fine(8080), Apache is working fine
and seems properly configured. I can't give you any
other advice but to go back, get the src for mod_jk
and recompile and install it (using apxs if you can)
with the right solaris parameters. There have been some
postings on this list for those.
Good luck,
Chris
 



Hans Kind wrote:
 
 Hi Chris,
 
 Yes it does:~(
 
 rgds
 
 hans
 
 At 14:48 8-3-01 +0100, you wrote:
 Hans,
 I'm running out of ideas too.
 One last: does your server.xml file contain the lines
 
   !-- Apache AJP12 support. This is also used to shut down tomcat.
--
  Connector
 className="org.apache.tomcat.service.PoolTcpConnector"
  Parameter name="handler"
 
 value="org.apache.tomcat.service.connector.Ajp12ConnectionHandler"/
  Parameter name="port" value="8007"/
  /Connector
 
 Chris
 
 
 
 
 Hans Kind wrote:
  
   Hi Chris,
  
   workers.properties
  
   worker.ajp12.port=8007
   worker.ajp12.host=localhost
   worker.ajp12.type=ajp12
  
   mod_jk_conf-auto
  
   JkMount /*.jsp ajp12
   JkMount /servlet/* ajp12
   ...
   JkMount /examples/servlet/* ajp12
   JkMount /examples/*.jsp ajp12
  
   Staring Tomcate generates these file, and httpd.conf include the
   mod_jk_conf-auto file.
  
   There is nothing else running on port 8007.
  
   I'm very very lost:~(
  
   rgds
  
   Hans
  
   At 13:35 8-3-01 +0100, you wrote:
   Hans Kind wrote:
   
 Hi Chris,

 We run on a Solaris 2.7 server, with Apache DSO 1.3.14.

 The workers.properties file has been updated so that
  workers.tomcat_home,
 workers.java_home point to the correct location on the server.
  Changed ps
 to the correct syntax on Unix, ps=/.

 Used apxs to install mod_jk from source

 Included the following line in httpd.conf file:

 Include /opt2/kindserv/tomcat/conf/mod_jk.conf-auto

 http://www.kindserver.com:8080/examples/jsp/dates/date.jsp

 is working as expected

 http://www.kindserver.com/examples/jsp/dates/date.jsp

 results in a server error with the following in the mod_jk.log

 [jk_connect.c (143)]: jk_open_socket, connect() failed errno = 146
 [jk_ajp12_worker.c (152)]: In jk_endpoint_t::service, Error sd = -1

 rgds

 Hans

 At 15:47 7-3-01 +0100, you wrote:
 Hans Kind wrote:
  
   Hi,
  
   We got Apache running on port 80, and Tomcat on port 8080.
  
   Running http://www.kindserver.com:8080 takes me to the Tomcat
example page,
   and the JSP and JServ pages work ok.
  
   When I go to
  
   http://www.kindserver.com/examples/servlets/
   http://www.kindserver.com/examples/jsp/
  
   all the examples return a document contains no data error.
  
   How do I setup Apache so that without the need of the port number
in the
   url, the JServ and JSP pages are handled bij Tomcat corecty.
  
   I went trough the install instructions, mailing lists and other
   documentation, but couldn't find a slid answe:~(
  
   rgds
  
   Hans Kind
  
  
  -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, email: [EMAIL PROTECTED]
 
 Hans,
 You need to get and install the appropriate apache module;
 porbably mod_jk . There are Mod_jk faqs available on the jakarta site.
 Cant really tell you more without details about you apache, tomcat
 versions
 and your system.
 
 Chris
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, email: [EMAIL PROTECTED]

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, email: [EMAIL PROTECTED]
   
   Hans,
   
   You are getting a connection refused error,
   http://www.linuxos.net/docs/solaris/common_err.html#korea146
   
   Since I can get the source files of the jsp dislayed
   on your site, it seems like the basic apache config is good;
   Do you have some lines like the folloing in "workers.properties"
   
   worker.ajp12.port=8007
   worker.ajp12.host=localhost
   worker.ajp12.type=ajp12
   
   and like the following in mod_jk.conf
   
   JkMount /*.jsp ajp12
   JkMount /servlet/* ajp12
   
   ...
   JkMount /examples/servlet/* ajp12
   JkMount /examples/*.jsp ajp12
   
   Is there some other service running on
   the port 8007, or another reason why
   you cant connect there?
   
   Chris
   
   
   
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, email: [EMAIL PROTECTED]
  
   

Re: Tomcat/Apache port number sue

2001-03-07 Thread Christopher Albert

Hans Kind wrote:
 
 Hi,
 
 We got Apache running on port 80, and Tomcat on port 8080.
 
 Running http://www.kindserver.com:8080 takes me to the Tomcat example page,
 and the JSP and JServ pages work ok.
 
 When I go to
 
 http://www.kindserver.com/examples/servlets/
 http://www.kindserver.com/examples/jsp/
 
 all the examples return a document contains no data error.
 
 How do I setup Apache so that without the need of the port number in the
 url, the JServ and JSP pages are handled bij Tomcat corecty.
 
 I went trough the install instructions, mailing lists and other
 documentation, but couldn't find a slid answe:~(
 
 rgds
 
 Hans Kind
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, email: [EMAIL PROTECTED]

Hans,
You need to get and install the appropriate apache module;
porbably mod_jk . There are Mod_jk faqs available on the jakarta site.
Cant really tell you more without details about you apache, tomcat
versions
and your system.

Chris


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




Re: Tomcat/Apache port number sue

2001-03-07 Thread Christopher Albert

Hans,

Normally port 8080 is for tomcat's own web server.
So when I connect to http://www.kindserver.com:8080,
I get tomcat's default home page from the tomcat 
web server. Mod_jk works with apache on port 80.

First what do your mod_jk.log and tomcat.log and apache error.log
files say?
Next we need to see the relevant parts of you mod_jk.conf and
workers.properties files.
WHat kind of system are you running on?

Chris




Hans Kind wrote:
 
 Hi Chris,
 
 mod_jk is installed, it's working with the port 8080 in the URL, see the
 urls I provided. All is according to the install instructions.
 
 I spent hours and hours digging trough the documentation, and mailing list,
 can't find the answer. It might sound stupid, but I'm unable to make any
 sence of the documentation regarding this.
 
 rgds
 
 Hans
 
 At 15:47 7-3-01 +0100, you wrote:
 Hans Kind wrote:
  
   Hi,
  
   We got Apache running on port 80, and Tomcat on port 8080.
  
   Running http://www.kindserver.com:8080 takes me to the Tomcat example page,
   and the JSP and JServ pages work ok.
  
   When I go to
  
   http://www.kindserver.com/examples/servlets/
   http://www.kindserver.com/examples/jsp/
  
   all the examples return a document contains no data error.
  
   How do I setup Apache so that without the need of the port number in the
   url, the JServ and JSP pages are handled bij Tomcat corecty.
  
   I went trough the install instructions, mailing lists and other
   documentation, but couldn't find a slid answe:~(
  
   rgds
  
   Hans Kind
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, email: [EMAIL PROTECTED]
 
 Hans,
 You need to get and install the appropriate apache module;
 porbably mod_jk . There are Mod_jk faqs available on the jakarta site.
 Cant really tell you more without details about you apache, tomcat
 versions
 and your system.
 
 Chris
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, email: [EMAIL PROTECTED]
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, email: [EMAIL PROTECTED]


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




Re: Can't migrate to 3.2.1 - Number of issues

2001-03-07 Thread Christopher Albert

Andrew,
It seems that Tomcat/WL integration
is the problem here.
Have you thought about checking out Jboss?
It has embedded tomcat 3.2.1 support (tomcat
runs in same VM), it's open source , and supported
by a very active and dynamic group of developpers.

Chris



Andrew Gilbert wrote:
 
 There seem to be a number of issues with 3.2.1, some of which prevent us
 from moving to it. Looking for any insight into workarounds, fixes, or
 strategy (ie wait till 3.3?). From perusing the list, we don't seem to be
 alone in experiencing these. Unfortunately, I haven't gotten a feel for
 workarounds or fixes for all of them. Maybe my lack of clue, don't know.
 Ultimately need to run a production stable environment, so I assume 3.3 and
 4.0 are out for now. We truly appreciate the product and work of everyone
 involved, want to be able to stay current. Thanks.
 
 Environment:
 
 Apache 1.3.12
 Tomcat 3.2.1 (from Tomcat 3.1)
 Linux RH 6.2
 Sun JDK 1.3
 Weblogic 510sp8 on Solaris host
 
 Problems:
 



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




Re: Worker Error

2001-03-06 Thread Christopher Albert

"Simmons, Donald" wrote:

 I am getting an error during startup of Apache - No such file or directory: Error 
while opening the workers. Has anyone else had this problem. Any thoughts or help? 
Thanks.

 Joe

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

Joe,
This usually means that apache cant find you mod_jk.conf file.
Do you have an "Include" statement in httpd.conf telling apache
where to find the mod_jk conf file?

Chris


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




Re: Linux and Tomcat

2001-02-28 Thread Christopher Albert

David Oxley wrote:

 I am about to install our software onto a RedHat 7.0 box. I have tried
 before to install Sun's JRE onto RedHat and failed. I have a couple of
 questions:

 1. What is the best JVM to use? (Stability more important than performance)

I recommend the IBM version; you can download an rpm for linux from their
site.
Then I would go get H.Gomez's tomcat rpms ; for example from
ftp://rpmfind.net/linux/falsehope/home/gomez/tomcat

which will install tomcat for you as well as an init script to start tomcat as

a service at boot. He also has rpm for the necessary apache modules(mod_jk),
and various versions of tomcat, in case you need to change. I strongly
recommend
these: all the hard work has been done for you.


 2. Are there detailed instructions on doing the install anywhere?

If you get GOmez's rpms, get the manual rpms as well.
ANd even if you decide to use SUn's jvm, get the rpm too.


 3. What is the difference between green and native threads?
 4. For Suns JRE 1.3, what does the classpath and path have to point at?

In general, if you want to type "java" at the command prompt to execute it,
it will have to be in your shell's path. Suppose you installed the IBM rpm,
then you will need to set JAVA_HOME=/opt/IBMJava2-13, for Sun' s rpm
You will do JAVA_HOME=/usr/java/jdk1.3 (or /usr/java/jdk1.3.1, if you get the
latest beta version). Then you can add lines like the following to your
.bashrc
export  JAVA_HOME=/opt/IBMJava2-13
export PATH=$PATH:$JAVA_HOME/bin

For CLASSPATH, this really depends on what you wnt to do. If you are
just using tomcat, the script that gets put in /usr/bin/tomcat will do it all
for you.


 5. As I'm new to Linux, where do I set the classpath and path so they are
 set for every boot?

for $PATH, you should read up on some basic linux books. This is set to
a basic path from init, and then when shells are invoked it usually gets
modified. Look at .bashrc and .bash_profile in your home directory.

If you want to set a $CLASSPATH , you can make a script say
"classpath.sh" and put it in /etc/profile.d/ . Check out some of the scripts
there
for ideas. However, be warned that the CLASSPATH variable is quite sensitive
across a large range of Javaz applications, and it is often better to tailor
it
to each application.


 6. Difference between -server and -client and do they both run hotspot as
 default?


These are Sun specific, and dont work with the IBM java binary.


 Thanks.
 Dave.
 [EMAIL PROTECTED]

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


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




Re: Apache/Tomcat integration, help !

2001-01-30 Thread Christopher Albert

Joel Cordonnier wrote:

 Hi!

 As a newbie, I try to integrate Tomcat 3.2 with Apache
 3.12 under RedHat 7.0. So I need the mod_jk.so shared
 library.

 But I don't find the mod_jk library in the build
 directory of Tomcat 3.1 or 3.2 (under 3.1 there is a
 mod_jserv.so, but i such the mod_jk !!!).

 nb: I don't want to dowload Apache and build mod_jk
 with apxs...

 Can someone send me the mod_jk library ? or
 give me an address where to dowload ?

 Thanks
 Joel

 ___
 Do You Yahoo!? -- Pour dialoguer en direct avec vos amis,
 Yahoo! Messenger : http://fr.messenger.yahoo.com

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

Joel,
You should try H.Gomez's rpms . They work like a charm.
DO a search for mod-jk at fr.rpmfind.net

Chris


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




RE: Application Path

2000-12-08 Thread Albert Chang -

String appPath = request.getRealPath("/");

-Original Message-
From: Saikat Chatterjee [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 08, 2000 5:17 PM
To: [EMAIL PROTECTED]
Subject: Application Path


Hello All,
I have a question regarding application path in Tomcat. I have
loaded and application named "myapp" under 'webapps' of Tomcat. Now, is it
possible to know the full path of my application "myapp"?[i.e upto and
including
the folder 'myapp']

Thanks in advance,

Saikat