Forum LAMS for Tech-Heads - General Forum: Re: Re: Re: Re: Re: java.lang.ClassNotFoundException


 
Search: 

10: Re: Re: Re: Re: Re: java.lang.ClassNotFoundException
In response to 9 08/23/10 12:18 PM
[ Reply | Forward ]
I'm sorry for not being clear.

This <lib> task should be inserted into <war> task i.e.

<target name="build-war"...
    <war warfile="...
    ...
        <lib dir="...


Best

Posted by Andrey Balan

11: Re: Re: Re: Re: Re: Re: java.lang.ClassNotFoundException
In response to 10 08/23/10 10:13 PM
[ Reply | Forward ]
Thanks fro your help Andrey.

I did add that and it included the jar files inside the war.

But it still throws the java.lang.ClassNotFoundException.

Just an idea. Probably I could send you my entire tool so you could check what's wrong.

Posted by Felipe Peña

12: Re: Re: Re: Re: Re: Re: Re: java.lang.ClassNotFoundException
In response to 11 08/24/10 07:29 AM
[ Reply | Forward ]
Felipe,

If possible can you zip it and attach it to your next post?
And I'll try to figure out what's wrong with it

Best,

Posted by Andrey Balan

13: Re: Re: Re: Re: Re: Re: Re: Re: java.lang.ClassNotFoundException
In response to 12 08/24/10 07:44 AM
[ Reply | Forward ]
Hi Andrey

The zip is attached.

Thanks for your help!

Posted by Felipe Peña

Attachments:
14: Re: Re: Re: Re: Re: Re: Re: Re: java.lang.ClassNotFoundException
In response to 12 08/26/10 05:01 PM
[ Reply | Forward ]
Hey Andrey! Sorry to bother you.

I just wanna know if you had the time to give a sneak peek to my LAMS tool.

I'd really appreciate it!

Thanks in advance.

Posted by Felipe Peña

15: Re: Re: Re: Re: Re: Re: Re: Re: java.lang.ClassNotFoundException
In response to 12 08/27/10 09:29 AM
[ Reply | Forward ]
Hey Andrey. I don't know if this would help.

When I deploy my tool, I go and see the build/deploy folder and the war is there. Then, I look inside it and the jar files are in the web/WEB-INF/lib folder.

Now, when I go to the JBOSS folder, server/default/deploy/lams.ear folder, the tool's war is also there, but it's not the same as the one placed in the tool's build folder.

My point is that probably the process of copying the war into de JBOSS folder is failing.

Appreciate your help.

Thanks.

Posted by Felipe Peña

16: Re: Re: Re: Re: Re: Re: Re: Re: Re: java.lang.ClassNotFoundException
In response to 15 08/30/10 06:28 AM
[ Reply | Forward ]
Hi Felipe,

I was able to replicate your problem. Not so sure why it happens though.

You can simply copy these 2 jar files into server/default/deploy/lams.ear folder. It will solve the problem


Best

Posted by Andrey Balan

17: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: java.lang.ClassNotFoundException
In response to 16 08/30/10 06:41 AM
[ Reply | Forward ]
Hi Andrey

I did manage to solve the problem. I re deployed my tool from scratch and the war with the 2 jars inside, copied to the lams.ear folder.

After I do that, I change a parameter from true to false in the build.xml file (for later deployments), in order to avoid issues with the the tool's database records.

From now on, I'll just manually copy the war into the lams.ear folder.

Thanks for your help!

Posted by Felipe Peña

Reply to first post on this page
Back to LAMS for Tech-Heads - General Forum