You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-user@portals.apache.org by Walter Brameld <wb...@newrivernet.com> on 2001/07/03 21:52:13 UTC
SAXParser not found
Hello,
Well, after much blundering, I've finally gotten Jetspeed built from
CVS. (By the way, has anybody else noticed that "build clean" causes some
of the source code to be deleted?) Now my problem is, when I run Jetspeed
and go to the main page, I get this message under the "Apache
Jetspeed" banner:
problem in SAX
transform: java.lang.ClassNotFoundException: org.apache.xerces.parsers.SAXParser
I know that that class can be found in the classpath. I've unzipped the
xerxes_1_3_1.jar and checked that that class is there. Tomcat reports
xerxes_1_3_1.jar is in the classpath when it starts up. So why can't
Jetspeed find the SAXParser class?
I'm running Tomcat 3.2.1 on a RedHat 7.0 box with JDK 1.2.2
Thanks,
Walter Brameld
wbrameld@newrivernet.com
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org
RE: SAXParser not found
Posted by David Sean Taylor <da...@bluesunrise.com>.
> CVS. (By the way, has anybody else noticed that "build
> clean" causes some
> of the source code to be deleted?)
I believe that you are talking about the castor-generated files, and that is
perfectly normal that they get deleted on clean.
> xerxes_1_3_1.jar and checked that that class is there. Tomcat reports
see my previous email to Atul 'RE:NoSuchMethodError', hopefully that helps
> -----Original Message-----
> From: Walter Brameld [mailto:wbrameld@newrivernet.com]
> Sent: Tuesday, July 03, 2001 12:52 PM
> To: jetspeed-user@jakarta.apache.org
> Subject: SAXParser not found
>
>
>
> Hello,
>
> Well, after much blundering, I've finally gotten Jetspeed built from
> CVS. (By the way, has anybody else noticed that "build
> clean" causes some
> of the source code to be deleted?) Now my problem is, when I
> run Jetspeed
> and go to the main page, I get this message under the "Apache
> Jetspeed" banner:
>
> problem in SAX
> transform: java.lang.ClassNotFoundException:
> org.apache.xerces.parsers.SAXParser
>
> I know that that class can be found in the classpath. I've
> unzipped the
> xerxes_1_3_1.jar and checked that that class is there. Tomcat reports
> xerxes_1_3_1.jar is in the classpath when it starts up. So why can't
> Jetspeed find the SAXParser class?
>
> I'm running Tomcat 3.2.1 on a RedHat 7.0 box with JDK 1.2.2
>
> Thanks,
> Walter Brameld
> wbrameld@newrivernet.com
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org
Re: NoClassDefFoundError
Posted by Walter Brameld <wb...@newrivernet.com>.
Hello,
I figured this one out myself. It's apparently a class loader issue. I
had my portlet class in my classpath, which turned out to be a
mistake. Now I've got the portlet off of the directory
TOMCAT_HOME/webapps/jetspeed/WEB-INF/classes, and everything works fine.
Walter Brameld
wbrameld@newrivernet.com
On Fri, 6 Jul 2001, Walter Brameld wrote:
>
> Hello,
>
> I'm running Jetspeed from CVS on Tomcat 3.2.1 with JDK 1.2.2 on a RedHat
> 7.0 box.
>
> After I added my own portlet, I got the following message when I logged in
> to Jetspeed and went to the Customize page:
>
> org.apache.turbine.util.TurbineException: Error rendering Velocity
> template: /controls/html/jetspeed.vm: Error rendering Velocity
> template: /controls/html/jetspeed.vm: Invocation of method 'getContent' in
> class org.apache.jetspeed.portal.portlets.customize.CustomizePortlet threw
> exception class java.lang.NoClassDefFoundError
>
> I determined (after modifying the Jetspeed source to print out a stack
> trace) that the class it cannot find is
> org.apache.jetspeed.portal.portlets.AbstractPortlet
>
> Again, this only happens when I try to add my own portlet to
> Jetspeed. The portlet itself compiles with no errors. Here is the .xreg
> file that adds the portlet:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <registry>
> <portlet-entry name="Jetspeed Users"
> hidden="false" type="instance"
> application="false">
> <classname>com.newrivernet.portlets.HelloWorldPortlet2</classname>
> <meta-info>
> <title>Jetspeed Users</title>
> <description>list of registered users</description>
> </meta-info>
> </portlet-entry>
> </registry>
>
> Any ideas why Jetspeed would have trouble finding the class
> AbstractPortlet, and only when I add my own portlet (which extends
> AbstractPortlet)?
>
> Walter Brameld
> wbrameld@newrivernet.com
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org
NoClassDefFoundError
Posted by Walter Brameld <wb...@newrivernet.com>.
Hello,
I'm running Jetspeed from CVS on Tomcat 3.2.1 with JDK 1.2.2 on a RedHat
7.0 box.
After I added my own portlet, I got the following message when I logged in
to Jetspeed and went to the Customize page:
org.apache.turbine.util.TurbineException: Error rendering Velocity
template: /controls/html/jetspeed.vm: Error rendering Velocity
template: /controls/html/jetspeed.vm: Invocation of method 'getContent' in
class org.apache.jetspeed.portal.portlets.customize.CustomizePortlet threw
exception class java.lang.NoClassDefFoundError
I determined (after modifying the Jetspeed source to print out a stack
trace) that the class it cannot find is
org.apache.jetspeed.portal.portlets.AbstractPortlet
Again, this only happens when I try to add my own portlet to
Jetspeed. The portlet itself compiles with no errors. Here is the .xreg
file that adds the portlet:
<?xml version="1.0" encoding="UTF-8"?>
<registry>
<portlet-entry name="Jetspeed Users"
hidden="false" type="instance"
application="false">
<classname>com.newrivernet.portlets.HelloWorldPortlet2</classname>
<meta-info>
<title>Jetspeed Users</title>
<description>list of registered users</description>
</meta-info>
</portlet-entry>
</registry>
Any ideas why Jetspeed would have trouble finding the class
AbstractPortlet, and only when I add my own portlet (which extends
AbstractPortlet)?
Walter Brameld
wbrameld@newrivernet.com
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org