Help: Apache 2.0.36 / Tomcat 4.0.3 / mod_jk.dll
I've been trying unsuccessfully to get Apache and Tomcat to work together on Windows 2000. I've seen various different sets of instructions for accomplishing this, but none of them have worked for me. I always end up unable to start Apache due to its inability to load the mod_jk module (even though it correctly states the full path to the module).
1. Can anyone point me to a recent and/or correct set of instructions to set this up?
2. Some instructions claim that Tomcat can generate a mod_jk configuration file, but I haven't found how to do that. How do you generate it?
3. Any gotchas I should look out for?
Thanks,
Vince
I had already tried that set of instructions and it didn't work for me either.
But I did find out the source of the problem. It's a bug in Apache 2.0.x (up to the current 2.0.39). It has a problem parsing the path of the include (or add module) and can't find the mod_jk.dll.
So I reverted back to Apache 1.3.26 and it's working. I'll keep checking for the next production-ready build of Apache 2 and try again.
Thanks,
Vince
Similar Messages
-
Apache 2.0 and Tomcat 4.1 (help)
I have spent the last few days trying to serve JSP's using Apache 2.0 in conjunction with Tomcat 4.1 with zero results. I am rather frazzled and am about to abandon the thought of using anything Java for a long time.
I have found several resources that have spun me around in circles and provided little to no help at all. I am using a Win98 box by the way...
My installations are as follows:
Apache 2.0 - C:\Java\Apache
Tomcat 4.1 - C:\Java\Apache\Tomcat_4.1
mod_jk.conf - C:\Java\Apache\Tomcat_4.1\conf\auto\
workers.properties - C:\Java\Apache\Tomcat_4.1\conf\jk\
httpd.conf - C:\Java\Apache\Apache2\conf\
mod_jk.dll - C:\Java\Apache\Apache2\bin
The files in question are as follows:
#========================================================
C:\Java\Apache\Tomcat_4.1\conf\auto\mod_jk.conf
#========================================================
########## Auto generated on Fri Sep 13 18:46:55 EDT 2002##########
<VirtualHost localhost>
ServerName localhost
JkMount /manager ajp13
JkMount /manager/* ajp13
JkMount /examples ajp13
JkMount /examples/* ajp13
JkMount /tomcat-docs ajp13
JkMount /tomcat-docs/* ajp13
JkMount /webdav ajp13
JkMount /webdav/* ajp13
JkMount /admin ajp13
JkMount /admin/* ajp13
</VirtualHost>#========================================================
C:\Java\Apache\Tomcat_4.1\conf\jk\workers.properties
#========================================================
# Start setup file
#==========================================================
workers.tomcat_home=C:/Java/Apache/Tomcat_4.1
workers.java_home=C:/Java/j2sdk1.4.0
ps=/
worker.list=MyWorker
#==========================================================
# Definition for MyWorker worker
#==========================================================
worker.MyWorker.port=8009
worker.MyWorker.host=192.168.0.2
worker.MyWorker.type=ajp13
worker.MyWorker.class_path=C:/Java/Apache/Tomcat_4.1/bin
worker.MyWorker.class_path=C:/Java/Apache/Tomcat_4.1/common/lib
worker.MyWorker.class_path=C:/Java/Apache/Tomcat_4.1/server/lib
worker.MyWorker.class_path=C:/Java/j2sdk1.4.0/lib/tools.jar
#==========================================================
# End setup file#==========================================================
C:\Java\Apache\Apache2\conf\httpd.conf
#==========================================================
about line# 212:
ServerName 192.168.0.2 # my internal ipat bottom of file:
LoadModule jk_module "C:/Java/Apache/Tomcat_4.1/module/mod_jk.dll"
Include C:/Java/Apache/Tomcat_4.1/conf/auto/mod_jk.conf
JkWorkersFile "C:/Java/Apache/Tomcat_4.1/conf/jk/workers.properties"
JkLogFile "C:/Java/Apache/Tomcat_4.1/logs/mod_jk.log"
JkLogLevel emerg
JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
JkMount /examples/*.jsp MyWorker
JkMount /examples/jsp/* MyWorkerWhen I put this URL in my browser:
http://192.168.0.2/examples/jsp/
I get a 404 error...
Apache keeps trying to serve the *.jsp's and it fails every time it trys to do so. I know this b/c the Tomcat logs are virtually empty while the Apache logs keep being added to like so:
192.168.0.2 - - [14/Sep/2002:19:04:57 - 0400] "GET /examples/jsp/snp/snoop.jsp HTTP/1.1" 404 294
Any help is greatly appreciated....I am running into a similar problem on Linux. Can you let me know if you ever fgured it out?
My conf files are as follows:
mod_jk.conf
########## Auto generated on Tue Nov 12 16:12:05 EST 2002##########
<IfModule !mod_jk.c>
LoadModule jk_module /usr/lib/apache/mod_jk.so
</IfModule>
JkWorkersFile "/install/jakarta-tomcat-4.1.12/conf/jk/workers.properties"
JkLogFile "/install/jakarta-tomcat-4.1.12/logs/mod_jk.log"
JkLogLevel emerg
<VirtualHost localhost>
ServerName localhost
#################### localhost:/admin ####################
# Static files
Alias /admin "/install/jakarta-tomcat-4.1.12/webapps/../server/webapps/admin"
<Directory "/install/jakarta-tomcat-4.1.12/webapps/../server/webapps/admin">
Options Indexes FollowSymLinks
DirectoryIndex index.html index.htm index.jsp
</Directory>
# Deny direct access to WEB-INF and META-INF
<Location "/admin/WEB-INF/*">
AllowOverride None
deny from all
</Location>
<Location "/admin/META-INF/*">
AllowOverride None
deny from all
</Location>
JkMount /admin/j_security_check ajp13
JkMount /admin/*.do ajp13
JkMount /admin/*.jsp ajp13
#################### localhost:/webdav ####################
# Static files
Alias /webdav "/install/jakarta-tomcat-4.1.12/webapps/webdav"
<Directory "/install/jakarta-tomcat-4.1.12/webapps/webdav">
Options Indexes FollowSymLinks
DirectoryIndex index.jsp index.html index.htm
</Directory>
# Deny direct access to WEB-INF and META-INF
<Location "/webdav/WEB-INF/*">
AllowOverride None
deny from all
</Location>
<Location "/webdav/META-INF/*">
AllowOverride None
deny from all
</Location>
JkMount /webdav/*.jsp ajp13
#################### localhost:/examples ####################
# Static files
Alias /examples "/install/jakarta-tomcat-4.1.12/webapps/examples"
<Directory "/install/jakarta-tomcat-4.1.12/webapps/examples">
Options Indexes FollowSymLinks
DirectoryIndex index.html index.htm index.jsp
</Directory>
# Deny direct access to WEB-INF and META-INF
<Location "/examples/WEB-INF/*">
AllowOverride None
deny from all
</Location>
<Location "/examples/META-INF/*">
AllowOverride None
deny from all
</Location>
JkMount /examples/jsp/security/protected/j_security_check ajp13
JkMount /examples/snoop ajp13
JkMount /examples/servlet/* ajp13
JkMount /examples/CompressionTest ajp13
JkMount /examples/*.jsp ajp13
JkMount /examples/servletToJsp ajp13
JkMount /examples/SendMailServlet ajp13
#################### localhost:/tomcat-docs ####################
# Static files
Alias /tomcat-docs "/install/jakarta-tomcat-4.1.12/webapps/tomcat-docs"
<Directory "/install/jakarta-tomcat-4.1.12/webapps/tomcat-docs">
Options Indexes FollowSymLinks
DirectoryIndex index.html index.htm index.jsp
</Directory>
# Deny direct access to WEB-INF and META-INF
<Location "/tomcat-docs/WEB-INF/*">
AllowOverride None
deny from all
</Location>
<Location "/tomcat-docs/META-INF/*">
AllowOverride None
deny from all
</Location>
JkMount /tomcat-docs/*.jsp ajp13
#################### localhost:/manager ####################
# Static files
Alias /manager "/install/jakarta-tomcat-4.1.12/webapps/../server/webapps/manager"
<Directory "/install/jakarta-tomcat-4.1.12/webapps/../server/webapps/manager">
Options Indexes FollowSymLinks
DirectoryIndex index.html index.htm index.jsp
</Directory>
# Deny direct access to WEB-INF and META-INF
<Location "/manager/WEB-INF/*">
AllowOverride None
deny from all
</Location>
<Location "/manager/META-INF/*">
AllowOverride None
deny from all
</Location>
JkMount /manager/html/* ajp13
JkMount /manager/* ajp13
JkMount /manager/*.jsp ajp13
</VirtualHost>
# BEGIN workers.properties
# Setup for apache system
# (optional) make this equal to CATALINA_HOME
workers.tomcat_home=/install/jakarta-tomcat-4.1.12
# (optional) make this equal to JAVA_HOME
workers.java_home=/usr/java/j2sdk1.4.1_01
ps=/
worker.list=ajp13
worker.ajp13.type=ajp13
# Definition for Ajp13 worker
worker.ajp13.port=8009
# change this line to match apache ServerName and Host name in server.xml
worker.ajp13.host=localhost
# END workers.properties
httpd.conf Excerpts
ServerName localhost
ServerAdmin root@localhost
Listen *:80
Port 80
ScoreBoardFile /var/run/httpd.scoreboard
NameVirtualHost 128.2.140.19
# Where do we put the lock and pif files?
LockFile /var/lock/httpd.lock
PidFile /var/run/httpd.pid
CoreDumpDirectory "/etc/httpd"
# Documents
DocumentRoot /var/www/html
UserDir public_html
IndexOptions FancyIndexing
Include /install/jakarta-tomcat-4.1.12/conf/auto/mod_jk.conf
I have really been stumped by this problem for the last two weeks and could do with some help before I give up entirely.
Thanks,
Rudolph -
Tomcat 4 + Apache 1.3.2 + mod_jk.dll?
Ok, I've installed Apache and Tomcat both, and I'm able to get them running separately fine, Now i'm trying to get them to run together.
My problem lies in that Tomcat 4 doesn't generate the .conf files that you generally modify and include in apache's .conf file in order to get them to run together.
I'm running on windows 98, but any help from anyone on how to get these 3 working together would be appreciated.I found this in the server.xml file in tomcat:
The MOD_WEBAPP connector is used to connect Apache 1.3 with Tomcat 4.0
as its servlet container. This is built by following these steps:
- cd {TOMCAT-SRC-HOME}/connectors
- make
- (Edit "Makedefs" as needed for your installation)
- make
- su root
- cp connectors/apache-1.3/mod_webapp.so {APACHE_HOME}/libexec
- exit
To configure the Apache side, you must ensure that you have a
"ServerName" directive defined in "httpd.conf". Then, lines like
these to the bottom of your "httpd.conf" file:
LoadModule webapp_module libexec/mod_webapp.so
WebAppConnection warpConnection warp localhost:8008
WebAppMount examples warpConnection /examples/
Finally, modify the "defaultHost" attribute in the "Engine" directive
below to match the "ServerName" setting defined in "https.conf". The
next time you restart Apache (after restarting Tomcat, if needed)
the connection will be established, and all applications you make
visible via "WebAppMount" directives can be accessed through Apache.
Here's the problem.. there is no /connectors directory, and I can't find a precompiled version of mod_webapp.so either (plus It doesn't tell me how to compile in windows..)
Anyway, if anyone has a precompiled mod_webapp.so file (if that will work) I guess that's all I need? I'm still lost as to how mod_jk.dll fits in though. I thought I read in a few places that tomcat4 used this instead of jserv.
Anyone able to help me out more? -
Apache web server/jakarta tomcat
Hey guys!
here's the fact, i installed jakarta-tomcat and apache web server, but i don't know how to integrate them, i mean, I just want to have one http server with the functionality to use servlets. Do I need only jakarta tomcat to have this?, please help me.
and forgive my very poor english! :)Hallo.
Create or edit the file %APACHE_HOME%/conf/worker.properties
worker.list=ajp13
worker.ajp13.port=8009
worker.ajp13.host=localhost
worker.ajp13.type=ajp13
Edit the file %APACHE_HOME%/conf/httpd.conf
LoadModule jk_module modules/mod_jk.dll
AddModule mod_jk.c
JkWorkersFile "%APACHE_HOME%/conf/worker.properties"
JkLogFile "APACHE_HOME%/logs/mod_jk.log"
JkLogLevel debug
Alias /myWebApp "%TOMCAT_HOME%/webapps/myWebApp"
JkMount /myWebApp/*.jsp testWorker
Check the file mod_jk.dll in the folder %APACHE_HOME%/modules/. Howevere there are different libraries for different versions of Apache Web Aerver and Tomcat.
Edit the file %TOMCAT_HOME%/conf/server.xml
<Connector className="org.apache.coyote.tomcat4.CoyoteConnector"
port="8009" minProcessors="5" maxProcessors="75"
enableLookups="true" redirectPort="8443"
acceptCount="10" debug="0" connectionTimeout="20000"
useURIValidationHack="false"
protocolHandlerClassName="org.apache.jk.server.JkCoyoteHandler"/>
Good luck. -
Getting apache to talk to Tomcat
I am trying to get apache to talk to tomcat and when I am compiling the mod_jk.so (Jakarta connectors kit) i am getting a few errors when i run make. I was hoping you can point me in the right direction to get the mod_jk.so binaries so that i can get apache to serve my JSP's. I already tried to uncomment the line in the httpd.conf to include tomcat and renamed the server.xml file. So at this point I am a little stuck.
Here are the make errors:
# make
Making all in common
make[1]: Entering directory `/usr/apache/jakarta-tomcat-connectors-jk-1.2.6-src/jk/native/common'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/usr/apache/jakarta-tomcat-connectors-jk-1.2.6-src/jk/native/common'
Making all in apache-2.0
make[1]: Entering directory `/usr/apache/jakarta-tomcat-connectors-jk-1.2.6-src/jk/native/apache-2.0'
/bin/bash /var/apache2/build/libtool silent mode=compile /opt/SUNWspro/bin/cc -I/usr/apache2/include -g -O2 -DUSE_APACHE_MD5 -I ../common -I /include -I /include/unix -DSOLARIS2=10 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -xO3 -xarch=v8 -xspace -W0,-Lt -W2,-Rcond_elim -Xa -xildoff -DSSL_EXPERIMENTAL -DSSL_ENGINE -DHAVE_APR -I/usr/share/src/apache2/srclib/apr/include -g -O2 -DSOLARIS2=10 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -c mod_jk.c
/var/apache2/build/libtool: line 862: /opt/SUNWspro/bin/cc: No such file or directory
make[1]: *** [mod_jk.lo] Error 1
make[1]: Leaving directory `/usr/apache/jakarta-tomcat-connectors-jk-1.2.6-src/jk/native/apache-2.0'
make: *** [all-recursive] Error 1
If i am going about this in the wrong way and this is already configured, can you tell me what you did to get it to work.
Thanks,
BrianHere is the solution:
Use this fix to correct the build problems:
1.http://forum.sun.com/thread.jspa?threadID=21555&messageID=67120
2. make sure you have $JAVA_HOME in your .profile (or other login profile file)
3. re-compile apache,
4. install tomcat fresh with the axps switch
5. compile and install the tomcat connectors
6. modify your httpd.conf file, add the LoadModule lines right before section 2: (here they are)
LoadModule jk_module libexec/mod_jk.so
AddModule mod_jk.c
7. right before section 3 of the httpd.conf add the JMount switches (this will serv JSP's from the website root dir)
JkWorkersFile "/usr/local/apache/conf/workers.properties"
JkLogFile "logs/mod_jk.log"
JkLogLevel error
JkMount /*.jsp default
JkMount /examples/* default
8. modify the server.xml file at the bottom (between the </Host> and </Engine> tag)below is the example :
</Host>
<Host name="www.yourdomain.com" debug="0"
appBase="/usr/local/apache/htdocs" >
<Context path="" docBase="" debug="0"/>
</Host>
</Engine>
</Service>
</Server>
9. after you test it add in any custom directory configs you want. make sure that you edit the server.xml and httpd.conf to chage the documentroot of each.
10. done -
Install Apach web server and Tomcat
Is it possible to install Apach web server and Tomcat into Oracle Application Server?
If possible, which way is the best? People said that I would better install Apach web server and Tomcat in Redhat.
If you know the answer, would you mind give me the answer or document link?
ThanksTomcat is just a servlet engine. Oracle Application Server already includes a servlet engine. Apache is a default component too.
-
The tab is bad with apache web server and tomcat
the tab not run with apache web server + tomcat.
It is very bad..Fijate que solo he estado experimentando con JSC, no he tenido oportunidad de poner nada en producci�n usando la combinaci�n Apache Web Server y Tomcat JSP container y no cuento en �ste momento con �sta configuraci�n para probar.
Nosotros (en donde trabajo) usamos IBM Web Server (basado en Apache Web Server 2), IBM Websphere 6 y las aplicaciones JSF en producci�n est�n hechas con Rational Web Developer.
Ahora he estado muy ocupado con un proyecto urgente, si tengo alg�n tiempo libre la semana entrante tratar� de probar tu combinaci�n (no te prometo nada) pero para ello necesito que me digas las versiones que est�s usando de Apache Web Server y de Tomcat, como est�s enlazando entre ambos con un m�dulo o con ProxyPass y mejor si me mandas el httpd.conf.
Saludos. -
Help Apache Tomcat integrate with Active Directory
Hello ,
I am trying to authenticate users in Apache Tomcat 5.5 from active
directory with no such luck.
The way my users are structured in AD is there's a department root OU
and then sub OU's for each department . The Groups OU is in its own OU.
This is the syntax Im using for the server.xml file. I have created
two groups am and thc and put the neccesary users in the groups.
<Realm className="org.apache.catalina.realm.JNDIRealm" debug="99"
connectionURL="ldap://dc1:389"
alternateURL="ldap://fs6:389"
userRoleName="member"
userBase="OU=Departments,dc=2krecovery,dc=com"
userPattern="cn={0},OU=Departments,dc=2krecovery,dc=com"
UserSubtree="true"
roleBase="OU=Groups,dc=2krecovery,dc=com"
roleName="cn"
roleSearch="(member={0})"
roleSubtree="false"
userSubtree="true"
/>
Could someone tell me if this is right? Running a Windows 2000 native
domain level with 2 windows 2000 dc's and one windows 2003 dc.
Here's the web.xml
<security-constraint>
<web-resource-collection>
<web-resource-name>Tax Housing Compliance</web-resource-name>
<url-pattern>/thc/*</url-pattern>
</web-resource-collection>
<auth-constraint>
<role-name>thc</role-name>
</auth-constraint>
</security-constraint>
<security-constraint>
<web-resource-collection>
<web-resource-name>Asset Management</web-resource-name>
<url-pattern>/am/*</url-pattern>
</web-resource-collection>
<auth-constraint>
<role-name>am</role-name>
</auth-constraint>
</security-constraint>Pl do not post duplicates - Use Multi Domain to integrate with Active Directory in R12
-
Help with GSSAPI Kerberos in tomcat JNDIRealm
Greetings,
I could use some help with getting tomcat 5.5.12 to use Kerberos against Microsoft Active Directory.
I have been using Ethereal to sniff the packets going back and forth from tomcat and I verified that with a normal server.xml entry (remove the authentication attribute keyword below), it uses 'simple'
authentication (clear text passwords).
My original server.xml works just fine but now I'm trying to take it to next level and I found documentation (jdk-1_5_0-doc.zip\docs\guide\jndi\jndi-ldap.html)
specifies that there are the following values:
- EXTERNAL (RFC 2222). This mechanism obtains authentication information from an external source (such as SSL/TLS or IPsec).
- DIGEST-MD5 (RFC 2831) is for Digest Authentication.
- GSSAPI (RFC 2222) is for Kerberos V5 authentication.
I wish to use GSSAPI to talk with Active Directory so I setup my server.xml with the following :
<Realm className="org.apache.catalina.realm.JNDIRealm"
debug="4"
authentication="GSSAPI"
connectionName="CN=Klotz\, Dennis,OU=myou,DC=company,DC=com"
connectionPassword="myPassword"
connectionURL="ldap://10.16.0.xx:389"
alternateURL="ldap://10.16.0.xx:389"
userBase="OU= myou,DC=company,DC=com"
userSearch="(sAMAccountName={0})"
userSubtree="true"
userRoleName="memberOf"
/>And now I get a different type of error from Catalina.out:
Oct 28, 2005 2:28:47 PM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
GSSException: No valid credentials provided (Mechanism level: Failed to find any Kerberos Ticket)
at
sun.security.jgss.krb5.Krb5InitCredential.getInstance(Krb5InitCredential
.java:133)
.....At least the GSSAPI is being recognized! My next step was talking with IT; they suggested a c:\winnt\krb5.ini with the following contents:
[libdefaults]
default_realm = COMPANY.COM
default_tgs_enctypes = des-cbc-crc
default_tkt_enctypes = des-cbc-crc
[realms]
COMPANY.COM = {
kdc = addy.mycompany.com:88
admin_server = addy. mycompany.com:88
kpasswd_server = addy. mycompany.com:464 default_domain = COMPANY.COM }And that I then execute:
$ kinit DKlotz
Password for [email protected]:mypassword New ticket is stored in cache file C:\Documents and Settings\DKlotz\krb5cc_dklotzBut as you can see from the previous tomcat error log that something is still missing. Do I need to move the cache file or do other commands so that the code within ldap.jar can use it?
At this time tomcat never tries connecting to the LDAP server as it can't get out of the starting gate. I've got something wrong / missing from the Kerberos setup.
Any help is greatly appreciated!!
-Dennis KlotzOk I've made progress, whether it is backwards or not, I don't know yet.
I've added :
-Djavax.security.auth.useSubjectCredsOnly=false
To my Catalina options environment variable in Catalina.bat.
Now I get the error:
WARNING: Exception performing authentication
java.lang.SecurityException: Unable to locate a login configuration
at com.sun.security.auth.login.ConfigFile.<init>(ConfigFile.java:97)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
at java.lang.Class.newInstance0(Class.java:350)
at java.lang.Class.newInstance(Class.java:303)
at javax.security.auth.login.Configuration$3.run(Configuration.java:216)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.login.Configuration.getConfiguration(Configuration.java:210)
at javax.security.auth.login.LoginContext$1.run(LoginContext.java:237)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.login.LoginContext.init(LoginContext.java:234)
at javax.security.auth.login.LoginContext.<init>(LoginContext.java:403)
at sun.security.jgss.LoginUtility.login(LoginUtility.java:72)
at sun.security.jgss.krb5.Krb5Util.getTicketFromSubject(Krb5Util.java:137)
at sun.security.jgss.krb5.Krb5InitCredential$1.run(Krb5InitCredential.java:331)
at java.security.AccessController.doPrivileged(Native Method)
at sun.security.jgss.krb5.Krb5InitCredential.getTgtFromSubject(Krb5InitCredential.java:328)
at sun.security.jgss.krb5.Krb5InitCredential.getInstance(Krb5InitCredential.java:131)
at sun.security.jgss.krb5.Krb5MechFactory.getCredentialElement(Krb5MechFactory.java:72)
at sun.security.jgss.GSSManagerImpl.getCredentialElement(GSSManagerImpl.java:149)
at sun.security.jgss.GSSCredentialImpl.add(GSSCredentialImpl.java:389)
at sun.security.jgss.GSSCredentialImpl.<init>(GSSCredentialImpl.java:60)
at sun.security.jgss.GSSCredentialImpl.<init>(GSSCredentialImpl.java:37)
at sun.security.jgss.GSSManagerImpl.createCredential(GSSManagerImpl.java:96)
at sun.security.jgss.GSSContextImpl.initSecContext(GSSContextImpl.java:178)
at sun.security.jgss.GSSContextImpl.initSecContext(GSSContextImpl.java:158)
at com.sun.security.sasl.gsskerb.GssKrb5Client.evaluateChallenge(GssKrb5Client.java:155)
at com.sun.jndi.ldap.sasl.LdapSasl.saslBind(LdapSasl.java:105)
at com.sun.jndi.ldap.LdapClient.authenticate(LdapClient.java:214)
at com.sun.jndi.ldap.LdapCtx.connect(LdapCtx.java:2637)
at com.sun.jndi.ldap.LdapCtx.<init>(LdapCtx.java:283)
at com.sun.jndi.ldap.LdapCtxFactory.getUsingURL(LdapCtxFactory.java:175)
at com.sun.jndi.ldap.LdapCtxFactory.getUsingURLs(LdapCtxFactory.java:193)
at com.sun.jndi.ldap.LdapCtxFactory.getLdapCtxInstance(LdapCtxFactory.java:136)
at com.sun.jndi.ldap.LdapCtxFactory.getInitialContext(LdapCtxFactory.java:66)
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:667)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:247)
at javax.naming.InitialContext.init(InitialContext.java:223)
at javax.naming.InitialContext.<init>(InitialContext.java:197)
at javax.naming.directory.InitialDirContext.<init>(InitialDirContext.java:82)
at org.apache.catalina.realm.JNDIRealm.open(JNDIRealm.java:1515)
at org.apache.catalina.realm.JNDIRealm.start(JNDIRealm.java:1601)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1004)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1012)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
at org.apache.catalina.core.StandardService.start(StandardService.java:450)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:683)
at org.apache.catalina.startup.Catalina.start(Catalina.java:537)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:271)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:409)
Caused by: java.io.IOException: Unable to locate a login configuration
at com.sun.security.auth.login.ConfigFile.init(ConfigFile.java:206)
at com.sun.security.auth.login.ConfigFile.<init>(ConfigFile.java:95)
... 56 moreAm I moving in the right direction?
-Dennis -
How to Install XSQL On Apache 1.3.12 Tomcat 3.1 ?
We are trying to install the XSQL 1.0.0 Servlet to the Apache 1.3.12 With Tomcat 3.1 (production verion) on Solaris 2.6 platform. We followed the instructions on the XSQL Release Note. However, it does not work. More specifically, we modified the tomcat.sh file under the <APACHE_HOME>/ext_app/apache_1_3_12_tc_3_1/bin directory, to add the correct CLASSPATH for the XSQL Java classes. Then we edited the "sever.xml" file under the ../conf directory to add the Context for xsql. When we re-started the Web Server, we could see that the path for the XSQL were set in the CLASSPATH. However, the Web Server did not pick up the *.xsql files at all. What kind of problems could it be?
One observation we had on the "server.xml" file was, there is no "Context" entry at all, not like in the examples given by the Release Note, where you might (by default) have already got /example. /test. /admin, context in the file.
Our experience with the XSQL product is very frustrating at the moment, please help.
Thanks,
nullI am going to have to look into this and get back to you. I will do so and get back to you ASAP.
Thanks for your patience,
-Kishore -
Need Help - JBO-26000 Error on Tomcat?
I have been deploying my JDev 10.1.3 project (ADF BC) as a .war file to Tomcat 5.5.9 and running it successfully for several months successfully. Today while making code changes, I started to encounter a JBO-26000 error preventing me from running this application. I tried re-installing the ADF filters on Tomcat but this did not help.
Note! I have another project that I can still deploy and run successfully as a .war file in Tomcat, so it points to something specific to this application.
Does anyone have any suggestions? I don't know where to look for the problem?
Thanks.
**** Error Message from Web Browser:***********
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
oracle.jbo.JboException: JBO-26000: A Generic exception occurred during loading Customizations.
oracle.jbo.uicli.mom.JUMetaObjectManager.loadFromXML(JUMetaObjectManager.java:918)
racle.jbo.mom.DefinitionManager.loadLazyDefinitionObject(DefinitionManager.java:548)
oracle.jbo.mom.DefinitionManager.findDefinitionObject(DefinitionManager.java:426)
oracle.jbo.mom.DefinitionManager.findDefinitionObject(DefinitionManager.java:359)
oracle.jbo.uicli.mom.JUMetaObjectManager.defExists(JUMetaObjectManager.java:306)
oracle.jbo.uicli.mom.JUMetaObjectManager.loadCpx(JUMetaObjectManager.java:548)
oracle.adf.model.servlet.ADFBindingFilter.initializeBindingContext(ADFBindingFilter.java:441)
oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:230)
note The full stack trace of the root cause is available in the Apache Tomcat/5.5.9 logs.
******* From Tomcat Log files *************
May 17, 2006 7:01:10 PM org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet Faces Servlet threw exception
oracle.jbo.JboException: JBO-26000: A Generic exception occurred during loading Customizations.
at oracle.jbo.uicli.mom.JUMetaObjectManager.loadFromXML(JUMetaObjectManager.java:918)
at oracle.jbo.mom.DefinitionManager.loadLazyDefinitionObject(DefinitionManager.java:548)
at oracle.jbo.mom.DefinitionManager.findDefinitionObject(DefinitionManager.java:426)
at oracle.jbo.mom.DefinitionManager.findDefinitionObject(DefinitionManager.java:359)
at oracle.jbo.uicli.mom.JUMetaObjectManager.defExists(JUMetaObjectManager.java:306)
at oracle.jbo.uicli.mom.JUMetaObjectManager.loadCpx(JUMetaObjectManager.java:548)
at oracle.adf.model.servlet.ADFBindingFilter.initializeBindingContext(ADFBindingFilter.java:441)
at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:230)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:595)
## Detail 0 ##
java.lang.NullPointerException
at oracle.jbo.uicli.mom.JUApplicationDefImpl.loadDataControls(JUApplicationDefImpl.java:616)
at oracle.jbo.uicli.mom.JUApplicationDefImpl.loadContainees(JUApplicationDefImpl.java:579)
at oracle.jbo.mom.ContainerDefImpl.loadFromXMLFile(ContainerDefImpl.java:354)
at oracle.jbo.uicli.mom.JUApplicationDefImpl.loadFromXMLFile(JUApplicationDefImpl.java:350)
at oracle.jbo.uicli.mom.JUApplicationDefImpl.createAndLoadFromXML(JUApplicationDefImpl.java:531)
at oracle.jbo.uicli.mom.JUMetaObjectManager.loadFromXML(JUMetaObjectManager.java:886)
at oracle.jbo.mom.DefinitionManager.loadLazyDefinitionObject(DefinitionManager.java:548)
at oracle.jbo.mom.DefinitionManager.findDefinitionObject(DefinitionManager.java:426)
at oracle.jbo.mom.DefinitionManager.findDefinitionObject(DefinitionManager.java:359)
at oracle.jbo.uicli.mom.JUMetaObjectManager.defExists(JUMetaObjectManager.java:306)
at oracle.jbo.uicli.mom.JUMetaObjectManager.loadCpx(JUMetaObjectManager.java:548)
at oracle.adf.model.servlet.ADFBindingFilter.initializeBindingContext(ADFBindingFilter.java:441)
at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:230)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:595)Thanks John!
I just solved the problem 5mins ago :)
I'm using Jdeveloper 11g (11.1.1.2.36.55.36) and Tomcat6.
The point is that it had nothing to do with tomcat jdbc setting in context.xml or server.xml files.
After deploying your application to tomcat, bc4j.xcfg is the first place to look for errors regarding connection to database.(at least in my case) -
Need help configuring JDBC Realm on Tomcat 4.0.1
I'm getting the following error:
(from DOS prompt)
Starting service Tomcat-Standalone
Apache Tomcat/4.0.1
Catalina.start: LifecycleException: Exception opening database connection: jav
a.sql.SQLException: [Microsoft][ODBC Driver Manager] Data source name too long
LifecycleException: Exception opening database connection: java.sql.SQLExcepti
on: [Microsoft][ODBC Driver Manager] Data source name too long
at org.apache.catalina.realm.JDBCRealm.start(JDBCRealm.java:615)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1108)Here's my attempted configuration:
<Realm className="org.apache.catalina.realm.JDBCRealm" debug="99"
driverName="sun.jdbc.odbc.JdbcOdbcDriver"
connectionURL="jdbc:odbc:DSNname@host_string:1521:ORCL?user=user_name;password=pwd_name"
userTable="chg_users" userNameCol="user_name" userCredCol="user_pass"
userRoleTable="chg_users_roles" roleNameCol="role_name" />Any help would be appreciated!
Thanks!connectionURL="jdbc:odbc:CATALINA"
in this case, where is CATALINA supposedly pointing
to a DB connection? I don't have mine set, save for
maybe the classpath, but why would you point the
connURL through jdbc:odbc to CATALINA?
That is the name of a DNS. The ODBC shell (nothing to do with java) has DNS names. The shell uses the passed in name to look up the attributes associated with the name.
If you were using a DNS-less name then you would have to specify ODBC driver (nothing to do with java) and the associated attributes for that driver in the connection string.
I'm a little confused by this. Any explanation would
be great, as I have a driver that is jdbc:odbc,
rather than an exclusive Oracle driver.
Well, I've got the ojdbc14_g.jar file. But that's not
exclusively Oracle, correct? Just for JDBC with
Oracle?
A jdbc driver lives somewhere. The bridge driver lives in the Sun VM. The Oracle driver lives in a jar (current ones.)
The bridge driver talks to ODBC (which is outside of java.)
The oracle drivers talk to oracle databases. -
Help! use DataSource in Tomcat
I configure server.xml and web.xml in tomcat to use DataSource
server.xml is
<Resource name="jdbc/jsptest" auth="Container"
type="javax.sql.DataSource"/>
<ResourceParams name="jdbc/jsptest">
<parameter><name>user</name><value>aa</value></parameter>
<parameter><name>password</name><value>aa</value></parameter>
<parameter><name>driverClassName</name>
<value>sun.jdbc.odbc.JdbcOdbcDriver</value></parameter>
<parameter><name>driverName</name>
<value>jdbc:odbc:ejbtest</value></parameter>
</ResourceParams>
and the web.xml is
<web-app>
<resource-ref>
<description>Resource reference to a factory for java.sql.Connection instances that may be used for talking to a particular database that is configured in the server.xml file.</description>
<res-ref-name>jdbc/jsptest</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
<res-sharing-scope>Sharable</res-sharing-scope>
</resource-ref>
</web-app>
but ,when I run my jsp ,it always throws
TyrexDataSourceFactory: Cannot create DataSource, Exception
java.lang.ClassNotFoundException: org.hsql.jdbcDriver
I didn't use org.hsql.jdbcDriver ,so I change other jdbc Drivers and receive same
result,why?
Thank everyone ,it drives me crazy!Dear kbpv43a
here iam facing the same problem as "ClassNotFoundException: org.hsql.JDBCDriver" even after iam using thin driver for oracle database. i already commented as i dont know where i missed to close
the /> end tag. but still its throwing the same exception.
can u please help me by just going through my program and suggest me
where i committed mistake..??
here are my server.xml,web.xml and servletApplication for gettting conection from the pool using thin driver for oracle using Tomcat4.0.4
version.
thanx.
server.xml
<Server port="8005" shutdown="SHUTDOWN" debug="0">
<!-- Tomcat Stand-Alone Service -->
<Service name="Tomcat-Standalone">
<!-- Non-SSL HTTP/1.1 Connector on port 8080 -->
<Connector className="org.apache.catalina.connector.http.HttpConnector"
port="8080" minProcessors="5" maxProcessors="75"
enableLookups="true" redirectPort="8443"
acceptCount="10" debug="0" connectionTimeout="60000"/>
<!-- AJP 1.3 Connector on port 8009 -->
<Connector className="org.apache.ajp.tomcat4.Ajp13Connector"
port="8009" minProcessors="5" maxProcessors="75"
acceptCount="10" debug="0"/>
<!-- Top level container in our container hierarchy -->
<Engine name="Standalone" defaultHost="localhost" debug="0">
<!-- Global logger unless overridden at lower levels -->
<Logger className="org.apache.catalina.logger.FileLogger"
prefix="catalina_log." suffix=".txt"
timestamp="true"/>
<!-- Because this Realm is here, an instance will be shared globally
<Realm className="org.apache.catalina.realm.MemoryRealm" /> -->
<Realm className="org.apache.catalina.realm.JDBCRealm" debug="99"
driverName="oracle.jdbc.driver.OracleDriver"
connectionURL="jdbc:oracle:thin:@oracle:1521:ORCL"
connectionName = "mail"
connectionPassword = "mail"
userTable="users" userNameCol="user_name" userCredCol="user_pass"
userRoleTable="user_roles" roleNameCol="role_name" />
<!-- Define the default virtual host -->
<Host name="localhost" debug="1" appBase="webapps" unpackWARs="true">
<Valve className="org.apache.catalina.valves.AccessLogValve"
directory="logs" prefix="localhost_access_log." suffix=".txt"
pattern="common"/>
<Logger className="org.apache.catalina.logger.FileLogger"
directory="logs" prefix="localhost_log." suffix=".txt"
timestamp="true"/>
<!-- Tomcat Root Context -->
<!-- Tomcat Manager Context -->
<Context path="/manager" docBase="manager" debug="0" privileged="true"/>
<!-- My context, username=good and password=bad for my oracle to connect -->
<Context path="/localhost" docBase="localhost" debug="0" reloadable="false" override="true">
<Resource name="jdbc/myConnection" auth="Container" type="javax.sql.DataSource"/>
<ResourceParams name="jdbc/myConnection">
<parameter><name>user</name><value>good</value></parameter>
<parameter><name>password</name><value>bad</value></parameter>
<parameter><name>driverClassName</name><value>oracle.jdbc.driver.OracleDriver</value></parameter>
<parameter>
<name>url</name>
<value>jdbc:oracle:thin:@oracle:1521:ORCL</value>
</parameter>
<parameter>
<name>maxActive</name>
<value>32</value>
</parameter>
<parameter>
<name>maxIdle</name>
<value>10</value>
</parameter>
</ResourceParams>
<!-- end of MY Context -->
<!-- Tomcat Examples Context
<Context path="/examples" docBase="examples" debug="0" reloadable="true" crossContext="true">
-->
<!--
<Logger className="org.apache.catalina.logger.FileLogger" prefix="localhost_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/EmployeeAppDb" auth="SERVLET" type="javax.sql.DataSource"/>
<ResourceParams name="jdbc/EmployeeAppDb">
<parameter><name>user</name><value>sa</value></parameter>
<parameter><name>password</name><value></value></parameter>
<parameter><name>driverClassName</name><value>org.hsql.jdbcDriver</value></parameter>
<parameter><name>driverName</name><value>jdbc:HypersonicSQL:database</value></parameter>
</ResourceParams>
<Resource name="mail/Session" auth="Container" type="javax.mail.Session"/>
<ResourceParams name="mail/Session">
<parameter>
<name>mail.smtp.host</name>
<value>localhost</value>
</parameter>
</ResourceParams>
-->
</Context>
</Host>
</Engine>
</Service>
<!-- Define an Apache-Connector Service -->
<Service name="Tomcat-Apache">
<Connector className="org.apache.catalina.connector.warp.WarpConnector"
port="8008" minProcessors="5" maxProcessors="75"
enableLookups="true" appBase="webapps"
acceptCount="10" debug="0"/>
<Engine className="org.apache.catalina.connector.warp.WarpEngine"
name="Apache" debug="0">
<Logger className="org.apache.catalina.logger.FileLogger"
prefix="apache_log." suffix=".txt"
timestamp="true"/>
<Realm className="org.apache.catalina.realm.MemoryRealm" />
</Engine>
</Service>
</Server>
web.xml
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>
<servlet>
<servlet-name>conServlet</servlet-name>
<servlet-class>conServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>conServlet</servlet-name>
<url-pattern> /conServlet </url-pattern>
</servlet-mapping>
<resource-ref>
<description> Resource reference to java.sql.Connection
factory defined in server.xml
</description>
<res-ref-name>jdbc/myConnection</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
</web-app>
Servlet Application:
public void service(HttpServletRequest req,HttpServletResponse res)throws ServletException,IOException
res.setContentType("text/html");
PrintWriter out = res.getWriter();
//Ordinary jdbc connection
//DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
//con=DriverManager.getConnection("jdbc:oracle:thin:@oracle:1521:ORCL","mail","mail");
//out.println("Your con=="+con);
try
// jdbc connection from pool
Context initCtx = new InitialContext();
Context envCtx = (Context)initCtx.lookup("java:/comp/env");
DataSource ds = (DataSource)envCtx.lookup("jdbc/myConnection");
conn = ds.getConnection();
out.println("conn : " + conn);
conn.close();
catch (Exception e)
out.println("conn failed : " + e);
Note: my oralce username is "good" and password is "bad"
here -
Integrating Apache Web Server and Tomcat
Hi,
how do i integrate Apache Web Server (version 2.0) with Tomcat 5, on 2 different machines physically?
I have managed to integrate them on the same machine. Now, I need to separate the 2 into 2 different servers.
Please help.This is a forum for Sun's Java Application Server.
Sun's AS is built on top of Tomcat and it's free in production (Platform Edition). The Standard Edition provides integration with an Apache HTTP server via a plugin.
http://wwws.sun.com/software/products/appsrvr/home_appsrvr.htm
For Tomcat, try http://jakarta.apache.org/tomcat/index.html
-Alexis -
Need Help: Apache Server
I have an online game, and I needed a webserver for it. I asked around, people said that apache was good, and so I downloaded it. I have it in front of me, but I'm quite lost as to what I'm actually supposed to do to these files to reach my goal.
I was wondering if one of you out there knew of a very helpful tutorial, or if someone might actually be able to help me personally. Right now I have the client on an ftp server, so people have to download that, then play my game. My only goal is to set up this server so that it will allow players to just click on a link on a website and the client load up for them.
Thanks for any help. My AIM screen name is ReptileKing234 My MSN handle is [email protected]
ReptileKing234
A voice of reason in a world gone madThere are different related systems here.
The Apache server is a static http server which can redirect requests to active web servers. Mostly, though, it's designed to serve fixed html pages
To do dynamic html generation you need something called a "servlet engine". The older one is called Apache JServe which is solid, but limited and no longer actively supported. The newer one is Jakarta Tomcat see http://jakarta.apache.org. There's a lot of online documention on that site. Tomcat can be used on it's own or with requests relayed through the apache server.
Maybe you are looking for
-
Acquiring sales data from SAP ERP
(While evaluating Lumira, after watching promoclips, reading papers and working with the free trial some questions are still unanswered. I kindly ask you for help- Supporting a clear structure, I decided to open a separate thread for each question.)
-
Primary Group and Additional Group in Solaris 10
hi! We've just freshly installed a Solaris 10 system. I'm very new in Solaris. There's something i noticed, and i'm not sure whether is that normal. In the user screen in solaris management console, i notice that i'm not able to see the Primary group
-
Trying to migrate to MB from iBook... using ethernet cable - they just can't see each other.. ideas?? Thanks
-
I can't burn dvds on my mac book pro? anyone else?
I can't burn dvds on my macbook pro? I've bought several brands of them in -r & +r format. no luck. they don't even appear on the desktop as an icon when I insert them. I can eject them via disk utility. anyone else had this issue and solved it?
-
Hi, I am new here. I plan on getting a 1299 macbook (white) and the built in wireless is g. My familys wireless network is b so will I need a new router or will it still work? POS emachine Windows XP it *****