Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » DSDP - Mobile Tools for Java (MTJ) » java.lang.NoClassDefFoundError: javax/xml/rpc/ServiceException
java.lang.NoClassDefFoundError: javax/xml/rpc/ServiceException [message #22746] Sun, 16 November 2008 12:16 Go to next message
Guadalupe Mising name is currently offline Guadalupe Mising nameFriend
Messages: 35
Registered: July 2009
Member
Dear all,
I am still trying to get a web service client running in a mobile device.
I am trying to do it through the use of the Rational Software development
tool, which is based on Eclipse, I installed Sun Wireless Toolkit 2.5.2
for CDLC and MTJ 0.9.

When I try to do it for Tomcat instead of WebSphere I do not have any
problem at compilation time but when I try to execute the midlet (in which
I only include the creation of the proxy), I get the following error in
the midlet start method:
java.lang.NoClassDefFoundError: javax/xml/rpc/ServiceException

I have included de j2ee.jar which contains the class
javax/xml/rpc/ServiceException in the building path, but I still got the
same problem.

Any suggestion to this?

Thanks a lot again,
Guadalupe
Re: java.lang.NoClassDefFoundError: javax/xml/rpc/ServiceException [message #22834 is a reply to message #22746] Sun, 16 November 2008 19:31 Go to previous messageGo to next message
Gustavo de Paula is currently offline Gustavo de PaulaFriend
Messages: 118
Registered: July 2009
Senior Member
hi,

you should not included packages on the mtj that are not compliant with
cldc, such as j2ee.jar.

if you want to do web services with midlet, you should only use what is
available on jsr 172. sonyericsson has a tutorial that explain the steps
to do that on the phone side
https://developer.sonyericsson.com/getDocument.do?docId=8646 7

sony ericsson sdk is based on wtk so anything that it mention about their
sdk is also applicable to wtx

hope it works
:)
gustavo

Guadalupe wrote:

> Dear all,
> I am still trying to get a web service client running in a mobile device.
> I am trying to do it through the use of the Rational Software development
> tool, which is based on Eclipse, I installed Sun Wireless Toolkit 2.5.2
> for CDLC and MTJ 0.9.

> When I try to do it for Tomcat instead of WebSphere I do not have any
> problem at compilation time but when I try to execute the midlet (in which
> I only include the creation of the proxy), I get the following error in
> the midlet start method:
> java.lang.NoClassDefFoundError: javax/xml/rpc/ServiceExceptionI have
included de j2ee.jar which contains the class
> javax/xml/rpc/ServiceException in the building path, but I still got the
> same problem.

> Any suggestion to this?

> Thanks a lot again,
> Guadalupe
Re: java.lang.NoClassDefFoundError: javax/xml/rpc/ServiceException [message #23390 is a reply to message #22834] Thu, 27 November 2008 12:06 Go to previous message
Guadalupe Mising name is currently offline Guadalupe Mising nameFriend
Messages: 35
Registered: July 2009
Member
Thanks a lot! That was it!
Re: java.lang.NoClassDefFoundError: javax/xml/rpc/ServiceException [message #568160 is a reply to message #22746] Sun, 16 November 2008 19:31 Go to previous message
Gustavo de Paula is currently offline Gustavo de PaulaFriend
Messages: 118
Registered: July 2009
Senior Member
hi,

you should not included packages on the mtj that are not compliant with
cldc, such as j2ee.jar.

if you want to do web services with midlet, you should only use what is
available on jsr 172. sonyericsson has a tutorial that explain the steps
to do that on the phone side
https://developer.sonyericsson.com/getDocument.do?docId=8646 7

sony ericsson sdk is based on wtk so anything that it mention about their
sdk is also applicable to wtx

hope it works
:)
gustavo

Guadalupe wrote:

> Dear all,
> I am still trying to get a web service client running in a mobile device.
> I am trying to do it through the use of the Rational Software development
> tool, which is based on Eclipse, I installed Sun Wireless Toolkit 2.5.2
> for CDLC and MTJ 0.9.

> When I try to do it for Tomcat instead of WebSphere I do not have any
> problem at compilation time but when I try to execute the midlet (in which
> I only include the creation of the proxy), I get the following error in
> the midlet start method:
> java.lang.NoClassDefFoundError: javax/xml/rpc/ServiceExceptionI have
included de j2ee.jar which contains the class
> javax/xml/rpc/ServiceException in the building path, but I still got the
> same problem.

> Any suggestion to this?

> Thanks a lot again,
> Guadalupe
Re: java.lang.NoClassDefFoundError: javax/xml/rpc/ServiceException [message #568727 is a reply to message #22834] Thu, 27 November 2008 12:06 Go to previous message
Guadalupe Mising name is currently offline Guadalupe Mising nameFriend
Messages: 35
Registered: July 2009
Member
Thanks a lot! That was it!
Previous Topic:Include resources into the JAR
Next Topic:Error reading a bean with an attribute "array of strings" from Axis WS
Goto Forum:
  


Current Time: Thu Dec 26 16:18:36 GMT 2024

Powered by FUDForum. Page generated in 0.03739 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top