Jakarta Tomcat Connectors (JK) + OC4J setup questions
hi
i'd like to use Apache 2.0 for dispatching requests to OC4J. i've been doing some experimenting and i was able to setup Apache and Jakarta Tomcat Connectors (JK) v1.2 to route requests to OC4J. this seems to be working fine in my development environment but how well supported or reliable is this setup?
the requests are now being dispatched to JDeveloper 10.1.3 embedded OC4J instance. the only way i managed to do this was by modifying the embedded-oc4j/config/default-web-site.xml file and changing the web-site element protocol attribute value to "ajp13". this setup has the drawback that now direct http connections don't work anymore. is there a way to have both ajp13 and http connectors working simultaneously in the embedded OC4J?
Sure there is. Add another web site configuration file, say, myHttp-web-site.xml, which is a copy > of the original default-web-site.xml with http protocol and a different port.
..after retrying this it seems to be working now. thanks.
Can you share how you use the Jakarta Tomcat Connectors v1.2 here?sure, here you go:
build JK
# download JK v1.2.15 from http://tomcat.apache.org/download-connectors.cgi
tar zxf jakarta-tomcat-connectors-1.2.15-src.tar.gz
cd jakarta-tomcat-connectors-1.2.15-src/jk/native
./configure --with-apxs=/foo/bar/apache2055/bin/apxs
make
make install
Configure Apache + JK
# add the following lines to Apache httpd.conf
LoadModule jk_module modules/mod_jk.so
JkWorkersFile conf/workers.properties
JkMount /<myctxroot>/* oc4j
JkLogFile logs/mod_jk.log
JkLogLevel debug
# create conf/workers.properties with the following lines
worker.list=oc4j
worker.oc4j.port=8009
worker.oc4j.host=localhost
worker.oc4j.type=ajp13
configure JDev OC4J
cd $OC4J_HOME/embedded-oc4j/config
cp default-web-site.xml ajp-web-site.xml
# modify web-site element protocol attribute value to "ajp13" in ajp-web-site.xml
# add the following line in embedded-oc4j/config/server.xml
<web-site default="false" path="./ajp-web-site.xml" />
# restart OC4J
# restart Apache
Similar Messages
-
I just downloaded tomcat 5.0.19 to run JSP pages and I also downloaded tomcat connectors 2.0.4 win32 and velocity 1.4. I also downloaded asc and md5 files. I have W2K Pro. I need answers to a few questions!
What are asc and md5 files and keys, they contain code like this(5cb27eb9cdff811296b0bdf52e73b858)?
What are tomcat connectors?
Should I enter the JAVA_HOME directory like this (C:\j2sdk1.4.2_02)?
Can tomcat run alongside IIS?
Do I need anything else to run JSP?The ASC, MD5 and keys are all related to making sure you downloaded a clean copy of the file from a mirror.
asc file is a PGP signature
md5 file is a checksum.
Using a product like openPGP you can then confirm that what you downloaded from the mirror hasn't been tampered with.
Connectors are for linking Tomcat with standard web servers (like IIS or apache)
They are not absolutely necessary.
Check out: http://jakarta.apache.org/tomcat/faq/connectors.html and http://nagoya.apache.org/wiki/apachewiki.cgi?Tomcat/Links
JAVA_HOME directory looks fine.
As long as you have Java and Tomcat, you are fine for running JSP.
If you are connecting to a database, you will need a JDBC database driver to connect to it.
Hope this helps,
evnafets -
Good Day,
Can anyone offer advice on getting some documentation to enable Apache2-
Jakarta-Tomcat connector?
I don't install eDir, iManager, etc, so only work apache2, tomcat5 from
SLES9.
In Read Hat 8 I just add this sentences in httpd.conf and it works.
JkWorkersFile /usr/local/apache/conf/workers.properties
JkLogFile /usr/local/apache/logs/mod_jk.log
JkLogLevel info
JkMount /epagos/* tomcat
No such luck on NLSBS9 follow instruction in
/usr/share/doc/packages/apache2-jakarta-tomcat-connectors/README.SuSE
I think SuSEconfig --module apache2 it's not working, because i customize
test file /etc/tomcat/demoserver/jk.conf and can't browse the pages
http://localhost/jsp-examples/
http://localhost/servlets-examples
Only work pages
http://localhost:8080/jsp-examples/ and
http://localhost:8080/servlets-examples/
Anyone know how to modify /etc/sysconfig/apache2 to config Tomcat
Connector?
How to replace SuSEconfig with Yast/Editor /etc/sysconfig option?
Thanks for your time,
Regards,
Ing. Juan L. MeraOn Mon, 2006-01-16 at 19:22 +0000, Juan Mera wrote:
> Good Day,
>
> Can anyone offer advice on getting some documentation to enable Apache2-
> Jakarta-Tomcat connector?
>
> I don't install eDir, iManager, etc, so only work apache2, tomcat5 from
> SLES9.
>
> In Read Hat 8 I just add this sentences in httpd.conf and it works.
> JkWorkersFile /usr/local/apache/conf/workers.properties
> JkLogFile /usr/local/apache/logs/mod_jk.log
> JkLogLevel info
> JkMount /epagos/* tomcat
>
> No such luck on NLSBS9 follow instruction in
> /usr/share/doc/packages/apache2-jakarta-tomcat-connectors/README.SuSE
>
> I think SuSEconfig --module apache2 it's not working, because i customize
> test file /etc/tomcat/demoserver/jk.conf and can't browse the pages
> http://localhost/jsp-examples/
> http://localhost/servlets-examples
> Only work pages
> http://localhost:8080/jsp-examples/ and
> http://localhost:8080/servlets-examples/
>
> Anyone know how to modify /etc/sysconfig/apache2 to config Tomcat
> Connector?
>
> How to replace SuSEconfig with Yast/Editor /etc/sysconfig option?
No need to duplicate post ;) -
Hi all,
I am installing a Jakarta Tomcat v 3.2.1 webserver on my home system. I know how to set the JAVA_HOME environmental variable here at work, because in Windows 2000, you can click on System, Advanced + environmental variables to set it. But at home I have windows 98 (2nd ed) and that option is not available to me. Does anyone know an alternate way to set JAVA_HOME , in DOS or something?
Thanks in advance.
B-mitreAdd the lines
SET TOMCAT_HOME=<path-to-tomcat-installation-dir>
SET JAVA_HOME=<path-to-jdk-installation-dir>
to both startup.bat and shutdown.bat in the tomcat\bin directory. Since you are using win98, you'll get 'out of environment space'-messages -- the solution to that is told in the readme file. -
Newb setup question re: 500 cannot compile error
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
An error occurred at line: -1 in the jsp file: null
Generated servlet error:
[javac] Compiling 1 source file
This is on the default index.jsp page that installs with Apache Tomcat/4.1.18... at http://localhost:8080/index.jsp which maps to C:\Program Files\Apache Group\Tomcat 4.1\webapps\ROOT\index.jsp
by now I have way too many java sdks installed...
C:\Program Files\Java\j2re1.4.1_01
C:\Program Files\Java\j2re1.4.0_03
C:\j2sdk1.4.0_03
C:\j2sdkee1.4
The first one I tried got me the same error I am getting now.. and since I have tried different versions changing JAVA_HOME
Right now..
JAVA_HOME = C:\j2sdkee1.4
CATALINA_HOME = C:\Program Files\Apache Group\Tomcat 4.1
I have no idea what's going on here not having much experience in settting up web servers or java SDKs. But in order to learn the stuff I have planned to I need teh following to get up and running on Win2K.. any help is greatly appreciated.
Java JDK 1.4.
Tomcat servlet\JSP engine 4.0.1.
MySQL database 3.23.46
If I stick a standard html page in the tomcat root it will show just fine.. so I suspect the whole Java thing is buggin for some reason.
Here's the full text of the returned error followed by the text of the index.jsp file
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
An error occurred at line: -1 in the jsp file: null
Generated servlet error:
[javac] Compiling 1 source file
at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:130)
at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:293)
at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:340)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:352)
at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:474)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:184)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
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:260)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:432)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:386)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:534)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:530)
at java.lang.Thread.run(Unknown Source)
Apache Tomcat/4.1.18
<!doctype html public "-//w3c//dtd html 4.0 transitional//en" "http://www.w3.org/TR/REC-html40/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title><%= application.getServerInfo() %></title>
<style type="text/css">
<!--
body {
color: #000000;
background-color: #FFFFFF;
font-family: Arial, "Times New Roman", Times;
font-size: 16px;
A:link {
color: blue
A:visited {
color: blue
td {
color: #000000;
font-family: Arial, "Times New Roman", Times;
font-size: 16px;
.code {
color: #000000;
font-family: "Courier New", Courier;
font-size: 16px;
-->
</style>
</head>
<body>
<!-- Header -->
<table width="100%">
<tr>
<td align="left" width="130"><img src="tomcat.gif" height="92" width="130" border="0" alt="The Mighty Tomcat - MEOW!"></td>
<td align="left" valign="top">
<table>
<tr><td align="left" valign="top"><b><%= application.getServerInfo() %></b></td></tr>
</table>
</td>
<td align="right"><img src="jakarta-banner.gif" height="48" width="505" border="0" alt="The Jakarta Project"></td>
</tr>
</table>
<br>
<table>
<tr>
<!-- Table of Contents -->
<td valign="top">
<table width="100%" border="1" cellspacing="0" cellpadding="3" bordercolor="#000000">
<tr>
<td bgcolor="#D2A41C" bordercolor="#000000" align="left" nowrap>
<font face="Verdana" size="+1"><i>Administration</i> </font>
</td>
</tr>
<tr>
<td bgcolor="#FFDC75" bordercolor="#000000" nowrap>
Tomcat Administration<br>
Tomcat Manager<br>
</td>
</tr>
</table>
<br>
<table width="100%" border="1" cellspacing="0" cellpadding="3" bordercolor="#000000">
<tr>
<td bgcolor="#D2A41C" bordercolor="#000000" align="left" nowrap>
<font face="Verdana" size="+1"><i>Documentation</i> </font>
</td>
</tr>
<tr>
<td bgcolor="#FFDC75" bordercolor="#000000" nowrap>
Tomcat Documentation<br>
</td>
</tr>
</table>
<br>
<table width="100%" border="1" cellspacing="0" cellpadding="3" bordercolor="#000000">
<tr>
<td bgcolor="#D2A41C" bordercolor="#000000" align="left" nowrap>
<font face="Verdana" size="+1"><i>Tomcat Online</i> </font>
</td>
</tr>
<tr>
<td bgcolor="#FFDC75" bordercolor="#000000" nowrap>
Home Page<br>
Bug Database<br>
Users Mailing List<br>
Developers Mailing List<br>
IRC<br>
</td>
</tr>
</table>
<br>
<table width="100%" border="1" cellspacing="0" cellpadding="3" bordercolor="#000000">
<tr>
<td bgcolor="#D2A41C" bordercolor="#000000" align="left" nowrap>
<font face="Verdana" size="+1"><i>Examples</i> </font>
</td>
</tr>
<tr>
<td bgcolor="#FFDC75" bordercolor="#000000" nowrap>
JSP Examples<br>
Servlet Examples<br>
WebDAV capabilities<br>
</td>
</tr>
</table>
<br>
<table width="100%" border="1" cellspacing="0" cellpadding="3" bordercolor="#000000">
<tr>
<td bgcolor="#D2A41C" bordercolor="#000000" align="left" nowrap>
<font face="Verdana" size="+1"><i>Miscellaneous</i> </font>
</td>
</tr>
<tr>
<td bgcolor="#FFDC75" bordercolor="#000000" nowrap>
Sun's Java Server Pages Site<br>
Sun's Servlet Site<br>
</td>
</tr>
</table>
</td>
<td> </td>
<!-- Body -->
<td align="left" valign="top">
<p><center><b>If you're seeing this page via a web browser, it means you've setup Tomcat successfully. Congratulations!</b></center></p>
<p>As you may have guessed by now, this is the default Tomcat home page. It can be found on the local filesystem at:
<blockquote>
<p class="code">$CATALINA_HOME/webapps/ROOT/index.html</p>
</blockquote>
</p>
<p>where "$CATALINA_HOME" is the root of the Tomcat installation directory. If you're seeing this page, and you don't think you should be, then either you're either a user who has arrived at new installation of Tomcat, or you're an administrator who hasn't got his/her setup quite right. Providing the latter is the case, please refer to the Tomcat Documentation for more detailed setup and administration information than is found in the INSTALL file.</p>
<p><b>NOTE: For security reasons, using the administration webapp
is restricted to users with role "admin". The manager webapp
is restricted to users with role "manager".</b>
Users are defined in <code>$CATALINA_HOME/conf/tomcat-users.xml</code>.</p>
<p>Included with this release are a host of sample Servlets and JSPs (with associated source code), extensive documentation (including the Servlet 2.3 and JSP 1.2 API JavaDoc), and an introductory guide to developing web applications.</p>
<p>Tomcat mailing lists are available at the Jakarta project web site:</p>
<ul>
<li><b>[email protected]</b> for general questions related to configuring and using Tomcat</li>
<li><b>[email protected]</b> for developers working on Tomcat</li>
</ul>
<p>Thanks for using Tomcat!</p>
<p align="right"><font size=-1><img src="tomcat-power.gif" width="77" height="80"></font><br>
<font size=-1>Copyright © 1999-2002 Apache Software Foundation</font><br>
<font size=-1>All Rights Reserved</font> <br>
</p>
<p align="right"> </p>
</td>
</tr>
</table>
</body>
</html>I ended up uninstalling every java this and that.. and tomcat.
Then installing only the j2sdk1.4.0_03 SDK.
Then set up JAVA_HOME for all users and modified the path with full path to the bin (c:\j2sdk1.4.0_03\bin)
Lastly I reinstalled tomcat and, voila, everything was working.
It can be quite maddening when you THINK you did everything by the boook and something doesn't work. When you replied and confirmed that I was on the right track.. uninstalling and trying yet again became les frustrating an option.
Thanks.
BTW- I needed this env to do the projects in what sems to be a very interesting book.. "macromedia Flash MC application design and development" by Jessica Speigel .. published by New Riders.
Her flash help website is at www.were-here.com.. the projects in the book are for flash-based multiplayer games and multi-user formums and such. -
XSQL-003 Error with jakarta-tomcat-4.0.3
I am trying to set up the XSQLServlet on JBuilder7 using jakarta-tomcat-4.0.3 as the development server.
I downloaded and carefully follwed the installation instructions for Tomcat 3.1 and 3.2 although the bat files have changed considerably. Set classpath in setclasses.bat and prescribed in instructions. Setup a context in server.xml for /xsql and setup a web.xml file to map oracle-xsql-servlet to *.xsql. Also tried mapping to *.xsql in web.xml for my application, but I continue to get the XSQL-003 error; "failed to find XSQLConfig.xml in the server classpath". I checked the discussion forums and tried jarring the XSQLConfig.xml file and set that in the server CLASSPATH. Still no luck.
My question: Are there any installation instructions for installing the XSQLServlet on Jakarta Tomcat 4.0.3?
Tomcat can't find the XSQLConfig.xml file or there is some other problem that is throwing this exception.Hey man, i have the same problem, what should I do?
I can`t define the classpath when I run the server as service, but it works when i run manually starup.bat, because there i have defined the classpath.
Please, give me an advice
Thanks... -
Please help: Error using Jakarta-tomcat 4.0 beta
Hi all,
Could you please help me with a following error?
I am trying to start Jakarta-tomcat 4.0:
C:\ Jakarta-tomcat 4.0\bin\startup.bat and I receive the error:
Catalina.start: LifecycleException: null.open: java.net.BindException: Address
already in use: JVM_Bind
LifecycleException: null.open: java.net.BindException: Address already in use:
JVM_Bind
at org.apache.catalina.connector.http.HttpConnector.initialize(Unknown S
ource)
at org.apache.catalina.core.StandardService.initialize(Unknown Source)
at org.apache.catalina.core.StandardServer.initialize(Unknown Source)
at org.apache.catalina.startup.Catalina.start(Unknown Source)
at org.apache.catalina.startup.Catalina.execute(Unknown Source)
at org.apache.catalina.startup.Catalina.process(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:30)
at sun.reflect.InflatableMethodAccessorImpl.invoke(InflatableMethodAcces
sorImpl.java:48)
at java.lang.reflect.Method.invoke(Method.java:306)
at org.apache.catalina.startup.Bootstrap.main(Unknown Source)
----- Root Cause -----
java.net.BindException: Address already in use: JVM_Bind
at java.net.PlainSocketImpl.socketBind(Native Method)
at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:310)
at java.net.ServerSocket.bind(ServerSocket.java:305)
at java.net.ServerSocket.bind(ServerSocket.java:265)
at java.net.ServerSocket.<init>(ServerSocket.java:201)
at java.net.ServerSocket.<init>(ServerSocket.java:150)
at org.apache.catalina.net.DefaultServerSocketFactory.createSocket(Unkno
wn Source)
at org.apache.catalina.connector.http.HttpConnector.open(Unknown Source)
at org.apache.catalina.connector.http.HttpConnector.initialize(Unknown S
ource)
at org.apache.catalina.core.StandardService.initialize(Unknown Source)
at org.apache.catalina.core.StandardServer.initialize(Unknown Source)
at org.apache.catalina.startup.Catalina.start(Unknown Source)
at org.apache.catalina.startup.Catalina.execute(Unknown Source)
at org.apache.catalina.startup.Catalina.process(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:30)
at sun.reflect.InflatableMethodAccessorImpl.invoke(InflatableMethodAcces
sorImpl.java:48)
at java.lang.reflect.Method.invoke(Method.java:306)
at org.apache.catalina.startup.Bootstrap.main(Unknown Source)
Thanks a lot
Yahyaplease do not double post and please post your question to the appropriate forum.
-
Should I install Apache Web server to use Jakarta Tomcat Servlet engine?
Hello,
I have some problems and now have a question:
Should I install Apache Web server to use Jakarta Tomcat Servlet engine?
JTK home page is available via http://localhost:8080
Tomcat ver 3.1.3
Thanks.No, you don't need to run Apache webserver (httpd) to run Tomcat. Tomcat by default runs on port 8080, but you can set it to any port, including 80, if you have permission to do so (on *nix systems, you need root permissions to run services on any port below 1024).
Tomcat is a webserver as well, just one that includes a servlet container and JSP processor. So it will serve your html files, images, etc (aka static content), just as well as Apache httpd, in addition to being able to run servlets and JSPs.
Apache httpd has more options for serving static content than Tomcat, so many people prefer to use it as their main webserver and only use Tomcat as a sort of "plugin" to handle servlets and JSPs. This can be achieved through a connector. Instructions on how to set this up are on the Jakarta website.
So you could use Apache and Tomcat combined, next to each other, or totally separated. In many cases, just Tomcat will do. -
Tomcat vs Apache with Tomcat connectors (mod/jk)
Is there any advantage (security, performance etc.) of running a Java web application on Apache HTTP Server with Tomcat Connectors (mod/jk) rather than directly running it on Tomcat.
This question is already answered, see here:
http://tomcat.apache.org/faq/connectors.html
Also for Tomcat/ Apache related questions, post them to the relevant mailing lists. -
.doc to pdf using jakarta tomcat POI
Hi
I need to convert my test.doc file in to
test.pdf.I found a API jakarta tomcat POI project handling file systems
1) is it possible to do that?(test.doc convert to test.pdf)
2) do i have to use POIFS API or HSSF API HPSF API?which API
3) do i have to use a jar file which i can add to class path?
4) Is there place where i can see a simple example for file type convertion
Thanks
SudaAsking the same question in the same way with a different subject will not get it
answered any faster...
http://forum.java.sun.com/thread.jsp?forum=31&thread=330932&tstart=0&trange=15
As a matter of fact, I HATE when people do that....
If anyone knew the answer and wanted to get the duke dollars (if any)
(suggest you offer some)
then they would answer... the FIRST time.
The answer to your question seems to be:
1) DO SOME RESEARCH!
2) RTFM!
3) WRITE SOME TESTS
4) READ/STUDY THE API -
Installing Tomcat connector for Apache
I realize this is more of a Linux configuration issue but it does deal with Tomcat so I am hoping someone can help.
I am having some problems installing the tomcat connector for Apache web server on Linux (Red Hat enterprise).
I need to have both Apache (by which I mean Apache Web Server) and Tomcat running on this system and it is my understanding that one can use the tomcat connector as an Apache module to connect from Apache to Tomcat for jsp requests.
Okay so here is what has been done.
Tomcat is installed and running fine (on port 8080)
Apache is running fine.
I followed this guide http://tomcat.apache.org/connectors-doc/howto/quick.html
And I created all the config files etc but when it comes to finding the mysterious mod_jk.so file I am stuck. I went to the downloads area and end up in the following directory/page http://apache.mirrors.northco.net/tomcat/tomcat-connectors/jk/binaries/linux/jk-1.2.14/
I don't see a mod_jk.so file in there. (?!?) So... I poked around some more but I feel I am looking at the right directory so I downloaded the worker.so file and put that in my apache modules directory. I renamed it as mod_sk.so (now please bear in mind that I am not too dumb and I realize that renaming a file isn''t doing anything magical but due to lack of any documentation describing why there are two different files I took a guess and thought that maybe the different files are different threading setups or something (considering the other one is named prefork to me this seemed to be a logical conclusion based on the information given))
And of course it doesn't work. By which I mean the following happens if I run configtest for apache (if I try to start Apache same disaster)
# /sbin/service httpd configtest
Syntax error on line 3 of /etc/httpd/conf.d/tomcat_connector.conf:
Cannot load /etc/httpd/modules/mod_jk.so into
server: /etc/httpd/modules/mod_jk.so: cannot open
shared object file: No such file or directoryOkay... Except a file with that name (see above) IS in that directory. And it has the same permissions as the other modules which are loading.
(After moving to the modules directory)
# dir
libphp4.so mod_cache.so mod_imap.so mod_proxy_http.so
mod_access.so mod_cern_meta.so mod_include.so mod_proxy.so
mod_actions.so mod_cgi.so mod_info.so mod_python.so
mod_alias.so mod_dav_fs.so mod_jk.so mod_rewrite.so
[more stuff that loads here but edited for length]So I think something else has gone wrong here... namely that I have the wrong file or something.
Anyway I am a bit stuck at this point. Could someone point me in the right direction please because I am just going in circles at this point with the documentation not matching up to what files are available or explaining what those files in fact actually are.I solved this issue by compiling the file from source. I got hold of another admin friend who told me that the version I had was for 64 bit. Now how I was supposed to discover this or where in fact a compiled version of this file is on the apache site I know not.
But it's working now. -
Change port from 8443 to 443 on jakarta-tomcat 6
Hi all,
How can I possibly change the SSL port from 8443 to 443? The default was 8443 and it works fine with that.I've tried to set it to port 443 at the connector tag and all redirectPort in server.xml. However, when I tried to access https://localhost/ it shows Page could not be displayed. I am currently running java jdk 1.6 on jakarta-tomcat 6. Is there any additional settings which I've left out? Thanks in advance..Hi, csyms and welcome to the forums
Download a PDF of the Online Help for Adobe RoboHelp Server 9 and search for the sub heading "Set up Tomcat for HTTPS".
You'll find the PDF here:
http://help.adobe.com/en_US/RoboHelp/9.0/RoboEngine/robohelpserver_9_help.pdf
John Daigle
Adobe Certified RoboHelp and Captivate Instructor
Evergreen, Colorado
www.showmethedemo.com -
To learn about the functions of jakarta-tomcat I had this site I had gotton from one of my previous posts and also had a tutorial for jakarta tomcat. Wondering if there are other site references I could use. I like to have more than one reference to refer to.
Thanks GeorgeNow about making a .war file. I checked out a tutorial and didn't really find much. Here is the link: http://java.sun.com/docs/books/tutorial/information/download.html Then I went to servlet tutorial and downloaded it.
How do I make a .war file? Could you be really kind and save me a step of reasearching by telling me how to make a .war file? Please? If I get it compiled sucessfully I go to the server.xml and edit the context path right?
Heres an example: if I had made a bookstore.war file I would put this script in:
<Context path="/bookstore" docBase="webapps/bookstore" debug="0" reloadable="true" />
[code/]
I took the words below directly out of the tutorial
When an archive is unpacked, its contents are deposited into the directories listed in the following table. This directory layout is required by the Java Servlet specification and is one that you usually will use while developing an application.
Is there a directory where I could just simply copy and paste my .class files to?
Hope these aren't stupid questions.
Thanks George -
Error using Jakarta-tomcat 4.0 beta
Hi all,
Could you please help me with a following error?
I am trying to start Jakarta-tomcat 4.0:
C:\ Jakarta-tomcat 4.0\bin\startup.bat and I receive the error:
Catalina.start: LifecycleException: null.open: java.net.BindException: Address
already in use: JVM_Bind
LifecycleException: null.open: java.net.BindException: Address already in use:
JVM_Bind
at org.apache.catalina.connector.http.HttpConnector.initialize(Unknown S
ource)
at org.apache.catalina.core.StandardService.initialize(Unknown Source)
at org.apache.catalina.core.StandardServer.initialize(Unknown Source)
at org.apache.catalina.startup.Catalina.start(Unknown Source)
at org.apache.catalina.startup.Catalina.execute(Unknown Source)
at org.apache.catalina.startup.Catalina.process(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:30)
at sun.reflect.InflatableMethodAccessorImpl.invoke(InflatableMethodAcces
sorImpl.java:48)
at java.lang.reflect.Method.invoke(Method.java:306)
at org.apache.catalina.startup.Bootstrap.main(Unknown Source)
----- Root Cause -----
java.net.BindException: Address already in use: JVM_Bind
at java.net.PlainSocketImpl.socketBind(Native Method)
at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:310)
at java.net.ServerSocket.bind(ServerSocket.java:305)
at java.net.ServerSocket.bind(ServerSocket.java:265)
at java.net.ServerSocket.<init>(ServerSocket.java:201)
at java.net.ServerSocket.<init>(ServerSocket.java:150)
at org.apache.catalina.net.DefaultServerSocketFactory.createSocket(Unkno
wn Source)
at org.apache.catalina.connector.http.HttpConnector.open(Unknown Source)
at org.apache.catalina.connector.http.HttpConnector.initialize(Unknown S
ource)
at org.apache.catalina.core.StandardService.initialize(Unknown Source)
at org.apache.catalina.core.StandardServer.initialize(Unknown Source)
at org.apache.catalina.startup.Catalina.start(Unknown Source)
at org.apache.catalina.startup.Catalina.execute(Unknown Source)
at org.apache.catalina.startup.Catalina.process(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:30)
at sun.reflect.InflatableMethodAccessorImpl.invoke(InflatableMethodAcces
sorImpl.java:48)
at java.lang.reflect.Method.invoke(Method.java:306)
at org.apache.catalina.startup.Bootstrap.main(Unknown Source)
Thanks a lot
YahyaI agree with DrClap, that beginning with Tomcat is tough. :) But still, the answer to your problem is right there before you. (But then again, it always is, and I never see the wood either.) :)
LifecycleException: null.open: java.net.BindException: Address already in use: JVM_Bind
I am not sure about the null.open part, which is a little bit irritating. But the address you are trying to bind your socket to, is already used by another Service. This might be the case if you have already a tomcat running, or if you have some other service installed that uses one of the ports you are attempting to use.
Hope that helps
rh -
Consider the Following Code with j2sdk1.4.0_01/jakarta-tomcat-4.0.1
try {
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection conn = DriverManager.getConnection("Jdbc:Odbc:IMSMC","sa","");
String sql="select * from <Table Name> ";
Statement stmt=conn.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE,ResultSet.CONCUR_READ_ONLY);
*************Some Code ******************
catch (Exception ex) {
ex.printStackTrace();
}//End of catch
}//End of Try
The Tomcat automatically shuts down If I'm using Scrollable
Result Set and the following Error Occurs.
Error
Unexpected Signal : EXCEPTION_ACCESS_VIOLATION occurred at PC=0x6D366658
Function=[Unknown.]
Library=c:\j2sdk1.4.0_01\jre\bin\client\jvm.dll
NOTE: We are unable to locate the function name symbol for the error
just occurred. Please refer to release documentation for possible
reason and solutions.
Current Java thread:
at sun.jdbc.odbc.JdbcOdbc.setStmtAttrPtr(Native Method)
at sun.jdbc.odbc.JdbcOdbc.SQLSetStmtAttrPtr(JdbcOdbc.java:4676)
at sun.jdbc.odbc.JdbcOdbcResultSet.setRowStatusPtr(JdbcOdbcResultSet.java:4473)
at sun.jdbc.odbc.JdbcOdbcResultSet.initialize(JdbcOdbcResultSet.java:171)
at sun.jdbc.odbc.JdbcOdbcStatement.getResultSet(JdbcOdbcStatement.java:423)
- locked <02A1FE80> (a sun.jdbc.odbc.JdbcOdbcStatement)
at sun.jdbc.odbc.JdbcOdbcStatement.executeQuery(JdbcOdbcStatement.java:253)
at org.apache.jsp.DocumentsPendingReport$jsp._jspService(DocumentsPendingReport$jsp.java:127)
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:202)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474)
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:201)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
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.StandardContext.invoke(StandardContext.java:2344)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
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.valves.AccessLogValve.invoke(AccessLogValve.java:462)
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:163)
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:1011)
at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1106)
at java.lang.Thread.run(Thread.java:536)
Dynamic libraries:
0x00400000 - 0x00406000 c:\j2sdk1.4.0_01\bin\java.exe
0x77F80000 - 0x77FFB000 C:\WINNT\system32\ntdll.dll
0x7C2D0000 - 0x7C332000 C:\WINNT\system32\ADVAPI32.dll
0x7C570000 - 0x7C623000 C:\WINNT\system32\KERNEL32.DLL
0x77D30000 - 0x77D9E000 C:\WINNT\system32\RPCRT4.DLL
0x78000000 - 0x78045000 C:\WINNT\system32\MSVCRT.dll
0x6D330000 - 0x6D445000 c:\j2sdk1.4.0_01\jre\bin\client\jvm.dll
0x77E10000 - 0x77E6F000 C:\WINNT\system32\USER32.dll
0x77F40000 - 0x77F79000 C:\WINNT\system32\GDI32.dll
0x77570000 - 0x775A0000 C:\WINNT\system32\WINMM.dll
0x75E60000 - 0x75E7A000 C:\WINNT\system32\IMM32.DLL
0x6CA60000 - 0x6CA68000 C:\WINNT\system32\LPK.DLL
0x66650000 - 0x666A4000 C:\WINNT\system32\USP10.dll
0x6D1D0000 - 0x6D1D7000 c:\j2sdk1.4.0_01\jre\bin\hpi.dll
0x6D300000 - 0x6D30D000 c:\j2sdk1.4.0_01\jre\bin\verify.dll
0x6D210000 - 0x6D228000 c:\j2sdk1.4.0_01\jre\bin\java.dll
0x6D320000 - 0x6D32D000 c:\j2sdk1.4.0_01\jre\bin\zip.dll
0x6D2D0000 - 0x6D2DD000 C:\j2sdk1.4.0_01\jre\bin\net.dll
0x75050000 - 0x75058000 C:\WINNT\system32\WSOCK32.dll
0x75030000 - 0x75044000 C:\WINNT\system32\WS2_32.DLL
0x75020000 - 0x75028000 C:\WINNT\system32\WS2HELP.DLL
0x74FD0000 - 0x74FEE000 C:\WINNT\system32\msafd.dll
0x75010000 - 0x75017000 C:\WINNT\System32\wshtcpip.dll
0x6D250000 - 0x6D25A000 C:\j2sdk1.4.0_01\jre\bin\JdbcOdbc.dll
0x0BDC0000 - 0x0BDF2000 C:\WINNT\system32\ODBC32.dll
0x71780000 - 0x7180A000 C:\WINNT\system32\COMCTL32.dll
0x782F0000 - 0x78538000 C:\WINNT\system32\SHELL32.dll
0x70BD0000 - 0x70C34000 C:\WINNT\system32\SHLWAPI.DLL
0x76B30000 - 0x76B6E000 C:\WINNT\system32\comdlg32.dll
0x1F850000 - 0x1F866000 C:\WINNT\system32\odbcint.dll
0x0BF00000 - 0x0BF5E000 C:\WINNT\System32\SQLSRV32.dll
0x41090000 - 0x410BD000 C:\WINNT\System32\SQLUNIRL.dll
0x77800000 - 0x7781E000 C:\WINNT\System32\WINSPOOL.DRV
0x76620000 - 0x76631000 C:\WINNT\system32\MPR.DLL
0x77820000 - 0x77827000 C:\WINNT\system32\VERSION.dll
0x759B0000 - 0x759B6000 C:\WINNT\system32\LZ32.DLL
0x779B0000 - 0x77A4B000 C:\WINNT\system32\OLEAUT32.dll
0x77A50000 - 0x77B3C000 C:\WINNT\system32\ole32.dll
0x75170000 - 0x751BF000 C:\WINNT\System32\NETAPI32.dll
0x7C340000 - 0x7C34F000 C:\WINNT\System32\SECUR32.DLL
0x751C0000 - 0x751C6000 C:\WINNT\System32\NETRAP.DLL
0x75150000 - 0x7515F000 C:\WINNT\System32\SAMLIB.DLL
0x77950000 - 0x7797A000 C:\WINNT\system32\WLDAP32.DLL
0x77980000 - 0x779A4000 C:\WINNT\System32\DNSAPI.DLL
0x769A0000 - 0x769A7000 C:\WINNT\system32\NDDEAPI.DLL
0x1FA20000 - 0x1FA36000 C:\WINNT\System32\sqlsrv32.rll
0x0C390000 - 0x0C3A9000 C:\WINNT\system32\odbccp32.dll
0x0C3B0000 - 0x0C3BF000 C:\WINNT\system32\DBNETLIB.DLL
0x75500000 - 0x75504000 C:\WINNT\system32\security.dll
0x782D0000 - 0x782EF000 C:\WINNT\system32\msv1_0.dll
0x77440000 - 0x774B8000 C:\WINNT\system32\CRYPT32.DLL
0x77430000 - 0x77440000 C:\WINNT\system32\MSASN1.DLL
0x77BF0000 - 0x77C01000 C:\WINNT\system32\ntdsapi.dll
0x782C0000 - 0x782CC000 C:\WINNT\System32\rnr20.dll
0x77340000 - 0x77353000 C:\WINNT\system32\iphlpapi.dll
0x77520000 - 0x77525000 C:\WINNT\system32\ICMP.DLL
0x77320000 - 0x77337000 C:\WINNT\system32\MPRAPI.DLL
0x773B0000 - 0x773DF000 C:\WINNT\system32\ACTIVEDS.DLL
0x77380000 - 0x773A3000 C:\WINNT\system32\ADSLDPC.DLL
0x77830000 - 0x7783E000 C:\WINNT\system32\RTUTILS.DLL
0x77880000 - 0x7790E000 C:\WINNT\system32\SETUPAPI.DLL
0x7C0F0000 - 0x7C151000 C:\WINNT\system32\USERENV.DLL
0x774E0000 - 0x77513000 C:\WINNT\system32\RASAPI32.DLL
0x774C0000 - 0x774D1000 C:\WINNT\system32\RASMAN.DLL
0x77530000 - 0x77552000 C:\WINNT\system32\TAPI32.DLL
0x77360000 - 0x77379000 C:\WINNT\system32\DHCPCSVC.DLL
0x777E0000 - 0x777E8000 C:\WINNT\System32\winrnr.dll
0x777F0000 - 0x777F5000 C:\WINNT\system32\rasadhlp.dll
0x77920000 - 0x77943000 C:\WINNT\system32\imagehlp.dll
0x72A00000 - 0x72A2D000 C:\WINNT\system32\DBGHELP.dll
0x690A0000 - 0x690AB000 C:\WINNT\system32\PSAPI.DLL
Local Time = Sat May 01 11:30:40 2004
Elapsed Time = 5
# HotSpot Virtual Machine Error : EXCEPTION_ACCESS_VIOLATION
# Error ID : 4F530E43505002D5
# Please report this error at
# http://java.sun.com/cgi-bin/bugreport.cgi
# Java VM: Java HotSpot(TM) Client VM (1.4.0_01-b03 mixed mode)
Also No Error is Thrown with j2sdk1.4.0
If I'm using Not using Scrollable Result Set, No Error is Thrown.
Error is Thrown only with Scrollable Result set and with j2sdk1.4.0_01Did you forget to put the SQL statement in when you used createStatement? I added it below:
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection conn = DriverManager.getConnection("Jdbc:Odbc:IMSMC","sa","");
String sql="select * from <Table Name> ";
Statement stmt=conn.createStatement(sql, ResultSet.TYPE_SCROLL_INSENSITIVE,ResultSet.CONCUR_READ_ONLY);
Does the JDBC-ODBC bridge driver accomodate any of these settings you're trying?
The problem shouldn't have anything to do with Tomcat. Sounds like a JDBC driver issue to me. Try to reproduce the error without Tomcat, and then see if adding the SQL corrects things at all.
I'd read the docs to see if the bridge driver has these features. I don't think it's up to the full standard.
Maybe you are looking for
-
Please help me out . . . I'm not a novice with either video production, fcp, or computers. I'm starting to wish I was back on my PC with premiere. First of all computer specs: G5 Quad 2.5ghz 4gb RAM approx 2tb spread across 5 HD's (internal and exter
-
Problems with pricing in Internet Order screen(CRM E-Commerce 5.0)
Good afternoon ! We are using CRM 5.0 with CRM E-Commerce 5.0, and we are experiencing problems with pricing in the order screen. When we create an order and insert one item at this order, this item is processed and the price is calcu
-
Agent disappeared automatically and it appeared in pending management after 6 months.
We had a server (Windows server 2003 64 bit) which was installed and was working fine. Suddenly it disappeared automatically and it appeared in pending management after 6 months. We noticed it only when it came to pending management that the server d
-
Growing chart line, Flash CS4
Hello, I want to make a growing line. Therefore I have an object without outlines that is angled like a stock exchange chart line. The object is imported (copy paste) from Illustrator. I tried with shape tween with the same object form (not the same
-
Reclaim Storage needed after kernel update
Last weekend we moved from a 620 to a 640 kernel for our PRD instance. Our TST instance, on the same system was moved weeks ago. The PRD ran without problems after the upgrade to the new kernel. In the backup we do a Save While Active of SAP data, ex