You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by Shanna7463 <sh...@yahoo.com> on 2007/01/26 23:01:50 UTC

wsdl-first classpath

Hi I am trying to import a class in the PersonImpl.java in the wsdl-first
example, but I'm not sure where to put the jar so that PersonImpl.java can
find it.  I tried putting the jar in servicemix_home/lib, but when i run mvn
install it says 

C:\servicemix\servicemix\examples\wsdl-first\wsdl-first-jsr181-su\src\main\java\org\apache\
servicemix\samples\wsdl_first\PersonImpl.java:[23,24] package
hello.world.test does not exist

So then I created a lib directory in 
$servicemix_home\examples\wsdl-first\wsdl-first-jsr181-su\src\main\resources

and I edited the xbean.xml file to include:

     <classpath>
     <location>lib/hello.jar</location>
     </classpath>

but I still get the same error.  Do I need to any anything to the
person.wsdl file?

Thanks for any suggestions!!

-- Shanna --
-- 
View this message in context: http://www.nabble.com/wsdl-first-classpath-tf3125443s12049.html#a8659588
Sent from the ServiceMix - User mailing list archive at Nabble.com.


Re: wsdl-first classpath

Posted by Guillaume Nodet <gn...@gmail.com>.
You need to add your jar to the dependency list
in the pom.xml.  The jbi maven plugin will automatically
add the jar to the service unit in the lib folder, and it will
also be available when compiling.

On 1/26/07, Shanna7463 <sh...@yahoo.com> wrote:
>
> Hi I am trying to import a class in the PersonImpl.java in the wsdl-first
> example, but I'm not sure where to put the jar so that PersonImpl.java can
> find it.  I tried putting the jar in servicemix_home/lib, but when i run mvn
> install it says
>
> C:\servicemix\servicemix\examples\wsdl-first\wsdl-first-jsr181-su\src\main\java\org\apache\
> servicemix\samples\wsdl_first\PersonImpl.java:[23,24] package
> hello.world.test does not exist
>
> So then I created a lib directory in
> $servicemix_home\examples\wsdl-first\wsdl-first-jsr181-su\src\main\resources
>
> and I edited the xbean.xml file to include:
>
>      <classpath>
>      <location>lib/hello.jar</location>
>      </classpath>
>
> but I still get the same error.  Do I need to any anything to the
> person.wsdl file?
>
> Thanks for any suggestions!!
>
> -- Shanna --
> --
> View this message in context: http://www.nabble.com/wsdl-first-classpath-tf3125443s12049.html#a8659588
> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>
>


-- 
Cheers,
Guillaume Nodet
------------------------
Architect, LogicBlaze (http://www.logicblaze.com/)
Blog: http://gnodet.blogspot.com/

Re: wsdl-first classpath

Posted by Shanna7463 <sh...@yahoo.com>.
Has anyone imported a lib in the wsdl-first example by editing xbeans.xml?

Any Help would be greatly appreciated!! 


Shanna7463 wrote:
> 
> Hi I am trying to import a class in the PersonImpl.java in the wsdl-first
> example, but I'm not sure where to put the jar so that PersonImpl.java can
> find it.  I tried putting the jar in servicemix_home/lib, but when i run
> mvn install it says 
> 
> C:\servicemix\servicemix\examples\wsdl-first\wsdl-first-jsr181-su\src\main\java\org\apache\
> servicemix\samples\wsdl_first\PersonImpl.java:[23,24] package
> hello.world.test does not exist
> 
> So then I created a lib directory in 
> $servicemix_home\examples\wsdl-first\wsdl-first-jsr181-su\src\main\resources
> 
> and I edited the xbean.xml file to include:
> 
>      <classpath>
>      <location>lib/hello.jar</location>
>      </classpath>
> 
> but I still get the same error.  Do I need to any anything to the
> person.wsdl file?
> 
> Thanks for any suggestions!!
> 
> -- Shanna --
> 

-- 
View this message in context: http://www.nabble.com/wsdl-first-classpath-tf3125443s12049.html#a8699350
Sent from the ServiceMix - User mailing list archive at Nabble.com.