I appreciate your hints, Tomas. Very loving, indeed!
1) I checked my deployed app: web.xml has an entry for HookContextListener. There are no other Context Listeners included in the file. Am I missing one? Here are the full contents of that file:
1<?xml version="1.0" encoding="UTF-8"?>
2<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
3<web-app>
4 <display-name>customjsp-hook</display-name>
5 <listener>
6 <listener-class>com.liferay.portal.kernel.servlet.HookContextListener</listener-class>
7 </listener>
8</web-app>
2) I did deploy the application myself. I tried two methods. First, on my workstation, using the tomcat bundle and the SDK, I built a .war following the directions in this tutorial:
Custom Attributes and JSP Hooks . It worked on my machine, as expected. However, when I dropped it into the auto-deploy directory on my test server (the Solaris box, running apache and tomcat and liferay non-context), it failed. The second method was to create an sdk directory on my test server and follow the instructions again, this time letting the ant deploy command take care of everything. This also failed. In both cases, I see the same thing in the catalina logs:
114:59:13,273 INFO [AutoDeployDir:183] Processing customjsp-hook-5.2.3.1.war
214:59:13,282 INFO [HookAutoDeployListener:53] Copying web plugin for /usr/local/deploy/customjsp-hook-5.2.3.1.war
3 Expanding: /usr/local/deploy/customjsp-hook-5.2.3.1.war into /usr/local/tomcat6/temp/20091105145913296
4 Copying 1 file to /usr/local/tomcat6/temp/20091105145913296/WEB-INF/classes
5 Copying 1 file to /usr/local/tomcat6/temp/20091105145913296/WEB-INF/classes
6 Copying 1 file to /usr/local/tomcat6/temp/20091105145913296/WEB-INF
7 Copying 15 files to /usr/local/tomcat6/webapps/customjsp-hook
8 Copying 1 file to /usr/local/tomcat6/webapps/customjsp-hook
9 Deleting directory /usr/local/tomcat6/temp/20091105145913296
1014:59:14,438 INFO [HookAutoDeployListener:59] Web plugin for /usr/local/deploy/customjsp-hook-5.2.3.1.war copied successfully. Deployment will start in a few seconds.
1114:59:52,822 INFO [PluginPackageUtil:1153] Reloading repositories
12Loading jar:file:/portal/liferay-main/WEB-INF/lib/portal-impl.jar!/content-types.properties
/usr/local/tomcat6 is our tomcat home, but /portal/liferay-main is the directory where liferay is running.
I'm investigating whether what
Ray says in his blog here has anything to do with it, but the sdk automatically adds those numbers -- I can't get rid of them without modifying the build script, which I hesitate to do. Whatcha think?
Again, I thank you for your help!!!
Bitte melden Sie sich an, um diesen Inhalt als unangebracht zu kennzeichnen.