WSCOMPILE java.lang.ClassNotFoundException error

Hi there. I know this is something simple but I can't figure out where i'm going wrong.
I'm getting the java.lang.ClassNotFoundException error when running the WSCOMPILE utility. Here is my config.xml:
<?xml version="1.0" encoding="UTF-8"?>
<configuration xmlns="http://java.sun.com/xml/ns/jax-rpc/ri/config">     
<service name="HelloService"
targetNamespace="http://echoservice.org/wsdl"
typeNamespace="http://hello.chap12.jboss.org"
packageName="mypackage">
<interface name="mypackage.HelloWorldWebServiceSEI"/>
</service>
</configuration>
and here's my interface:
package mypackage;
import java.rmi.RemoteException;
public interface HelloWorldWebServiceSEI extends java.rmi.Remote
public String sayhello(String Name) throws RemoteException;
I'm running the command:
wscompile -define -mapping mypackage/mapping.xml -d mypackage -nd mypackage -classpath mypackage config.xmlBut keep getting this error. Can someone help?
Many thanks,
Jon

Here is my information....I think I have included everything needed.
SET JAVA_HOME=C:\jdk1.5.0_04
SET JBOSS_CLASSPATH=C:\jboss-4.0.2\bin;C:\jboss-4.0.2\lib;C:\jboss-4.0.2\server\gmbi-all\lib
set JAVA=%JAVA_HOME%\bin\java
set JAVAC_JAR=%JAVA_HOME%\lib\tools.jar
set CLASSPATH=%CLASSPATH%;%JAVAC_JAR%;%RUNJAR%;%JBOSS_CLASSPATH%;C:\jboss-4.0.2\server\gmbi-all\deploy/jboss-ws4ee.sar/axis-ws4ee.jar
set CLASSPATH=%CLASSPATH%;C:\jboss-4.0.2\server\gmbi-all\deploy/jboss-ws4ee.sar/commons-discovery.jar
set CLASSPATH=%CLASSPATH%;C:\jboss-4.0.2\server\gmbi-all\deploy/jboss-ws4ee.sar/jboss-ws4ee.jar;
set CLASSPATH=%CLASSPATH%;C:\jboss-4.0.2\server\gmbi-all\deploy/jboss-ws4ee.sar/wsdl4j.jar
echo ===============================================================================
echo .
echo Bootstrap Environment
echo .
echo JAVA_HOME: %JAVA_HOME%
echo .
echo JAVA: %JAVA%
echo .
echo JAVAC_JAR: %JAVAC_JAR%
echo .
echo CLASSPATH: %JBOSS_CLASSPATH%
echo .
echo ===============================================================================
echo .
:RESTART
"%JAVA%" -classpath "%CLASSPATH%" wscompile %*

Similar Messages

  • Oracle.forms.engine.Main not found.java.lang.ClassNotFoundException error

    Hi Members,
    I am getting the oracle.forms.engine.Main not found.java.lang.ClassNotFoundException error when trying to access Oracle forms using APEX 2.2.1 and SSO.
    load:class.oracle.forms.engine.Main not found
    The forms have been compiled, forms path setup properly and the setup required to run forms seems to be right. Jinitiator has also been installed.
    I have searched the forums and tried everything. I have checked jinitiator settings, cleared cache and even reinstalled it. Do you have any experience with this error? Appreciate any answers. Thanks.
    Ravi.

    Dear Friends,
    I was also facing the same problem. to solve this, i have uninstalled Oracle Jinitiator. Cleared all the temporary internet files & cookies. Then while running the form, when it asks to install JInitiator, i have specified a different path for jinitiator, For Example, By default it asks for C:\programfiles, i have changed it to c:\manish directory.
    This has solved my problem. Probably this also help you.
    Regards,
    Manish Trivedi,
    India

  • Java.lang.ClassNotFoundException error when running a form

    Hello,
    On a Windows 2003 64 bits server I have installed Oracle Application Server 10gR2 10.1.2.0.2 (Infrastructure + Business Intelligence and Forms option). I also upgraded to Portal 10.1.4. All components are up and running.
    I wanted to test if Forms services are functional using the test form provided by OAS at installation (test.fmb/.fmx).
    Steps executed:
    1) Start -> Programs ->Oracle Application Server 10g -> Forms Services -> Run a form on the web for form=test.fmx
    or in the IE browser:
    2) http://pwr-hp-srv.replynet.prv:7778/forms/frmservlet?form=test.fmx
    The applet is not starting and I receive the following error:
    java.lang.ClassNotFoundException: oracle.forms.engine.Main
    What does this mean? What should I do to make it work?
    Any help will be appreciated.
    Tahnk you.
    daniela

    Hello again,
    I solved the problem.
    In Control Panel -> JInitiator administration console , the option "Use browser settings" has to be unchecked.
    daniela

  • Java.lang.ClassNotFoundException Error

    Hi,
    I am trying to view the output of the example(samples/examples/jsp/JdbcTable.jsp)
    in Weblogic Server 6.1
    Basically it was trying to show the data from a table (Select * from emp) in an
    HTML Table. But it was giving the following error.
    Exception:
    java.lang.ClassNotFoundException: COM.cloudscape.core.JDBCDriver
    How do I resolve this error in order to view data from an Cloudscape Datbase.
    Also what are the steps involved in creating a Database Connection for Cloudscape
    Database.
    Please give me brief steps involved in this process.
    Thanks,
    Ram

    Hello again,
    I solved the problem.
    In Control Panel -> JInitiator administration console , the option "Use browser settings" has to be unchecked.
    daniela

  • Java.lang.ClassNotFoundException: error's

    Hi i tried connecting to a digi chat site for 3 days now and all it has been giving me is errors (for example the one below):
    java.lang.ClassNotFoundException: com.diginet.digichat.client.DigiChatApplet
    Java will not load up the applet.
    But i noticed one thing, when i used an Anonymizer Proxy software which enables you to surf the web hiding your real ip or given a fake one....(link below):
    http://www.anonymizer.com/consumer/products/anonymous_surfing/
    When i used this software it loaded the digi chat applet up fine but, then had connection issues connecting to digi chat room which in return an error applet window popped up saying :
    DigiChat could not connect to the specified host.
    Please verify that the DigiChat Server is running and
    that you are using the correct host name.
    java.net.ConnectException: Connection timed out:
    connect
    Note: I have 3 computers in my house hold and all of them access the same isp and all three have the same problem while connecting to this certain host.
    If anyone has any ideas or regards to this malfunction or error please contact me.
    Thank you so much!!!

    you have to download the jdbc drivers for a perticular database. These are nothing but jar files. You have to then add these jar files to yor project library. An your problem will be solved

  • Java.lang.ClassNotFoundException error when running form

    Hello,
    On a Windows 2003 64 bits server I have installed Oracle Application Server 10gR2 10.1.2.0.2 (Infrastructure + Business Intelligence and Forms option). I also upgraded to Portal 10.1.4. All components are up and running.
    I wanted to test if Forms services are functional using the test form provided by OAS at installation (test.fmb/.fmx).
    Steps executed:
    1) Start -> Programs ->Oracle Application Server 10g -> Forms Services -> Run a form on the web for form=test.fmx
    or in the IE browser:
    2) http://pwr-hp-srv.replynet.prv:7778/forms/frmservlet?form=test.fmx
    The applet is not starting and I receive the following error:
    java.lang.ClassNotFoundException: oracle.forms.engine.Main
    What does this mean? What should I do to make it work?
    Any help will be appreciated.
    Tahnk you.
    daniela

    Hello again,
    I solved the problem.
    In Control Panel -> JInitiator administration console , the option "Use browser settings" has to be unchecked.
    daniela

  • Exec] error: RmiModeler error: java.lang.ClassNotFoundException: webservice

    hi,
    Im trying to build a very basic web service using jaxrpc and i get the following errors
    error 1
    [exec] error: RmiModeler error: java.lang.ClassNotFoundException: webservice$hostel$Hostel
    [exec] Result: 1
    all the server side Hostel code compiled when i complied it seperatly....done know why it is feakin out nowand givin errors.. can any help
    error 2
    [exec] error: XML reader error: java.io.EOFException: Unexpected end of ZLIB input stream
    haven't a clue what this is!!!!

    I am having a similar problem with RmiModeler errors:
    http://forum.java.sun.com/thread.jsp?forum=331&thread=498925&tstart=0&trange=15
    I am using asant and it is building fine, but the wscompile is falling over

  • Windows Vista "java.lang.ClassNotFoundException: loader.class" error.

    Hello,
    Whenever I try to visit websites that have a java applet I get a dialogue with the following error:
    java.lang.ClassNotFoundException: loader.class.
    I have tried uninstalling/reinstalling java, and also adding the -xmx and -xms parameters for java applet runtime setting in control panel with various values from 128m to 1g.
    The applet at http://www.java.com/en/download/installed.jsp?detect=jre&try=1 does work and reports "CONGRATULATIONS, you have the Latest version of Java!", "Java Runtime Version 1.6.0."
    I have been experiencing this problem ever since I installed Windows Vista Home Premium a day or two ago. Any help is appreciated.
    Regards
    Greg
    =====================================
    Full output from Java Console
    =====================================
    Java Plug-in 1.6.0
    Using JRE version 1.6.0 Java HotSpot(TM) Client VM
    User home directory = C:\Users\Greg Taylor
    c: clear console window
    f: finalize objects on finalization queue
    g: garbage collect
    h: display this help message
    l: dump classloader list
    m: print memory usage
    o: trigger logging
    p: reload proxy configuration
    q: hide console
    r: reload policy configuration
    s: dump system and deployment properties
    t: dump thread list
    v: dump thread stack
    x: clear classloader cache
    0-5: set trace level to <n>
    load: class loader.class not found.
    java.lang.ClassNotFoundException: loader.class
         at sun.applet.AppletClassLoader.findClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.applet.AppletClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.applet.AppletClassLoader.loadCode(Unknown Source)
         at sun.applet.AppletPanel.createApplet(Unknown Source)
         at sun.plugin.AppletViewer.createApplet(Unknown Source)
         at sun.applet.AppletPanel.runLoader(Unknown Source)
         at sun.applet.AppletPanel.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    Caused by: java.io.IOException: open HTTP connection failed.
         at sun.applet.AppletClassLoader.getBytes(Unknown Source)
         at sun.applet.AppletClassLoader.access$100(Unknown Source)
         at sun.applet.AppletClassLoader$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         ... 10 more
    java.lang.ClassNotFoundException: loader.class
         at sun.applet.AppletClassLoader.findClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.applet.AppletClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.applet.AppletClassLoader.loadCode(Unknown Source)
         at sun.applet.AppletPanel.createApplet(Unknown Source)
         at sun.plugin.AppletViewer.createApplet(Unknown Source)
         at sun.applet.AppletPanel.runLoader(Unknown Source)
         at sun.applet.AppletPanel.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    Caused by: java.io.IOException: open HTTP connection failed.
         at sun.applet.AppletClassLoader.getBytes(Unknown Source)
         at sun.applet.AppletClassLoader.access$100(Unknown Source)
         at sun.applet.AppletClassLoader$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         ... 10 more

    ive been having the same problems, if youve resolved this problem, please tell me.
    all help is appreciated

  • Solve this error pls 'java.lang.classNotFoundException' (For J2ME, WT2.5.2)

    Hi All,
    I am a new learner in J2ME. I m using WT2.5.2. When i press button to execute 'Hello MIDlet' program it shows
    "Exception:java.lang.classNotFoundException" - this error in the Default Phone screen
    and
    the following ERROR shows in the Wirless Toolkit (WT) editior::
    Project "HelloSuite" loaded
    Project settings saved
    Building "HelloSuite"
    Build complete
    Running with storage root C:\Users\Kalam\j2mewtk\2.5.2\appdb\temp.DefaultColorPhone2
    Running with locale: English_United Kingdom.1252
    Running in the identified_third_party security domain
    Unable to create MIDlet HelloMIDIlet
    java.lang.ClassNotFoundException: HelloMIDIlet
         at com.sun.midp.midlet.MIDletState.createMIDlet(+29)
         at com.sun.midp.midlet.Selector.run(+22)
    i can run the demo program but my one is not running. i copy the program from java tutorial.
    Can u pls solve my problem and encourge me to work with J2ME. Thank u very much my friends.
    thnx
    Kalam

    Hi Darryl,
    I saved this code as a "HelloMIDlet.java" in src folder of WT [and the "HelloSuite" as Midlet name, when we create project in WT u know it asks for Midlet name.
    this code doesn't have compile time error.
    it got runtime error cas in bin it got - HelloSuite.jd, MANIFEST.MF , there should be one more file which is .jar but it doesn't create.
    i hope now u understand whts the error can u pls tell me or can u tell me the source how can i learn more about this.
    thnx
    kalam                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Re : Error java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDrive

    Hello All,
    I am writing this simple program which connects to Oracle DB ( 10.2 ). The Java version I have is 1.5.0_13 . I do have oracle client installed. When I run the below code ...I get error
    java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver
            at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
            at java.security.AccessController.doPrivileged(Native Method)
            at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
            at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
            at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
            at java.lang.Class.forName0(Native Method)
            at java.lang.Class.forName(Class.java:164)
            at OraThin.main(OraThin.java:13)The code I have is :
    import java.io.*;
    import java.sql.*;
    public class OraThin {
      public static void main(String[] args) {
        try {
    System.out.println(System.getProperty ("java.class.path") );
          Connection con=null;
          Class.forName("oracle.jdbc.driver.OracleDriver");
          con=DriverManager.getConnection(
            "jdbc:oracle:thin:@hostname:15282:ServiceName",
            "scott",
            "tiger");
          Statement s=con.createStatement();
          s.execute("SELECT SYSDATE FROM DUAL");
          s.close();
          con.close();
      } catch(Exception e){e.printStackTrace();}
    } Please suggest as to what am I missing, I am not that well versed with Java.
    Thanks in advance,
    Sam

    Hello Paul,
    Thanks for you suggestion. Based on it , I did add the exact jar file in the PATH environmental variable in XP.
    Path=C:\oraclexe\app\oracle\product\10.2.0\server\jdbc\lib\ojdbc14.jar;C:\oraclexe\a
    pp\oracle\product\10.2.0\server\bin;C:\oracle\product\10.2.0\client_1\bin;C:\Ora
    cle\product\10.1.0\Client_1\bin;C:\Oracle\product\10.1.0\Client_1\jre\1.4.2\bin\
    client;C:\j2sdk1.4.2_06\bin;Even after adding the specific jar file *("C:\oraclexe\app\oracle\product\10.2.0\server\jdbc\lib\ojdbc14.jar")* ..I am getting the exact same error. moreover, to verify this I also tried to import import oracle.jdbc.driver.*.....and now my code would not even complie and I get error *(c:\Program Files\Java\jdk1.5.0_13\bin\OraThin.java:3: package oracle.jdbc.driver*
    does not exist ) . I also rebooted my machine just to make sure ...that didnt work either. Also, I changed these jar to be first in the PATH varibale ..to avoid conflict with any later .jar's classes. The code is :
    import java.io.*;
    import java.sql.*;
    import oracle.jdbc.driver.*;
    public class OraThin {
      public static void main(String[] args) {
        try {
    System.out.println(System.getProperty ("java.class.path") );
          Connection con=null;
          Class.forName("oracle.jdbc.driver.OracleDriver");
          con=DriverManager.getConnection(
            "jdbc:oracle:thin:@hostname:15282:ServiceName",
            "scott",
            "tiger");
          Statement s=con.createStatement();
          s.execute("SELECT SYSDATE FROM DUAL");
          s.close();
          con.close();
      } catch(Exception e){e.printStackTrace();}
    }What am I missing here!! ?
    Thanks again,
    Sam

  • While entering the username and password in OEM, it is showing error : java.lang.ClassNotFoundException: _database._instance._sitemap._sitemap

    After starting OEM and entering the username and password , it is showing error : java.lang.ClassNotFoundException: _database._instance._sitemap._sitemap

    >
    Your reply might be useful, but it is still not a suitable answer for my question. >You might try reading it again, because you've absolutely missed the point.
    >
    I am familiar with NetBeans, because I have built many websites by this tool before, I don't want to change to other IDEs, ..>Nobody suggested 'another IDE'.
    Oh, and your 'hurry' is none of my business or concern. But if you are in such a gosh-darn hurry, it might be useful to read replies carefully - otherwise you might end up wasting a great deal of time.

  • Error deploying task form - java.lang.ClassNotFoundException

    Hello,
    I' am trying to deploy a task form to my soa server (JDeveloper 11.1.1, WebLogic Server 10.3.1, SOA Suite 11.1.1) and get the following error message:
    [05:05:26 PM] [Deployer:149034]An exception occurred for task [Deployer:149026]deploy application MyTask on soa_server1.: Failed to load webapp: 'MyTask.war'.
    [05:05:26 PM] Weblogic Server Exception: weblogic.application.ModuleException: Failed to load webapp: 'MyTask.war'
    [05:05:26 PM] Caused by: java.lang.ClassNotFoundException: oracle.bpel.services.workflow.client.worklist.servlet.IntegrateTaskFlowWithTask
    [05:05:26 PM] See server logs or server console for more details.
    [05:05:26 PM] weblogic.application.ModuleException: Failed to load webapp: 'MyTask.war'
    I've already tried to set the classpath for "bpm-services.jar" in "setDomainEnv.cmd", but afterwards I couldn't deploy the whole soa-infra.
    Does anybody have an idea?
    Thank's a lot.

    Hi,
    The two projects are part of same application right.
    In your application navigator, you will be seeing those two projects. But there will be a drop down in the application navigator to select/open different applications.
    You have right click on that application name. You will get a deploy option. Deploy it now. The thing is, task form app is a EAR application. You will get EAR option only from Application level not from Project level.
    Application 1
    +
    +
    ----> CompositeProject
    -----> TaskformProject
    You should deploy the Application to deploy the task form. To deploy the composite, deploy the composite. No need to deploy the Taskform project seperately.
    Edited by: Baskar Mookkan on Sep 9, 2009 5:54 PM

  • Form error in portal (java.lang.ClassNotFoundException)

    I have created a url portlet to integrate an oracle 10g form into portal. form works fine when run from the form builder or browser. but it shows me "java.lang.ClassNotFoundException:oracle.forms.engine.Main" error in the portal(oracle 10g portal). anyone could help on this.

    thanks for the reply
    how can i check that as i am not an experienced user in all these things.
    i did the default installation of Oracle AS 10g SEOne where i got installed infrastructure and portal.

  • Error: when connecting to sqlServer2005 java.lang.ClassNotFoundException:

    Hi SDN,
    I am trying to connect to sqlServer2005 using the following code
    try{
    Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver");
    Connection con = java.sql.DriverManager.getConnection("jdbc:sqlserver://obtdev15:1433;DatabaseName=O50");
    response.write("connection succeded<br>");
    Statement st=  con.createStatement();
    response.write("statement created<br>");
    ResultSet c = st.executeQuery("select * from [SAPO50DB].[OGP_PROJECT]");
    response.write(" rows selected-->" + c.getString("PROJECTNAME"));
    }catch(Exception e){
                  e.printStackTrace();
                  response.write("exception in --"+e);
    when i execute it, it throws the following exception
    <b>java.lang.ClassNotFoundException: com.microsoft.sqlserver.jdbc.SQLServerDriver Found in negative cache -
    Loader Info -
    ClassLoader name: [com.sapportals.portal.prt.util.ApplicationClassLoader@b460e20] Parent loader name: [com.sapportals.portal.prt.util.AutoClassLoader@a52a72a] References: not registered! Resources: F:\usr\sap\O50\DVEBMGS50\j2ee\cluster\server0\apps\sap.com\irj\servlet_jsp\irj\root\WEB-INF\portal\portalapps\ConnectingtoDB\lib\api.jar -
    </b>
    Please suggest me to rectify the above error.
    your help will be awarded.
    Thanks in Advance.
    Regards
    Basha

    Hi Basha,
    basically, your application is missing a java class. However, the proper way to connect to a database is discussed in this <a href="https://www.sdn.sap.com/irj/sdn/thread?threadID=86307">thread</a>.
    Follow Detlev's advise:
    <i>In general, using a J2EE server means that you have a DB connection pool at hand where you can attach your database and then retrieve the Datasource object from the JNDI. That way, you won't have to care about connection pooling etc, and using tools like oject-relational-mappers also is quite easy, for they also expect just the Datasource or even better the JNDI lookup name.</i>
    You will find detailed information in the<a href="http://help.sap.com/saphelp_nw04/helpdata/de/bb/69da54d8aedc419d46d9ea074e4d41/frameset.htm">SAP Library</a>.
    Best regards,
    Martin

  • Netlet Error ;java.lang.ClassNotFoundException: netscape.javascript.JSObjec

    Im using Iexplorer 6 winXP.
    During loading a netlet i got this error:
    java.lang.ClassNotFoundException: netscape.javascript.JSObject
         at com/ms/vm/loader/URLClassLoader.loadClass
         at java/lang/ClassLoader.loadClassInternal
         at com/sco/tta/client/portal/Mediator.init
         at com/ms/applet/AppletPanel.securedCall0
         at com/ms/applet/AppletPanel.securedCall
         at com/ms/applet/AppletPanel.processSentEvent
         at com/ms/applet/AppletPanel.processSentEvent
         at com/ms/applet/AppletPanel.run
         at java/lang/Thread.run
    The first error message was that netscape was detected (unleless i was using ie) I erase the security manager as described earlier in this forum, but nothing, so i erase all file containing netscape, and now my netlet doesnt even start!
    What sould I do?

    Hi,
    Can you elaborate on your problem ? Also if you are using the netlet, please provide complete java console output
    Thanks!
    Satish

Maybe you are looking for

  • Time capsule says disk has an error and will not mount on my computer; how can I purge TC before returning it to apple for replacement?

    Time capsule will not mount but stillhas wi-fi;apple sent a replacement that works fine. I have to send my old time capsule back to apple but I want to purge it for security reason (personal data).  Will pushing the reset button while plugging it in

  • FCP captured files showing as Unix Executable

    I know there's been a bit of discussion about this problem but I wanted to see if someone could shed a bit more light on my situation. For the past few years we've been doing all our video capturing (using FCP 5.1.4 capturing in HDV) and editing on a

  • Query not showing any data-urgent

    hi experts i ma facing this problem: i have created an ISH (services) infocube which i have loaded with data, when i do a 'display data' on my cube i can properly see the data, when i open the query designer or analyser though, even when designing th

  • Java FX + Request + Applet

    Hello, I develop a simple Chat that sends the Chat Msg to a server and write it into a database. After that the read the 10 newest messages and response these as string... In Netbeans it works greatly (Standard Exceution).. but If I change it to "Run

  • Help with SOAP traces to deal with VC Problem

    Hi, I'm currently using CE SR 3 and am having trouble using a web service in VC. I've used the WS in the web service navigator and it works there but I'm missing something in the VC environment. I'd like to be able to see the actual SOAP request and