Javax.bluetooth.BluetoothStateException: java.lang.NoClassDefFoundError

Hey
I need ur help
i have a pb while trying to open a bluetooth connection from a PC to a mobile.
I got the following error while executing the << LocalDevice.getLocalDevice(); >>instruction :
Setting device to be discoverable...
Exception occured (BlueConServer initialisation): javax.bluetooth.BluetoothStateException: java.lang.NoClassDefFoundError: com/sun/kvem/jsr082/bluetooth/DiscoveryAgentImpl
Waiting for incoming connection...
BlueConServer exited!!java.lang.NullPointerException
error closing server connection!!java.lang.NullPointerException
My code is:
public static void startBluetooth() {
int i = 0;
LocalDevice local = null;
StreamConnectionNotifier server = null;
try {
System.out.println("Setting device to be discoverable...");
local = LocalDevice.getLocalDevice();
local.setDiscoverable(DiscoveryAgent.GIAC);
System.out.println("Start advertising service...");
server = (StreamConnectionNotifier) Connector.open(burl);
} catch (Exception e) {
System.out.println("Exception occured (BlueConServer initialisation): " + e);
waiting for a reply ASAP...
thanks

Hello,
Do you have the javax.bluetooth api on your computer and in your classpath.It is throwing that exception because it cannot find the api. That looks like the problem to me.
martin

Similar Messages

  • Javax.servlet.ServletException & java.lang.NoClassDefFoundError

    I am getting this javax.servlet.ServletException & java.lang.NoClassDefFoundError
    exceptions while running jsp in .netbeans.
    Iwas able to compile and run jsp pgms , but i am getting this error when i use jsp:useBean.I think the java class created is not in the proper path..netbeans is using tomcat server.The ide put the jsp's in the proper path. but it is not putting the java class i created with setter and getter methods.I also set the classpath. but din't work
    I t is eating up my time!Pl. suggest me a solution!
    Directory structure is :source file
    c:/windows/.netbeans/3.5/samples/jsp
    I guess the ide is putting all the class files(jsp) in
    C:\WINDOWS\.netbeans\3.5\tomcat406_base\work\Tomcat-Internal\localhost\C_3A_5CWINDOWS_5C.netbeans_5C3.5_5Csampledir\JSP
    so i copied the userData.class from source dir to the above directory.
    and i also did the
    set CLASSPATH= C:\WINDOWS\.netbeans\3.5\tomcat406_base\work\Tomcat-Internal\localhost\C_3A_5CWINDOWS_5C.netbeans_5C3.5_5Csampledir\JSP
    in dos prompt
    pl. find the code below.
    Html:
    <HTML>
    <HEAD>
    <TITLE>getData</TITLE>
    </HEAD>
    <BODY>
    <form method = post action="saveData.jsp">
    What's your Name : <input type=text name =username size=10>
    <br>
    What's Age : <input type=text name=age size=10>
    <br>
    What's ur email id : <input type=text name=email size=10>
    <input type=submit>
    </FORM>
    </BODY>
    </HTML>
    SaveData.jsp
    <jsp:useBean id="user" class="JSP.userData" scope="session"/>
    <jsp:setProperty name="user" property="*"/>
    <html>
    <head><title>using bean</title></head>
    <body>
    --Continue
    Thank u
    </body>
    </html>
    userData.java
    * userData.java
    * Created on February 12, 2004, 1:06 PM
    package JSP;
    * @author amano
    public class userData {
    String userName;
    int age;
    String email;
    /** Creates a new instance of userData */
    public userData()
    public void setUsername(String str)
    userName=str;
    public void setAge(int str)
    age=str;
    public void setEmail(String str)
    email=str;
    public String getUsername()
    return userName;
    public int getAge()
    return age;
    public String getEmail()
    return email;

    when i click on the submit button i get the following error msg.
    Apache Tomcat/4.0.6 - HTTP Status 500 - Internal Server Error
    javax.servlet.ServletException: JSP/user_data
         at org.netbeans.modules.tomcat.tomcat40.runtime.IDEJspServlet.service(IDEJspServlet.java:349)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
         at org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:226)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:213)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.netbeans.modules.web.monitor.catalina.MonitorValve.invoke(MonitorValve.java:148)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1027)
         at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1125)
         at java.lang.Thread.run(Thread.java:534)
    root cause
    java.lang.NoClassDefFoundError: JSP/user_data
         at java.lang.Class.getDeclaredConstructors0(Native Method)
         at java.lang.Class.privateGetDeclaredConstructors(Class.java:1610)
         at java.lang.Class.getConstructor0(Class.java:1922)
         at java.lang.Class.newInstance0(Class.java:278)
         at java.lang.Class.newInstance(Class.java:261)
         at org.netbeans.modules.tomcat.tomcat40.runtime.IDEJspServlet$JspServletWrapper.load(IDEJspServlet.java:106)
         at org.netbeans.modules.tomcat.tomcat40.runtime.IDEJspServlet$JspServletWrapper.loadIfNecessary(IDEJspServlet.java:150)
         at org.netbeans.modules.tomcat.tomcat40.runtime.IDEJspServlet$JspServletWrapper.service(IDEJspServlet.java:160)
         at org.netbeans.modules.tomcat.tomcat40.runtime.IDEJspServlet.serviceJspFile(IDEJspServlet.java:246)
         at org.netbeans.modules.tomcat.tomcat40.runtime.IDEJspServlet.service(IDEJspServlet.java:339)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
         at org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:226)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:213)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.netbeans.modules.web.monitor.catalina.MonitorValve.invoke(MonitorValve.java:148)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1027)
         at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1125)
         at java.lang.Thread.run(Thread.java:534)

  • Oracle ADF on glassfish 3.1.x java.lang.NoClassDefFoundError: oracle/adf/sh

    i have a problem trying test my jdeveloper essential on a glassfish server i have the next exception when i try to deploy the EAR
    Exception while loading the app : java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: java.lang.IllegalArgumentException: javax.servlet.ServletException: java.lang.NoClassDefFoundError: oracle/adf/share/logging/ADFLogger.
    what can i do?
    thnaks

    Hi,
    did you install the ADF library files on glassfish as documented here?
    http://docs.oracle.com/cd/E35521_01/admin.111230/e16179/ap_glassfish.htm#BABIEADD
    You download the runtime libraries to be installed on Glassfish from here
    http://www.oracle.com/technetwork/developer-tools/adf/downloads/index.html
    See --> Oracle ADF Essentials Download option
    Frank

  • Java.lang.NoClassDefFoundError: javax/el/CompositeELResolver error

    Hi to everyone.
    i'm searching for help.
    I'm working with a web project under WebShere and for working and compatibility reason I have to migrate from version 7.0 of WAS to older 6.1 version.
    My project under version 7 run perfectly but now I not even can start correctly the WAS.
    I receive the error about topic title: java.lang.NoClassDefFoundError: javax/el/CompositeELResolver error
    The project was born to work with JSF 1.2 and RichFaces 3.3.2 but I know they are not supported under WAS 6.1 and so I've:
    - first tried to imported in project older version of jsf and richfaces (jsf 1.1.02, rich 3.1.6);
    - then tried to installed them as shared libraries;
    suddenly i've tried to reinstall entire WAS... same result.
    can someone help me?
    PS: the content of console after start attempt is:
    java.lang.NoClassDefFoundError: javax.el.CompositeELResolver
         at java.lang.J9VMInternals.verifyImpl(Native Method)
         at java.lang.J9VMInternals.verify(J9VMInternals.java:68)
         at java.lang.J9VMInternals.initialize(J9VMInternals.java:129)
         at java.lang.Class.forNameImpl(Native Method)
         at java.lang.Class.forName(Class.java:163)
         at com.ibm.ws.jsp.webcontainerext.AbstractJSPExtensionProcessor.<init>(AbstractJSPExtensionProcessor.java:183)
         at com.ibm.ws.jsp.webcontainerext.ws.WASJSPExtensionProcessor.<init>(WASJSPExtensionProcessor.java:65)
         at com.ibm.ws.jsp.webcontainerext.ws.WASJSPExtensionFactory.createProcessor(WASJSPExtensionFactory.java:188)
         at com.ibm.ws.jsp.webcontainerext.AbstractJSPExtensionFactory.createExtensionProcessor(AbstractJSPExtensionFactory.java:75)
         at com.ibm.ws.webcontainer.webapp.WebApp.initializeExtensionProcessors(WebApp.java:1186)
         at com.ibm.ws.webcontainer.webapp.WebApp.commonInitializationFinish(WebApp.java:340)
         at com.ibm.ws.wswebcontainer.webapp.WebApp.initialize(WebApp.java:337)
         at com.ibm.ws.wswebcontainer.webapp.WebGroup.addWebApplication(WebGroup.java:92)
         at com.ibm.ws.wswebcontainer.VirtualHost.addWebApplication(VirtualHost.java:157)
         at com.ibm.ws.wswebcontainer.WebContainer.addWebApp(WebContainer.java:666)
         at com.ibm.ws.wswebcontainer.WebContainer.addWebApplication(WebContainer.java:619)
         at com.ibm.ws.webcontainer.component.WebContainerImpl.install(WebContainerImpl.java:395)
         at com.ibm.ws.webcontainer.component.WebContainerImpl.start(WebContainerImpl.java:611)
         at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:1304)
         at com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectStart(DeployedApplicationImpl.java:1165)
         at com.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedModuleImpl.java:587)
         at com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:832)
         at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:950)
         at com.ibm.ws.runtime.component.ApplicationMgrImpl$AppInitializer.run(ApplicationMgrImpl.java:2131)
         at com.ibm.wsspi.runtime.component.WsComponentImpl$_AsynchInitializer.run(WsComponentImpl.java:342)
         at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1473)
    Caused by: java.lang.ClassNotFoundException: javax.el.CompositeELResolver
         at java.net.URLClassLoader.findClass(URLClassLoader.java:496)
         at com.ibm.ws.bootstrap.ExtClassLoader.findClass(ExtClassLoader.java:150)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:631)
         at com.ibm.ws.bootstrap.ExtClassLoader.loadClass(ExtClassLoader.java:90)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:597)
         at com.ibm.ws.classloader.ProtectionClassLoader.loadClass(ProtectionClassLoader.java:58)
         at com.ibm.ws.classloader.ProtectionClassLoader.loadClass(ProtectionClassLoader.java:54)
         at com.ibm.ws.classloader.CompoundClassLoader.loadClass(CompoundClassLoader.java:429)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:597)
         ... 26 more

    Looks like you need an implementation of the EL language.

  • Java.lang.NoClassDefFoundError: javax/xml/rpc/soap/SOAPFaultException

    I have created webservice client using jwsdp-2.0 + JDK 1.5
    in Netbeans 4.1 IDE it
    works perfectly in the netbeans and also works at the command prompt but when i
    create a Jar file from the netbeans and run at the command prompt with following
    i have included all the jar files from the jwsdp-2.0 pack in the manifest file and have
    also specified the main class
    java -jar test.jar it gives following error
    java.lang.NoClassDefFoundError: javax/xml/rpc/soap/SOAPFaultException

    You need the JAX-RPC classes in your class path.

  • Exception in thread "main" java.lang.NoClassDefFoundError: javax/xml/soap/S

    Hi,
    I have created a class JaxmClient.java. When I compile the class with appropriate jar files assigned to -classpath it compiles successfully with no errors. But when I run the classe "java JaxmClient" it produces the following exception:
    Exception in thread "main" java.lang.NoClassDefFoundError: javax/xml/soap/SOAPElement
    Can someone help me I am knew to this technology.
    Thanks in advance

    I tried to use in my execution all the jar files that I used for compilation.
    java -cp jaxm-jar; etc.jar Request
    but it still gives me this execption
    Exception in thread "main" java.lang.NoClassDefFoundError: Request
    I am in the right directory where is the Request.class file is and it is present in this directory....
    Thanks appreciate your help...

  • Jaxb with weblogic -- java.lang.NoClassDefFoundError: javax/xml/bind/MarshallableRootElement

    I am trying to use jaxb with Weblogic 6.1. I kept both the jaxb jar file in weblogic
    classpath in setEnv script. I am getting the following error, when I am trying
    to use jaxb
    java.lang.NoClassDefFoundError: javax/xml/bind/MarshallableRootElement
    I tried other options also like coping both jar file in jre/ext dir but then I
    got security error.
    I will appreciate if someone in this newsgroup comments or suugest some solution.
    Thanks
    Jeewan

    On 06 Aug 2002, Jeewan wrote:
    >
    I am trying to use jaxb with Weblogic 6.1. I kept both the jaxb jar
    file in weblogic classpath in setEnv script. I am getting the
    following error, when I am trying to use jaxb
    java.lang.NoClassDefFoundError: javax/xml/bind/MarshallableRootElement
    I tried other options also like coping both jar file in jre/ext dir
    but then I got security error.
    I will appreciate if someone in this newsgroup comments or suugest
    some solution. Put the jaxb jar file in in your webapp's WEB-INF/lib directory and it
    should work fine.
    Barry

  • Exception in thread "main" java.lang.NoClassDefFoundError: javax/xml/stream

    I am trying to develop a web service client for amazon webservice.but i am getting this error while running the app. Can anyone please help me. I have installed the JWSDP and but could not understand why i have to locate all the jar files in the classpath?Please help.
    ===== error=========================================
    C:\abr\classes>java -classpath c:\abr\test.jar;C:\abr\jaxrpc-api.jar;C:\abr\jaxrpc-impl.jar;C:\abr\jaxrpc-spi.jar;c:\abr\classes\amazon.jar;C:\abr\mail.jar;C:\a
    br\saaj-api.jar;C:\abr\activation.jar;c:\abr\FastInfoset.jar;%classpath% Client
    [b]Exception in thread "main" java.lang.NoClassDefFoundError: javax/xml/stream/XMLS
    treamWriter
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClass(Unknown Source)
    at java.security.SecureClassLoader.defineClass(Unknown Source)
    at java.net.URLClassLoader.defineClass(Unknown Source)
    at java.net.URLClassLoader.access$100(Unknown Source)
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClassInternal(Unknown Source)
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClass(Unknown Source)
    at java.security.SecureClassLoader.defineClass(Unknown Source)
    at java.net.URLClassLoader.defineClass(Unknown Source)
    at java.net.URLClassLoader.access$100(Unknown Source)
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClassInternal(Unknown Source)
    at com.sun.xml.rpc.client.StreamingSender._writeRequest(StreamingSender.
    java:672)
    at com.sun.xml.rpc.client.StreamingSender._send(StreamingSender.java:87)
    at amazon.AmazonSearchPort_Stub.authorSearchRequest(AmazonSearchPort_Stu
    b.java:988)
    at Client.main(Client.java:21)

    I'm assuming you're using JWSDP 1.6 as I see Fastinfoset.jar in your list. You are missing some jar files in your classpath there. The best way to know what you need is to look at the release notes for JWSDP 1.6. Since you're building a web serivce start with the table in there and lookup JAX-RPC. It'll show you what jar files are needed and what other libraries are needed. Now depending on what you're doing you don't really need all those.
    For sure you're missing jsr173_api.jar which is where I believe that class you need is located. This is in the JWSDP_1_6\sjsxp\lib directory. You will probably need the other jar thats in there too. Best bet is to follow the dependancy chart in the release notes.
    This should get you going.
    Ryan

  • Java.lang.NoClassDefFoundError: javax/resource/ResourceException

    Hi everybody,receive my sincere greeting,i have a slight problem right here.I am trying to test the Server API for Mobile Services i dowloaded from nokia forum.I have a J2SE program that sends an SMS to a mobile device.When i try to run the simple program in JBuilder 2005 Enterprise i encounter the error below.Please help me i am not sure if i should include the j2ee.jar for my project to detect the resource package in javax or not.Anyone related with this problem plz help me.
    Nov 3, 2006 1:46:38 PM com.nokia.sams.util.sms.config.ServiceApiConfiguration init
    INFO: Loading Service API configuration.
    Nov 3, 2006 1:46:38 PM com.nokia.sams.util.sms.config.ServiceApiConfiguration init
    INFO: Service API config file is: C:\Borland\JBuilder2005\jdk1.4\jre\lib\nokia_sams_service.properties
    Nov 3, 2006 1:46:38 PM com.nokia.sams.util.sms.config.ServiceApiConfiguration init
    INFO: Service API configuration loaded.
    java.lang.NoClassDefFoundError: javax/resource/ResourceException
         at java.lang.Class.forName0(Native Method)
         at java.lang.Class.forName(Class.java:141)
         at com.nokia.sams.SmsMessageListenerHandler.<init>(SmsMessageListenerHandler.java:58)
         at com.nokia.sams.SmsSession.<init>(SmsSession.java:37)
         at com.nokia.sams.messaging.SmsMessagingSession.<init>(SmsMessagingSession.java:71)
         at com.nokia.sams.SmsService.openSession(SmsService.java:74)
         at com.klaas.sams.SMSServer.sendMessage(SMSServer.java:21)
         at com.klaas.sams.SMSServer.main(SMSServer.java:50)
    Exception in thread "main"

    Hi,
    Just try to find connector.jar and put it into your lib location.
    Regards,
    Deddy

  • Java.lang.NoClassDefFoundError: javax/xml/rpc/Service

    Hi,
    I have created client stubs for a webservice using axis wsdl2java tool. When I try calling these stubbed methods from JUnit tests, they are working fine but when I try to execute the jar (it is a swing) I get the following exception:
    Exception in thread "main" java.lang.NoClassDefFoundError: javax/xml/rpc/Service
            at java.lang.ClassLoader.defineClass1(Native Method)
            at java.lang.ClassLoader.defineClass(Unknown Source)
            at java.security.SecureClassLoader.defineClass(Unknown Source)
            at java.net.URLClassLoader.defineClass(Unknown Source)
            at java.net.URLClassLoader.access$100(Unknown Source)
            at java.net.URLClassLoader$1.run(Unknown Source)
            at java.security.AccessController.doPrivileged(Native Method)
            at java.net.URLClassLoader.findClass(Unknown Source)
            at java.lang.ClassLoader.loadClass(Unknown Source)
            at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
            at java.lang.ClassLoader.loadClass(Unknown Source)
            at java.lang.ClassLoader.loadClassInternal(Unknown Source)
            at com.Gudds.SeCURE.MainUI.<init>(MainUI.java:76)
            at com.Gudds.SeCURE.Main.Start(Main.java:62)
            at org.owasp.webscarab.WebScarab.main(WebScarab.java:34)I have put the jaxrpc.jar in the classpath and I suppose this jar has the java.xml.rpc.service class but I donot understand why it fails while executing the jar but works fine from the eclipse IDe. Plase help me.
    Regrdas,
    Kundan

    1. Build jar file with MAINFEST.MF and Export of Eclipse , which has content:
    suppose in folder:
    c:\client.jar ( client of web service )
    c:\contrib/lib/ axis apis
    Main-Class: com.MainClassName
    Class-Path: contrib\axis\jaxrpc.jar contrib\axis\activation.jar con
    trib\axis\axis.jar contrib\axis\axis.jar contrib\axis\commons-disco
    very.jar contrib\axis\wsdl4j.jar contrib\axis\saaj.jar contrib\axi
    s\soap.jar contrib\axis\commons-logging.jar contrib\axis\log4j.jar
    contrib\axis\mail.jar
    2. build jar with ant: make sure the their are at least one blank between
    values of Class-Path.
              <jar destfile="../Client/client.jar" >
                   <fileset dir="${build.dir}"/>
              <manifest>
              <attribute name="Built-By" value="${user.name}"/>
                   <attribute name="Main-Class" value="com.MainClass"/>
              <attribute name="Class-Path" value=" contrib\axis\jaxrpc.jar contrib\axis\activation.jar .. "/>
              </manifest>
              </jar>
    3. If you haven't pack you class file in jar, create a bat to set CLASSPATH
    exactly to all jars.
    Hope this helps

  • Java.lang.NoClassDefFoundError: javax/mail/Service

    Hi,
    Happy New Year Everyone! Sadly, it's not that happy for me right now, I'm trying to write a mail app using JavaMail, but I'm getting a NoClassDefFoundError when I run the program.... The program compiles fine, it only crashes when I run the program. Does anyone have any ideas why that's happenning? I compile the program using javac -classpath .:mail.jar *.java and I'm working on a Unix Box. Any help anyone can provide is greatly appreciated!
    The error message I received is pasted below (I left out the stack trace to make reading easier).
    Exception occurred during event dispatching:
    java.lang.NoClassDefFoundError: javax/mail/Service
    [Stack Trace]
    Thanks in Advance!
    Juivette

    Read the directions that came with the javamail API...it tells you the OTHER API you need. Also, word of advice....I un jar'd and re-jar'd all the classes from BOTH API's in one file...makes life easier.

  • Exception in thread "main" java.lang.NoclassDefFoundError:javax/actiovation

    c:\>java Emailer
    Exception in thread "main" java.lang.NoclassDefFoundError:javax/actiovation/DataSource
    at Main.<inti><Main.java:36>
    at Main.<inti><Main.java:51>
    am getting the following error wen am try to run my code..
    i think am havin problem in settin the classpath for
    authentication.jar file
    and if poissible give me full code for sending email from maa system
    can any one tell me how to set the class path for the jar file and wer to download the jar file
    thanks in advance
    bye

    import java.util.*;
    import java.io.*;
    import javax.mail.*;
    import javax.mail.internet.*;
    import com.sun.mail.smtp.SMTPMessage;
    public class Emailer
         String subject;
         String body;
      public Emailer()
      public void sendEmail(String fromEmailAddr, String toEmailAddr, String ccEmailAddr, String aSubject, String aBody) throws AddressException
           subject = aSubject;
           body = aBody;
           Properties eMailConfigProps = new Properties();
      eMailConfigProps = System.getProperties();
    eMailConfigProps.put("mail.from",new InternetAddress(fromEmailAddr));
           eMailConfigProps.put("mail.smtp.host", "59.175.161.22");
          eMailConfigProps.setProperty("mail.smtp.port", "25");
      eMailConfigProps.put("mail.transport.protocol", "59.175.161.22");
           Session session = Session.getInstance(eMailConfigProps, null);
           MimeMessage message = new SMTPMessage(session);
              try
    message.addRecipient(Message.RecipientType.TO, new InternetAddress(toEmailAddr));
    message.addRecipient(Message.RecipientType.CC, new InternetAddress(ccEmailAddr));
                message.setSubject(subject);
                message.setText(body);
                Transport.send(message);
              catch (MessagingException ex)
                System.err.println("Cannot send email. " + ex);
    public static void main(String args[])
          Emailer objEmailer = new Emailer();
         try
              objEmailer.sendEmail("[email protected]","[email protected]","[email protected]","Test Mail","Hi am working...");
         catch(javax.mail.internet.AddressException e)
              e.printStackTrace();
    wen am trying to execute the about code .. itss showing the following error
    plz wat r the changes that i should do in that coding..
    even i got the code from this forum only
    plz tel me
    this is the error am getting :
    c:/>java Emailer
    cannto send email. javax.mail.MessagingException : Could not connect to SMTP host :192.168.15.100,port :25;
    nested exception is :java.net.ConeectException :Connecton refused:connect
    tis is the error am getting ..
    pplzz anyone help
    wat r the changess that i should do in maa programm .. wat is the ipaddress and port no i should put ..wer can i get these 2..
    thanks in advance
    bye

  • Exception in thread "main" java.lang.NoClassDefFoundError: javax/media/jai/

    Exception in thread "main" java.lang.NoClassDefFoundError: javax/media/jai/
    After I got this exception, I tried the following solution:
    I downloaded the Windows package for JAI from this link:
    https://jai-imageio.dev.java.net/binary-builds.html
    Then I went to the Projects window > Libraries (Netbeans IDE) and browsed to the two jar files in that download. The two jar files are now showing under the Libraries node and, accordingly, they are listed in my Classpath as this:
    ..\..\..\Desktop\jai-imageio-1_2-pre-dr-b04-lib-windows-i586-07_Apr_2009\lib\ext\jai_imageio.jar
    ..\..\..\Desktop\jai-imageio-1_2-pre-dr-b04-lib-windows-i586-07_Apr_2009\lib\ext\clibwrapper_jiio.jar
    There also a couple of DLL files which I wasn't sure how to add.
    So why am I still getting this error? Maybe it's the wrong version of JAI?

    This research made me VERY late for work and I've been swamped all day. Didn't have a chance to post my solution earlier.
    "It appears that you have downloaded wrong package... try downloading and installing the stable release " jai_imageio-1_1-lib-windows-i586-jdk.exe ".
    I didn't know how to install that one. I tried clicking it and got an error msg. Then I added it as a reference (I browsed to it from the Libraries node) which "seemed" to work (allowed me to run my app using F6) but then it wouldn't produce a deployment package when I seleced Run > Clean and Build. So I went back and downloaded the "Daily Build" which unzips to two jar files
    jai_imageio.jar
    clibwrapper_jiio.jar
    and immedliately Run > Clean and Build produced a deployment package. (All of this is to get PDFbox running in my app). I also needed jai_core.jar which I believe was from this page:
    http://code.google.com/p/mapmap/downloads/detail?name=jai_core.jar&can=2&q=
    specifically this link:
    http://mapmap.googlecode.com/files/jai_core.jar
    By the way I am using a "Daily Build" for PDFbox (0.7.4) which came from the "FOP" downloads here:
    http://www.jeremias-maerki.ch/download/fop/pdf-images/
    but I still needed the older pdfbox 0.7.3 download just to extract the Fontbox.jar from it. I needed a codec from this page as well:
    http://www.findjar.com/jar/geoserver/jai/jars/jai_codec-1.1.3-alpha.jar.html
    the codec was offered as a one-link download:
    http://www.findjar.com/jar/geoserver/jai/jars/jai_codec-1.1.3-alpha.jar.html
    The upshot of all this is that I can now work with more types of PDF files than before - but still not all of them. I'm getting another error on some of them (I'll have to reproduce this at home).

  • Error Deployer BEA-149205 java.lang.NoClassDefFoundError: javax/wsdl/

    I have installed WebLogic 9.3 MP3 as a requirement for OTM6.0 and installed OTM with choosing WebLogic as App Server.
    After install steps, started the OTM services, but getting the following error:
    console.log.0 :
    INFO | 2009/07/07 21:19:18 | -----------> GC3 realm initialized
    INFO | 2009/07/07 21:19:19 | <Jul 7, 2009 9:19:19 PM PDT> <Notice> <Security> <BEA-090082> <Security initializing using security realm otmrealm.>
    INFO | 2009/07/07 21:19:22 | <Jul 7, 2009 9:19:22 PM PDT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STANDBY>
    INFO | 2009/07/07 21:19:22 | <Jul 7, 2009 9:19:22 PM PDT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STARTING>
    INFO | 2009/07/07 21:19:28 | -- OTM Event: preDeploy
    INFO | 2009/07/07 21:19:36 | INFO memory 28.804: parallel nursery GC 901639K->330759K (1638400K), 440.041 ms
    INFO | 2009/07/07 21:19:47 | INFO memory 39.819: parallel nursery GC 1014798K->435918K (1638400K), 313.767 ms
    INFO | 2009/07/07 21:19:57 | INFO memory 50.482: parallel nursery GC 1109199K->536143K (1638400K), 328.382 ms
    INFO | 2009/07/07 21:20:04 | -- OTM Event: postUndeploy
    INFO | 2009/07/07 21:20:04 | <Jul 7, 2009 9:20:04 PM PDT> <Error> <Deployer> <BEA-149205> <Failed to initialize the application 'GC3App' due to error java.lang.NoClassDefFoundError: javax/wsdl/BindingInput.
    INFO | 2009/07/07 21:20:04 | java.lang.NoClassDefFoundError: javax/wsdl/BindingInput
    INFO | 2009/07/07 21:20:04 | at java.lang.Class.getDeclaredMethods0(Native Method)
    INFO | 2009/07/07 21:20:04 | at java.lang.Class.privateGetDeclaredMethods(Class.java:2395)
    INFO | 2009/07/07 21:20:04 | at java.lang.Class.privateGetPublicMethods(Class.java:2519)
    INFO | 2009/07/07 21:20:04 | at java.lang.Class.getMethods(Class.java:1406)
    INFO | 2009/07/07 21:20:04 | at weblogic.ejb.container.ejbc.VersionHelperImpl.computeCRC(VersionHelperImpl.java:357)
    INFO | 2009/07/07 21:20:04 | Truncated. see log file for complete stacktrace
    INFO | 2009/07/07 21:20:04 | java.lang.NoClassDefFoundError: javax/wsdl/BindingInput
    INFO | 2009/07/07 21:20:04 | at java.lang.Class.getDeclaredMethods0(Native Method)
    INFO | 2009/07/07 21:20:04 | at java.lang.Class.privateGetDeclaredMethods(Class.java:2395)
    INFO | 2009/07/07 21:20:04 | at java.lang.Class.privateGetPublicMethods(Class.java:2519)
    INFO | 2009/07/07 21:20:04 | at java.lang.Class.getMethods(Class.java:1406)
    INFO | 2009/07/07 21:20:04 | at weblogic.ejb.container.ejbc.VersionHelperImpl.computeCRC(VersionHelperImpl.java:357)
    INFO | 2009/07/07 21:20:04 | Truncated. see log file for complete stacktrace
    INFO | 2009/07/07 21:20:04 | >
    INFO | 2009/07/07 21:20:07 | <Jul 7, 2009 9:20:07 PM PDT> <Notice> <Log Management> <BEA-170027> <The server initialized the domain log broadcaster successfully. Log messages will now be broadcasted to the domain log.>
    INFO | 2009/07/07 21:20:07 | <Jul 7, 2009 9:20:07 PM PDT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to ADMIN>
    INFO | 2009/07/07 21:20:07 | <Jul 7, 2009 9:20:07 PM PDT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to RESUMING>
    INFO | 2009/07/07 21:20:07 | <Jul 7, 2009 9:20:07 PM PDT> <Notice> <Server> <BEA-002613> <Channel "Default" is now listening on 130.35.212.103:10501 for protocols iiop, t3, ldap, http.>
    INFO | 2009/07/07 21:20:07 | <Jul 7, 2009 9:20:07 PM PDT> <Notice> <WebLogicServer> <BEA-000329> <Started WebLogic Admin Server "gc3-vserv1295" for domain "Otmv600" running in Production Mode>
    INFO | 2009/07/07 21:20:07 | <Jul 7, 2009 9:20:07 PM PDT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to RUNNING>
    INFO | 2009/07/07 21:20:07 | <Jul 7, 2009 9:20:07 PM PDT> <Notice> <WebLogicServer> <BEA-000360> <Server started in RUNNING mode>
    I didn't find any relavant info on webiv/metalink for this error!!
    Could anyone please help to resolve this issue ?
    Thanks,
    Vinay.

    Copy wsdl4j.jar to $GLOH_HOME/gc3webapp/WEB-INF/lib/3rdparty, and then re-start services. Issue was fixed.
    Thanks,
    Stephen Rengan

  • XML error "java.lang.NoClassDefFoundError: javax/xml/bind/JAXBContext"

    Hi Experts,
    We are developing a WebDynpro for java application in NWDI for XML File Uploading, we have followed the below given process for that
    1) Created one XSD as per the client table structure.
    2) Developed one java webserver for the XSD file using jwsdp1.6
    3) Copied that generated folder in WebDynpro application
    4) Included all the required JAX-B jars as External jar files
    5) Finally Compiles the application
    When running the application it is throwing the below exception
    500 Internal Server Error   Web Dynpro Container/SAP J2EE Engine/6.40     
    Failed to process request. Please contact your system administrator.
    Error Summary 
    While processing the current request, an exception occured which could not be handled by the application or the framework.
    If the information contained on this page doesn't help you to find and correct the cause of the problem, please contact your system administrator. To facilitate analysis of the problem, keep a copy of this error page. Hint: Most browsers allow to select all content, copy it and then paste it into an empty document (e.g. email or simple text file).
    Root Cause    
    The initial exception that caused the request to fail, was:
    java.lang.NoClassDefFoundError: javax/xml/bind/JAXBContext
    at com.ae.energy.scm.wdp.InternalXMLFileUpload.<init>(InternalXMLFileUpload.java:403)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
    We checked entire application to ensure all the required files included, Could you please give us the cause for this exception and please explain us the solution to resolve it.
    We are very thankful for all the people who can give their support in resolving this issue.
    Thanks in advance,
    Sandeep Bonam

    Hi Sandeep,
    If you are following DC developemnt for your project, then adding the required JAR files as External Jars will not suffice.
    As at deployment, these "External Jars" are not considered.
    You will need to create and External Library project, for incorporating the required jars.
    For creation and use of External Library Project kindly follow Valery's blog:
    /people/valery.silaev/blog/2005/09/14/a-bit-of-impractical-scripting-for-web-dynpro
    Hope it Helps.
    Regards,
    Alka.

Maybe you are looking for

  • Please help me! Error: Could not activate iPhone

    After I restored my iPhone, I can not activate it with a message followed "Your iPhone could not be activated because the activation server is temporarily unavailable. Try connecting your Iphone to iTunes to activate it or try again in a couple of mi

  • Oracle 8.1.7 on RH Linux 7.1 (kernel 2.4.2) -- COMPILATION

    I see that many people have serious problems concerning 8.17 on RH 7.1. The problems are various, from beeing not able to start the Univ. Installer (written in Java) to clean Oracle install but with some Java tools not worikng (for example netasst).

  • Second monitor using windows on macbook.

    I have to use a tv (dvi) as a second monitor, anyone has tried it in windows? Thanks.

  • Jni error libjvm

    Hi, i use jni to wrap a cpp-Framework. If I to start the wrapped code out of eclipse it works. (eclipse?? In a sun forum, sorry). My problem is if I try to start my programm out of a linux console/shell I get a hs_err_log. # An unexpected error has b

  • Integration with BI

    Hi , We had intgrated Bi and Portal, also we were able to publish query  from  Bi to portal. But from last few days we are getting error. I checked using support des Tool. It gives RED for following, what could be the reason.. 1. Web Template Validat