Thanks for the reply Grigoras.

The MANIFEST.xml vs MANIFEST.MF was just a typo in the email.

I've solved my problem now. I read a couple of articles on class
loading.

http://www.onjava.com/pub/a/onjava/2001/07/25/ejb.html

My problem was not a class loading issue. For some reason when I try to
sort my list I get a NoClassDefFoundError thrown. The class it's looking
for is the StoreController. I've just left out the sorting code for the
moment.

The self contained example works, just not when I try to merge the
example into my project. Oh well. I'll have another look at it later in
the project.

Thanks
JP.




-----Original Message-----
From: Grigoras Cristinel [mailto:[EMAIL PROTECTED] 
Sent: 07 October 2005 14:43
To: MyFaces Discussion
Subject: Re: Layout of EAR file JBoss 4.0.2 with myFaces

Jeffrey Porter wrote:

> I'm having trouble with class loading & EAR file layout.
>
> I have the current format...
>
> EAR
>
> EAR/Lib
>
> EAR/Lib/myfaces-impl.jar
>
> EAR/Lib/myfaces-api.jar
>
> EAR/META-INF/application.xml
>
> EAR/META-INF/MANIFEST.xml
>
> EAR/workwebpages.war
>
> The WAR file has in its MANIFEST.xml the parameter "Class-Path:
> lib/myfaces-api.jar lib/myfaces-impl.jar" set.
>
> But when I start up I get the following messages when I try to access
> a jsf/jsp...
>
> */org.apache.jasper.JasperException: The absolute uri:
> http://java.sun.com/jsf/html cannot be resolved in either web.xml or
> the jar files deployed with this application/*
>
> If I move the myfaces-xxx.jar files into the WAR/WEB-INF/lib/
> directory I don't get this.
>
> I get the error message...
>
> */java.lang.ClassNotFoundException:
> org.apache.myfaces.component.html.ext.HtmlSelectManyCheckbox/*
>
> But I'd sooner have all the api's in the lib directory of the EAR.
>
> Can someone give me an example on how I'm meant to layout the contents
> of an EAR for JBoss 4.0.2 with MyFaces?
>
> Hope someone can help me.
>
> Thanks.
>
> Jeff
>
Is about the class loader.
Set <attribute name="UseJBossWebLoader">false</attribute> in
deploy\jbossweb-tomcat55.sar\META-INF\jboss-service.xml
For me was better to use this and put myfaces libs in war.

What is MANIFEST.xml ? Maybe MANIFEST.MF ?

Cristi

Reply via email to