You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by ar...@za.safmarine.com on 2004/04/07 10:14:31 UTC

/ /OREF:CPTBB0B5 Need dependency on system classpath

Hi there,

I'm trying to use "rowset.jar" with my Maven project.
However, it seems that rowset.jar has classes that require to load a
properties file that it does through a system class loader.
My JUnit tests that use rowset.jar fail.

I'm just not 100% sure where do I define my rowset.jar file as a
dependency.
Do I define it in System Classpath (export
CLASSPATH=/.../rowset.jar:$CLASSPATH).
Or do I have to still specify it in my project.xml file dependency
element.

My project does depend on rowset.jar so it makes sense that it should
reside in my project.xml file but, AFAIK, I still need it to be on my
System CLASSPATH for it to function correctly.

Having it in both places doesn't work either (I get
"java.sql.SQLException: Invalid persistence provider generated")
I got a good feeling that it maybe using a wrong loaded jar. (wrong
class loader when running the test for rowset calls to work)

I use WSAD as my IDE and if I run the JUnit test through the IDE all
works 100%.

Any ideas or suggestions please.
I have been trying to get this to work for a long time with no luck.
This is driving me insane now. :(

Thanks
--Alen



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


Re: / /OREF:CPTBB0B5 Need dependency on system classpath

Posted by Martin Jaeger <mj...@netcetera.ch>.
Hi Alen

We had the same problem the "solution" was to set the
maven.junit.fork=true

I hope it helps

Bye
Martin


On Wed, 7 Apr 2004 aribic@za.safmarine.com wrote:

> From: aribic@za.safmarine.com
> To: users@maven.apache.org
> Subject: / /OREF:CPTBB0B5 Need dependency on system classpath
> Date: Wed, 7 Apr 2004 10:14:31 +0200
> X-mailer: Lotus Notes Release 6.0.1CF3 July 29, 2003
>
> Hi there,
>
> I'm trying to use "rowset.jar" with my Maven project.
> However, it seems that rowset.jar has classes that require to load a
> properties file that it does through a system class loader.
> My JUnit tests that use rowset.jar fail.
>
> I'm just not 100% sure where do I define my rowset.jar file as a
> dependency.
> Do I define it in System Classpath (export
> CLASSPATH=/.../rowset.jar:$CLASSPATH).
> Or do I have to still specify it in my project.xml file dependency
> element.
>
> My project does depend on rowset.jar so it makes sense that it should
> reside in my project.xml file but, AFAIK, I still need it to be on my
> System CLASSPATH for it to function correctly.
>
> Having it in both places doesn't work either (I get
> "java.sql.SQLException: Invalid persistence provider generated")
> I got a good feeling that it maybe using a wrong loaded jar. (wrong
> class loader when running the test for rowset calls to work)
>
> I use WSAD as my IDE and if I run the JUnit test through the IDE all
> works 100%.
>
> Any ideas or suggestions please.
> I have been trying to get this to work for a long time with no luck.
> This is driving me insane now. :(
>
> Thanks
> --Alen
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>


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