DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=33763>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=33763

           Summary: jython jar not added to war in XSP block on build
           Product: Cocoon 2
           Version: Current SVN 2.1
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: blocks
        AssignedTo: [email protected]
        ReportedBy: [EMAIL PROTECTED]


Environment
===========
fedora core 3 linux 2.6.10-1.766_FC3
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_01-b08)

Tomcat 5.5.7
    <servlet>
        <servlet-name>jsp</servlet-name>
        <servlet-class>org.apache.jasper.servlet.JspServlet</servlet-class>
        <init-param>
            <param-name>fork</param-name>
            <param-value>false</param-value>
            <compiler>javac</compiler>
        </init-param>
        <init-param>
            <param-name>xpoweredBy</param-name>
            <param-value>false</param-value>
        </init-param>
        <load-on-startup>3</load-on-startup>
    </servlet>

Cocoon
URL: http://svn.apache.org/repos/asf/cocoon/branches/BRANCH_2_1_X
Repository UUID: 13f79535-47bb-0310-9956-ffa450edef68
Revision: 155211
Node Kind: directory
Schedule: normal
Last Changed Author: sylvain
Last Changed Rev: 155210
Last Changed Date: 2005-02-24 09:02:09 -0800 (Thu, 24 Feb 2005)
Properties Last Updated: 2005-01-24 11:30:14 -0800 (Mon, 24 Jan 2005)

Build
=====
Cocoon builds fine under jdk1.5.0_01 with modifications to
tools/targets/init-build.xml to target the 1.5 jdk.

152c152
<            target="1.5"
---
>            target="1.4"
178c178
<            target="1.5"
---
>            target="1.4"

modification to lib/jars.xml
1177,1186d1176
<   <file>
<     <title>Jython</title>
<     <description>
<       Python interpretor in Java
<     </description>
<     <used-by>XSP</used-by>
<     <lib>optional/jython-2.1.jar</lib>
<     <homepage>http://www.jython.org</homepage>
<   </file>
<

Issue
=====
Accessing http://localhost:8080/cocoon/samples/blocks/xsp/python/hello generates
the folloing error:

Resource not found
org/python/core/PyObject
org.apache.cocoon.ResourceNotFoundException: org/python/core/PyObject
cause: org.apache.cocoon.ResourceNotFoundException: org/python/core/PyObject

Copying jython-2.1.jar into $TOMCAT_HOME/webapps/cocoon/WEB-INF/lib fixes the
problem.

jar -tf cocoon.war does not show the jar file in cocoon.war

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

Reply via email to