OpenSSL Config Solaris 5.04J, Tomcat mod_jk2 connector
Hi everyone,
I'm trying to configure SSL for logins. I have configured the apache server to use SSL, but after a couple clicks (within the imageserver), I see the following message in the apache log files:
[Thu Apr 13 18:49:40 2006] [notice] Apache configured -- resuming normal operations
[Thu Apr 13 18:49:41 2006] [error] mod_jk child init 1 0
[Thu Apr 13 18:49:46 2006] [error] mod_jk child init 1 0
[Thu Apr 13 18:54:06 2006] [notice] child pid 22705 exit signal Bus error (10)
[Thu Apr 13 18:54:11 2006] [notice] child pid 22703 exit signal Bus error (10)
[Thu Apr 13 18:54:24 2006] [notice] child pid 22706 exit signal Bus error (10)
[Thu Apr 13 18:54:24 2006] [error] mod_jk child init 1 0
[Thu Apr 13 18:57:44 2006] [notice] child pid 22763 exit signal Bus error (10)
[Thu Apr 13 18:57:58 2006] [error] mod_jk child init 1 0
And after that point, I can no longer access the https:... pages at all.
I've never seen this in any apache server I've configured. Just wondering if anyone else has and might point me to something...
Thanks in advance,
Jeff Turmelle
IRI of Columbia University
One possibility is that the java path has different versions of java installed in the same place. So one part of java runs with version X and then that piece attempts to use a different piece but that piece is version Y.
Similar Messages
-
Installing openssl on solaris 10
I am trying to install openssl-1.0.0g.tar.gz on solaris 10 but I got this error;
root@sun1 # cd /usr/local/openssl-1.0.0f
root@sun1 # make
making all in crypto...
cc -I. -I.. -I../include -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFC
N_H -xtarget=ultra -xarch=v8plus -xO5 -xstrconst -xdepend -Xa -DB_ENDIAN -DBN_DI
V2W -DOPENSSL_BN_ASM_MONT -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DAES_ASM -c cr
yptlib.c
sh: cc: not found
*** Error code 1
make: Fatal error: Command failed for target `cryptlib.o'
Current working directory /usr/local/openssl-1.0.0f/crypto
*** Error code 1
The following command caused the error:
dir=crypto; target=all; if expr " crypto ssl engines apps test tools " : ".* $di
r " >/dev/null 2>&1; then if [ -d "$dir" ]; then ( cd $dir && echo "making
$target in $dir..." && TOP= && unset TOP ${LIB+LIB} ${LIBS+LIBS} ${INCLU
DE+INCLUDE} ${INCLUDES+INCLUDES} ${DIR+DIR} ${DIRS+DIRS} ${SRC+SRC}
${LIBSRC+LIBSRC} ${LIBOBJ+LIBOBJ} ${ALL+ALL} ${EXHEADER+EXHEADER} ${
HEADER+HEADER} ${GENERAL+GENERAL} ${CFLAGS+CFLAGS} ${ASFLA
GS+ASFLAGS} ${AFLAGS+AFLAGS} ${LDCMD+LDCMD} ${LDFLAGS+LDFLAGS}
${SHAREDCMD+SHAREDCMD} ${SHAREDFLAGS+SHAREDFLAGS} ${SHARED_LIB+SH
ARED_LIB} ${LIBEXTRAS+LIBEXTRAS} && make -e PLATFORM='solaris-sparcv9-cc' PROCES
SOR='' CC='cc' CFLAG='-DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H
-xtarget=ultra -xarch=v8plus -xO5 -xstrconst -xdepend -Xa -DB_ENDIAN -DBN_DIV2W
-DOPENSSL_BN_ASM_MONT -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DAES_ASM'
AS='cc' ASFLAG='-DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN
H -xtarget=ultra -xarch=v8plus -xO5 -xstrconst -xdepend -Xa -DBENDIAN -DBN_DIV
2W -DOPENSSL_BN_ASM_MONT -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DAES_ASM -c'
AR='ar r' NM='nm' RANLIB='/usr/ccs/bin/ranlib' CROSS_C
OMPILE='' PERL='/usr/bin/perl' ENGDIRS='ccgost' SDIRS='objects
md4 md5 sha mdc2 hmac ripemd whrlpool des aes rc2 rc4 idea bf cast camellia se
ed modes bn ec rsa dsa ecdsa dh ecdh dso engine buffer bio stack lhash rand er
r evp asn1 pem x509 x509v3 conf txt_db pkcs7 pkcs12 comp ocsp ui krb5 cms pque
ue ts' LIBRPATH='/usr/local/ssl/lib' INSTALL_PREFIX='' INSTALL
TOP='/usr/local/ssl' OPENSSLDIR='/usr/local/ssl' LIBDIR='lib'
MAKEDEPEND='$${TOP}/util/domd $${TOP} -MD makedepend' DEPFLAG=
'-DOPENSSL_NO_DEPRECATED -DOPENSSL_NO_GMP -DOPENSSL_NO_JPAKE -DOPENSSL_NO_MD2 -D
OPENSSL_NO_RC5 -DOPENSSL_NO_RFC3779 -DOPENSSL_NO_STORE' MAKEDEPPROG='makedepend
' SHARED_LDFLAGS='-G -dy -z text' KRB5_IN
CLUDES='' LIBKRB5='' ZLIB_INCLUDE='' LIBZLIB='' EXE_EXT='' SHARED_LIBS=
'' SHLIB_EXT='.so.1.0.0' SHLIB_TARGET='solaris-shared' PEX_LIBS='' EX_
LIBS='-lsocket -lnsl -ldl' CPUID_OBJ='sparcv9cap.o sparccpuid.o'
BN_ASM='bn-sparcv9.o sparcv9-mont.o sparcv9a-mont.o' DES_ENC='des_enc-s
parc.o fcrypt_b.o' AES_ENC='aes_core.o aes_cbc.o aes-sparcv9.o' CMLL_ENC='
camellia.o cmll_misc.o cmll_cbc.o' BF_ENC='bf_enc.o' CAST_ENC='c_enc.o'
RC4_ENC='rc4_enc.o rc4_skey.o' RC5_ENC='rc5_enc.o' SHA1_ASM_OBJ='sha1-spar
cv9.o sha256-sparcv9.o sha512-sparcv9.o' MD5_ASM_OBJ=''
RMD160_ASM_OBJ='' WP_ASM_OBJ='wp_block.o'
PERLASM_SCHEME='void' THIS=${THIS:-build_crypto} MAKE
FILE=Makefile MAKEOVERRIDES= TOP=.. DIR=$dir $target ) || exit 1; fi; fi
make: Fatal error: Command failed for target `build_crypto'
root@sun1 #
I run make report and got the following:
root@sun1 # make report
Use of uninitialized value in pattern match (m//) at util/selftest.pl line 52.
Use of uninitialized value in pattern match (m//) at util/selftest.pl line 53.
Use of uninitialized value in string eq at util/selftest.pl line 54.
Can't exec "cc": No such file or directory at util/selftest.pl line 54.
Use of uninitialized value in substitution (s///) at util/selftest.pl line 55.
Use of uninitialized value in substitution (s///) at util/selftest.pl line 56.
Use of uninitialized value in scalar chomp at util/selftest.pl line 57.
Use of uninitialized value in concatenation (.) or string at util/selftest.pl li
ne 76.
Checking compiler...
Can't exec "cc": No such file or directory at util/selftest.pl line 83.
Can't exec "./cctest": No such file or directory at util/selftest.pl line 84.
Use of uninitialized value in pattern match (m//) at util/selftest.pl line 84.
OpenSSL self-test report:
OpenSSL version: 1.0.0f
Last change: Nadhem Alfardan and Kenny Paterson have discovered an e...
Options: no-gmp no-jpake no-krb5 no-md2 no-rc5 no-rfc3779 no-shared no
-store no-zlib no-zlib-dynamic static-engine
OS (uname): SunOS bio1 5.10 Generic_144488-01 sun4v sparc SUNW,SPARC-Enter
prise-T5120
OS (config): sun4v-whatever-solaris2
Target (default): solaris-sparcv9-cc
Target: solaris-sparcv9-cc
Compiler:
Compiler doesn't work.
Please ask your system administrator/vendor for more information.
[Problems with your operating system setup should not be reported
to the OpenSSL project.]
Test report in file testlog
when I run gcc -version I got the command not found but I check with pkginfo -i gcc and it is installed . I also add /usr/local/bin to the ./profile path but same problem.
any idea please.
Edited by: Hani on Jan 20, 2012 11:37 AMI have installed openssl-1.0.0e-sol10-sparc-local in my hosts and it is working, this can be installed with pkgadd.
-
Solaris 2 running tomcat 4.1
I'm having some problems with running servlets in tomcat. I have my webapp setup properly with WEB-INF/classes, but when i try to browse to one of my servlets, tomcat can't find the specifed resource. Just wondering if I need to set something in an xml file (besides context) that will allow acces to my servlets.
this is how I have setup. I can browse to jsp, but can't access the servlets.
webapps/mywebapp/.jsp files
webapps/mywebapp/WEB-INF/classes
webapps/mywebapp/WEB-INF/web.xml
webapps/mywebapp/WEB-INF/classes/mypackagefiles
any suggestions of what I could try?charliesims wrote:
Assume you hvae the following directory structure:
ApacheTomcat4.0/webapps/yourwebappname/WEB-INF/classes
To access these files try:
http://yourhost/yourwebappname/servlet/YourServletName
servlet is not an actual directory but this is how you get to
your class filesYes this is what I have been doing with my webapps. If I set this same thing up on a windows box it works, but the same setup on solaris is not able to find the servlets. Perplexed at this situation. -
Oracle-Java-Apache-Tomcat-JK connector configuration help...
Windows 7 Ultimate 64-bit
Oracle 12c
Java 8
Apache HTTP server 2.4.10
Tomcat 8.0.15
JK Connector 1.2.40
Here are the main configuration files httpd.conf, mod_jk.conf, server.xml, and workers.properties.
When I browse to a .jsp file, it appears to be read as html, thus not reading <jsp:include> statements as such.
Please suggest minimum configuration.
httpd.conf
Define SRVROOT "/apache"
ServerRoot "${SRVROOT}"
Listen 80
LoadModule actions_module modules/mod_actions.so
LoadModule alias_module modules/mod_alias.so
LoadModule allowmethods_module modules/mod_allowmethods.so
LoadModule asis_module modules/mod_asis.so
LoadModule auth_basic_module modules/mod_auth_basic.so
LoadModule authn_core_module modules/mod_authn_core.so
LoadModule authn_file_module modules/mod_authn_file.so
LoadModule authz_core_module modules/mod_authz_core.so
LoadModule authz_groupfile_module modules/mod_authz_groupfile.so
LoadModule authz_host_module modules/mod_authz_host.so
LoadModule authz_user_module modules/mod_authz_user.so
LoadModule autoindex_module modules/mod_autoindex.so
LoadModule cgi_module modules/mod_cgi.so
LoadModule dir_module modules/mod_dir.so
LoadModule env_module modules/mod_env.so
LoadModule include_module modules/mod_include.so
LoadModule isapi_module modules/mod_isapi.so
LoadModule log_config_module modules/mod_log_config.so
LoadModule mime_module modules/mod_mime.so
LoadModule negotiation_module modules/mod_negotiation.so
LoadModule setenvif_module modules/mod_setenvif.so
LoadModule socache_shmcb_module modules/mod_socache_shmcb.so
LoadModule ssl_module modules/mod_ssl.so
ServerName localhost:80
#experimental section starts here
#experimental section ends here
# Virtual hosts
NameVirtualHost *
Include conf/mod_jk.conf
mod_jk.conf
LoadModule jk_module modules/mod_jk.so
JkWorkersFile "c:/tomcat/conf/jk/workers.properties"
JkMount /servlet/* ajp13
JkMount /*.jsp ajp13
<VirtualHost *>
ServerName om1001001.omnisocial.com
DocumentRoot "c:/data/fxality/java001"
</VirtualHost>
<VirtualHost *>
ServerName om1001002.omnisocial.com
DocumentRoot "c:/data/fxality/java002"
</VirtualHost>
<VirtualHost *>
ServerName om1001003.omnisocial.com
DocumentRoot "c:/data/fxality/java003"
</VirtualHost>
server.xml
<?xml version='1.0' encoding='utf-8'?>
<Server port="8005" shutdown="SHUTDOWN">
<GlobalNamingResources>
<Resource name="UserDatabase" auth="Container"
type="org.apache.catalina.UserDatabase"
description="User database that can be updated and saved"
factory="org.apache.catalina.users.MemoryUserDatabaseFactory"
pathname="conf/tomcat-users.xml" />
</GlobalNamingResources>
<Service name="Catalina">
<Connector port="8080" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="8443" />
<Connector port="8009" protocol="AJP/1.3" redirectPort="8443" />
<Engine name="Catalina" defaultHost="localhost">
<Realm className="org.apache.catalina.realm.UserDatabaseRealm" resourceName="UserDatabase"/></Realm>
<Host name="localhost" appBase="webapps"/>
<Host name="om1001001.omnisocial.com" appBase="c:/data/fxality/java001">
<Context path="" docBase=""></Context>
</Host>
<Host name="om1001002.omnisocial.com" appBase="c:/data/fxality/java002">
<Context path="" docBase=""></Context>
</Host>
<Host name="om1001003.omnisocial.com" appBase="c:/data/fxality/java003">
<Context path="" docBase=""></Context>
</Host>
</Engine>
</Service>
</Server>
workers.properties
# BEGIN workers.properties
# Definition for Ajp13 worker
worker.list=ajp13
worker.ajp13.type=ajp13
worker.ajp13.host=localhost
worker.ajp13.port=8009
# END workers.propertiesI haven't studied your problem in detail and don't actually use Tomcat 6, but in earlier versions of Tomcat the handling of JNDI leaves a lot to be desired. If you search this forum for posts about Tomcat and JNDI, you will find some useful information.
One thing I found was that you really need to use the context.xml file in your Meta-inf directory, putting the datasource anywhere else gets into one kind of trouble or another. I tried using server.xml, a context file for the application and the web-inf file. -
Hi,
Can any one provide me the procedure/steps to upgrade the OpenSSL version from 0.9.7d to 0.9.8za in Solaris 9 ?
I did Google search on this. But unfortunately didn't get any documents/answers regarding this.
Thanks in advanceAs these both version are incompatible in term of API, we don't provide it. But, you can still find and download from internet like from the Sunfreeware website or from one of these mirrors.
-
How to config the CLASSPATH for Tomcat 4.0???
I use a JavaBean in a JSP file. And I use this JavaBean to connect to Oracle. Database username and password is stored in a file named "db.properties". When I browse this JSP page, It report : Cant not find db.properties file!!!
So I want know is where can I put this "db.properties"??Do I need config CLASSPATH or other para??
need your help!!
Thanks in advance!!!did you try to put it into the /lib/ directory of your webapplication ?
I would solve this differently, I would create a servlet that takes initial parameters and puts them into the servlet context. then I would use that to put these information into the servletcontext.
Then you would not have to load a properties file everytime u access the jsp pages that does the database related procedure.
Maybe there is some place for system properties files, but this place I have not seen or how to work with it.
I place my configuration files all under web-inf/config/ and then I mapp paths to it and read as the web application starts.
hope it helps.
-reynir -
Hello, I have a SUN V120 sparc and I want to change the IP_address, actually the machine has 2 IP address and one Virtual IP address, somebody know how I can change this IP_address?
Also check/edit /etc/hostname.* to make sure it doesn't have hardcoded IP-address (better put a [interface]name there and rely on /etc/hosts as the only place for local addresses.
eg: put "eri0" in /etc/hostname.eri0 and append eri0 to the corresponding line in /etc/hosts -
Mod_jk for apache2, tomcat 5 and solaris 10
when i compile mod_jk in solaris 10 x86 box it shows following error:
/bin/bash /var/apache2/build/libtool --silent
--mode=compile gcc -I/usr/apache2/include -g -O2 -O
-xarch=386 -xchip=pentium -xspace -Xa -xildoff
-DSSL_EXPERIMENTAL -DSSL_ENGINE -DHAVE_APR
-I/usr/share/src/apache2/srclib/apr/include
-I/usr/share/src/apache2/srclib/apr-util/include -g
-O2 -DSOLARIS2=10 -D_POSIX_PTHREAD_SEMANTICS
-D_REENTRANT -I /usr/jdk/entsys-j2se/include -I
/usr/jdk/entsys-j2se/include/ -c jk_ajp12_worker.c -o
jk_ajp12_worker.lo
gcc: unrecognized option `-Xa'
gcc: unrecognized option `-KPIC'
gcc: language ildoff not recognized
gcc: jk_ajp12_worker.c: linker input file unused
because linking not done
mv: cannot access .libs/jk_ajp12_worker.lo
*** Error code 2
make: Fatal error: Command failed for target
`jk_ajp12_worker.lo'
Current working directory
/Desktop/jakarta-tomcat-connectors-1.2.14.1-src/jk/native/common
*** Error code 1
The following command caused the error:
set fnord $MAKEFLAGS; amf=$2; \
dot_seen=no; \
target=`echo all-recursive | sed s/-recursive//`; \
list='common apache-2.0'; for subdir in $list; do \
echo "Making $target in $subdir"; \
if test "$subdir" = "."; then \
dot_seen=yes; \
local_target="$target-am"; \
else \
local_target="$target"; \
fi; \
(cd $subdir && make $local_target) \
|| case "$amf" in *=*) exit 1;; k) fail=yes;; *)
exit 1;; esac; \
done; \
if test "$dot_seen" = "no"; then \
make "$target-am" || exit 1; \
fi; test -z "$fail"
make: Fatal error: Command failed for target `all-recursive'
i'm using apache 2 that is included in solaris 10 package, tomcat 5.5.17 and jakarta-tomcat-connectors-1.2.15.
please help.
mnioHi
i am also face problem in mod_jk for apache 2.2.0
I have done installation of apache 2.2.0 on Solaris 10_x86 .Problem in Solaris OS .But i face problem in tomcat connecter on Solaris 10_x86.
I make theses step in Solaris 10.
I download connector tomcat-connectors-1.2.25-src.tar.gz
# gunzip tomcat-connectors-1.2.25-src.tar.gz
# cd \tomcat-connectors-1.2.25-src\native
#./ buildconf.sh
# ./configure - - with - -apxs=/usr/local/apache2/bin/apxs after run this command make new file.File name is Makefile
Edit in Makefile and parameter -Wl,-brtl
Run make command for tomcat-connectors (mod_jk) compiling
bash-3.00# make
Making all in common
/usr/local/apr/build-1/libtool silent mode=compile gcc -I/usr/local/apache2/include -g -O2 -L/usr/local/lib -R/usr/local/lib -L/usr/local/ssl/lib -R/usr/local/ssl/lib -L/usr/openwin/lib -R/usr/openwin/lib -DHAVE_APR -I/usr/local/apr/include/apr-1 -I/usr/local/apr/include/apr-1 -g -O2 -DSOLARIS2=10 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -D_LARGEFILE64_SOURCE -I /include -I /include/ -c jk_ajp12_worker.c -o jk_ajp12_worker.lo
/usr/local/apr/build-1/libtool[384]: /usr/local/bin/sed: not found
/usr/local/apr/build-1/libtool[384]: /usr/local/bin/sed: not found
/usr/local/apr/build-1/libtool[709]: /usr/local/bin/sed: not found
*** Warning: inferring the mode of operation is deprecated.
*** Future versions of Libtool will require --mode=MODE be specified.
/usr/local/apr/build-1/libtool[1003]: /usr/local/bin/sed: not found
/usr/local/apr/build-1/libtool[1003]: /usr/local/bin/sed: not found
/usr/local/apr/build-1/libtool[1003]: /usr/local/bin/sed: not found
/usr/local/apr/build-1/libtool[1003]: /usr/local/bin/sed: not found
/usr/local/apr/build-1/libtool[1003]: /usr/local/bin/sed: not found
/usr/local/apr/build-1/libtool[1003]: /usr/local/bin/sed: not found
/usr/local/apr/build-1/libtool[1003]: /usr/local/bin/sed: not found
/usr/local/apr/build-1/libtool[1003]: /usr/local/bin/sed: not found
/usr/local/apr/build-1/libtool[1003]: /usr/local/bin/sed: not found
/usr/local/apr/build-1/libtool[1003]: /usr/local/bin/sed: not found
/usr/local/apr/build-1/libtool[1003]: /usr/local/bin/sed: not found
/usr/local/apr/build-1/libtool[1003]: /usr/local/bin/sed: not found
/usr/local/apr/build-1/libtool[1003]: /usr/local/bin/sed: not found
/usr/local/apr/build-1/libtool[1003]: /usr/local/bin/sed: not found
/usr/local/apr/build-1/libtool[1003]: /usr/local/bin/sed: not found
/usr/local/apr/build-1/libtool[1003]: /usr/local/bin/sed: not found
/usr/local/apr/build-1/libtool[1003]: /usr/local/bin/sed: not found
/usr/local/apr/build-1/libtool[1003]: /usr/local/bin/sed: not found
/usr/local/apr/build-1/libtool[1003]: /usr/local/bin/sed: not found
/usr/local/apr/build-1/libtool[1003]: /usr/local/bin/sed: not found
/usr/local/apr/build-1/libtool[1003]: /usr/local/bin/sed: not found
/usr/local/apr/build-1/libtool[1003]: /usr/local/bin/sed: not found
/usr/local/apr/build-1/libtool[1003]: /usr/local/bin/sed: not found
/usr/local/apr/build-1/libtool[1003]: /usr/local/bin/sed: not found
/usr/local/apr/build-1/libtool[1054]: /usr/local/bin/sed: not found
: compile: cannot determine name of library object from `'
*** Error code 1
make: Fatal error: Command failed for target `jk_ajp12_worker.lo'
Current working directory /export/home/apache/tomcat-connectors-1.2.25-src/native/common
*** Error code 1
The following command caused the error:
failcom='exit 1'; \
for f in x $MAKEFLAGS; do \
case $f in \
*=* | --[!k]*);; \
k) failcom='fail=yes';; \
esac; \
done; \
dot_seen=no; \
target=`echo all-recursive | sed s/-recursive//`; \
list='common apache-2.0'; for subdir in $list; do \
echo "Making $target in $subdir"; \
if test "$subdir" = "."; then \
dot_seen=yes; \
local_target="$target-am"; \
else \
local_target="$target"; \
fi; \
(cd $subdir && make $local_target) \
|| eval $failcom; \
done; \
if test "$dot_seen" = "no"; then \
make "$target-am" || exit 1; \
fi; test -z "$fail"
make: Fatal error: Command failed for target `all-recursive'
Please help me. My E-mail ID is [email protected] -
Revision: 16148
Revision: 16148
Author: [email protected]
Date: 2010-05-17 06:40:40 -0700 (Mon, 17 May 2010)
Log Message:
Update config testsuite on 4.0.0_fixes branch to force kill the app server before running any tests when the app server is Tomcat. The regression runs were hanging on this branch when going to run the config suite because the Tomcat server isn't shutting down cleanly at the end of the MXUnit run. I believe this is an issue with the version of ActiveMQ we are using. Since I don't think we want to update ActiveMQ on this branch force killing the Tomcat server will workaround the problem.
Modified Paths:
blazeds/branches/4.0.0_fixes/qa/apps/qa-regress/testsuites/config/build.xmlHi,
Thanks for the reply. I have tried this on another machine running the same version of Blackboard. It works fine.
Only difference is that the machine that has the JVM crash is running on Fujitsu PrimePower and the OS is Solaris 9 (but twigged for PrimePower).
The one where it runs and starts up successfully is running on SunFire (OS is Solaris 10).
I am wondering if there is a problem with the JVM loading required libraries because of the OS being different versions.
Any leads on this is welcomed. Thank you.
Regards,
Hon Peng
===================
On Fujitsu Primepower
SunOS 5.9 Generic_118558-33 sun4us sparc FJSV,GPUS
the Dependencies for libjvm.so are as follows:
===================
bash-2.05$ ldd -r libjvm.so
libsocket.so.1 => /usr/lib/libsocket.so.1
libsched.so.1 => /usr/lib/libsched.so.1
libdl.so.1 => /usr/lib/libdl.so.1
libCrun.so.1 => /usr/lib/libCrun.so.1
libm.so.1 => /usr/lib/libm.so.1
libthread.so.1 => /usr/lib/libthread.so.1
libc.so.1 => /usr/lib/libc.so.1
libnsl.so.1 => /usr/lib/libnsl.so.1
libmp.so.2 => /usr/lib/libmp.so.2
/usr/platform/FJSV,GPUS/lib/libc_psr.so.1
=====================================
On SunFire, Sun machine
SunOS 5.10 Generic_118833-36 sun4u sparc SUNW,Sun-Fire-280R
the dependencies are different for the libjvm.so:
=====================================
bash-2.05$ ldd -r libjvm.so
libsocket.so.1 => /lib/libsocket.so.1
libsched.so.1 => /usr/lib/libsched.so.1
libdl.so.1 => /lib/libdl.so.1
libCrun.so.1 => /usr/lib/libCrun.so.1
libm.so.1 => /lib/libm.so.1
libthread.so.1 => /lib/libthread.so.1
libc.so.1 => /lib/libc.so.1
libnsl.so.1 => /lib/libnsl.so.1
libmp.so.2 => /lib/libmp.so.2
libmd5.so.1 => /lib/libmd5.so.1
libscf.so.1 => /lib/libscf.so.1
libdoor.so.1 => /lib/libdoor.so.1
libuutil.so.1 => /lib/libuutil.so.1
/platform/SUNW,Sun-Fire-280R/lib/libc_psr.so.1
libm.so.2 => /lib/libm.so.2
/platform/SUNW,Sun-Fire-280R/lib/libmd5_psr.so.1 -
"Unable to open config file" Error when starting tomcat
hi all,
Here is the output from two of the log files when I start tomcat4 on my linux box. I have configured the mod_jk on the tomcat side.
From the output of the second log file, it seems that the ajp13 worker I defined was started successfully. What I don't understand is the following:
1) In catalina.out, where des the line 'Unable to open config file' come from? Which config file?
2) Tomcat4 is supposed to generate a mod_jk.conf automatically, but I don't see any file generated in 'conf/auto/'.
Content of 'catalina.out'
Unable to open config file
Starting service Tomcat-Standalone
Apache Tomcat/4.0.4
Unable to open config file
Starting service Tomcat-Apache
Apache Tomcat/4.0.4content of 'catalina_log.2002-08-16.txt'
2002-08-16 01:05:22 HttpConnector Opening server socket on all host IP addresses
2002-08-16 01:05:28 Ajp13Connector[8009] Opening server socket on all host IP addresses
2002-08-16 01:05:28 Ajp13Connector[8009] Starting background thread
2002-08-16 01:05:29 Ajp13Processor[8009][0] Starting background thread
2002-08-16 01:05:29 Ajp13Processor[8009][1] Starting background thread
2002-08-16 01:05:29 Ajp13Processor[8009][2] Starting background thread
2002-08-16 01:05:29 Ajp13Processor[8009][3] Starting background thread
2002-08-16 01:05:29 Ajp13Processor[8009][4] Starting background threadI have all those files too.
I think the 'config file' mentioned in the error log is the mod_jk.conf.
On Jason Hunter's tomcat4 guide, it says don't use the tomcat4 RPM to installed. What is the difference bettween the RPM version and the tar.gz version? The only difference I can think of is that in the RPM version, the conf directory is in the 'etc/tomcat4/conf'. Could it be the reason that tomcat4 cannot read the config file? But it has no problem reading the server.xml though. -
Help required in ajp13 connector with sun java system webserver7 - tomcat
HI,
I am trying to configure the tomcat ajp13 connector. It redirects perfectly and i can get the tomcat html page. But i am not able to access any jsp files.
It says 404 always. Even i removed the html file, so i thought it will pickup index.jsp but it still says no html found.
Any help on this would be appreciated.
# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
# You can edit this file, but comments and formatting changes
# might be lost when you use the administration GUI or CLI.
<Object name="default">
AuthTrans fn="match-browser" browser="*MSIE*" ssl-unclean-shutdown="true"
NameTrans fn="ntrans-j2ee" name="j2ee"
NameTrans fn="pfx2dir" from="/mc-icons" dir="C:/Program Files/Oracle/WebServer7/lib/icons" name="es-internal"
NameTrans fn="assign-name" from="/*" name="jknsapi"
NameTrans fn="assign-name" from="/*.jsp/" name="jknsapi"
NameTrans fn="assign-name" from="/servlet/*" name="jknsapi"
PathCheck fn="uri-clean"
PathCheck fn="check-acl" acl="default"
PathCheck fn="find-pathinfo"
PathCheck fn="find-index-j2ee"
PathCheck fn="find-index" index-names="index.html,index.jsp,home.html"
PathCheck fn=validate_session_policy
ObjectType fn="type-j2ee"
ObjectType fn="type-by-extension"
ObjectType fn="force-type" type="text/plain"
Service method="(GET|HEAD)" type="magnus-internal/directory" fn="index-common"
Service method="(GET|HEAD|POST)" type="*~magnus-internal/*" fn="send-file"
Service method="TRACE" fn="service-trace"
Error fn="error-j2ee"
AddLog fn="flex-log"
</Object>
<Object name="j2ee">
Service fn="service-j2ee" method="*"
</Object>
<Object name="es-internal">
PathCheck fn="check-acl" acl="es-internal"
</Object>
<Object name="cgi">
ObjectType fn="force-type" type="magnus-internal/cgi"
Service fn="send-cgi"
</Object>
<Object name="jknsapi">
ObjectType fn="force-type" type="text/plain"
Service fn="jk_service" method="*" worker="worker1"
</Object>
<Object name="send-precompressed">
PathCheck fn="find-compressed"
</Object>
<Object name="compress-on-demand">
Output fn="insert-filter" filter="http-compression"
</Object>
<Object ppath="*/dummypost/sunpostpreserve*">
Service type=text/* method=(GET|POST) fn=append_post_data
</Object>
<Object ppath="*/UpdateAgentCacheServlet*">
Service type=text/* method=(POST) fn=process_notification
</Object>remove
NameTrans fn="ntrans-j2ee" name="j2ee" -
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 -
Need to enable feature of servlet reloading in Tomcat
Hello
I wants to enable autoreload feature in tomcat so that i need not to stop tomcat web server again and again
ThanksHi,
As the above information i tried to add line <DefaultContext reloadable="true" />. But it is not working for me.
Here is my server.xml file.
<?xml version='1.0' encoding='utf-8'?>
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<!-- Note: A "Server" is not itself a "Container", so you may not
define subcomponents such as "Valves" at this level.
Documentation at /docs/config/server.html
-->
<Server port="8005" shutdown="SHUTDOWN">
<!--APR library loader. Documentation at /docs/apr.html -->
<Listener className="org.apache.catalina.core.AprLifecycleListener" SSLEngine="on" />
<!--Initialize Jasper prior to webapps are loaded. Documentation at /docs/jasper-howto.html -->
<Listener className="org.apache.catalina.core.JasperListener" />
<!-- JMX Support for the Tomcat server. Documentation at /docs/non-existent.html -->
<Listener className="org.apache.catalina.mbeans.ServerLifecycleListener" />
<Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" />
<!-- Global JNDI resources
Documentation at /docs/jndi-resources-howto.html
-->
<GlobalNamingResources>
<!-- Editable user database that can also be used by
UserDatabaseRealm to authenticate users
-->
<Resource name="UserDatabase" auth="Container"
type="org.apache.catalina.UserDatabase"
description="User database that can be updated and saved"
factory="org.apache.catalina.users.MemoryUserDatabaseFactory"
pathname="conf/tomcat-users.xml" />
</GlobalNamingResources>
<!-- A "Service" is a collection of one or more "Connectors" that share
a single "Container" Note: A "Service" is not itself a "Container",
so you may not define subcomponents such as "Valves" at this level.
Documentation at /docs/config/service.html
-->
<Service name="Catalina">
<!-- Define properties for each web application -->
<DefaultContext reloadable="true" />
<!--The connectors can use a shared executor, you can define one or more named thread pools-->
<!--
<Executor name="tomcatThreadPool" namePrefix="catalina-exec-"
maxThreads="150" minSpareThreads="4"/>
-->
<!-- A "Connector" represents an endpoint by which requests are received
and responses are returned. Documentation at :
Java HTTP Connector: /docs/config/http.html (blocking & non-blocking)
Java AJP Connector: /docs/config/ajp.html
APR (HTTP/AJP) Connector: /docs/apr.html
Define a non-SSL HTTP/1.1 Connector on port 8080
-->
<Connector port="8080" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443" />
<!-- A "Connector" using the shared thread pool-->
<!--
<Connector executor="tomcatThreadPool"
port="8080" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443" />
-->
<!-- Define a SSL HTTP/1.1 Connector on port 8443
This connector uses the JSSE configuration, when using APR, the
connector should be using the OpenSSL style configuration
described in the APR documentation -->
<!--
<Connector port="8443" protocol="HTTP/1.1" SSLEnabled="true"
maxThreads="150" scheme="https" secure="true"
clientAuth="false" sslProtocol="TLS" />
-->
<!-- Define an AJP 1.3 Connector on port 8009 -->
<Connector port="8009" protocol="AJP/1.3" redirectPort="8443" />
<!-- An Engine represents the entry point (within Catalina) that processes
every request. The Engine implementation for Tomcat stand alone
analyzes the HTTP headers included with the request, and passes them
on to the appropriate Host (virtual host).
Documentation at /docs/config/engine.html -->
<!-- You should set jvmRoute to support load-balancing via AJP ie :
<Engine name="Catalina" defaultHost="localhost" jvmRoute="jvm1">
-->
<Engine name="Catalina" defaultHost="localhost">
<!--For clustering, please take a look at documentation at:
/docs/cluster-howto.html (simple how to)
/docs/config/cluster.html (reference documentation) -->
<!--
<Cluster className="org.apache.catalina.ha.tcp.SimpleTcpCluster"/>
-->
<!-- The request dumper valve dumps useful debugging information about
the request and response data received and sent by Tomcat.
Documentation at: /docs/config/valve.html -->
<!--
<Valve className="org.apache.catalina.valves.RequestDumperValve"/>
-->
<!-- This Realm uses the UserDatabase configured in the global JNDI
resources under the key "UserDatabase". Any edits
that are performed against this UserDatabase are immediately
available for use by the Realm. -->
<Realm className="org.apache.catalina.realm.UserDatabaseRealm"
resourceName="UserDatabase"/>
<!-- Define the default virtual host
Note: XML Schema validation will not work with Xerces 2.2.
-->
<Host name="localhost" appBase="webapps"
unpackWARs="true" autoDeploy="true"
xmlValidation="false" xmlNamespaceAware="false">
<!-- SingleSignOn valve, share authentication between web applications
Documentation at: /docs/config/valve.html -->
<!--
<Valve className="org.apache.catalina.authenticator.SingleSignOn" />
-->
<!-- Access log processes all example.
Documentation at: /docs/config/valve.html -->
<!--
<Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs"
prefix="localhost_access_log." suffix=".txt" pattern="common" resolveHosts="false"/>
-->
</Host>
</Engine>
</Service>
</Server>
Can anyone tell me what i need to do to enable reloading?
Thanks,
Ram. -
I create an ADF application and deploy it as a war file using Jdev 11.1.1.3. Then, I add this war file to C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps
I add the following jar files to C:\Program Files\Apache Software Foundation\Tomcat 6.0\lib
I change context.xml and server.xml
However, the jspx page cannot be showed.
---------------context.xml-----------------------
<?xml version='1.0' encoding='utf-8'?>
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<!-- The contents of this file will be loaded for each web application -->
<Context>
<!-- Default set of monitored resources -->
<WatchedResource>WEB-INF/web.xml</WatchedResource>
<!-- Uncomment this to disable session persistence across Tomcat restarts -->
<!--
<Manager pathname="" />
-->
<!-- Uncomment this to enable Comet connection tacking (provides events
on session expiration as well as webapp lifecycle) -->
<!--
<Valve className="org.apache.catalina.valves.CometConnectionManagerValve" />
-->
<ResourceLink global="jdbc/obpmdir" name="jdbc/obpmdir"
type="oracle.jdbc.pool.OracleDataSource"/>
</Context>
------------------server.xml--------------------------------
<?xml version='1.0' encoding='utf-8'?>
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<!-- Note: A "Server" is not itself a "Container", so you may not
define subcomponents such as "Valves" at this level.
Documentation at /docs/config/server.html
-->
<Server port="8005" shutdown="SHUTDOWN">
<!--APR library loader. Documentation at /docs/apr.html -->
<Listener className="org.apache.catalina.core.AprLifecycleListener" SSLEngine="on" />
<!--Initialize Jasper prior to webapps are loaded. Documentation at /docs/jasper-howto.html -->
<Listener className="org.apache.catalina.core.JasperListener" />
<!-- Prevent memory leaks due to use of particular java/javax APIs-->
<Listener className="org.apache.catalina.core.JreMemoryLeakPreventionListener" />
<!-- JMX Support for the Tomcat server. Documentation at /docs/non-existent.html -->
<Listener className="org.apache.catalina.mbeans.ServerLifecycleListener" />
<Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" />
<!-- Global JNDI resources
Documentation at /docs/jndi-resources-howto.html
-->
<GlobalNamingResources>
<!-- Editable user database that can also be used by
UserDatabaseRealm to authenticate users
-->
<Resource name="UserDatabase" auth="Container"
type="org.apache.catalina.UserDatabase"
description="User database that can be updated and saved"
factory="org.apache.catalina.users.MemoryUserDatabaseFactory"
pathname="conf/tomcat-users.xml" />
</GlobalNamingResources>
<GlobalNamingResources>
<Resource name="UserDatabase" auth="Container"
type="org.apache.catalina.UserDatabase" description="User db that can be updated and saved"
factory="org.apache.catalina.users.MemoryUserDatabaseFactory"
pathname="conf/tomcat-users.xml"/>
<Resource name="jdbc/obpmdir" auth="Container"
type="oracle.jdbc.pool.OracleDataSource"
driverClassName="oracle.jdbc.driver.OracleDriver"
factory="oracle.jdbc.pool.OracleDataSourceFactory"
url="jdbc:oracle:thic:@192.168.1.9:1521:sunz" user="obpmdir" password="welcome1" maxActive="20"
maxldle="10" maxWait="-1"/>
</GlobalNamingResources>
<!-- A "Service" is a collection of one or more "Connectors" that share
a single "Container" Note: A "Service" is not itself a "Container",
so you may not define subcomponents such as "Valves" at this level.
Documentation at /docs/config/service.html
-->
<Service name="Catalina">
<!--The connectors can use a shared executor, you can define one or more named thread pools-->
<!--
<Executor name="tomcatThreadPool" namePrefix="catalina-exec-"
maxThreads="150" minSpareThreads="4"/>
-->
<!-- A "Connector" represents an endpoint by which requests are received
and responses are returned. Documentation at :
Java HTTP Connector: /docs/config/http.html (blocking & non-blocking)
Java AJP Connector: /docs/config/ajp.html
APR (HTTP/AJP) Connector: /docs/apr.html
Define a non-SSL HTTP/1.1 Connector on port 8080
-->
<Connector port="8081" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443" />
<!-- A "Connector" using the shared thread pool-->
<!--
<Connector executor="tomcatThreadPool"
port="8080" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443" />
-->
<!-- Define a SSL HTTP/1.1 Connector on port 8443
This connector uses the JSSE configuration, when using APR, the
connector should be using the OpenSSL style configuration
described in the APR documentation -->
<!--
<Connector port="8443" protocol="HTTP/1.1" SSLEnabled="true"
maxThreads="150" scheme="https" secure="true"
clientAuth="false" sslProtocol="TLS" />
-->
<!-- Define an AJP 1.3 Connector on port 8009 -->
<Connector port="8009" protocol="AJP/1.3" redirectPort="8443" />
<!-- An Engine represents the entry point (within Catalina) that processes
every request. The Engine implementation for Tomcat stand alone
analyzes the HTTP headers included with the request, and passes them
on to the appropriate Host (virtual host).
Documentation at /docs/config/engine.html -->
<!-- You should set jvmRoute to support load-balancing via AJP ie :
<Engine name="Catalina" defaultHost="localhost" jvmRoute="jvm1">
-->
<Engine name="Catalina" defaultHost="localhost">
<!--For clustering, please take a look at documentation at:
/docs/cluster-howto.html (simple how to)
/docs/config/cluster.html (reference documentation) -->
<!--
<Cluster className="org.apache.catalina.ha.tcp.SimpleTcpCluster"/>
-->
<!-- The request dumper valve dumps useful debugging information about
the request and response data received and sent by Tomcat.
Documentation at: /docs/config/valve.html -->
<!--
<Valve className="org.apache.catalina.valves.RequestDumperValve"/>
-->
<!-- This Realm uses the UserDatabase configured in the global JNDI
resources under the key "UserDatabase". Any edits
that are performed against this UserDatabase are immediately
available for use by the Realm. -->
<Realm className="org.apache.catalina.realm.UserDatabaseRealm"
resourceName="UserDatabase"/>
<!-- Define the default virtual host
Note: XML Schema validation will not work with Xerces 2.2.
-->
<Host name="localhost" appBase="webapps"
unpackWARs="true" autoDeploy="true"
xmlValidation="false" xmlNamespaceAware="false">
<!-- SingleSignOn valve, share authentication between web applications
Documentation at: /docs/config/valve.html -->
<!--
<Valve className="org.apache.catalina.authenticator.SingleSignOn" />
-->
<!-- Access log processes all example.
Documentation at: /docs/config/valve.html -->
<!--
<Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs"
prefix="localhost_access_log." suffix=".txt" pattern="common" resolveHosts="false"/>
-->
</Host>
</Engine>
</Service>
</Server>
---------------------------------------jar-----------------------------------
adf-controller-api.jar
adf-controller-rt-common.jar
adf-controller.jar
adf-faces-databinding-rt.jar
adf-pageflow-dtrt.jar
adf-pageflow-fwk.jar
adf-pageflow-impl.jar
adf-pageflow-rc.jar
adf-richclient-api-11.jar
adf-richclient-impl-11.jar
adf-share-base.jar
adf-share-ca.jar
adf-share-support.jar
adflibfilter.jar
adflogginghandler.jar
adfm.jar
adfmweb.jar
cache.jar
commons-el.jar
db-ca.jar
dms.jar
dvt-faces.jar
dvt-jclient.jar
dvt-utils.jar
fmw_audit.jar
identitystore.jar
inspect4.jar
javatools-nodeps.jar
javax.management.j2ee_1.0.jar
jewt4.jar
jmxframework.jar
jmxspi.jar
jps-api.jar
jps-common.jar
jps-ee.jar
jps-internal.jar
jps-unsupported-api.jar
jsf-api.jar
jsf-ri.jar
mdsrt.jar
ojdbc6.jar
oracle-el.jar
oraclepki.jar
org.apache.commons.beanutils_1.6.jar
com.bea.core.apache.commons.collections_3.2.0.jar
org.apache.commons.logging_1.0.4.jar
osdt_cert.jar
osdt_core.jar
share.jar
standard.jar
trinidad-api.jar
trinidad-impl.jar
wls-api.jar
xercesImpl.jar
xmlef.jar
xmlparserv2.jarI am trying to deploy an ADF based application to Tomcat 6.0.18. It is succeeded to an extent .. but when using the business component, getting the following error.
oracle.jbo.DMLException: JBO-27200: JNDI failure. Unable to lookup Data Source at context jdbc/soademoDS
root cause
javax.naming.NameNotFoundException: DataSourceContext could not locate a DataSource for the name: jdbc/soademoDS
oracle.jbo.server.DataSourceContext.lookup(DataSourceContext.java:109)
I am using soademo found with Dana Singleterry's blog
http://blogs.oracle.com/dana/2009/01/how_to_deploy_a_11g_adf_applic_1.html
I have done the required changes in server.xml, context.xml and please find the following connections.xml with which I think the error is occuring..
<?xml version = '1.0' encoding = 'UTF-8'?>
<References xmlns="http://xmlns.oracle.com/adf/jndi">
<Reference name="soademoDS" className="oracle.jdeveloper.db.adapter.DatabaseProvider" credentialStoreKey="soademoDS" xmlns="">
<Factory className="oracle.jdeveloper.db.adapter.DatabaseProviderFactory"/>
<RefAddresses>
<StringRefAddr addrType="subtype">
<Contents>oraJDBC</Contents>
</StringRefAddr>
<StringRefAddr addrType="port">
<Contents>1521</Contents>
</StringRefAddr>
<StringRefAddr addrType="hostname">
<Contents>it-binu-kooran.hq.moh</Contents>
</StringRefAddr>
<StringRefAddr addrType="user">
<Contents>soademo</Contents>
</StringRefAddr>
<SecureRefAddr addrType="password"/>
<StringRefAddr addrType="sid">
<Contents>repo</Contents>
</StringRefAddr>
<StringRefAddr addrType="DeployPassword">
<Contents>true</Contents>
</StringRefAddr>
<StringRefAddr addrType="oraDriverType">
<Contents>thin</Contents>
</StringRefAddr>
</RefAddresses>
</Reference>
</References>
bc4j.xcfg file contain the following entries
<?xml version = '1.0' encoding = 'UTF-8'?>
<BC4JConfig version="11.0" xmlns="http://xmlns.oracle.com/bc4j/configuration">
<AppModuleConfigBag ApplicationName="model.service.tcAppModule">
<AppModuleConfig name="tcAppModuleLocal" ApplicationName="model.service.tcAppModule" DeployPlatform="LOCAL" jbo.project="model.Model">
<Security AppModuleJndiName="model.service.tcAppModule"/>
<Custom JDBCDataSource="jdbc/soademoDS"/>
</AppModuleConfig>
<AppModuleConfig name="tcAppModuleShared" ApplicationName="model.service.tcAppModule" DeployPlatform="LOCAL" jbo.project="model.Model">
<AM-Pooling jbo.ampool.maxpoolsize="1" jbo.ampool.isuseexclusive="false"/>
<Security AppModuleJndiName="model.service.tcAppModule"/>
<Custom JDBCDataSource="java:comp/env/jdbc/soademoDS"/>
</AppModuleConfig>
</AppModuleConfigBag>
</BC4JConfig>
Can someone help me out please ... .. -
Hi ,
I want to add the conext information to my server.xml of tomcat for my hibernate configuration.....
the conext information is as follows ....
<Context path="/quickstart" docBase="quickstart">
<Resource name="jdbc/quickstart" scope="Shareable" type="javax.sql.DataSource"/>
<ResourceParams name="jdbc/quickstart">
<parameter>
<name>factory</name>
<value>org.apache.commons.dbcp.BasicDataSourceFactory</value>
</parameter>
<!-- DBCP database connection settings -->
<parameter>
<name>url</name>
<value>jdbc:postgresql://localhost/quickstart</value>
</parameter>
<parameter>
<name>driverClassName</name><value>org.postgresql.Driver</value>
</parameter>
<parameter>
<name>username</name>
<value>quickstart</value>
</parameter>
<parameter>
<name>password</name>
<value>secret</value>
</parameter>
<!-- DBCP connection pooling options -->
<parameter>
<name>maxWait</name>
<value>3000</value>
</parameter>
<parameter>
<name>maxIdle</name>
<value>100</value>
</parameter>
<parameter>
<name>maxActive</name>
<value>10</value>
</parameter>
</ResourceParams>
</Context>
Where in my server.xml should i put
the server.xml looks like this :
<!-- Example Server Configuration File -->
<!-- Note that component elements are nested corresponding to their
parent-child relationships with each other -->
<!-- A "Server" is a singleton element that represents the entire JVM,
which may contain one or more "Service" instances. The Server
listens for a shutdown command on the indicated port.
Note: A "Server" is not itself a "Container", so you may not
define subcomponents such as "Valves" or "Loggers" at this level.
-->
<Server port="8005" shutdown="SHUTDOWN">
<!-- Comment these entries out to disable JMX MBeans support used for the
administration web application -->
<Listener className="org.apache.catalina.core.AprLifecycleListener" />
<Listener className="org.apache.catalina.mbeans.ServerLifecycleListener" />
<Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" />
<Listener className="org.apache.catalina.storeconfig.StoreConfigLifecycleListener"/>
<!-- Global JNDI resources -->
<GlobalNamingResources>
<!-- Test entry for demonstration purposes -->
<Environment name="simpleValue" type="java.lang.Integer" value="30"/>
<!-- Editable user database that can also be used by
UserDatabaseRealm to authenticate users -->
<Resource name="UserDatabase" auth="Container"
type="org.apache.catalina.UserDatabase"
description="User database that can be updated and saved"
factory="org.apache.catalina.users.MemoryUserDatabaseFactory"
pathname="conf/tomcat-users.xml" />
</GlobalNamingResources>
<!-- A "Service" is a collection of one or more "Connectors" that share
a single "Container" (and therefore the web applications visible
within that Container). Normally, that Container is an "Engine",
but this is not required.
Note: A "Service" is not itself a "Container", so you may not
define subcomponents such as "Valves" or "Loggers" at this level.
-->
<!-- Define the Tomcat Stand-Alone Service -->
<Service name="Catalina">
<!-- A "Connector" represents an endpoint by which requests are received
and responses are returned. Each Connector passes requests on to the
associated "Container" (normally an Engine) for processing.
By default, a non-SSL HTTP/1.1 Connector is established on port 8080.
You can also enable an SSL HTTP/1.1 Connector on port 8443 by
following the instructions below and uncommenting the second Connector
entry. SSL support requires the following steps (see the SSL Config
HOWTO in the Tomcat 5 documentation bundle for more detailed
instructions):
* If your JDK version 1.3 or prior, download and install JSSE 1.0.2 or
later, and put the JAR files into "$JAVA_HOME/jre/lib/ext".
* Execute:
%JAVA_HOME%\bin\keytool -genkey -alias tomcat -keyalg RSA (Windows)
$JAVA_HOME/bin/keytool -genkey -alias tomcat -keyalg RSA (Unix)
with a password value of "changeit" for both the certificate and
the keystore itself.
By default, DNS lookups are enabled when a web application calls
request.getRemoteHost(). This can have an adverse impact on
performance, so you can disable it by setting the
"enableLookups" attribute to "false". When DNS lookups are disabled,
request.getRemoteHost() will return the String version of the
IP address of the remote client.
-->
<!-- Define a non-SSL HTTP/1.1 Connector on port 8080 -->
<Connector
port="8080" maxHttpHeaderSize="8192"
maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
enableLookups="false" redirectPort="8443" acceptCount="100"
connectionTimeout="20000" disableUploadTimeout="true" />
<!-- Note : To disable connection timeouts, set connectionTimeout value
to 0 -->
<!-- Note : To use gzip compression you could set the following properties :
compression="on"
compressionMinSize="2048"
noCompressionUserAgents="gozilla, traviata"
compressableMimeType="text/html,text/xml"
-->
<!-- Define a SSL HTTP/1.1 Connector on port 8443 -->
<!--
<Connector port="8443" maxHttpHeaderSize="8192"
maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
enableLookups="false" disableUploadTimeout="true"
acceptCount="100" scheme="https" secure="true"
clientAuth="false" sslProtocol="TLS" />
-->
<!-- Define an AJP 1.3 Connector on port 8009 -->
<Connector port="8009"
enableLookups="false" redirectPort="8443" protocol="AJP/1.3" />
<!-- Define a Proxied HTTP/1.1 Connector on port 8082 -->
<!-- See proxy documentation for more information about using this. -->
<!--
<Connector port="8082"
maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
enableLookups="false" acceptCount="100" connectionTimeout="20000"
proxyPort="80" disableUploadTimeout="true" />
-->
<!-- An Engine represents the entry point (within Catalina) that processes
every request. The Engine implementation for Tomcat stand alone
analyzes the HTTP headers included with the request, and passes them
on to the appropriate Host (virtual host). -->
<!-- You should set jvmRoute to support load-balancing via AJP ie :
<Engine name="Standalone" defaultHost="localhost" jvmRoute="jvm1">
-->
<!-- Define the top level container in our container hierarchy -->
<Engine name="Catalina" defaultHost="localhost">
<!-- The request dumper valve dumps useful debugging information about
the request headers and cookies that were received, and the response
headers and cookies that were sent, for all requests received by
this instance of Tomcat. If you care only about requests to a
particular virtual host, or a particular application, nest this
element inside the corresponding <Host> or <Context> entry instead.
For a similar mechanism that is portable to all Servlet 2.4
containers, check out the "RequestDumperFilter" Filter in the
example application (the source for this filter may be found in
"$CATALINA_HOME/webapps/examples/WEB-INF/classes/filters").
Request dumping is disabled by default. Uncomment the following
element to enable it. -->
<!--
<Valve className="org.apache.catalina.valves.RequestDumperValve"/>
-->
<!-- Because this Realm is here, an instance will be shared globally -->
<!-- This Realm uses the UserDatabase configured in the global JNDI
resources under the key "UserDatabase". Any edits
that are performed against this UserDatabase are immediately
available for use by the Realm. -->
<Realm className="org.apache.catalina.realm.UserDatabaseRealm"
resourceName="UserDatabase"/>
<!-- Comment out the old realm but leave here for now in case we
need to go back quickly -->
<!--
<Realm className="org.apache.catalina.realm.MemoryRealm" />
-->
<!-- Replace the above Realm with one of the following to get a Realm
stored in a database and accessed via JDBC -->
<!--
<Realm className="org.apache.catalina.realm.JDBCRealm"
driverName="org.gjt.mm.mysql.Driver"
connectionURL="jdbc:mysql://localhost/authority"
connectionName="test" connectionPassword="test"
userTable="users" userNameCol="user_name" userCredCol="user_pass"
userRoleTable="user_roles" roleNameCol="role_name" />
-->
<!--
<Realm className="org.apache.catalina.realm.JDBCRealm"
driverName="oracle.jdbc.driver.OracleDriver"
connectionURL="jdbc:oracle:thin:@ntserver:1521:ORCL"
connectionName="scott" connectionPassword="tiger"
userTable="users" userNameCol="user_name" userCredCol="user_pass"
userRoleTable="user_roles" roleNameCol="role_name" />
-->
<!--
<Realm className="org.apache.catalina.realm.JDBCRealm"
driverName="sun.jdbc.odbc.JdbcOdbcDriver"
connectionURL="jdbc:odbc:CATALINA"
userTable="users" userNameCol="user_name" userCredCol="user_pass"
userRoleTable="user_roles" roleNameCol="role_name" />
-->
<!-- Define the default virtual host
Note: XML Schema validation will not work with Xerces 2.2.
-->
<Host name="localhost" appBase="webapps"
unpackWARs="true" autoDeploy="true"
xmlValidation="false" xmlNamespaceAware="false">
<!-- Defines a cluster for this node,
By defining this element, means that every manager will be changed.
So when running a cluster, only make sure that you have webapps in there
that need to be clustered and remove the other ones.
A cluster has the following parameters:
className = the fully qualified name of the cluster class
name = a descriptive name for your cluster, can be anything
mcastAddr = the multicast address, has to be the same for all the nodes
mcastPort = the multicast port, has to be the same for all the nodes
mcastBindAddr = bind the multicast socket to a specific address
mcastTTL = the multicast TTL if you want to limit your broadcast
mcastSoTimeout = the multicast readtimeout
mcastFrequency = the number of milliseconds in between sending a "I'm alive" heartbeat
mcastDropTime = the number a milliseconds before a node is considered "dead" if no heartbeat is received
tcpThreadCount = the number of threads to handle incoming replication requests, optimal would be the same amount of threads as nodes
tcpListenAddress = the listen address (bind address) for TCP cluster request on this host,
in case of multiple ethernet cards.
auto means that address becomes
InetAddress.getLocalHost().getHostAddress()
tcpListenPort = the tcp listen port
tcpSelectorTimeout = the timeout (ms) for the Selector.select() method in case the OS
has a wakup bug in java.nio. Set to 0 for no timeout
printToScreen = true means that managers will also print to std.out
expireSessionsOnShutdown = true means that
useDirtyFlag = true means that we only replicate a session after setAttribute,removeAttribute has been called.
false means to replicate the session after each request.
false means that replication would work for the following piece of code: (only for SimpleTcpReplicationManager)
<%
HashMap map = (HashMap)session.getAttribute("map");
map.put("key","value");
%>
replicationMode = can be either 'pooled', 'synchronous' or 'asynchronous'.
* Pooled means that the replication happens using several sockets in a synchronous way. Ie, the data gets replicated, then the request return. This is the same as the 'synchronous' setting except it uses a pool of sockets, hence it is multithreaded. This is the fastest and safest configuration. To use this, also increase the nr of tcp threads that you have dealing with replication.
* Synchronous means that the thread that executes the request, is also the
thread the replicates the data to the other nodes, and will not return until all
nodes have received the information.
* Asynchronous means that there is a specific 'sender' thread for each cluster node,
so the request thread will queue the replication request into a "smart" queue,
and then return to the client.
The "smart" queue is a queue where when a session is added to the queue, and the same session
already exists in the queue from a previous request, that session will be replaced
in the queue instead of replicating two requests. This almost never happens, unless there is a
large network delay.
-->
<!--
When configuring for clustering, you also add in a valve to catch all the requests
coming in, at the end of the request, the session may or may not be replicated.
A session is replicated if and only if all the conditions are met:
1. useDirtyFlag is true or setAttribute or removeAttribute has been called AND
2. a session exists (has been created)
3. the request is not trapped by the "filter" attribute
The filter attribute is to filter out requests that could not modify the session,
hence we don't replicate the session after the end of this request.
The filter is negative, ie, anything you put in the filter, you mean to filter out,
ie, no replication will be done on requests that match one of the filters.
The filter attribute is delimited by ;, so you can't escape out ; even if you wanted to.
filter=".*\.gif;.*\.js;" means that we will not replicate the session after requests with the URI
ending with .gif and .js are intercepted.
The deployer element can be used to deploy apps cluster wide.
Currently the deployment only deploys/undeploys to working members in the cluster
so no WARs are copied upons startup of a broken node.
The deployer watches a directory (watchDir) for WAR files when watchEnabled="true"
When a new war file is added the war gets deployed to the local instance,
and then deployed to the other instances in the cluster.
When a war file is deleted from the watchDir the war is undeployed locally
and cluster wide
-->
<!--
<Cluster className="org.apache.catalina.cluster.tcp.SimpleTcpCluster"
managerClassName="org.apache.catalina.cluster.session.DeltaManager"
expireSessionsOnShutdown="false"
useDirtyFlag="true"
notifyListenersOnReplication="true">
<Membership
className="org.apache.catalina.cluster.mcast.McastService"
mcastAddr="228.0.0.4"
mcastPort="45564"
mcastFrequency="500"
mcastDropTime="3000"/>
<Receiver
className="org.apache.catalina.cluster.tcp.ReplicationListener"
tcpListenAddress="auto"
tcpListenPort="4001"
tcpSelectorTimeout="100"
tcpThreadCount="6"/>
<Sender
className="org.apache.catalina.cluster.tcp.ReplicationTransmitter"
replicationMode="pooled"
ackTimeout="15000"/>
<Valve className="org.apache.catalina.cluster.tcp.ReplicationValve"
filter=".*\.gif;.*\.js;.*\.jpg;.*\.htm;.*\.html;.*\.txt;"/>
<Deployer className="org.apache.catalina.cluster.deploy.FarmWarDeployer"
tempDir="/tmp/war-temp/"
deployDir="/tmp/war-deploy/"
watchDir="/tmp/war-listen/"
watchEnabled="false"/>
</Cluster>
-->
<!-- Normally, users must authenticate themselves to each web app
individually. Uncomment the following entry if you would like
a user to be authenticated the first time they encounter a
resource protected by a security constraint, and then have that
user identity maintained across all web applications contained
in this virtual host. -->
<!--
<Valve className="org.apache.catalina.authenticator.SingleSignOn" />
-->
<!-- Access log processes all requests for this virtual host. By
default, log files are created in the "logs" directory relative to
$CATALINA_HOME. If you wish, you can specify a different
directory with the "directory" attribute. Specify either a relative
(to $CATALINA_HOME) or absolute path to the desired directory.
-->
<!--
<Valve className="org.apache.catalina.valves.AccessLogValve"
directory="logs" prefix="localhost_access_log." suffix=".txt"
pattern="common" resolveHosts="false"/>
-->
<!-- Access log processes all requests for this virtual host. By
default, log files are created in the "logs" directory relative to
$CATALINA_HOME. If you wish, you can specify a different
directory with the "directory" attribute. Specify either a relative
(to $CATALINA_HOME) or absolute path to the desired directory.
This access log implementation is optimized for maximum performance,
but is hardcoded to support only the "common" and "combined" patterns.
-->
<!--
<Valve className="org.apache.catalina.valves.FastCommonAccessLogValve"
directory="logs" prefix="localhost_access_log." suffix=".txt"
pattern="common" resolveHosts="false"/>
-->
</Host>
</Engine>
</Service>
</Server>
Can Some one Help me pleaseeeeeePlease don't cross-post in multiple forums. I have answered
this in your other thread.
Maybe you are looking for
-
As the question says, I cannot read the content in the right frame in Google Reader. This was also a problem when I was using Firefox 9.0.1. It was definitely not a problem prior to the Christmas holidays, so I don't know if it has something to do wi
-
ITunes automatically unchecked "Manually manage music and videos"
Hey all, hope everything is well. I have a frustrating problem that I don't know how to fix on my own. So last night when I plugged my iPhone in to put some songs on, everything worked normally. I was able to edit the info and all that jazz, but toda
-
Custom field at Header level in Additional Data B tab of VA01/VA02
Kindly help me out , I have a requirement to add a custom field at Header level in Additional Data B tab of VA01/VA02. Program: SAPMV45A screen 8459 This can be done only through access key or not. Can any body tell me procedure to do that. Appreciat
-
Single file is processing multiple times
Hello All, I am working on a File-IDOC Scenario. I have a strange situation that when I place a .CSV file in the FTP server once and the File adapter is picking it up and when i check the SXI_MONITOR it appears twice or some times thrice and the cont
-
SAP NetWeaver and SAP ERP Central Component 6.0 installed or not,how to fin
Hello Friends, I would like to know that in my system whether <b> SAP NetWeaver and SAP ERP Central Component 6.0</b> Installed or not?How to check whether these are installed or not? and where can i Find in the system? Regards Preethi