Re: EJB with Tomcat 6.0.16

2008-09-01 Thread Stas Ostapenko
Hi !

Take a look here http://docs.jboss.org/ejb3/embedded/embedded.html


On Mon, Sep 1, 2008 at 10:48 AM, Gaurav Pruthi [EMAIL PROTECTED] wrote:
 Dear Friends,

 Is it possible to integrate EJB with tomcat v6 and higher? If yes then
 kindly provide the How-To link. I googled but didn't find anything
 information which is worthy.

 Thanks,
 Gaurav Pruthi


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



Re: Servlet inter-communication

2006-05-03 Thread Stas Ostapenko

How about JMS stuff ? For example Commons Messenger -
http://jakarta.apache.org/commons/sandbox/messenger/. Does anybody
used it ?

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



Re: New to Tomcat

2006-04-05 Thread Stas Ostapenko
I'm guess tomcat compiled into native code. I may wrong but in fedora5
all of Apache Jakarta Project and Apache Geronimo are compiled in
native code. As for me it's a bad idea

On 4/5/06, David Delbecq [EMAIL PROTECTED] wrote:
 root cause

 Error starting modern compiler
 org.apache.tools.ant.taskdefs.compilers.Javac13.execute()
 (/usr/lib/libant-1.6.2.jar.so)
 org.apache.tools.ant.taskdefs.Javac.compile()



 check that your JAVA_HOME points to a jdk, not a jre. It may be jasper
 compiler don't find a suitable java compiler.

 Btw, this is quite curious:

 /usr/lib/libjasper5-compiler-5.0.30.jar.so

 You should probably use the official tomcat release files available on
 apache.org to be sure it's not a distro related problem.
 Please also note 5.0.30 is a beta, latest 5.0.x tomcat stable version is
 5.0.28
 The .jar.so extension is . frightening :)

 Paul Stewart a écrit :

 Hi there...
 
 Running Fedora Core 4 and installed Tomcat via yum installs
 
 I'm trying to get Nutch search engine working and keep getting the
 following errors.  I'm told by the nutch mailing list that this is a
 specific issue to Tomcat??
 
 HTTP Status 500 -
 
 
 
 
 type Exception report
 
 message
 
 description The server encountered an internal error () that prevented
 it from fulfilling this request.
 
 exception
 
 org.apache.jasper.JasperException: Unable to compile class for JSP
 
 org.apache.jasper.compiler.DefaultErrorHandler.javacError(java.lang.Stri
 ng, java.lang.Exception) (/usr/lib/libjasper5-compiler-5.0.30.jar.so)
 
 org.apache.jasper.compiler.ErrorDispatcher.javacError(java.lang.String,
 java.lang.Exception) (/usr/lib/libjasper5-compiler-5.0.30.jar.so)
 
 org.apache.jasper.compiler.Compiler.generateClass(java.lang.String[])
 (/usr/lib/libjasper5-compiler-5.0.30.jar.so)
org.apache.jasper.compiler.Compiler.compile(boolean, boolean)
 (/usr/lib/libjasper5-compiler-5.0.30.jar.so)
org.apache.jasper.compiler.Compiler.compile(boolean)
 (/usr/lib/libjasper5-compiler-5.0.30.jar.so)
org.apache.jasper.compiler.Compiler.compile()
 (/usr/lib/libjasper5-compiler-5.0.30.jar.so)
org.apache.jasper.JspCompilationContext.compile()
 (/usr/lib/libjasper5-compiler-5.0.30.jar.so)
 
 org.apache.jasper.servlet.JspServletWrapper.service(javax.servlet.http.H
 ttpServletRequest, javax.servlet.http.HttpServletResponse, boolean)
 (/usr/lib/libjasper5-compiler-5.0.30.jar.so)
 
 org.apache.jasper.servlet.JspServlet.serviceJspFile(javax.servlet.http.H
 ttpServletRequest, javax.servlet.http.HttpServletResponse,
 java.lang.String, java.lang.Throwable, boolean)
 (/usr/lib/libjasper5-compiler-5.0.30.jar.so)
 
 org.apache.jasper.servlet.JspServlet.service(javax.servlet.http.HttpServ
 letRequest, javax.servlet.http.HttpServletResponse)
 (/usr/lib/libjasper5-compiler-5.0.30.jar.so)
 
 javax.servlet.http.HttpServlet.service(javax.servlet.ServletRequest,
 javax.servlet.ServletResponse) (/usr/lib/libservletapi5-5.0.30.jar.so)
 
 org.apache.catalina.valves.ErrorReportValve.invoke(org.apache.catalina.R
 equest, org.apache.catalina.Response, org.apache.catalina.ValveContext)
 (/usr/lib/libcatalina-5.0.30.jar.so)
 
 org.apache.coyote.tomcat5.CoyoteAdapter.service(org.apache.coyote.Reques
 t, org.apache.coyote.Response) (/usr/lib/libcatalina-5.0.30.jar.so)
 
 org.apache.coyote.http11.Http11Processor.process(java.io.InputStream,
 java.io.OutputStream) (/usr/lib/libtomcat-http11-5.0.30.jar.so)
 
 org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processC
 onnection(org.apache.tomcat.util.net.TcpConnection, java.lang.Object[])
 (/usr/lib/libtomcat-http11-5.0.30.jar.so)
 
 org.apache.tomcat.util.net.TcpWorkerThread.runIt(java.lang.Object[])
 (/tmp/libtomcat-util-5.0.30.jar.so9a2vfs.so)
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run()
 (/tmp/libtomcat-util-5.0.30.jar.so9a2vfs.so)
java.lang.Thread.run() (/usr/lib/libgcj.so.6.0.0)
 
 
 root cause
 
 Error starting modern compiler
org.apache.tools.ant.taskdefs.compilers.Javac13.execute()
 (/usr/lib/libant-1.6.2.jar.so)
org.apache.tools.ant.taskdefs.Javac.compile()
 (/usr/lib/libant-1.6.2.jar.so)
org.apache.tools.ant.taskdefs.Javac.execute()
 (/usr/lib/libant-1.6.2.jar.so)
 
 org.apache.jasper.compiler.Compiler.generateClass(java.lang.String[])
 (/usr/lib/libjasper5-compiler-5.0.30.jar.so)
org.apache.jasper.compiler.Compiler.compile(boolean, boolean)
 (/usr/lib/libjasper5-compiler-5.0.30.jar.so)
org.apache.jasper.compiler.Compiler.compile(boolean)
 (/usr/lib/libjasper5-compiler-5.0.30.jar.so)
org.apache.jasper.compiler.Compiler.compile()
 (/usr/lib/libjasper5-compiler-5.0.30.jar.so)
org.apache.jasper.JspCompilationContext.compile()
 (/usr/lib/libjasper5-compiler-5.0.30.jar.so)
 
 org.apache.jasper.servlet.JspServletWrapper.service(javax.servlet.http.H
 ttpServletRequest, 

Re: How print HTTPResponse before sent to client?

2006-03-09 Thread Stas Ostapenko
Using sniffer may be useful, ethereal for example. If you don't want
to use sniffer you may consider some plugins/extensions for web
browser. For example HttpWatch for IE (proprietary) or Live HTTP
Headers firefox extension for FF. It's really useful sometimes ;)

On 3/9/06, Øyvind Møller Asbjørnsen [EMAIL PROTECTED] wrote:
 Hi.

 I use TomCat 5.5. on Windows and need to print the HTTPResponse stream
 that i send
 It is only a short text (50 characters or so) and i need to see it to
 help me with the debugging.

 Hope you can help me out!

 Best regards
 Øyvind


 -
 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: org.apache.tomcat.util.threads.ThreadPool

2006-02-27 Thread Stas Ostapenko
On 2/27/06, Chakarova Teodora [EMAIL PROTECTED] wrote:
 SEVERE: All threads (150) are currently busy, waiting. Increase
 maxThreads (150) or check the servlet status Feb 26, 2006 11:58:23 AM
You can increase maxThreads value in your server.xml config file to
satisfy your application needs. But I can't say nothing about problems
with Oracle.

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



tomcat log analyser

2006-01-18 Thread Stas Ostapenko
Hello !

I'm searching for tomcat log analyser. Under Apache (not Tomcat) i
have used AWStats.
Is there something similar for standalone Tomcat ?

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



Re: tomcat log analyser

2006-01-18 Thread Stas Ostapenko
I'm asking about pure java tomcat log analyser similar to AWStats (or
maybe another tool)
Thanks for help !


On 1/18/06, Anto Paul [EMAIL PROTECTED] wrote:
 On 1/18/06, Stas Ostapenko [EMAIL PROTECTED] wrote:
  Hello !
 
  I'm searching for tomcat log analyser. Under Apache (not Tomcat) i
  have used AWStats.
  Is there something similar for standalone Tomcat ?

 Tomcat can use AWStats if you configure Tomcat to run CGI script. Or
 are you asking for an access log analyzer written in Java ?


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



Re: starting and stopping Tomcat from Java code

2005-12-14 Thread Stas Ostapenko
Maybe this can help (Embed with Tomcat) ?
http://www.vsj.co.uk/articles/display.asp?id=319

On 12/15/05, Oleg Lebedev [EMAIL PROTECTED] wrote:
 Hello,

 I am trying to configure, start and then shutdown Tomcat from my Java
 class. I am planning to have all the jars required by Tomcat on the
 classpath and I would like to be able to specify the port number and
 host using method calls. I would prefer not to ship Tomcat configuration
 files, such as server.xml with my application and be able to configure
 Tomcat from code before starting it.

 I tried using Boostrap class, but it requires catalina.home and
 catalina.base, which I would like to avoid using.
 I tried using Embed class and it worked, but I still had to set
 catalina.home so that it can find tomcat-users.xml. But, this is
 acceptable.

 I have not been able to shut Tomcat down from my Java code. Note that I
 won't have a handle to the Catalina instance started, because Tomcat
 needs to be started before my application starts in a separate VM, and
 then killed when my application exists.

 I would appreciate any feedback on how to do this or what Tomcat classes
 I should take a look at.

 Thanks.

 Oleg




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