You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Alex Nelson <an...@ansoftcomputing.com> on 2003/05/02 17:44:47 UTC

Any ideas?

I am sorry to keep bothering this list with newbie questions. I have
tried multiple installations of tomcat, java, and cocoon trying to find
a setup that works for me. I am currently running RedHat 9.0 as the host
OS. I have installed J2SE1.4.2, and downloaded the 2.1M1 release of
cocoon. I created a local.blocks.properties file and disabled every
single block. I created a local.build.properties file and enabled debug
and disabled optimisation. I fixed the line endings in the tools/bin/ant
and used build.sh compile. ("./build.sh war") I copied three jar files
over to the $TOMCAT_HOME/common/endorsed directory. The listing of that
directory follows:

total 4400
-rw-r--r--    1 root     root       816488 Apr  1 07:59
jaxp_parser_impl.jar
-rw-r--r--    1 root     root      2645149 May  2 11:03 xalan-2.5.0.jar
-rw-r--r--    1 root     root       895924 May  2 11:03
xercesImpl-2.4.0.jar
-rw-r--r--    1 root     root       124720 May  2 11:03 xml-apis.jar

Tomcat starts just fine and displays my other webapps with no problems.
When I try and go to localhost:8080/cocoon I get a blank page back.
Catalina.log shows no errors. The localhost log contains the following
error:

----- Root Cause -----
java.lang.IllegalAccessError: class
org.apache.xml.dtm.ref.sax2dtm.SAX2DTM2$AncestorIterator cannot access
its superclass
org.apache.xml.dtm.ref.DTMDefaultBaseIterators$InternalAxisIteratorBase
	at java.lang.ClassLoader.defineClass0(Native Method)
	at java.lang.ClassLoader.defineClass(ClassLoader.java:537)
	at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
	at java.net.URLClassLoader.defineClass(URLClassLoader.java:251)
	at java.net.URLClassLoader.access$100(URLClassLoader.java:55)
	at java.net.URLClassLoader$1.run(URLClassLoader.java:194)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
	at org.apache.catalina.loader.StandardClassLoader.findClass(Unknown
Source)
	at org.apache.catalina.loader.StandardClassLoader.loadClass(Unknown
Source)
	at org.apache.catalina.loader.StandardClassLoader.loadClass(Unknown
Source)
	at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
	at
org.apache.xalan.xsltc.dom.XSLTCDTMManager.getDTM(XSLTCDTMManager.java:291)
	at
org.apache.xalan.xsltc.dom.XSLTCDTMManager.getDTM(XSLTCDTMManager.java:174)

I am not sure what I am missing to get cocoon to work but would like to
use this for a client project. 

BTW: Thanks go to Geoff and Antonio for their patience as I stumble
along.

-- 
Alex Nelson
ANSoft Computing
www.ansoftcomputing.com
"We make systems work!"


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


Re: Any ideas? - SUCCESS!!!

Posted by Alex Nelson <an...@ansoftcomputing.com>.
To all the wonderful people on this list who have helped me, a big round
of thanks. Switching to xalan-2.4.1 was the key to getting the M1
release to work with my version of tomcat. That and having the xsltc.jar
file as well. Now I move on to trying to get apache lenya to work!

-- 
Alex Nelson
ANSoft Computing
www.ansoftcomputing.com
"We make systems work!"


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


Re: Any ideas?

Posted by Geoff Howard <co...@leverageweb.com>.
Try reverting to xalan-2.4.1 based on the discussion on dev.  I can
help you find a copy of it in viewcvs if you need.

Geoff

At 01:02 PM 5/2/2003, you wrote:
>The only copies of xalan in the classpath are the xalan-2.5.0 ones. I
>even removed the jaxp jar and I still get the same error. I would hate
>to drop this as a solution, but I am running out of time. Should I go
>back and try previous versions of some of these?
>
>--
>Alex Nelson
>ANSoft Computing
>www.ansoftcomputing.com
>"We make systems work!"
>
>
>---------------------------------------------------------------------
>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


Re: Any ideas?

Posted by Alex Nelson <an...@ansoftcomputing.com>.
The only copies of xalan in the classpath are the xalan-2.5.0 ones. I
even removed the jaxp jar and I still get the same error. I would hate
to drop this as a solution, but I am running out of time. Should I go
back and try previous versions of some of these?

-- 
Alex Nelson
ANSoft Computing
www.ansoftcomputing.com
"We make systems work!"


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


Re: Any ideas?

Posted by Bruno Dumon <br...@outerthought.org>.
On Fri, 2003-05-02 at 17:44, Alex Nelson wrote:
> I am sorry to keep bothering this list with newbie questions. I have
> tried multiple installations of tomcat, java, and cocoon trying to find
> a setup that works for me. I am currently running RedHat 9.0 as the host
> OS. I have installed J2SE1.4.2, and downloaded the 2.1M1 release of
> cocoon. I created a local.blocks.properties file and disabled every
> single block. I created a local.build.properties file and enabled debug
> and disabled optimisation. I fixed the line endings in the tools/bin/ant
> and used build.sh compile. ("./build.sh war") I copied three jar files
> over to the $TOMCAT_HOME/common/endorsed directory. The listing of that
> directory follows:
> 
> total 4400
> -rw-r--r--    1 root     root       816488 Apr  1 07:59
> jaxp_parser_impl.jar
> -rw-r--r--    1 root     root      2645149 May  2 11:03 xalan-2.5.0.jar
> -rw-r--r--    1 root     root       895924 May  2 11:03
> xercesImpl-2.4.0.jar
> -rw-r--r--    1 root     root       124720 May  2 11:03 xml-apis.jar
> 
> Tomcat starts just fine and displays my other webapps with no problems.
> When I try and go to localhost:8080/cocoon I get a blank page back.
> Catalina.log shows no errors. The localhost log contains the following
> error:

You probably have an old xalan somewhere on the classpath. Check for
example the tomcat/common/lib directory.

-- 
Bruno Dumon                             http://outerthought.org/
Outerthought - Open Source, Java & XML Competence Support Center
bruno@outerthought.org                          bruno@apache.org


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


Re: Any ideas?

Posted by Tony Collen <tc...@neuagency.com>.
On 2 May 2003, Alex Nelson wrote:

> Tony:
>
> Running cocoon from the built in version of Jetty works just fine. I
> guess my problem lies with my tomcat setup then. Any further ideas?

Well, this thread [1] was just on cocoon-dev, you might want to try
placing a slightly older version of Xalan in your endorsed directory.


[1] http://marc.theaimsgroup.com/?l=xml-cocoon-dev&m=105186786214827&w=2


Tony


--
Tony Collen
ICQ: 12410567
--
Cocoon: Internet Glue (A Cocoon Weblog)
http://manero.org/weblog/
--



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


Re: Any ideas?

Posted by Alex Nelson <an...@ansoftcomputing.com>.
Tony:

Running cocoon from the built in version of Jetty works just fine. I
guess my problem lies with my tomcat setup then. Any further ideas?

-- 
Alex Nelson
ANSoft Computing
www.ansoftcomputing.com
"We make systems work!"


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


Re: Any ideas?

Posted by Tony Collen <tc...@neuagency.com>.
On 2 May 2003, Alex Nelson wrote:

> I am sorry to keep bothering this list with newbie questions. I have
> tried multiple installations of tomcat, java, and cocoon trying to find
> a setup that works for me. I am currently running RedHat 9.0 as the host
> OS. I have installed J2SE1.4.2, and downloaded the 2.1M1 release of
> cocoon. I created a local.blocks.properties file and disabled every
> single block. I created a local.build.properties file and enabled debug
> and disabled optimisation. I fixed the line endings in the tools/bin/ant
> and used build.sh compile. ("./build.sh war") I copied three jar files
> over to the $TOMCAT_HOME/common/endorsed directory. The listing of that
> directory follows:

Hmm, ignoring Tomcat for a minute, are you able to run Cocoon using the
built-in version of Jetty?  Try "./cocoon.sh servlet" from the Cocoon
src directory after a build.  You should see something on
http://localhost:8888/ if it works.

Tony

--
Tony Collen
ICQ: 12410567
--
Cocoon: Internet Glue (A Cocoon Weblog)
http://manero.org/weblog/
--


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


Re: Any ideas?

Posted by Geoff Howard <co...@leverageweb.com>.
At 12:20 PM 5/2/2003, Bruno wrote:
>On Fri, 2003-05-02 at 18:19, Geoff Howard wrote:
> > I think Tony may be on to the issue, but first:
> > - try moving xsltc.jar (or whatever it's called) over to endorsed as
> > well as Antonio has pointed out.  Seems logical since the error trace
> > starts there.
>
>xsltc isn't in a seperate jar anymore with xalan 2.5

Ah!  Thanks.

Geoff 


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


Re: Any ideas?

Posted by Bruno Dumon <br...@outerthought.org>.
On Fri, 2003-05-02 at 18:19, Geoff Howard wrote:
> I think Tony may be on to the issue, but first:
> - try moving xsltc.jar (or whatever it's called) over to endorsed as
> well as Antonio has pointed out.  Seems logical since the error trace
> starts there.

xsltc isn't in a seperate jar anymore with xalan 2.5

-- 
Bruno Dumon                             http://outerthought.org/
Outerthought - Open Source, Java & XML Competence Support Center
bruno@outerthought.org                          bruno@apache.org


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


Re: Any ideas?

Posted by Geoff Howard <co...@leverageweb.com>.
I think Tony may be on to the issue, but first:
- try moving xsltc.jar (or whatever it's called) over to endorsed as
well as Antonio has pointed out.  Seems logical since the error trace
starts there.
- Also, what is in jaxp_parser_impl.jar?

Geoff

At 11:44 AM 5/2/2003, you wrote:
>I am sorry to keep bothering this list with newbie questions. I have
>tried multiple installations of tomcat, java, and cocoon trying to find
>a setup that works for me. I am currently running RedHat 9.0 as the host
>OS. I have installed J2SE1.4.2, and downloaded the 2.1M1 release of
>cocoon. I created a local.blocks.properties file and disabled every
>single block. I created a local.build.properties file and enabled debug
>and disabled optimisation. I fixed the line endings in the tools/bin/ant
>and used build.sh compile. ("./build.sh war") I copied three jar files
>over to the $TOMCAT_HOME/common/endorsed directory. The listing of that
>directory follows:
>
>total 4400
>-rw-r--r--    1 root     root       816488 Apr  1 07:59
>jaxp_parser_impl.jar
>-rw-r--r--    1 root     root      2645149 May  2 11:03 xalan-2.5.0.jar
>-rw-r--r--    1 root     root       895924 May  2 11:03
>xercesImpl-2.4.0.jar
>-rw-r--r--    1 root     root       124720 May  2 11:03 xml-apis.jar
>
>Tomcat starts just fine and displays my other webapps with no problems.
>When I try and go to localhost:8080/cocoon I get a blank page back.
>Catalina.log shows no errors. The localhost log contains the following
>error:
>
>----- Root Cause -----
>java.lang.IllegalAccessError: class
>org.apache.xml.dtm.ref.sax2dtm.SAX2DTM2$AncestorIterator cannot access
>its superclass
>org.apache.xml.dtm.ref.DTMDefaultBaseIterators$InternalAxisIteratorBase
>         at java.lang.ClassLoader.defineClass0(Native Method)
>         at java.lang.ClassLoader.defineClass(ClassLoader.java:537)
>         at
>java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
>         at java.net.URLClassLoader.defineClass(URLClassLoader.java:251)
>         at java.net.URLClassLoader.access$100(URLClassLoader.java:55)
>         at java.net.URLClassLoader$1.run(URLClassLoader.java:194)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
>         at org.apache.catalina.loader.StandardClassLoader.findClass(Unknown
>Source)
>         at org.apache.catalina.loader.StandardClassLoader.loadClass(Unknown
>Source)
>         at org.apache.catalina.loader.StandardClassLoader.loadClass(Unknown
>Source)
>         at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
>         at
>org.apache.xalan.xsltc.dom.XSLTCDTMManager.getDTM(XSLTCDTMManager.java:291)
>         at
>org.apache.xalan.xsltc.dom.XSLTCDTMManager.getDTM(XSLTCDTMManager.java:174)
>
>I am not sure what I am missing to get cocoon to work but would like to
>use this for a client project.
>
>BTW: Thanks go to Geoff and Antonio for their patience as I stumble
>along.
>
>--
>Alex Nelson
>ANSoft Computing
>www.ansoftcomputing.com
>"We make systems work!"
>
>
>---------------------------------------------------------------------
>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