Hi, You're misusing the context path attribute completely, so correct that.
You don't need to define a symlink in the webapps directory since you have the dspace.xml file. You don't need the Resources className=... in tomcat 5. Yoav Shapira Millennium Research Informatics >-----Original Message----- >From: Irwin Williams [mailto:[EMAIL PROTECTED] >Sent: Friday, May 14, 2004 2:05 PM >To: Tomcat Users List >Subject: Symlinks and jar files > >Hi all, > >I am trying to implement a web app called Dspace. For which, I am using >Tomcat (v5) as a standalone servlet container on RH Linux. >Everything else in the configuration seems to work fine, but when I try to >plug the app into Tomcat via symlinking, Tomcat doesn't seem to find the >relevant class files in the prescribed jar packages. > >In the "$CATALINA_HOME/webapps" directory, I have defined a symlink, >"/dspace", which points to "/$DSPACE_INSTALL_DIR/jsp". >And, in "$CATALINA_HOME/conf/Catalina/localhost/dspace.xml", I have defined >the context as: ><?xml version='1.0' encoding='utf-8'?> ><Context path="$DSPACE_INSTALL_DIR" > docBase="dspace" > debug="0" > reloadable="true" > crossContext="true" > allowLinking="true"> > <Resources className="org.apache.naming.resources.FileDirContext"/> ></Context> > >For example, one of the required files is called >'SimpleAuthenticator.class', and its located in a jar file called >"dspace.jar". Dspace.jar is located in /WEB-INF/lib. There are other jar >files in this directory. > >Thus, I am wondering if Tomcat has to be explicitly told to look in this >jar >container, to identify the class as part of the web application. > >Any help in this regard is appreciated, > >Regards >Irwin Williams > >-----Original Message----- >From: Chris Purcell [mailto:[EMAIL PROTECTED] >Sent: Friday, May 14, 2004 12:11 PM >To: [EMAIL PROTECTED] >Subject: Re: mod_jk > > >In the Apache error.log file, I get this when I restart Apache... > >[Fri May 14 12:13:40 2004] [notice] SIGHUP received. Attempting to restart >No worker file and no worker options in httpd.conf \nuse JkWorkerFile to >set workers\n >[Fri May 14 12:13:41 2004] [notice] Apache/2.0.49 (Unix) mod_ssl/2.0.49 >OpenSSL/0.9.7d configured -- resuming normal operations > >Does anyone know what that error means? > >Thanks, >Chris > > >> Tomcat 4.1.30 >> Apache 2.0.49 >> tomcat-connectors-jk-1.2.5 (mod_jk) >> Red Hat Enterprise Linux ES 3.0 >> >> >> I have Tomcat and Apache both up and running okay, but I'm having a >> problem with mod_jk. When I try to execute .jsp pages from Apache I get >> a 500 Internal Server Error. I think this is a configuration issue >> somewhere in Tomcat. >> >> These are the changes I've made.... >> >> /usr/local/apache2/conf/httpd.conf... >> >> LoadModule jk_module modules/mod_jk.so >> Include /usr/local/tomcat/conf/auto/mod_jk.conf >> >> >> >> /usr/local/tomcat/conf/server.xml....... >> >> I took the default file and just added two lines... >> >> <Server port="8005" shutdown="SHUTDOWN" debug="0"> >> <Listener className="org.apache.ajp.tomcat4.config.ApacheConfig" >> modJk="/usr/local/apache2/modules/mod_jk.so" /> >> >> <!-- Define the default virtual host --> >> <Host name="tux.foo.org" debug="0" appBase="webapps" >> unpackWARs="true" autoDeploy="true"> >> <Listener className="org.apache.ajp.tomcat4.config.ApacheConfig" >> append="true" forwardAll="false" >> modJk="/usr/local/apache2/modules/mod_jk.so" /> >> >> >> /usr/local/tomcat/conf/jk/workers.properties..... >> >> worker.list=ajp13 >> worker.ajp13.port=8009 >> worker.ajp13.host=localhost >> worker.ajp13.type=ajp13 >> >> >> >> Anyone know whats up? >> >> Thanks, >> Chris >> >> >> >> --------------------------------------------------------------------- To >> unsubscribe, e-mail: [EMAIL PROTECTED] For >> additional commands, e-mail: [EMAIL PROTECTED] > > > > >--------------------------------------------------------------------- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] > >--------------------------------------------------------------------- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
