cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chaganthi, Madhusudan R." <m...@cdc.gov>
Subject RE: XSP Not working with WebLogic
Date Thu, 31 Aug 2000 15:47:40 GMT
Hi SaiRam et al,
Do you happen to have the steps for Weblogic 4.5.1?
I've been struggling with it.
Thanks
Madhu


-----Original Message-----
From: SaiRam Mattancheril [mailto:sai@fedex.com]
Sent: Thursday, August 31, 2000 9:22 AM
To: cocoon-users@xml.apache.org
Subject: Re: XSP Not working with WebLogic


Jim,

I had the same problem -- but once i added the "cocoon" classes to CLASSPATH
(previously i had them only in WEBLOGIC_CLASSPATH), the XSPs started
working.
However I had to start weblogic "manually" by running startWebLogic from a
"dos"
window. Pretty much, I just followed the steps you and James Scott had
posted to
the newsgroup earlier.

Here are the complete steps i followed to get the whole thing working.

1) Added the following lines to weblogic.properties
 #Cocoon Stuff added by Sai
 weblogic.httpd.webApp.cocoon=/weblogic/myserver/cocoonwar
 weblogic.httpd.register.*.xml=org.apache.cocoon.Cocoon
 weblogic.httpd.initArgs.*.xml=\properties=cocoon.properties

2) Created a directory "cocoonwar" under /weblogic/myserver

3) Copied the "WEB-INF" directory from cocoon-1.7.4/src to
/weblogic/myserver/cocoonwar

4) Verified that the directory includes the file web.xml

5) In the line in web.xml that has cocoon.properties, replaced the line with
 <param-value>./WEB-INF/cocoon.properties</param-value>

6) Copied the cocoon.properties file to /weblogic/myserver/cocoonwar/WEB-INF

7) Made sure that the repository directory specified in cocoon.properties
file
is "./repository"
 processor.xsp.repository = ./repository

8) Created a sub-directory /weblogic/myserver/cocoonwar/repository

9) Copied the samples directory (/cocoon1.7.4/samples)  to
/weblogic/myserver/public_html/samples

10) Created a directory c:\jars and copied cocoon.jar, xerces_1_0_3.jar,
xalan_1_0_1.jar,
 fop_0_12_1.jar, jaas.jar, jndi.jar, ldap.jar,ldapbp.jar, providerutil.jar,
stylebook-1.0-b2.jar

11) In startWebLogic.cmd file  replaced the "set PRE_CLASSPATH=" line with
 set PRE_CLASSPATH=c:\cocoon-1.7.4\lib\cocoon.jar;c:\jars\xerces_1_0_3.jar;
 c:\jars\xalan_1_0_1.jar;c:\jars\fop_0_12_1.jar;
 c:\jars\jaas.jar;c:\jars\jndi.jar;c:\jars\ldap.jar;c:\jars\ldapbp.jar;
 
c:\jars\providerutil.jar;c:\jdk1.3\lib\tools.jar;c:\jars\stylebook-1.0-b2.ja
r

12) Where JAVA_CLASSPATH is being set in startWebLogic.cmd, appended the
following
 ;c:\jdk1.3\lib\tools.jar;c:\jars\cocoon.jar;c:\jars\xalan_1_0_1.jar;
 c:\jars\xerces_1_0_3.jar;c:\jars\fop_0_12_1.jar;c:\jars\servlet_2_2.jar;
 
c:\jars\stylebook-1.0-b2.jar;c:\jars\jaas.jar;c:\jars\jndi.jar;c:\jars\ldap.
jar;

 c:\jars\ldapbp.jar;c:\jars\providerutil.jar

13) Restarted weblogic and try accessing http://localhost:7001/Cocoon.xml
and
 http://localhost:7001/samples/index.xml -- assuming here that 7001 is the
port
#

14) If it doesnt work, try copying cocoon.properties to
\weblogic\myserver\public_html

15) In case you get an LDAP related error, then probably you are missing the
jndi.jar and
 associated jar files. Try to get them from the Sun website. Or if you cant
get
it
 go ahead and comment the line
 processor.type.ldap = org.apache.cocoon.processor.ldap.LdapProcessor

16) Make sure you have tools.jar on JAVA_CLASSPATH


Thanks
Sai



"Typrowitz, Jim" wrote:

> I'm having difficulty getting the XSP examples to work with WebLogic 5.1.
> All the XML examples work fine.
>
> I've set my classpath, weblogic classpath, and cocoonwar directory as
> specified on the Cocoon site, but I still get an XSP error:
>
> java.lang.Exception: XSP Java Compiler: Compilation failed for _page.java
> 7: Package org.w3c.dom not found in import.
>
>     import org.w3c.dom.*;
>
> It is as if the XSP compiler can't find the xerces jar file.  Has anyone
> seen this?
>
> Thanks,
> Jim
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
> For additional commands, e-mail: cocoon-users-help@xml.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org

Mime
View raw message