BI  services Java

Hi guys,
The status of the OPMNCTL shows stopped on "coreapplication_Obijh1 and the rest 4 processes shows 'Alive'.
On checking the log file , It reads: "85007 MDX member name cache subsystem stopped. Unloaded All Subject areas.
What this is impacting is that BI Analytics URL does not default to the full hostname. My hostname is like: pff.oracleerp.com. But rather it defaults only as 'pff' while trying to connect to the Url for the analytics.
But I seem to be fine when I manually change the 'pff'' to pff.oracleerp.com . But the opmnctl status is still stopping for same process.
Any idea wilol help.
Regards

Yes, this is possible. try to use the below code by changing the code at lines 14, and 30
you need to validate the status.
If it is helpful, please mark as correct or helpful
----------code start---------
     Dim objWMIService, objWMIService2, objItem, objService, objService2
     Dim colListOfServices, colListOfServices2, strComputer, strService, intSleep
     Dim Finished
Dim objFSO
Dim objStream
Set objFSO = createobject("scripting.filesystemobject")
Set objTextFile2 = objFSO.CreateTextFile("D:\temp\StartServicesLog.txt", True)
Set wshshell = WScript.CreateObject("wscript.Shell")
     strComputer = "<hostname>"
     intSleep = 1000
     ' NB strService is case sensitive.
     objTextFile2.writeLine "Stopping the FrontOffice service now."
     strService = " 'sawsvc' "
     Set objWMIService = GetObject("winmgmts:" _
     & "{impersonationLevel=impersonate}!\\" _
     & strComputer & "\root\cimv2")
     While Finished <> "Running" '-** ####-> change to Stopped for stop <--## *******
          Set colListOfServices = objWMIService.ExecQuery _
          ("Select * from Win32_Service Where Name ="_
          & strService & " ")
          For Each objService in colListOfServices
               objService.StartService() '---** ####-> objService.StopService() for stop <--## *******
               WSCript.Sleep intSleep
               Finished = objService.State
          Next
     Wend
     objTextFile2.writeLine "Your "& strService & " service has Stopped."
     objTextFile2.writeLine "Stopping the Gateway service now."
     objTextFile2.writeLine "Your "& strService & " service has Stopped."
--------------code end---------

Similar Messages

  • Access issue in Service.java (Win32)

    Hi,
    When trying to view the status of Services in Windows, there's an issue with access management in the following code:
    https://github.com/hyperic/sigar/blob/master/bindings/java/src/org/hyperic/sigar/win32/Service.java
    It tries to gain access to services with full access codes, and Windows prevents this from happening for certain system services (such as MSDTC, which is very vital to monitor for SQL Server). The problems are in:
    public Service(String serviceName) throws Win32Exception, which tries: this.service = OpenService(this.manager, serviceName, SERVICE_ALL_ACCESS);
    And in the private Service()
    private Service() throws Win32Exception { this.manager = OpenSCManager("", SC_MANAGER_ALL_ACCESS); }
    Also, all the access modifiers are private static final int, so they can't be seen by other programs. My proposal would be to add new methods which would allow entering the access levels in the initializer, such as public Service(String serviceName, int access).

    These 3 new Roles supplant the 11.5 roles (old):
    XMII Administrators  (Adminstrators)
    XMII Developers  (Developers)
    XMII Users (Everyone)
    On the System access screen you should see which particular roles have permission to the SystemInfo service, and go from there.
    Regards,
    Jeremy

  • Unable to lookup the Deploy Service. java.lang.ClassCastException in NWDS

    Hi All,
    I am getting the following exception while deploying an application in NWDS.
    Please help me in resolving this issue
    Sep 6, 2007 10:24:32 PM /userOut/deploy (com.sap.ide.eclipse.sdm.threading.DeployThreadManager) [Thread[Deploy Thread,5,main]] ERROR:
    [001]Deployment aborted
    Settings
    SDM host : bala
    SDM port : 50018
    URL to deploy : file:/C:/DOCUME1/BALU/LOCALS1/Temp/temp64339RFCFlightList.ear
    Result
    => deployment aborted : file:/C:/DOCUME1/BALU/LOCALS1/Temp/temp64339RFCFlightList.ear
    Aborted: development component 'RFCFlightList'/'local'/'LOKAL'/'0.2007.09.06.22.24.23'/'0':
    Caught exception during application deployment from SAP J2EE Engine's deploy API:
    com.sap.engine.deploy.manager.DeployManagerException: Unable to lookup the Deploy Service. java.lang.ClassCastException
    (message ID: com.sap.sdm.serverext.servertype.inqmy.extern.EngineApplOnlineDeployerImpl.performAction(DeploymentActionTypes).DMEXC)
    Deployment exception : The deployment of at least one item aborted

    Hi Bala
    Some of the services at your server are not running..ask your system admin to restart the SDN server and try to deploy once
    Regards
    Chaitanya.A

  • Could not connect to remote service - java.lang.NullPointerException

    Hi,
    I'm struggling to get RMI to work on two servers. Locally my client and server work fine together although when I deploy I get a null pointer exception the first time I try and invoke a remote method. I've tried stopping the server app to see if it is actually connecting at I get a connection refused exception when its stopped so I'm assuming it must be connecting.
    Could not connect to remote service  - java.lang.NullPointerException
    com.jws.remoteServices.RemoteUpdateServer.addNewReport(RemoteUpdateServer.java:61)
    sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    java.lang.reflect.Method.invoke(Method.java:616)
    sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:322)
    sun.rmi.transport.Transport$1.run(Transport.java:177)
    java.security.AccessController.doPrivileged(Native Method)
    sun.rmi.transport.Transport.serviceCall(Transport.java:173)
    sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:553)
    sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:808)
    sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:667)
    java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
    java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
    java.lang.Thread.run(Thread.java:636)
    sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:273)
    sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:251)
    sun.rmi.server.UnicastRef.invoke(UnicastRef.java:160)
    java.rmi.server.RemoteObjectInvocationHandler.invokeRemoteMethod(RemoteObjectInvocationHandler.java:195)
    java.rmi.server.RemoteObjectInvocationHandler.invoke(RemoteObjectInvocationHandler.java:149)
    $Proxy0.addNewReport(Unknown Source)
    jasperserver.ReportHandler.run(ReportHandler.java:81)Any help would be greatly appreciated,
    Regards,
    Dan
    Edited by: danblackhust on Jul 18, 2010 3:54 AM

    Show us the code that threw and caught this exception.

  • Bing Maps REST route service - java classes

    I am able to use the WSDL to generate the classes required to hit the SOAP Web Service.  But it appears that the classes generated using the SOAP service do not match the classes used for the REST service.  How
    can I generate the Java classes required for hitting the REST Route Web Service.  I am able to call the REST service and get an XML or JSON response, but having issues creating the objects with the data returned.

    The REST and SOAP services are completely different. The SOAP services were created about 8 years ago and the REST services about 4 years ago. The REST services have a bunch more features and functionalities. There are a couple of ways you can consume the
    Bing Maps REST services in Java. The first is to manually parse the responses. Here are some examples:
    http://javaprogramming.language-tutorial.com/2012/10/geocoding-using-bing-rest-api.html
    http://javaprogramming.language-tutorial.com/2012/10/reverse-geocoding-using-bing-rest-api.html
    https://ngjon.wordpress.com/2011/05/20/bing-maps-geocoding-rest-service-java-ized/
    Alternatively you can create a set of classes that can be used for serializing the responses. I have a set of .NET data contracts for the RST services that can be ported to Java here:
    http://msdn.microsoft.com/en-us/library/jj870778.aspx
    I also created some tools to parse the REST responses in an Android app a while back. You can find the code for that here:
    http://bingmapsandroidsdk.codeplex.com/SourceControl/latest#BingMapsAndroidSDK/src/org/bingmaps/rest/BingMapsRestService.java
    http://rbrundritt.wordpress.com

  • Windows Server 2008 64-bit Service Java Crash

    Using the same process that has worked well for creating Windows services for my admin and managed servers on 32-bit I created them on a 64-bit machine using beasvcx64 and JAVA_VM=-server. The server generates a fatal Java exception when starting:
    <Sep 19, 2011 12:16:43 PM EDT> <Warning> <oracle.as.jmx.framework.MessageLocalizationHelper> <J2EE JMX-46041> <The resource for bundle "oracle.jrf.i18n.MBeanMessageBundle" with key "oracle.jrf.JRFServ
    iceMBean.checkIfJRFAppliedOnMutipleTargets" cannot be found.>
    # A fatal error has been detected by the Java Runtime Environment:
    # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x000000006d92f7a6, pid=6280, tid=7084
    # JRE version: 6.0_27-b07
    # Java VM: Java HotSpot(TM) 64-Bit Server VM (20.2-b06 mixed mode windows-amd64 compressed oops)
    # Problematic frame:
    # V [jvm.dll+0x9f7a6]
    # An error report file with more information is saved as:
    # d:\OBIEE\user_projects\domains\bi11g_etl_domain\hs_err_pid6280.log
    Does anybody have these servers running as Windows services on 2008? Were there any special steps you took?

    You nailed that Christian.
    In my services both the admin and managed server were being started with the memory argument: -Xms32m -Xmx200m -XX:MaxPermSize=128m
    I think this is the default.
    I changed it to the parameters used in the startup scripts and it worked the first time.
    bi_server1
    JAVA Memory arguments: -Xms256m -Xmx2048m -XX:MaxPermSize=512m
    AdminServer
    JAVA Memory arguments: -Xms256m -Xmx1024m -XX:MaxPermSize=512m -XX:-UseSSE42Intrinsics
    Thanks.

  • Getting error while running service.java

    I am fresher to this technology i don't what it the error is.
    I am trying the oracle provided docs for Building Mobile Applications with Oracle ADF Mobile exercises on 3 pages.
    first page done successfully.
    while coming to dsecond page http://docs.oracle.com/cd/E18941_01/tutorials/buildmobileappscontent/adfmobiletutorial_2.html
    Step 2: Define a Web Service Data Control
    I am getting error which i don't know. I am sharing the error details below.
    Running:IntegratedWebLogicServer - Log
    *  server administration, use the WebLogic Server *
    *  console at http:\\hostname:port\console        *
    starting weblogic with Java version:
    java version "1.6.0_24"
    Java(TM) SE Runtime Environment (build 1.6.0_24-b50)
    Java HotSpot(TM) Client VM (build 19.1-b02, mixed mode)
    Starting WLS with line:
    d:\ORACLE\MIDDLE~1\JDK160~1\bin\java -client   -Xms256m -Xmx512m -XX:CompileThreshold=8000 -XX:PermSize=128m  -XX:MaxPermSize=512m -Dweblogic.Name=DefaultServer -Djava.security.policy=D:\ORACLE\MIDDLE~1\WLSERV~1.3\server\lib\weblogic.policy "-Djavax.net.ssl.trustStore=C:\DOCUME~1\ta257789\Local Settings\Temp\trustStore7426681428235698927.jks" -Dhttp.proxyHost=pdc-proxy.wipro.com -Dhttp.proxyPort=8080 "-Dhttp.nonProxyHosts=localhost|localhost.localdomain|127.0.0.1|::1|D-11309677.wipro.com|D-11309677" -Dhttps.proxyHost=pdc-proxy.wipro.com -Dhttps.proxyPort=8080 -Doracle.jdeveloper.adrs=true -Dweblogic.nodemanager.ServiceEnabled=true  -Xverify:none  -da -Dplatform.home=D:\ORACLE\MIDDLE~1\WLSERV~1.3 -Dwls.home=D:\ORACLE\MIDDLE~1\WLSERV~1.3\server -Dweblogic.home=D:\ORACLE\MIDDLE~1\WLSERV~1.3\server  -Djps.app.credential.overwrite.allowed=true -Dcommon.components.home=D:\ORACLE\MIDDLE~1\ORACLE~1 -Djrf.version=11.1.1 -Dorg.apache.commons.logging.Log=org.apache.commons.logging.impl.Jdk14Logger -Ddomain.home=C:\DOCUME~1\ta257789\Application Data\JDeveloper\system11.1.2.3.39.62.76.1\DefaultDomain -Djrockit.optfile=D:\ORACLE\MIDDLE~1\ORACLE~1\modules\oracle.jrf_11.1.1\jrocket_optfile.txt -Doracle.server.config.dir=C:\DOCUME~1\ta257789\Application Data\JDeveloper\system11.1.2.3.39.62.76.1\DefaultDomain\config\fmwconfig\servers\DefaultServer -Doracle.domain.config.dir=C:\DOCUME~1\ta257789\Application Data\JDeveloper\system11.1.2.3.39.62.76.1\DefaultDomain\config\fmwconfig  -Digf.arisidbeans.carmlloc=C:\DOCUME~1\ta257789\Application Data\JDeveloper\system11.1.2.3.39.62.76.1\DefaultDomain\config\fmwconfig\carml  -Digf.arisidstack.home=C:\DOCUME~1\ta257789\Application Data\JDeveloper\system11.1.2.3.39.62.76.1\DefaultDomain\config\fmwconfig\arisidprovider -Doracle.security.jps.config=C:\DOCUME~1\ta257789\Application Data\JDeveloper\system11.1.2.3.39.62.76.1\DefaultDomain\config\fmwconfig\jps-config.xml -Doracle.deployed.app.dir=C:\DOCUME~1\ta257789\Application Data\JDeveloper\system11.1.2.3.39.62.76.1\DefaultDomain\servers\DefaultServer\tmp\_WL_user -Doracle.deployed.app.ext=\- -Dweblogic.alternateTypesDirectory=D:\ORACLE\MIDDLE~1\ORACLE~1\modules\oracle.ossoiap_11.1.1,D:\ORACLE\MIDDLE~1\ORACLE~1\modules\oracle.oamprovider_11.1.1 -Djava.protocol.handler.pkgs=oracle.mds.net.protocol  -Dweblogic.jdbc.remoteEnabled=false -Dwsm.repository.path=C:\DOCUME~1\ta257789\Application Data\JDeveloper\system11.1.2.3.39.62.76.1\DefaultDomain\oracle\store\gmds   -Dweblogic.management.discover=true  -Dwlw.iterativeDev= -Dwlw.testConsole= -Dwlw.logErrorsToConsole= -Dweblogic.ext.dirs=D:\ORACLE\MIDDLE~1\patch_wls1035\profiles\default\sysext_manifest_classpath;D:\ORACLE\MIDDLE~1\patch_jdev1112\profiles\default\sysext_manifest_classpath  weblogic.Server
    java.lang.NoClassDefFoundError: Data\JDeveloper\system11/1/2/3/39/62/76/1\DefaultDomain
    Caused by: java.lang.ClassNotFoundException: Data\JDeveloper\system11.1.2.3.39.62.76.1\DefaultDomain
    at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:305)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:246)
    Could not find the main class: Data\JDeveloper\system11.1.2.3.39.62.76.1\DefaultDomain.  Program will exit.
    Exception in thread "main" Process exited.
    Messages - Log
    WARNING: Failed to validate the xml content. SchemaLocation: schemaLocation value = 'http://xmlns.oracle.com/oracleas/schema/11/jps-config-11_1.xsd' must have even number of URI's. Location: unavailable.
    Jun 18, 2013 3:33:53 PM oracle.security.jps.internal.common.util.StrictValidationEventHandler handleEvent
    WARNING: Failed to validate the xml content. SchemaLocation: schemaLocation value = 'http://xmlns.oracle.com/oracleas/schema/11/jps-config-11_1.xsd' must have even number of URI's. Location: unavailable.
    Jun 18, 2013 3:33:55 PM oracle.adfdtinternal.model.ide.jdev.JDevDataControlManager notifyAfterPopulatingDataControls
    INFO: Number of data controls:0
    Jun 18, 2013 3:33:56 PM oracle.adfdtinternal.model.ide.jdev.JDevDataControlManager notifyAfterPopulatingDataControls
    INFO: Number of data controls:0
    Compiling...
    Nothing to build.
    [3:34:10 PM] Successful compilation: 0 errors, 0 warnings.
    [Application SampleWS is bound to Server Instance IntegratedWebLogicServer]
    [Starting Server Instance IntegratedWebLogicServer]
    #### Server Instance IntegratedWebLogicServer could not be started: Server Instance was terminated.

    Thank you dvohra21,
    I followed Gayaz solution and it worked on my jdev11.2.3
    1. Modified the TEMP and TMP env var from "%USERPROFILE%\Local Settings\Temp" to "c:\temp".
    We should created the temp folder in c directry if it does not exist.
    2. Created two more env variables
    (a) JDEV_USER_HOME
    (b) JDEV_USER_DIR
    and it is pointing to "C:\jdevhome".
    We should created the jdevhome folder in c directry if it does not exist.
    Finally what I observed is these four variable should point to a folder path where it should not contain spaces in the folders name.

  • URGENT = Publish PL/SQL as a WEB Service - JAVA ERROR on config.........

    I am getting this error on WEB SERVICE Creation :
    =========================================
    MY Configuration :
    ORACLE VERSION = 10g Express Edition Release 10.2.0.1.0
    OC4J VERSION = oc4j_extended_101300.zip
    ORACLE DRIVER = ojdbc14.jar
    JAVA_HOME=/opt/jdk1.5.0_06
    J2EE_HOME=/usr/lib/oracle/xe/app/OC4J/j2ee/home
    ORACLE_HOME=/usr/lib/oracle/xe/app/OC4J
    CLASSPATH=.:/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/jdbc/lib/ojdbc14.jar:/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/j2ee/home/oc4j.jar:/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/webservices/lib/wsdl.jar:/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/webservices/lib/soap.jar:/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/lib/xmlparserv2.jar:/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/lib/activation.jar:/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/lib/mail.jar:/opt/jdk1.5.0_06/lib/tools.jar:/opt/jdk1.5.0_06/jre/lib/rt.jar
    DATA-SOURCE.XML.........................
    vbdba : ../config ]> cat data-sources.xml
    <?xml version="1.0" standalone='yes'?>
    <data-sources
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:noNamespaceSchemaLocation="http://xmlns.oracle.com/oracleas/schema/data-sources-10_1.xsd"
    schema-major-version="10"
    schema-minor-version="1"
    >
    <data-sources>
    <connection-pool name="ConnectionPool1">
    <connection-factory factory-class="oracle.jdbc.pool.OracleDataSource"
    url="jdbc:oracle:thin:@localhost:1521:XE"
    user="store" password="store"/>
    </connection-pool>
    <managed-data-source connection-pool-name="ConnectionPool1"
    jndi-name="jdbc/OracleDS" name="OracleDS"/>
    </data-sources>
    </data-sources>
    Fri Mar 24 11:48:35
    vbdba : ../config ]>
    =========================================
    MY config.xml
    vbdba : ../config ]> cat data-sources.xml
    <?xml version="1.0" standalone='yes'?>
    <data-sources
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:noNamespaceSchemaLocation="http://xmlns.oracle.com/oracleas/schema/data-sources-10_1.xsd"
    schema-major-version="10"
    schema-minor-version="1"
    >
    <data-source
    class="com.evermind.sql.DriverManagerDataSource"
    name="OracleDS"
    location="jdbc/OracleDS"
    xa-location="jdbc/xa/OracleXADS"
    ejb-location="jdbc/OracleDS"
    connection-driver="oracle.jdbc.driver.OracleDriver"
    username="store"
    password="store"
    url="jdbc:oracle:thin:@local:1521/XE"
    />
    </data-sources>
    Fri Mar 24 11:48:35
    vbdba : ../config ]> vbdba : ../D_My_Apps ]> cat config.xml
    <web-service>
    <display-name>PLSQL Web Service</display-name>
    <description>PLSQL Sample</description>
    <destination-path>./dbfunc.ear</destination-path>
    <temporary-directory>/tmp</temporary-directory>
    <context>/plsqlsample</context>
    <stateless-stored-procedure-java-service>
    <jar-generation>
    <schema>store/store</schema>
    <db-url>jdbc:oracle:thin:@localhost:1521:XE</db-url>
    <prefix>db.func.place.order</prefix>
    <db-pkg-name>dbfunc</db-pkg-name>
    </jar-generation>
    <uri>/dbfunc</uri>
    <database-JNDI-name>jdbc/OracleDS</database-JNDI-name>
    </stateless-stored-procedure-java-service>
    <wsdl-gen>
    <wsdl-dir>wsdl</wsdl-dir>
    <option name="force">true</option>
    <option name="httpServerURL">http://localhost:8888</option>
    </wsdl-gen>
    <proxy-gen>
    <proxy-dir>proxy</proxy-dir>
    <option name="include-source">true</option>
    </proxy-gen>
    </web-service>
    Fri Mar 24 11:47:38
    vbdba : ../D_My_Apps ]>
    =========================================
    WEB SERVICE Creation
    vbdba : ../xe ]> java -jar ${ORACLE_HOME}/webservices/lib/WebServicesAssembler.jar -config ${ORACLE_HOME}/D_My_Apps/config.xml
    Please wait ...
    STORE.DBFUNC
    java.lang.NullPointerException
    at oracle.jpub.sqlrefl.SqlTypeWithMethods.hasDefault(SqlTypeWithMethods.java:359)
    at oracle.jpub.sqlrefl.SqlTypeWithMethods.reflectMethods(SqlTypeWithMethods.java:151)
    at oracle.jpub.sqlrefl.SqlTypeWithMethods.getDeclaredMethods(SqlTypeWithMethods.java:38)
    at oracle.jpub.publish.SqlPackageWriter.<init>(SqlPackageWriter.java:39)
    at oracle.jpub.publish.JavaPublisher.publish(JavaPublisher.java:266)
    at oracle.jpub.DoitImpl.mainSql(DoitImpl.java:326)
    at oracle.jpub.DoitImpl.main(DoitImpl.java:99)
    at oracle.jpub.Doit.main(Doit.java:46)
    at oracle.j2ee.ws.tools.DBJarGenerator.doIt(DBJarGenerator.java:263)
    at oracle.j2ee.ws.tools.WsAssemblerConfig.parseStatelessJavaNode(WsAssemblerConfig.java:214)
    at oracle.j2ee.ws.tools.WsAssemblerConfig.parseDeploymentMainNode(WsAssemblerConfig.java:89)
    at oracle.j2ee.ws.tools.WsAssemblerConfig.<init>(WsAssemblerConfig.java:62)
    at oracle.j2ee.ws.tools.WsAssembler.assemble(WsAssembler.java:96)
    at oracle.j2ee.ws.tools.WsAssembler.main(WsAssembler.java:71)
    Exception in thread "main" java.util.zip.ZipException: ZIP file must have at least one entry
    at java.util.zip.ZipOutputStream.finish(ZipOutputStream.java:291)
    at java.util.zip.DeflaterOutputStream.close(DeflaterOutputStream.java:141)
    at java.util.zip.ZipOutputStream.close(ZipOutputStream.java:310)
    at oracle.j2ee.ws.tools.JarUtils.putFileToJar(JarUtils.java:290)
    at oracle.j2ee.ws.tools.JarUtils.putFileToJar(JarUtils.java:257)
    at oracle.j2ee.ws.tools.DBJarGenerator.doIt(DBJarGenerator.java:266)
    at oracle.j2ee.ws.tools.WsAssemblerConfig.parseStatelessJavaNode(WsAssemblerConfig.java:214)
    at oracle.j2ee.ws.tools.WsAssemblerConfig.parseDeploymentMainNode(WsAssemblerConfig.java:89)
    at oracle.j2ee.ws.tools.WsAssemblerConfig.<init>(WsAssemblerConfig.java:62)
    at oracle.j2ee.ws.tools.WsAssembler.assemble(WsAssembler.java:96)
    at oracle.j2ee.ws.tools.WsAssembler.main(WsAssembler.java:71)
    Fri Mar 24 10:27:58
    vbdba : ../xe ]>
    =========================================

    Oracle AS 10.1.3
    Oracle DB 10.1.0.5
    I found below error,when i create ear file
    # java -jar ${ORACLE_HOME}/webservices/lib/WebServicesAssembler.jar -config ${ORACLE_HOME}/D_My_Apps/config.xml
    Please wait ...
    Please wait ...
    VCMGR.W4_XMLSVC
    java.lang.NullPointerException
    at oracle.jpub.sqlrefl.SqlTypeWithMethods.hasDefault(SqlTypeWithMethods.java:359)
    at oracle.jpub.sqlrefl.SqlTypeWithMethods.reflectMethods(SqlTypeWithMethods.java:151)
    at oracle.jpub.sqlrefl.SqlTypeWithMethods.getDeclaredMethods(SqlTypeWithMethods.java:38)
    at oracle.jpub.publish.SqlPackageWriter.<init>(SqlPackageWriter.java:39)
    at oracle.jpub.publish.JavaPublisher.publish(JavaPublisher.java:266)
    at oracle.jpub.DoitImpl.mainSql(DoitImpl.java:326)
    at oracle.jpub.DoitImpl.main(DoitImpl.java:99)
    at oracle.jpub.Doit.main(Doit.java:46)
    at oracle.j2ee.ws.tools.DBJarGenerator.doIt(DBJarGenerator.java:263)
    at oracle.j2ee.ws.tools.WsAssemblerConfig.parseStatelessJavaNode(WsAssemblerConfig.java:214)
    at oracle.j2ee.ws.tools.WsAssemblerConfig.parseDeploymentMainNode(WsAssemblerConfig.java:89)
    at oracle.j2ee.ws.tools.WsAssemblerConfig.<init>(WsAssemblerConfig.java:62)
    at oracle.j2ee.ws.tools.WsAssembler.assemble(WsAssembler.java:96)
    at oracle.j2ee.ws.tools.WsAssembler.main(WsAssembler.java:71)
    Exception in thread "main" java.util.zip.ZipException: ZIP file must have at least one entry
    at java.util.zip.ZipOutputStream.finish(ZipOutputStream.java:291)
    at java.util.zip.DeflaterOutputStream.close(DeflaterOutputStream.java:141)
    at java.util.zip.ZipOutputStream.close(ZipOutputStream.java:310)
    at oracle.j2ee.ws.tools.JarUtils.putFileToJar(JarUtils.java:290)
    at oracle.j2ee.ws.tools.JarUtils.putFileToJar(JarUtils.java:257)
    at oracle.j2ee.ws.tools.DBJarGenerator.doIt(DBJarGenerator.java:266)
    at oracle.j2ee.ws.tools.WsAssemblerConfig.parseStatelessJavaNode(WsAssemblerConfig.java:214)
    at oracle.j2ee.ws.tools.WsAssemblerConfig.parseDeploymentMainNode(WsAssemblerConfig.java:89)
    at oracle.j2ee.ws.tools.WsAssemblerConfig.<init>(WsAssemblerConfig.java:62)
    at oracle.j2ee.ws.tools.WsAssembler.assemble(WsAssembler.java:96)
    at oracle.j2ee.ws.tools.WsAssembler.main(WsAssembler.java:71)
    config file
    <web-service>
    <display-name>PLSQL Web Service</display-name>
    <description>PLSQL Sample</description>
    <destination-path>./w4_xmlsvc.ear</destination-path>
    <temporary-directory>/tmp</temporary-directory>
    <context>/w4svcplsql</context>
    <stateless-stored-procedure-java-service>
    <jar-generation>
    <schema>user/password</schema>
    <db-url>jdbc:oracle:thin:@databasehost:1521:DB</db-url>
    <prefix>w4.xmlsvc.order</prefix>
    <db-pkg-name>w4_xmlsvc</db-pkg-name>
    </jar-generation>
    <uri>/w4_xmlsvc</uri>
    <database-JNDI-name>jdbc/OracleDSw4SAP</database-JNDI-name>
    </stateless-stored-procedure-java-service>
    <wsdl-gen>
    <wsdl-dir>wsdl</wsdl-dir>
    <option name="force">true</option>
    <option name="httpServerURL">http://localhost:4100</option>
    </wsdl-gen>
    <proxy-gen>
    <proxy-dir>proxy</proxy-dir>
    <option name="include-source">true</option>
    </proxy-gen>
    </web-service>
    So Goto Oracle database server
    and create sqlj
    #sqlplus / as sysdba @sqljutl.sql
    and recreate ear file again
    Message was edited by:
    HunterX (Surachart Opun)

  • Jdeveloper 11g web service - java.lang.NoClassDefFoundError

    Hi,
    I've just installed JDeveloper 11 preview 3. I'd like to perform this http://www.oracle.com/technology/obe/obe11jdev/11/ws/ws.html tutorial, but when I test web service, I get java.lang.NoClassDefFoundError.
    Attached is the complete server log.
    Does anyone have any idea what the problem might be?
    Thanks
    Jernej
    [Starting Embedded OC4J Server using the following ports: HTTP=8988, RMI=23891, JMS=9227.]
    /home/jernejk/.jdeveloper/system11.1.1.0.22.47.96/o.j2ee/embedded-oc4j/config>
    /home/jernejk/jdk1.5.0_11/bin/java -server -classpath /home/jernejk/JDeveloper/j2ee/home/oc4j.jar:/home/jernejk/JDeveloper/jdev/lib/jdev-oc4j-embedded.jar -Xverify:none -XX:MaxPermSize=512m -Ddisable.checkForUpdate=true -Xrs -Doracle.application.environment=development -Doracle.j2ee.dont.use.memory.archive=true -Doracle.j2ee.http.socket.timeout=500 -Doc4j.jms.usePersistenceLockFiles=false -Djava.security.policy=/home/jernejk/.jdeveloper/system11.1.1.0.22.47.96/o.j2ee/embedded-oc4j/config/java2.policy oracle.oc4j.loader.boot.BootStrap -config /home/jernejk/.jdeveloper/system11.1.1.0.22.47.96/o.j2ee/embedded-oc4j/config/server.xml
    [waiting for the server to complete its initialization...]
    Jan 27, 2008 10:24:43 PM oracle.j2ee.xml.XMLMessages warningException
    WARNING: Exception Encountered
    08/01/27 22:24:43 SEVERE: XMLApplicationServerConfig.sortApplicationConfigReferences Error instantiating application at file:/home/jernejk/.jdeveloper/system11.1.1.0.22.47.96/o.j2ee/embedded-oc4j/applications/datatags.ear: Unable to get ApplicationConfig for datatags : Error creating deployment directory: IO Error: No such file or directory
    Jan 27, 2008 10:24:44 PM oracle.security.jps.fmw.util.JpsFmwUtil findSystemUser
    WARNING: findSystemUser: System user is not available from Credential Store.
    08/01/27 22:24:45 WARNING: ApplicationServer.enableOC4JDocumentChangeNotifier Alternate DocumentChangeNotifier in use!
    08/01/27 22:24:45 JMS server will listen on port 9227.
    08/01/27 22:24:45 oracle.j2ee.jms.oc4j.JMSServer startup complete
    Jan 27, 2008 10:24:46 PM oracle.security.jps.fmw.util.JpsFmwUtil findSystemUser
    WARNING: findSystemUser: System user is not available from Credential Store.
    Jan 27, 2008 10:24:46 PM oracle.security.jps.fmw.util.JpsFmwUtil findSystemUser
    WARNING: findSystemUser: System user is not available from Credential Store.
    Jan 27, 2008 10:24:52 PM oracle.security.jps.fmw.util.JpsFmwUtil findSystemUser
    WARNING: findSystemUser: System user is not available from Credential Store.
    Jan 27, 2008 10:24:52 PM oracle.security.jps.fmw.util.JpsFmwUtil findSystemUser
    WARNING: findSystemUser: System user is not available from Credential Store.
    Jan 27, 2008 10:24:52 PM oracle.security.jps.fmw.util.JpsFmwUtil findSystemUser
    WARNING: findSystemUser: System user is not available from Credential Store.
    Jan 27, 2008 10:24:53 PM oracle.j2ee.util.AnnotatedLogger logWithThrowable
    WARNING: J2EE JNDI-00002
    Jan 27, 2008 10:24:53 PM oracle.j2ee.util.AnnotatedLogger log
    WARNING: No javax.jms.ConnectionFactory found at null
    Jan 27, 2008 10:24:53 PM oracle.security.jps.fmw.util.JpsFmwUtil findSystemUser
    WARNING: findSystemUser: System user is not available from Credential Store.
    Jan 27, 2008 10:24:53 PM oracle.security.jps.fmw.util.JpsFmwUtil findSystemUser
    WARNING: findSystemUser: System user is not available from Credential Store.
    Jan 27, 2008 10:25:01 PM oracle.j2ee.jmsrouter.util.JmsRouterMessages logException
    WARNING: oracle.j2ee.jmsrouter.RouterException: JMS Destination, {0}, does not exist
    Ready message received from Oc4jNotifier.
    Embedded OC4J Server startup time: 22343 ms.
    Target URL -- http://localhost:8988/Application1-Annotation-context-root/hmhmsoaphttpport
    Jan 27, 2008 10:25:02 PM com.evermind.server.ServerBase log
    WARNING: Application1-Annotation-webapp: Error initializing servlet
    java.lang.ExceptionInInitializerError
         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:494)
         at java.lang.Class.newInstance0(Class.java:350)
         at java.lang.Class.newInstance(Class.java:303)
         at javax.xml.soap.FactoryFinder.newInstance(Unknown Source)
         at javax.xml.soap.FactoryFinder.find(Unknown Source)
         at javax.xml.soap.MessageFactory.newInstance(Unknown Source)
         at oracle.j2ee.ws.server.WebServiceServlet.init(WebServiceServlet.java:144)
         at oracle.j2ee.ws.server.provider.ProviderServlet.init(ProviderServlet.java:135)
         at javax.servlet.GenericServlet.init(GenericServlet.java:241)
         at com.evermind.server.http.HttpApplication.loadServlet(HttpApplication.java:2674)
         at com.evermind.server.http.HttpApplication.findServlet(HttpApplication.java:5162)
         at com.evermind.server.http.HttpApplication.findServlet(HttpApplication.java:5085)
         at com.evermind.server.http.HttpApplication.initPreloadServlets(HttpApplication.java:5275)
         at com.evermind.server.http.HttpApplication.initDynamic(HttpApplication.java:1357)
         at com.evermind.server.http.HttpApplication.init(HttpApplication.java:873)
         at com.evermind.server.http.HttpApplication.<init>(HttpApplication.java:699)
         at com.evermind.server.ApplicationStateRunning.getHttpApplication(ApplicationStateRunning.java:502)
         at com.evermind.server.Application.getHttpApplication(Application.java:778)
         at com.evermind.server.http.HttpSite$HttpApplicationRunTimeReference.doCreateHttpApplicationFromReference(HttpSite.java:2315)
         at com.evermind.server.http.HttpSite$HttpApplicationRunTimeReference.createHttpApplicationFromReference(HttpSite.java:2295)
         at com.evermind.server.http.HttpSite$HttpApplicationRunTimeReference.createHttpApplicationFromReference(HttpSite.java:2284)
         at com.evermind.server.http.HttpSite$HttpApplicationRunTimeReference.getHttpApplication(HttpSite.java:2212)
         at com.evermind.server.http.HttpSite.getApplication(HttpSite.java:475)
         at com.evermind.server.http.HttpRequestHandler.resolveApplication(HttpRequestHandler.java:565)
         at com.evermind.server.http.HttpRequestHandler.initRequest(HttpRequestHandler.java:372)
         at com.evermind.server.http.HttpRequestHandler.serveOneRequestOpen(HttpRequestHandler.java:283)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:162)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:149)
         at oracle.oc4j.network.ServerSocketReadHandler$ClientRunnable.run(ServerSocketReadHandler.java:275)
         at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:237)
         at oracle.oc4j.network.ServerSocketAcceptHandler.access$800(ServerSocketAcceptHandler.java:29)
         at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:877)
         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
         at java.lang.Thread.run(Thread.java:595)
    Caused by: java.lang.NullPointerException
         at java.lang.String.concat(String.java:1827)
         at com.sun.activation.registries.MailcapFile.parseLine(MailcapFile.java:235)
         at com.sun.activation.registries.MailcapFile.parse(MailcapFile.java:197)
         at com.sun.activation.registries.MailcapFile.createMailcapHash(MailcapFile.java:157)
         at com.sun.activation.registries.MailcapFile.<init>(MailcapFile.java:40)
         at javax.activation.MailcapCommandMap.loadFile(MailcapCommandMap.java:276)
         at javax.activation.MailcapCommandMap.<init>(MailcapCommandMap.java:128)
         at javax.activation.CommandMap.getDefaultCommandMap(CommandMap.java:44)
         at oracle.j2ee.ws.saaj.soap.MessageFactoryImpl.<clinit>(MessageFactoryImpl.java:86)
         ... 38 more
    Jan 27, 2008 10:25:02 PM com.evermind.server.ServerBase log
    WARNING: Application1-Annotation-webapp: Error preloading servlet
    javax.servlet.ServletException: Error initializing servlet
         at com.evermind.server.http.HttpApplication.findServlet(HttpApplication.java:5189)
         at com.evermind.server.http.HttpApplication.findServlet(HttpApplication.java:5085)
         at com.evermind.server.http.HttpApplication.initPreloadServlets(HttpApplication.java:5275)
         at com.evermind.server.http.HttpApplication.initDynamic(HttpApplication.java:1357)
         at com.evermind.server.http.HttpApplication.init(HttpApplication.java:873)
         at com.evermind.server.http.HttpApplication.<init>(HttpApplication.java:699)
         at com.evermind.server.ApplicationStateRunning.getHttpApplication(ApplicationStateRunning.java:502)
         at com.evermind.server.Application.getHttpApplication(Application.java:778)
         at com.evermind.server.http.HttpSite$HttpApplicationRunTimeReference.doCreateHttpApplicationFromReference(HttpSite.java:2315)
         at com.evermind.server.http.HttpSite$HttpApplicationRunTimeReference.createHttpApplicationFromReference(HttpSite.java:2295)
         at com.evermind.server.http.HttpSite$HttpApplicationRunTimeReference.createHttpApplicationFromReference(HttpSite.java:2284)
         at com.evermind.server.http.HttpSite$HttpApplicationRunTimeReference.getHttpApplication(HttpSite.java:2212)
         at com.evermind.server.http.HttpSite.getApplication(HttpSite.java:475)
         at com.evermind.server.http.HttpRequestHandler.resolveApplication(HttpRequestHandler.java:565)
         at com.evermind.server.http.HttpRequestHandler.initRequest(HttpRequestHandler.java:372)
         at com.evermind.server.http.HttpRequestHandler.serveOneRequestOpen(HttpRequestHandler.java:283)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:162)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:149)
         at oracle.oc4j.network.ServerSocketReadHandler$ClientRunnable.run(ServerSocketReadHandler.java:275)
         at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:237)
         at oracle.oc4j.network.ServerSocketAcceptHandler.access$800(ServerSocketAcceptHandler.java:29)
         at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:877)
         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
         at java.lang.Thread.run(Thread.java:595)
    Caused by: java.lang.ExceptionInInitializerError
         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:494)
         at java.lang.Class.newInstance0(Class.java:350)
         at java.lang.Class.newInstance(Class.java:303)
         at javax.xml.soap.FactoryFinder.newInstance(Unknown Source)
         at javax.xml.soap.FactoryFinder.find(Unknown Source)
         at javax.xml.soap.MessageFactory.newInstance(Unknown Source)
         at oracle.j2ee.ws.server.WebServiceServlet.init(WebServiceServlet.java:144)
         at oracle.j2ee.ws.server.provider.ProviderServlet.init(ProviderServlet.java:135)
         at javax.servlet.GenericServlet.init(GenericServlet.java:241)
         at com.evermind.server.http.HttpApplication.loadServlet(HttpApplication.java:2674)
         at com.evermind.server.http.HttpApplication.findServlet(HttpApplication.java:5162)
         ... 24 more
    Caused by: java.lang.NullPointerException
         at java.lang.String.concat(String.java:1827)
         at com.sun.activation.registries.MailcapFile.parseLine(MailcapFile.java:235)
         at com.sun.activation.registries.MailcapFile.parse(MailcapFile.java:197)
         at com.sun.activation.registries.MailcapFile.createMailcapHash(MailcapFile.java:157)
         at com.sun.activation.registries.MailcapFile.<init>(MailcapFile.java:40)
         at javax.activation.MailcapCommandMap.loadFile(MailcapCommandMap.java:276)
         at javax.activation.MailcapCommandMap.<init>(MailcapCommandMap.java:128)
         at javax.activation.CommandMap.getDefaultCommandMap(CommandMap.java:44)
         at oracle.j2ee.ws.saaj.soap.MessageFactoryImpl.<clinit>(MessageFactoryImpl.java:86)
         ... 38 more
    Jan 27, 2008 10:25:02 PM com.evermind.server.ServerBase log
    WARNING: Application1-Annotation-webapp: Error initializing servlet
    java.lang.NoClassDefFoundError
         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:494)
         at java.lang.Class.newInstance0(Class.java:350)
         at java.lang.Class.newInstance(Class.java:303)
         at javax.xml.soap.FactoryFinder.newInstance(Unknown Source)
         at javax.xml.soap.FactoryFinder.find(Unknown Source)
         at javax.xml.soap.MessageFactory.newInstance(Unknown Source)
         at oracle.j2ee.ws.server.WebServiceServlet.init(WebServiceServlet.java:144)
         at oracle.j2ee.ws.server.provider.ProviderServlet.init(ProviderServlet.java:135)
         at javax.servlet.GenericServlet.init(GenericServlet.java:241)
         at com.evermind.server.http.HttpApplication.loadServlet(HttpApplication.java:2674)
         at com.evermind.server.http.HttpApplication.findServlet(HttpApplication.java:5162)
         at com.evermind.server.http.HttpApplication.findServlet(HttpApplication.java:5085)
         at com.evermind.server.http.HttpApplication.initPreloadServlets(HttpApplication.java:5275)
         at com.evermind.server.http.HttpApplication.initDynamic(HttpApplication.java:1357)
         at com.evermind.server.http.HttpApplication.init(HttpApplication.java:873)
         at com.evermind.server.http.HttpApplication.<init>(HttpApplication.java:699)
         at com.evermind.server.ApplicationStateRunning.getHttpApplication(ApplicationStateRunning.java:502)
         at com.evermind.server.Application.getHttpApplication(Application.java:778)
         at com.evermind.server.http.HttpSite$HttpApplicationRunTimeReference.doCreateHttpApplicationFromReference(HttpSite.java:2315)
         at com.evermind.server.http.HttpSite$HttpApplicationRunTimeReference.createHttpApplicationFromReference(HttpSite.java:2295)
         at com.evermind.server.http.HttpSite$HttpApplicationRunTimeReference.createHttpApplicationFromReference(HttpSite.java:2284)
         at com.evermind.server.http.HttpSite$HttpApplicationRunTimeReference.getHttpApplication(HttpSite.java:2212)
         at com.evermind.server.http.HttpSite.getApplication(HttpSite.java:475)
         at com.evermind.server.http.HttpRequestHandler.resolveApplication(HttpRequestHandler.java:565)
         at com.evermind.server.http.HttpRequestHandler.initRequest(HttpRequestHandler.java:372)
         at com.evermind.server.http.HttpRequestHandler.serveOneRequestOpen(HttpRequestHandler.java:283)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:162)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:149)
         at oracle.oc4j.network.ServerSocketReadHandler$ClientRunnable.run(ServerSocketReadHandler.java:275)
         at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:237)
         at oracle.oc4j.network.ServerSocketAcceptHandler.access$800(ServerSocketAcceptHandler.java:29)
         at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:877)
         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
         at java.lang.Thread.run(Thread.java:595)
    Jan 27, 2008 10:25:02 PM com.evermind.server.ServerBase log
    WARNING: Application1-Annotation-webapp: Error preloading servlet
    javax.servlet.ServletException: Error initializing servlet
         at com.evermind.server.http.HttpApplication.findServlet(HttpApplication.java:5189)
         at com.evermind.server.http.HttpApplication.findServlet(HttpApplication.java:5085)
         at com.evermind.server.http.HttpApplication.initPreloadServlets(HttpApplication.java:5275)
         at com.evermind.server.http.HttpApplication.initDynamic(HttpApplication.java:1357)
         at com.evermind.server.http.HttpApplication.init(HttpApplication.java:873)
         at com.evermind.server.http.HttpApplication.<init>(HttpApplication.java:699)
         at com.evermind.server.ApplicationStateRunning.getHttpApplication(ApplicationStateRunning.java:502)
         at com.evermind.server.Application.getHttpApplication(Application.java:778)
         at com.evermind.server.http.HttpSite$HttpApplicationRunTimeReference.doCreateHttpApplicationFromReference(HttpSite.java:2315)
         at com.evermind.server.http.HttpSite$HttpApplicationRunTimeReference.createHttpApplicationFromReference(HttpSite.java:2295)
         at com.evermind.server.http.HttpSite$HttpApplicationRunTimeReference.createHttpApplicationFromReference(HttpSite.java:2284)
         at com.evermind.server.http.HttpSite$HttpApplicationRunTimeReference.getHttpApplication(HttpSite.java:2212)
         at com.evermind.server.http.HttpSite.getApplication(HttpSite.java:475)
         at com.evermind.server.http.HttpRequestHandler.resolveApplication(HttpRequestHandler.java:565)
         at com.evermind.server.http.HttpRequestHandler.initRequest(HttpRequestHandler.java:372)
         at com.evermind.server.http.HttpRequestHandler.serveOneRequestOpen(HttpRequestHandler.java:283)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:162)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:149)
         at oracle.oc4j.network.ServerSocketReadHandler$ClientRunnable.run(ServerSocketReadHandler.java:275)
         at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:237)
         at oracle.oc4j.network.ServerSocketAcceptHandler.access$800(ServerSocketAcceptHandler.java:29)
         at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:877)
         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
         at java.lang.Thread.run(Thread.java:595)
    Caused by: java.lang.NoClassDefFoundError
         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:494)
         at java.lang.Class.newInstance0(Class.java:350)
         at java.lang.Class.newInstance(Class.java:303)
         at javax.xml.soap.FactoryFinder.newInstance(Unknown Source)
         at javax.xml.soap.FactoryFinder.find(Unknown Source)
         at javax.xml.soap.MessageFactory.newInstance(Unknown Source)
         at oracle.j2ee.ws.server.WebServiceServlet.init(WebServiceServlet.java:144)
         at oracle.j2ee.ws.server.provider.ProviderServlet.init(ProviderServlet.java:135)
         at javax.servlet.GenericServlet.init(GenericServlet.java:241)
         at com.evermind.server.http.HttpApplication.loadServlet(HttpApplication.java:2674)
         at com.evermind.server.http.HttpApplication.findServlet(HttpApplication.java:5162)
         ... 24 more
    Jan 27, 2008 10:25:02 PM com.evermind.server.ServerBase log
    WARNING: Application1-Annotation-webapp: Error initializing servlet
    java.lang.NoClassDefFoundError
         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:494)
         at java.lang.Class.newInstance0(Class.java:350)
         at java.lang.Class.newInstance(Class.java:303)
         at javax.xml.soap.FactoryFinder.newInstance(Unknown Source)
         at javax.xml.soap.FactoryFinder.find(Unknown Source)
         at javax.xml.soap.MessageFactory.newInstance(Unknown Source)
         at oracle.j2ee.ws.server.WebServiceServlet.init(WebServiceServlet.java:144)
         at oracle.j2ee.ws.server.provider.ProviderServlet.init(ProviderServlet.java:135)
         at javax.servlet.GenericServlet.init(GenericServlet.java:241)
         at com.evermind.server.http.HttpApplication.loadServlet(HttpApplication.java:2674)
         at com.evermind.server.http.HttpApplication.findServlet(HttpApplication.java:5162)
         at com.evermind.server.http.HttpApplication.findServlet(HttpApplication.java:5085)
         at com.evermind.server.http.HttpApplication.getRequestDispatcher(HttpApplication.java:3248)
         at com.evermind.server.http.HttpRequestHandler.doResolveRequestDispatcher(HttpRequestHandler.java:1005)
         at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:822)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:646)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:614)
         at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:405)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:168)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:149)
         at oracle.oc4j.network.ServerSocketReadHandler$ClientRunnable.run(ServerSocketReadHandler.java:275)
         at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:237)
         at oracle.oc4j.network.ServerSocketAcceptHandler.access$800(ServerSocketAcceptHandler.java:29)
         at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:877)
         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
         at java.lang.Thread.run(Thread.java:595)
    Jan 27, 2008 10:25:02 PM com.evermind.server.ServerBase log
    WARNING: Application1-Annotation-webapp: Servlet error
    java.lang.NoClassDefFoundError
         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:494)
         at java.lang.Class.newInstance0(Class.java:350)
         at java.lang.Class.newInstance(Class.java:303)
         at javax.xml.soap.FactoryFinder.newInstance(Unknown Source)
         at javax.xml.soap.FactoryFinder.find(Unknown Source)
         at javax.xml.soap.MessageFactory.newInstance(Unknown Source)
         at oracle.j2ee.ws.server.WebServiceServlet.init(WebServiceServlet.java:144)
         at oracle.j2ee.ws.server.provider.ProviderServlet.init(ProviderServlet.java:135)
         at javax.servlet.GenericServlet.init(GenericServlet.java:241)
         at com.evermind.server.http.HttpApplication.loadServlet(HttpApplication.java:2674)
         at com.evermind.server.http.HttpApplication.findServlet(HttpApplication.java:5162)
         at com.evermind.server.http.HttpApplication.findServlet(HttpApplication.java:5085)
         at com.evermind.server.http.HttpApplication.getRequestDispatcher(HttpApplication.java:3248)
         at com.evermind.server.http.HttpRequestHandler.doResolveRequestDispatcher(HttpRequestHandler.java:1005)
         at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:822)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:646)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:614)
         at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:405)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:168)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:149)
         at oracle.oc4j.network.ServerSocketReadHandler$ClientRunnable.run(ServerSocketReadHandler.java:275)
         at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:237)
         at oracle.oc4j.network.ServerSocketAcceptHandler.access$800(ServerSocketAcceptHandler.java:29)
         at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:877)
         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
         at java.lang.Thread.run(Thread.java:595)
    Jan 27, 2008 10:25:02 PM com.evermind.server.ServerBase log
    WARNING: Application1-Annotation-webapp: Error initializing servlet
    java.lang.NoClassDefFoundError
         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:494)
         at java.lang.Class.newInstance0(Class.java:350)
         at java.lang.Class.newInstance(Class.java:303)
         at javax.xml.soap.FactoryFinder.newInstance(Unknown Source)
         at javax.xml.soap.FactoryFinder.find(Unknown Source)
         at javax.xml.soap.MessageFactory.newInstance(Unknown Source)
         at oracle.j2ee.ws.server.WebServiceServlet.init(WebServiceServlet.java:144)
         at oracle.j2ee.ws.server.provider.ProviderServlet.init(ProviderServlet.java:135)
         at javax.servlet.GenericServlet.init(GenericServlet.java:241)
         at com.evermind.server.http.HttpApplication.loadServlet(HttpApplication.java:2674)
         at com.evermind.server.http.HttpApplication.findServlet(HttpApplication.java:5162)
         at com.evermind.server.http.HttpApplication.findServlet(HttpApplication.java:5085)
         at com.evermind.server.http.HttpApplication.getRequestDispatcher(HttpApplication.java:3248)
         at com.evermind.server.http.HttpRequestHandler.doResolveRequestDispatcher(HttpRequestHandler.java:1005)
         at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:822)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:646)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:614)
         at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:405)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:168)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:149)
         at oracle.oc4j.network.ServerSocketReadHandler$ClientRunnable.run(ServerSocketReadHandler.java:275)
         at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:237)
         at oracle.oc4j.network.ServerSocketAcceptHandler.access$800(ServerSocketAcceptHandler.java:29)
         at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:877)
         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
         at java.lang.Thread.run(Thread.java:595)
    Jan 27, 2008 10:25:02 PM com.evermind.server.ServerBase log
    WARNING: Application1-Annotation-webapp: Servlet error
    java.lang.NoClassDefFoundError
         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:494)
         at java.lang.Class.newInstance0(Class.java:350)
         at java.lang.Class.newInstance(Class.java:303)
         at javax.xml.soap.FactoryFinder.newInstance(Unknown Source)
         at javax.xml.soap.FactoryFinder.find(Unknown Source)
         at javax.xml.soap.MessageFactory.newInstance(Unknown Source)
         at oracle.j2ee.ws.server.WebServiceServlet.init(WebServiceServlet.java:144)
         at oracle.j2ee.ws.server.provider.ProviderServlet.init(ProviderServlet.java:135)
         at javax.servlet.GenericServlet.init(GenericServlet.java:241)
         at com.evermind.server.http.HttpApplication.loadServlet(HttpApplication.java:2674)
         at com.evermind.server.http.HttpApplication.findServlet(HttpApplication.java:5162)
         at com.evermind.server.http.HttpApplication.findServlet(HttpApplication.java:5085)
         at com.evermind.server.http.HttpApplication.getRequestDispatcher(HttpApplication.java:3248)
         at com.evermind.server.http.HttpRequestHandler.doResolveRequestDispatcher(HttpRequestHandler.java:1005)
         at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:822)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:646)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:614)
         at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:405)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:168)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:149)
         at oracle.oc4j.network.ServerSocketReadHandler$ClientRunnable.run(ServerSocketReadHandler.java:275)
         at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:237)
         at oracle.oc4j.network.ServerSocketAcceptHandler.access$800(ServerSocketAcceptHandler.java:29)
         at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:877)
         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
         at java.lang.Thread.run(Thread.java:595)
    Jan 27, 2008 10:25:02 PM com.evermind.server.ServerBase log
    WARNING: Application1-Annotation-webapp: Error initializing servlet
    java.lang.NoClassDefFoundError
         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:494)
         at java.lang.Class.newInstance0(Class.java:350)
         at java.lang.Class.newInstance(Class.java:303)
         at javax.xml.soap.FactoryFinder.newInstance(Unknown Source)
         at javax.xml.soap.FactoryFinder.find(Unknown Source)
         at javax.xml.soap.MessageFactory.newInstance(Unknown Source)
         at oracle.j2ee.ws.server.WebServiceServlet.init(WebServiceServlet.java:144)
         at oracle.j2ee.ws.server.provider.ProviderServlet.init(ProviderServlet.java:135)
         at javax.servlet.GenericServlet.init(GenericServlet.java:241)
         at com.evermind.server.http.HttpApplication.loadServlet(HttpApplication.java:2674)
         at com.evermind.server.http.HttpApplication.findServlet(HttpApplication.java:5162)
         at com.evermind.server.http.HttpApplication.findServlet(HttpApplication.java:5085)
         at com.evermind.server.http.HttpApplication.getRequestDispatcher(HttpApplication.java:3248)
         at com.evermind.server.http.HttpRequestHandler.doResolveRequestDispatcher(HttpRequestHandler.java:1005)
         at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:822)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:646)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:614)
         at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:405)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:168)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:149)
         at oracle.oc4j.network.ServerSocketReadHandler$ClientRunnable.run(ServerSocketReadHandler.java:275)
         at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:237)
         at oracle.oc4j.network.ServerSocketAcceptHandler.access$800(ServerSocketAcceptHandler.java:29)
         at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:877)
         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
         at java.lang.Thread.run(Thread.java:595)
    Jan 27, 2008 10:25:02 PM com.evermind.server.ServerBase log
    WARNING: Application1-Annotation-webapp: Servlet error
    java.lang.NoClassDefFoundError
         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:494)
         at java.lang.Class.newInstance0(Class.java:350)
         at java.lang.Class.newInstance(Class.java:303)
         at javax.xml.soap.FactoryFinder.newInstance(Unknown Source)
         at javax.xml.soap.FactoryFinder.find(Unknown Source)
         at javax.xml.soap.MessageFactory.newInstance(Unknown Source)
         at oracle.j2ee.ws.server.WebServiceServlet.init(WebServiceServlet.java:144)
         at oracle.j2ee.ws.server.provider.ProviderServlet.init(ProviderServlet.java:135)
         at javax.servlet.GenericServlet.init(GenericServlet.java:241)
         at com.evermind.server.http.HttpApplication.loadServlet(HttpApplication.java:2674)
         at com.evermind.server.http.HttpApplication.findServlet(HttpApplication.java:5162)
         at com.evermind.server.http.HttpApplication.findServlet(HttpApplication.java:5085)
         at com.evermind.server.http.HttpApplication.getRequestDispatcher(HttpApplication.java:3248)
         at com.evermind.server.http.HttpRequestHandler.doResolveRequestDispatcher(HttpRequestHandler.java:1005)
         at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:822)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:646)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:614)
         at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:405)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:168)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:149)
         at oracle.oc4j.network.ServerSocketReadHandler$ClientRunnable.run(ServerSocketReadHandler.java:275)
         at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:237)
         at oracle.oc4j.network.ServerSocketAcceptHandler.access$800(ServerSocketAcceptHandler.java:29)
         at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:877)
         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
         at java.lang.Thread.run(Thread.java:595)

    Hi,
    also make sure you also (or only) post JDeveloper 11 related questions to JDeveloper and OC4J 11g Technology Preview which is a forum monitored by the focus experts for JDeveloper 11
    Frank

  • Web Service java.lang.NoClassDefFoundError: org/hibernate/cfg/Configuration

    I have built a EAR file (using ANT build.xml from eclipse) and deploy it to WebLogic server, when I test the web service with a Test Client, I will receive the exception:
    java.lang.NoClassDefFoundError: org/hibernate/cfg/Configuration
    Anything wrong with my build.xml file below? Why I get this exception?
    <?xml version="1.0" encoding="UTF-8"?>
    <project name="MyWebServices" default="all">  
         <!-- set global properties for this build -->   
         <property name="wls.username" value="weblogic" />   
         <property name="wls.password" value="abcd1234" />   
         <property name="wls.hostname" value="localhost" />   
         <property name="wls.port" value="7001" />   
         <property name="wls.server.name" value="AdminServer" />   
         <property name="ear.deployed.name" value="MyWebServicesEar" />
         <property name="example-output" value="output" />   
         <property name="ear-dir" value="${example-output}/MyWebServicesEar" />   
         <property name="clientclass-dir" value="${example-output}/clientclasses" />   
         <path id="client.class.path">       
              <pathelement path="${clientclass-dir}" />       
              <pathelement path="${java.class.path}" />   
         </path>
         <taskdef name="jwsc" classname="weblogic.wsee.tools.anttasks.JwscTask" />   
         <taskdef name="clientgen" classname="weblogic.wsee.tools.anttasks.ClientGenTask" />   
         <taskdef name="wldeploy" classname="weblogic.ant.taskdefs.management.WLDeploy" />
         <target name="build-service">       
              <jwsc srcdir="src" destdir="${ear-dir}">
                   <classpath>      
                        <pathelement path="${java.class.path}" />
                        <pathelement path="WebContent/WEB-INF/lib"/>
                   </classpath>
                   <module contextPath="MyWebServices" name="MyWebServicesModule">
                        <jws file="/hk/com/my/webservices/servicefacade/CustomerWS.java" type="JAXWS" />                 
                        <jws file="/hk/com/my/webservices/servicefacade/LoginWS.java" type="JAXWS" />               
                        <jws file="/hk/com/my/webservices/servicefacade/PaymentWS.java" type="JAXWS" />
                        <!-- <jws file="/hk/com/my/webservices/servicefacade/RedemptionWS.java" type="JAXWS" /> -->
                   </module>
              </jwsc>
         </target>   
         <target name="deploy">
              <wldeploy action="deploy" name="${ear.deployed.name}" source="${ear-dir}" user="${wls.username}" password="${wls.password}" verbose="true" adminurl="t3://${wls.hostname}:${wls.port}" targets="${wls.server.name}" />   
         </target>   
         <target name="undeploy">       
              <wldeploy action="undeploy" name="${ear.deployed.name}" failonerror="false" user="${wls.username}" password="${wls.password}" verbose="true" adminurl="t3://${wls.hostname}:${wls.port}" targets="${wls.server.name}" />   
         </target>         
         <target name="all" depends="clean,build-service,deploy" />
         <target name="clean" depends="undeploy">       
              <delete dir="${example-output}" />   
         </target> 
         <target name="run">       
              <java classname="hk.com.my.webservices.servicefacade.client.Main" fork="true" failonerror="true">
                   <classpath refid="client.class.path" />                           
                   <arg line="http://${wls.hostname}:${wls.port}/MyServices" />
              </java>   
         </target>
    </project>

    The problem was because I did not include my web-inf into the ear in my build.xml, i added it using the zipfileset tag and it worked like a charm:
    <target name="build-service">          
              <jwsc srcdir="src" destdir="${ear-dir}" debug="on">
                   <!-- "contextPath" is like a folder to contain the Web Services, "name" is the name of the WAR file -->
                   <module contextPath="MyWebServices" name="MyWebServicesModule">
                        <jws file="/my/webservices/servicefacade/CustomerWS.java" type="JAXWS" />          
                        <jws file="/my/webservices/servicefacade/LoginWS.java" type="JAXWS" />                                                                 
                        <!-- include and copy the required files to the ear directory -->
                        <zipfileset dir="WebContent/WEB-INF/lib" prefix="WEB-INF/lib">
                             <include name="*.jar"/>
                        </zipfileset>                              
                   </module>
              </jwsc>
    </target>

  • Native Web Services - Java client

    Hi.
    Is there any example of how to consume a Native Web Service (11g) using a java client? I am having a trouble with this, and I couldn't find any clue so far.
    I've been using NetBeans.
    Any help would be appreciated.
    Thanks

    I have tried using Axis2. Created the Stub from the WSDL.
    Code:
    import com.oracle.xmlns.orawsv.bi_demo.filial_cotacao.FILIAL_COTACAOServiceStub;
    import org.apache.axis2.client.Options;
    import org.apache.axis2.transport.http.HTTPConstants;
    import org.apache.axis2.transport.http.HttpTransportProperties;
    class FILIAL_COTACAO {
    public void filialCOTACAO(){
    try { // Call Web Service Operation
    FILIAL_COTACAOServiceStub stub = new FILIAL_COTACAOServiceStub();
    Options options = stub._getServiceClient().getOptions();
    HttpTransportProperties.Authenticator auth = new HttpTransportProperties.Authenticator();
    auth.setPreemptiveAuthentication(true);
    auth.setPassword("bi_demo");
    auth.setUsername("bi_demo");
    options.setProperty(HTTPConstants.AUTHENTICATE,auth);
    FILIAL_COTACAOServiceStub.SVARCHAR2FILIAL_COTACAOInput dados = new
    FILIAL_COTACAOServiceStub.SVARCHAR2FILIAL_COTACAOInput();
    FILIAL_COTACAOServiceStub.FILIAL_COTACAOOutput resp = new FILIAL_COTACAOServiceStub.FILIAL_COTACAOOutput();
    String user = "TESTE";
    dados.setUSUARIO$VARCHAR2IN(user);
    resp = stub.fILIAL_COTACAO(dados);
    System.out.println("Resposta " + resp.getRETURN());
    System.out.println("TESTE");
    } catch (Throwable e1) {e1.printStackTrace();}
    public static void main(String[] args) throws Exception {
    FILIAL_COTACAO t = new FILIAL_COTACAO();
    t.filialCOTACAO();
    But it returns me:
    [INFO] Deploying module: metadataExchange-1.5.1 - file:/Users/CInglez/MSV/NetBeansProjects/FILIAL_COTACAO_Axis/dist/lib/mex-1.5.1.jar
    org.apache.axiom.soap.SOAPProcessingException: Only Characters are allowed here
         at org.apache.axiom.soap.impl.builder.SOAP11BuilderHelper.processText(SOAP11BuilderHelper.java:153)
         at org.apache.axiom.soap.impl.builder.SOAP11BuilderHelper.handleEvent(SOAP11BuilderHelper.java:63)
         at org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.constructNode(StAXSOAPModelBuilder.java:390)
         at org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.createOMElement(StAXSOAPModelBuilder.java:227)
         at org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.createNextOMElement(StAXSOAPModelBuilder.java:196)
         at org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:207)
         at org.apache.axiom.om.impl.llom.OMElementImpl.buildNext(OMElementImpl.java:664)
         at org.apache.axiom.om.impl.llom.OMNodeImpl.getNextOMSibling(OMNodeImpl.java:141)
         at org.apache.axiom.om.impl.traverse.OMChildrenQNameIterator.findNextElementWithQName(OMChildrenQNameIterator.java:96)
         at org.apache.axiom.om.impl.traverse.OMChildrenQNameIterator.<init>(OMChildrenQNameIterator.java:53)
         at org.apache.axiom.om.impl.llom.OMElementImpl.getFirstChildWithName(OMElementImpl.java:270)
         at org.apache.axiom.soap.impl.llom.soap11.SOAP11FaultImpl.getCode(SOAP11FaultImpl.java:124)
         at org.apache.axis2.AxisFault.initializeValues(AxisFault.java:202)
         at org.apache.axis2.AxisFault.<init>(AxisFault.java:196)
         at org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java:435)
         at org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:371)
         at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:417)
         at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:229)
         at org.apache.axis2.client.OperationClient.execute(OperationClient.java:165)
         at com.oracle.xmlns.orawsv.bi_demo.filial_cotacao.FILIAL_COTACAOServiceStub.fILIAL_COTACAO(FILIAL_COTACAOServiceStub.java:181)
         at FILIAL_COTACAO.filialCOTACAO(FILIAL_COTACAO.java:56)
         at FILIAL_COTACAO.main(FILIAL_COTACAO.java:68)
    Any clues?
    Thanks

  • Output Service Java API

    Hi,
    I have installed and deployed Adode LC ES 8.1 for weblogic. I have two questions;
    1) While deploying the components 'Workbench Admin', 'Rights Admin' and 'PDF generator', exceptions are thrown saying that somes jar can not be deployed. After this exception the deployment stops.
    a) PDF Generator Component
    [2007-07-11 17:44:02,751], FINE , Thread-11, com.adobe.livecycle.lcm.feature.deployment.LCMDeployerUtil, installComponent : ..\working\deployLC\deploy\adobe-pdfgconfig-dsc.jar
    [2007-07-11 17:44:08,749], SEVERE , Thread-11, com.adobe.livecycle.lcm.feature.deployment.DeployDSCs, Failed to deploy component.
    com.adobe.livecycle.lcm.core.LCMException[ALC-LCM-030-200]: Failed to deploy component.
    b) Righta Admin Component
    [2007-07-11 17:41:59,449], FINE , Thread-10, com.adobe.livecycle.lcm.feature.deployment.LCMDeployerUtil, installComponent : ..\working\deployLC\deploy\adobe-rightsmanagement-weblogic-dsc.jar
    [2007-07-11 17:42:10,314], SEVERE , Thread-10, com.adobe.livecycle.lcm.feature.deployment.DeployDSCs, Failed to deploy component.
    com.adobe.livecycle.lcm.core.LCMException[ALC-LCM-030-200]: Failed to deploy component.
    c) Workbench Admin Component
    [2007-07-11 17:37:03,329], FINE , Thread-8, com.adobe.livecycle.lcm.feature.deployment.LCMDeployerUtil, installComponent : ..\working\deployLC\deploy\adobe-workspacepersistence-dsc.jar
    [2007-07-11 17:37:05,001], SEVERE , Thread-8, com.adobe.livecycle.lcm.feature.deployment.DeployDSCs, Failed to deploy component.
    com.adobe.livecycle.lcm.core.LCMException[ALC-LCM-030-200]: Failed to deploy component.
    2) I do not know whether this is because of the above. When I am using Output Service with Java API, to generate PDF for a given xdp and xml data, I am getting the below exception,
    Exception in thread "Main Thread" com.adobe.livecycle.output.exception.OutputException: com.adobe.idp.DocumentError: error unmarshalling arguments; nested exception is:
    java.lang.ClassNotFoundException: Failed to load class com.adobe.idp.DocumentFileID (see the server-side log for details)
    at com.adobe.livecycle.output.client.OutputClient.generatePDFOutput(OutputClient.java:138)
    at adobe.CARSPDFGenerator.main(CARSPDFGenerator.java:46)
    Caused by: com.adobe.idp.DocumentError: error unmarshalling arguments; nested exception is:
    java.lang.ClassNotFoundException: Failed to load class com.adobe.idp.DocumentFileID (see the server-side log for details)
    Appreciated your help.
    Thanks
    Raghu

    Hi
    We are using ejp service for generating PDF.But our outputClient.generatePDFOutput() is not giving us anything.When it is being called program gets hang,nor it is throwing any exeption.
    I am running the program from my machine which has windows OS and LiveCycle is intalled on Linux machine and has Weblogic server on it.
    We are making connection in service Client.

  • Error when running the Web Services java client file

    Hi,
    I am working on web services with 9iAS.
    I am using the StatelessExample file included during installation.
    The ear file was created and the application was deployed using OEM Web.
    But when I try to execute the client java file StatelessClient. I get an error. The error is something about content type.
    The error message is pasted below.
    And also how do I run the web service on the browser.
    Please help.
    regards
    Kamlesh
    D:\ora9ias_portal\j2ee\home\demo\web_services\java_services\client>java -classpa
    th .;StatelessExample_proxy.jar;%CLASSPATH%; StatelessClient
    Exception in thread "main" [SOAPException: faultCode=SOAP-ENV:Protocol; msg=Unsu
    pported response content type &quot;text/html&quot;, must be: &quot;text/xml&quo
    t;. Response was:
    &lt;HTML&gt;&lt;HEAD&gt;&lt;TITLE&gt;500 Internal Server Error&lt;/TITLE&gt;&lt;
    /HEAD&gt;&lt;BODY&gt;&lt;H1&gt;500 Internal Server Error&lt;/H1&gt;&lt;PRE&gt;or
    acle.j2ee.xanadu.JasperGenerationError: no source generated during code generati
    on!: 1 in getFile name: oracle\j2ee\ws_example\StatelessExample.class
    &lt;br&gt;1 in getFile name: oracle\j2ee\ws_example\StatelessExample.java
    &lt;br&gt;error: error message &apos;class.format&apos; not found&lt;br&gt;binar
    y class definition not found: oracle.j2ee.ws_example.StatelessExample
    &lt;br&gt;
    &lt;br&gt;      at oracle.j2ee.ws.JavaWrapperGenerator.generate(JavaWrapperGener
    ator.java:267)
    &lt;br&gt;      at oracle.j2ee.ws.RpcWebService.generateWrapperClass(RpcWebServi
    ce.java:662)
    &lt;br&gt;      at oracle.j2ee.ws.RpcWebService.generate(RpcWebService.java:436)
    &lt;br&gt;      at oracle.j2ee.ws.RpcWebService.getWrapper(RpcWebService.java:76
    7)
    &lt;br&gt;      at oracle.j2ee.ws.RpcWebService.doPost(RpcWebService.java:309)
    &lt;br&gt;      at javax.servlet.http.HttpServlet.service(HttpServlet.java:283)
    &lt;br&gt;      at javax.servlet.http.HttpServlet.service(HttpServlet.java:336)
    &lt;br&gt;      at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].serv
    er.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:59)
    &lt;br&gt; at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java
    :283)
    &lt;br&gt; at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].serv
    er.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:523)
    &lt;br&gt; at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].serv
    er.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:2
    69)
    &lt;br&gt; at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].serv
    er.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:735)
    &lt;br&gt; at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].serv
    er.http.AJPRequestHandler.run(AJPRequestHandler.java:151)
    &lt;br&gt; at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].util
    .ThreadPoolThread.run(ThreadPoolThread.java:64)
    &lt;br&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;
    at org.apache.soap.rpc.Call.getEnvelopeString(Call.java:201)
    at org.apache.soap.rpc.Call.invoke(Call.java:260)
    at oracle.j2ee.ws_example.proxy.StatelessExampleProxy.makeSOAPCallRPC(St
    atelessExampleProxy.java:51)
    at oracle.j2ee.ws_example.proxy.StatelessExampleProxy.helloWorld(Statele
    ssExampleProxy.java:35)
    at StatelessClient.main(StatelessClient.java:8)

    If you are getting this error, then you are most likely compiling your code with a different JVM than what is shipped with the application server. Oracle9iAS Release 2 (9.0.2) uses the JDK1.3.1. I got this error when I compiled the code with JDK1.4.0_01.

  • WLS started as NT service: javai.dll not found

    Hi,
    I have just installed WLS 5.1 SP8 as NT Service. After trying to start the
    service from the console I get the message "The dynamic link library
    javai.dll could not be found in the specified path ...".
    But the WLS seems to work anyway (what I have tested so far).
    I do not get this error if I start the WLS from the command line.
    I checked on another machine and found the javai.dll in the jdk 1.1.8 bin
    directory but I installed the JDK 1.3.0 on the new machine.
    Does anybody else experienced this before?
    Do I need to install the JDK 1.1.8?
    Any feedback is very appreciated.
    Thanks in advance,
    Fleming Frese

    In the unzipped SP8, there is sub-directory win32_12 under bin, which has
    WLService.exe and some other files, copy them to your <wl-home>/bin
    directory and try it again.
    "Fleming Frese" <[email protected]> wrote in message
    news:3a838fcb$[email protected]..
    Michael,
    Thanks for this information.
    Does this mean, that WLS 5.1 SP9 kann run with JDK1.3, especially as NT
    service then?
    I interpreted the information in the "WebLogic Platform Support Summary"
    website
    (http://www.weblogic.com/platforms/index.html#winnt)
    as if JDK 1.3 is generally not recommended to use with WLS 5.1.
    I just want to sort out if we should wait for SP 9 or if we shut restrict
    our development on JDK 1.2.2.
    Thanks for any comments and recommendation
    Fleming
    Michael Girdley <----> wrote in message
    news:3a80ff93$[email protected]..
    This is a bug to be fixed in SP9.
    Bug #: CR031853
    Thanks,
    Michael
    Michael Girdley
    BEA Systems
    Learning WebLogic? http://learnweblogic.com
    "Fleming Frese" <[email protected]> wrote in message
    news:3a7ff4f3$[email protected]..
    Hi,
    I have just installed WLS 5.1 SP8 as NT Service. After trying to start
    the
    service from the console I get the message "The dynamic link library
    javai.dll could not be found in the specified path ...".
    But the WLS seems to work anyway (what I have tested so far).
    I do not get this error if I start the WLS from the command line.
    I checked on another machine and found the javai.dll in the jdk 1.1.8bin
    directory but I installed the JDK 1.3.0 on the new machine.
    Does anybody else experienced this before?
    Do I need to install the JDK 1.1.8?
    Any feedback is very appreciated.
    Thanks in advance,
    Fleming Frese

  • Portal Service - java.lang.NoClassDefFoundError

    Hi all,
    I've a Web Dynpro project which uses a portal service we wrote.
    I added the service's name to the "Sharing References" of the project and the project runs.
    However, after each restart to the server I get 'java.lang.NoClassDefFoundError' for the portal service. Redeploying the service solves the problem until next restart...
    After doing a lot of checking I've came to the conclusion that the problem is in the initialization of the service in the component controller.
    The component controller has 3 methods. In each of this methods the service is called
    ISqlService sqlservice = (ISqlService)WDPortalUtils.getServiceReference(ISqlService.KEY);
    After commenting this lines and moving the initialization line to "begin others" segment the problem seems to be solved (I've done some restarts to the server and the application ran without a problem)
    My question is: if none of the methods of the controller is called on application startup then why do I get the java.lang.NoClassDefFoundError?
    Also, when does the Web Dynpro framework load the portal service? isn't it supposed to be first time the service is called?
    Regards,
    Omri

    Hi Umesh,
    Try declaring a runtime reference for the service you are using in the project properties.
    Please explore the options:
    Project properties -> WebDynpro References -> Service References & Sharing References
    For ex:In my application, i use KM functionality.Even though Ive KM jars in the classpath (as external lib DCs), I mentioned a runtime reference in "Sharing References" as PORTAL:sap.com/com.sap.km.application.
    Similarly, I remember seeing somewhere mentioning the service you're trying to access as a Service Reference in the DC properties.
    something like: PORTAL:mycompany.com/com.....MyService
    A common portal service that is used in WebDynpro DCs is URLGenerator service. Probably if you search on it, you might find a clue.
    Regards,
    Rajit Srinivas

  • Win2k service & java.policy configuration

    Hi,
    Got tomcat 4 on Win2k performing unrestricted encryption/decryption using chosen provider. When I launch tomcat from the console as an application all works fine, both ways (enc/dec). When tomcat is started automatically as a win2k service at boot, it generates errors and fails to enc/dec with following exception:
    java.security.NoSuchProviderException
    Does anyone knows how to configure the java.policy file, the catalina.policy or whatever is necessary to allow the Win2k service (tomcat 4) using the runas "LocalSystem" account in Win2k to be able to read and execute java security methods (ie ....Cypher.getInstance("..blah, blah"), as per Java 1.4 security model.
    Any suggestions and/or examples would be great. Thanks

    Having to modify the policy file defeats the whole point of using applets in the first place. If you have to install anything (such as a new policy file) on the client machine, you may as well install a GUI program.
    Either get yourself a digital certificate and sign the applet, or use an independent program instead.

Maybe you are looking for

  • How to refer a .jar file in the code.

    How to refer a .jar file in the code. I want to use a library dnsjava.jar, which I download from the internet. I want to know how to refer it      If I am compiling the code on Solaris      If I compiling the code on windows using eclipse. I added th

  • Hide all except one object in Active Directory Users and Computers.

    Hello, I have a question.. I need to allow to one group of "administrators" creating users in one OU and adding computers to the domain, nothing else. I allowed them to log on DC using the GPO "Allow log on locally", because I don't want to give them

  • My ipad 3 doesnt have a sound on pandora or music

    Hi my i pad 3 doesn't have sound in pandora or music, i reset everything, i did the lock and mute thing, but nothing happened, even the little button that you can use to up and down the volume for music disappeared. Im really concerned because it was

  • PLSQL functions help

    I have this SELECT below which i have to run it in a LOOP for every activity_id(record) that i get from the join. Also,this SELECT has to be run in multiple places in a procedure to get details and for that records-->I run the assign_course or assign

  • I cannot locate the CROP TOOL on CS6 Photoshop

    I have searched and searched my program for the crop tool...  I need to straighten and crop an image and now at frustration level! Where is the crop tool? Tony