Win a copy of Microservices Testing (Live Project) this week in the Spring forum!

Joe Sanchez

Greenhorn
+ Follow
since Oct 21, 2010
Joe likes ...
MySQL Database Java Linux
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
1
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Joe Sanchez

could I merge this account to another that's what I have the email I use?
2 years ago
What about this answer because the book say that is correct



Answer:


?Why does it is said to compile? Can we pass an ArrayList instead of a List? Because in that case other answers will be true too :s
Error------------------------------------
HTTP Status 404 - /jsps/sample/hello.jsp
type Status report
message /jsps/sample/hello.jsp
description The requested resource (/jsps/sample/hello.jsp) is not available.
------------------------------------------

FILE http.conf-------------------------
# Load mod_jk module
# Update this path to match your modules location
LoadModule jk_module modules/mod_jk.so
# Where to find workers.properties
# Update this path to match your conf directory location (put workers.properties next to httpd.conf)
JkWorkersFile /srv/apache2/conf/workers.properties
# Where to put jk shared memory
# Update this path to match your local state directory or logs directory
JkShmFile /srv/apache2/logs/mod_jk.shm
# Where to put jk logs
# Update this path to match your logs directory location (put mod_jk.log next to access_log)
JkLogFile /srv/apache2/logs/mod_jk.log
# Set the jk log level [debug/error/info]
JkLogLevel info
# Select the timestamp log format
JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
# Send everything for context /examples to worker named worker1 (ajp13)
JkMount /jsps/*.jsp worker1
JkMount /jsps/*.do worker1

---------------------------------------------------------

FILE workers.properties-----------------------
# Define 1 real worker using ajp13
worker.list=worker1
# Set properties for worker1 (ajp13)
worker.worker1.type=ajp13
worker.worker1.host=localhost
worker.worker1.port=8009
---------------------------------------------------

Any idea?
11 years ago
That was!! It was blind. Thanks

Now Tomcat is telling me that I don't have /home/jfclere/jakarta-tomcat-connectors/jni/native/.libs

isn't comming with tomcat package?
11 years ago
I added the classpath, but it was alredy as you told me :S.

Other ideas?
11 years ago
Environment:
Tomcat 7.0.2 - running on 32-bit 1 GB ram
java version "1.6.0_21"
Debian 2.6.26-2-686
--
Tomcat directory (manual installation)
/srv/tomcat
/srv/tomcat/bin/tomcat-juli.jar
/srv/tomcat/bin/bootstrap.jar
/srv/tomcat/bin/native/unix/jsvc

All the paths are correctly addressed

EXECUTABLE
$DAEMON_HOME/native/unix/jsvc \
-user $TOMCAT_USER \
-debug \
-home $JAVA_HOME \
-Dcatalina.home=$CATALINA_HOME \
-Dcatalina.base=$CATALINA_BASE \
-Djava.io.tmpdir=$TMP_DIR \
-wait 10 \
-pidfile $PID_FILE \
-outfile $CATALINA_HOME/logs/catalina.out \
-errfile '&1' \
$CATALINA_OPTS \
-cp $CLASSPATH \
org.apache.catalina.startup.Bootstrap

ERROR

java.lang.NoClassDefFoundError: org/apache/juli/logging/LogFactory
at org.apache.catalina.startup.Bootstrap.<clinit>(Bootstrap.java:55)
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:513)
at java.lang.Class.newInstance0(Class.java:355)
at java.lang.Class.newInstance(Class.java:308)
at org.apache.commons.daemon.support.DaemonLoader.load(DaemonLoader.java:147)
Caused by: java.lang.ClassNotFoundException: org.apache.juli.logging.LogFactory
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
... 8 more

Any idea?
11 years ago
Environment:
Tomcat 7.0.2 - running on 32-bit 1 GB ram
java version "1.6.0_21"
Debian 2.6.26-2-686
--
Tomcat directory (manual installation)
/srv/tomcat
/srv/tomcat/bin/tomcat-juli.jar
/srv/tomcat/bin/bootstrap.jar
/srv/tomcat/bin/native/unix/jsvc

All the paths are correctly addressed

EXECUTABLE

CLASSPATH=\
$JAVA_HOME/lib/tools.jar:\
$$CATALINA_HOME/bin/tomcat-juli.jar:\
$CATALINA_HOME/bin/commons-daemon.jar:\
$CATALINA_HOME/bin/bootstrap.jar

$DAEMON_HOME/native/unix/jsvc \
-user $TOMCAT_USER \
-debug \
-home $JAVA_HOME \
-Dcatalina.home=$CATALINA_HOME \
-Dcatalina.base=$CATALINA_BASE \
-Djava.io.tmpdir=$TMP_DIR \
-wait 10 \
-pidfile $PID_FILE \
-outfile $CATALINA_HOME/logs/catalina.out \
-errfile '&1' \
$CATALINA_OPTS \
-cp $CLASSPATH \
org.apache.catalina.startup.Bootstrap

ERROR

java.lang.NoClassDefFoundError: org/apache/juli/logging/LogFactory
at org.apache.catalina.startup.Bootstrap.<clinit>(Bootstrap.java:55)
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:513)
at java.lang.Class.newInstance0(Class.java:355)
at java.lang.Class.newInstance(Class.java:308)
at org.apache.commons.daemon.support.DaemonLoader.load(DaemonLoader.java:147)
Caused by: java.lang.ClassNotFoundException: org.apache.juli.logging.LogFactory
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
... 8 more

Any idea?
11 years ago