Building the webservice jar file

I have a problem with the underlying errormsg. Could anyone help.
Below the errormsg i have included the content of the jar file, where ant claims
ejb-jar.xml missing. (I've even given full rights to the files before packing in
jar).
Thanx in advance!
Michael Nielsen
Buildfile: build.xml
webservice:
clean:
init:
[mkdir] Created dir: /home/min1210/mille6/classes/dk/dsb/mille/integration/webservice/profil/build
[mkdir] Created dir: /home/min1210/mille6/classes/dk/dsb/mille/integration/webservice/profil/build/META-INF
[copy] Copying 3 files to /home/min1210/mille6/classes/dk/dsb/mille/integration/webservice/profil/build/META-INF
compile_ejb:
jar_ejb:
[jar] Building jar: /home/min1210/mille6/classes/dk/dsb/mille/integration/webservice/profil/a_statelessSession.jar
ejbc:
[java] java.io.FileNotFoundException: META-INF/ejb-jar.xml not found in jar
file
[java] at weblogic.ejb20.dd.xml.DDUtils.getEntry(DDUtils.java:332)
[java] at weblogic.ejb20.dd.xml.DDUtils.getEjbJarXml(DDUtils.java:236)
[java] at weblogic.ejb20.dd.xml.DDUtils.loadEJBJarDescriptorFromJarFile(DDUtils.java:151)
[java] at weblogic.ejb20.dd.xml.DDUtils.createDescriptorFromJarFile(DDUtils.java:139)
[java] at weblogic.ejb20.dd.xml.DDUtils.createDescriptorFromJarFile(DDUtils.java:130)
[java] at weblogic.ejbc20.runBody(ejbc20.java:338)
[java] at weblogic.utils.compiler.Tool.run(Tool.java:79)
[java] at weblogic.ejbc.main(ejbc.java:21)
[java] ERROR: java.io.FileNotFoundException: META-INF/ejb-jar.xml not found
in jar file
[java] Java Result: 1
all:
wsgen:
BUILD FAILED
/home/min1210/mille6/classes/dk/dsb/mille/integration/webservice/profil/build-ws.xml:12:
Could not create task of type: wsgen. Common solutions are to use taskdef to declare
your task, or, if this is an optional task, to put the optional.jar in the lib directory
of your ant installation (ANT_HOME).
CONTENT OF THE JAR FILE profil.jar
0 Wed Jul 10 15:17:50 CEST 2002 META-INF/
71 Wed Jul 10 15:17:50 CEST 2002 META-INF/MANIFEST.MF
776 Wed Jul 10 13:39:14 CEST 2002 ProfilVO.class
789 Wed Jul 10 13:39:14 CEST 2002 StamdataVOI.class
442 Wed Jul 10 13:39:12 CEST 2002 EmailVOI.class
509 Wed Jul 10 13:39:10 CEST 2002 AbonnementVOI.class
345 Wed Jul 10 13:39:00 CEST 2002 AdresseVOI.class
455 Wed Jul 10 13:39:10 CEST 2002 InteresseVOI.class
413 Wed Jul 10 13:39:14 CEST 2002 ProfilIF.class
447 Wed Jul 10 13:39:12 CEST 2002 TelefonVOI.class
332 Wed Jul 10 13:39:10 CEST 2002 ProfilHome.class
6966 Wed Jul 10 13:39:10 CEST 2002 ProfilBean.class
1804 Wed Jul 10 14:58:00 CEST 2002 build-ejb.xml
477 Wed Jul 10 13:49:24 CEST 2002 META-INF/weblogic-ejb-jar.xml
918 Wed Jul 10 13:47:54 CEST 2002 META-INF/ejb-jar.xml

Hi,
Could you give us a few more details. What version of WLS are U using and if you could turn on -verbose on the ant command
and post the results.
Thanks,
Bruce
Michael Nielsen wrote:
I have a problem with the underlying errormsg. Could anyone help.
Below the errormsg i have included the content of the jar file, where ant claims
ejb-jar.xml missing. (I've even given full rights to the files before packing in
jar).
Thanx in advance!
Michael Nielsen
Buildfile: build.xml
webservice:
clean:
init:
[mkdir] Created dir: /home/min1210/mille6/classes/dk/dsb/mille/integration/webservice/profil/build
[mkdir] Created dir: /home/min1210/mille6/classes/dk/dsb/mille/integration/webservice/profil/build/META-INF
[copy] Copying 3 files to /home/min1210/mille6/classes/dk/dsb/mille/integration/webservice/profil/build/META-INF
compile_ejb:
jar_ejb:
[jar] Building jar: /home/min1210/mille6/classes/dk/dsb/mille/integration/webservice/profil/a_statelessSession.jar
ejbc:
[java] java.io.FileNotFoundException: META-INF/ejb-jar.xml not found in jar
file
[java] at weblogic.ejb20.dd.xml.DDUtils.getEntry(DDUtils.java:332)
[java] at weblogic.ejb20.dd.xml.DDUtils.getEjbJarXml(DDUtils.java:236)
[java] at weblogic.ejb20.dd.xml.DDUtils.loadEJBJarDescriptorFromJarFile(DDUtils.java:151)
[java] at weblogic.ejb20.dd.xml.DDUtils.createDescriptorFromJarFile(DDUtils.java:139)
[java] at weblogic.ejb20.dd.xml.DDUtils.createDescriptorFromJarFile(DDUtils.java:130)
[java] at weblogic.ejbc20.runBody(ejbc20.java:338)
[java] at weblogic.utils.compiler.Tool.run(Tool.java:79)
[java] at weblogic.ejbc.main(ejbc.java:21)
[java] ERROR: java.io.FileNotFoundException: META-INF/ejb-jar.xml not found
in jar file
[java] Java Result: 1
all:
wsgen:
BUILD FAILED
/home/min1210/mille6/classes/dk/dsb/mille/integration/webservice/profil/build-ws.xml:12:
Could not create task of type: wsgen. Common solutions are to use taskdef to declare
your task, or, if this is an optional task, to put the optional.jar in the lib directory
of your ant installation (ANT_HOME).
CONTENT OF THE JAR FILE profil.jar
0 Wed Jul 10 15:17:50 CEST 2002 META-INF/
71 Wed Jul 10 15:17:50 CEST 2002 META-INF/MANIFEST.MF
776 Wed Jul 10 13:39:14 CEST 2002 ProfilVO.class
789 Wed Jul 10 13:39:14 CEST 2002 StamdataVOI.class
442 Wed Jul 10 13:39:12 CEST 2002 EmailVOI.class
509 Wed Jul 10 13:39:10 CEST 2002 AbonnementVOI.class
345 Wed Jul 10 13:39:00 CEST 2002 AdresseVOI.class
455 Wed Jul 10 13:39:10 CEST 2002 InteresseVOI.class
413 Wed Jul 10 13:39:14 CEST 2002 ProfilIF.class
447 Wed Jul 10 13:39:12 CEST 2002 TelefonVOI.class
332 Wed Jul 10 13:39:10 CEST 2002 ProfilHome.class
6966 Wed Jul 10 13:39:10 CEST 2002 ProfilBean.class
1804 Wed Jul 10 14:58:00 CEST 2002 build-ejb.xml
477 Wed Jul 10 13:49:24 CEST 2002 META-INF/weblogic-ejb-jar.xml
918 Wed Jul 10 13:47:54 CEST 2002 META-INF/ejb-jar.xml

Similar Messages

  • (261705413) Q RPCC-7 Does the client.jar file tie you Weblogic Server?

    Q<RPCC-7> BEA is providing client-side helpers in the client.jar file, including
    parsing and SOAP facilities, etc. But, are we saying that there is nothing
    in there that ties the client to the server-side WLS implemenation? It seems
    that putting the interface of the underlying implementation EJB SLS bean is a
    coupling...??? It also seems that by coupling the client to WebLogic classes
    (weblogic.soap.WebServiceProxy|SoapMethod) we are coupling it to WLS.
    A<RPCC-7>: I understand your concerns, but you are not tied to WLS that tightly.
    Certainly, the static client code utilizes the EJB interface that underlies the
    web service but it is possible to invoke the web service dynamically. The use
    of weblogic library classes to invoke the web service just indicates the use of
    weblogic's client API. This client API can also be used to invoked webservices
    hosted on other application server or frameworks. Additionally, other client APIs
    can be used to invoke this web service, for instance the VB client example that
    ended Thursday's presentation. Lastly, the remote interface in the client.jar
    file could actually just be a java presentation generated from a WSDL file that
    represents a C# web service (this is actually only possible in WLS7.0 and not
    6.1 but the point is you do not actually know the inderlying framework or implementation
    andnor should you care).
    Adam

    check the server log;
    /app/oracle/product/fwm11g/user_projects/domains/fwm_domain/servers/AdminServer/logs/AdminServer.log
    you can launch the console and see if it is running; http://<server>:<port>/console

  • Multiple download of the same JAR file

    We have a collection of applets packaged in a single JAR file. Some users (web developers that use our applets) have been complaining that the applet is extremely slow to start up.
    When the html page includes more than one applet from the same JAR file then, "ONLY IN SOME CASES", the JAR file is downloaded multiple times.
    By capturing network traffic we can also think that the JAR file is downloaded even when accessing an image packaged in the applet's own JAR file.
    One further detail: this "DOES NOT OCCUR" when there is a fast connection to the server (or at leat it seems so). In these cases, the JAR file is downloaded once. It looks as if the problem only occurs on slower network connections.
    Thanks in advance for any help.

    Mmm... I don't think this is the solution... all the applets share a lot of classes (the big part of the JAR files).
    But my question is....: why in some cases the JAR is downloaded more than once???

  • What are the basic .jar files to be set in web dynpro project classpath

    Hi,
    I am having a problem while customizing the ESS. I used DTR, DC and imported configuration. After that, I created project from one of the DC(say ess/jp/addr). Later when I open an iView from any Web Dynpro component, I am getting lot of errors without even making any modifications.
    I closed the project and reopened it and reload & rebuilt, but it doesn't solved my problem. In my classpath settings I couldn't find any jar files except the jre_lib. Could you please let me know what are the basic jar files we have to set in classpath and where to get them from. We are using NWDS 7.0.06 version.
    Can you please let me know how to solve this or any other way to work around this.
    It's an urgent to be fixed as early as possible, plz help me out.
    Thanks & Regards,
    Raj

    Hi Julien,
    Thanks for your reply.
    We imported the the specified SCAs in our track.
    we are getting the following errors.
    Kind Status Priority Description Resource In Folder Location
    Error The import com.sap.xss.per cannot be resolved CcPerAddressInterface.java NS1_XSSTR_Dessusaddrsap.com/gen_wdp/packages/com/sap/xss/hr/per/us/address/cc line 18
    Error com.sap.pcuigp cannot be resolved (or is not a valid type) for the argument fpm of the method loadConfiguration CcPerAddressInterface.java NS1_XSSTR_Dessusaddrsap.com/gen_wdp/packages/com/sap/xss/hr/per/us/address/cc line 113
    Error com.sap.pcuigp cannot be resolved (or is not a valid return type) for the method getNextPerspective CcPerAddressInterface.java NS1_XSSTR_Dessusaddrsap.com/gen_wdp/packages/com/sap/xss/hr/per/us/address/cc line 127
    Error com.sap.pcuigp cannot be resolved (or is not a valid type) for the argument currentPerspective of the method getNextPerspective CcPerAddressInterface.java NS1_XSSTR_Dessusaddrsap.com/gen_wdp/packages/com/sap/xss/hr/per/us/address/cc line 127
    Error com.sap.pcuigp cannot be resolved (or is not a valid return type) for the method getCAPState CcPerAddressInterface.java NS1_XSSTR_Dessusaddrsap.com/gen_wdp/packages/com/sap/xss/hr/per/us/address/cc line 137
    Error com.sap.pcuigp cannot be resolved (or is not a valid type) for the argument perspective of the method getCAPState CcPerAddressInterface.java NS1_XSSTR_Dessusaddrsap.com/gen_wdp/packages/com/sap/xss/hr/per/us/address/cc line 137
    we manually set below .jar files in classpath settings.
    pcuixssfpm.jar
    pcuixssutils.jar
    logging.jar
    essper.jar
    Is there any alternative to work around.
    Thanks & Regards,
    Raj

  • No EJBs found in the ejb-jar file

    Hello all, we are thinking about migrating from JBoss to WebLogic server, so as a proof of concept I am trying to migrate a JBoss Seam web application to WebLogic server.
    I have followed all the instructions here: http://docs.jboss.org/seam/2.0.2.SP1/reference/en-US/html/weblogic.html and I have set up ebvryhting that is needed in order to start the server (JMS queues, datasources, etc) but when the server starts and tries to load the web application I got the following error message
    <29 ═Ύί 2010 4:34:51 ΉΉ EET> <Error> <Deployer> <BEA-149205> <Failed to initialize the application 'myapplication-ear' due to error weblogic.application.ModuleException: Exception preparing module
    : EJBModule(MyApplication.jar)
    [EJB:011023]An error occurred while reading the deployment descriptor. The error was:
    No EJBs found in the ejb-jar file 'MyApplication.jar'. Please ensure the ejb-jar contains EJB declarations via an ejb-jar.xml deployment descriptor or at least one class annotated with t
    he @Stateless, @Stateful or @MessageDriven EJB annotation...
    weblogic.application.ModuleException: Exception preparing module: EJBModule(MyApplication.jar)
    [EJB:011023]An error occurred while reading the deployment descriptor. The error was:
    No EJBs found in the ejb-jar file 'MyApplication.jar'. Please ensure the ejb-jar contains EJB declarations via an ejb-jar.xml deployment descriptor or at least one class annotated with t
    he @Stateless, @Stateful or @MessageDriven EJB annotation..
    at weblogic.ejb.container.deployer.EJBModule.prepare(EJBModule.java:467)
    at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:199)
    at weblogic.application.internal.flow.DeploymentCallbackFlow$1.next(DeploymentCallbackFlow.java:507)
    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:41)
    at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:149)
    Truncated. see log file for complete stacktrace
    Caused By: java.io.IOException: No EJBs found in the ejb-jar file 'MyApplication.jar'. Please ensure the ejb-jar contains EJB declarations via an ejb-jar.xml deployment descriptor or at l
    east one class annotated with the @Stateless, @Stateful or @MessageDriven EJB annotation.
    at weblogic.ejb.container.dd.xml.EjbDescriptorReaderImpl.createReadOnlyDescriptorFromJarFile(EjbDescriptorReaderImpl.java:219)
    at weblogic.ejb.spi.EjbDescriptorFactory.createReadOnlyDescriptorFromJarFile(EjbDescriptorFactory.java:93)
    at weblogic.ejb.container.deployer.EJBModule.loadEJBDescriptor(EJBModule.java:1242)
    at weblogic.ejb.container.deployer.EJBModule.prepare(EJBModule.java:395)
    at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:199)
    Truncated. see log file for complete stacktrace
    The MyApplication.jar is where we keep all the models and we are using an exploded folder for the ear file. We have declared all the classes to be entities by using the @Entity and @Table annotations and we have also defined an interceptor in the ejb-jar.xml file (shown below).
    <?xml version="1.0" encoding="UTF-8"?>
    <ejb-jar xmlns="http://java.sun.com/xml/ns/javaee"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/ejb-jar_3_0.xsd"
    version="3.0">
    <interceptors>
    <interceptor>
    <interceptor-class>org.jboss.seam.ejb.SeamInterceptor</interceptor-class>
    </interceptor>
    </interceptors>
    <assembly-descriptor>
    <interceptor-binding>
    <ejb-name>*</ejb-name>
    <interceptor-class>org.jboss.seam.ejb.SeamInterceptor</interceptor-class>
    </interceptor-binding>
    </assembly-descriptor>
    </ejb-jar>
    I have tried to compile everythign from scratch by using weblogic.appc but I am getting the same error: No EJBs found in the ejb-jar file 'ejbModule'. Please ensure the ejb-jar contains EJB declarations via an ejb-jar.xml deployment descriptor or at least one class annotated with the @Stateless, @Stateful or @MessageDriven EJB annotation.
    Any ideas what is going on and how I can resolve the issue?
    Regards
    Panos
    Edited by: 816483 on 29 Νοε 2010 6:53 πμ

    Hi John,
    I am working on development an enterprise application using EJB 3.0 on Weblogic 10.
    While developing, I am keeping all my classes (from ejb's as well as web) into APP-INF/classes directory. It is working fine for Web and ejb 2.0 packages, but ejb 3.0 packages, I get the following error when I keep my ejb 3.0 beans classes in APP-INF/classes directory.
    No EJBs found in the ejb-jar file 'customer'. Please ensure the ejb-jar contains EJB declarations via an ejb-jar.xml deployment descriptor or at least one class annotated with the @Stateless, @Stateful or @MessageDriven EJB annotation.
    One solution is to keep the classes under customer ejb directory, but I wan tto keep all the classes in APP-INF/classes directory so that when using Eclipse IDE I can output all compiled sources into APP-INF/classes directory.
    Has anyone faced this situation? Any suggestions to fix this issue?

  • How to add the mail.jar file to my CLASSPATH ?

    Hi;
    I wish to Instal JavaMail 1.2
    To use the JavaMail 1.2 API, i unbundle the javamail-1_3_1-upd.zip file.....and now, i would like to add the mail.jar file to your CLASSPATH.
    My question is: how do you do this ?
    - ok i did that for CATALINA_HOME & JAVA_HOME but how to add the mail.jar file to my CLASSPATH ??
    1000 thanks.

    I think you're looking for "developer support", not packaged application support. different server, different batch of groups. . .
    Since I have very little contact with devopers, I don't truly know.

  • Where is the JMS jar file for CEP?

    I cannot find in any jar finder the JMS jar file for CEP.
    I mean the jar file which includes com.bea.wlevs.adapters.jms.api.InboundMessageConverter, com.bea.wlevs.adapters.jms.api.OutboundMessageConverter, etc.
    Does anybody know the link?
    Thanks!

    Thanks, but it is not there.
    I only have the following:
    com.bea.core.jsmpool_1.7.0.0.jar
    javax.jms_1.1.1.jar
    org.springframework.spring-jms_2.5.6.jar
    And if I cannot find it there, where could it be?
    Thanks!

  • Traversing the Java Jar file

    Hi,
    This might sound like a weird question, but I need to traverse the Java Jar file and create respective Java objects into objects in some other language using reflection.
    Is it possible to find the path for the class files located in any jar file? Does Java supports traversing or reading and finding jar contents?
    Thanks

    I found a way to traverse the Jar, using java.util.zip, one can create a zip file for the given jar file and using ZipEntry it is possible to findout the properties associated with the jar/zip entries.

  • How to add the stl.jar file

    Hi,
    where should i put the jstl.jar file in order to use it with apache tomcat.
    thnx.

    The jstl.jar and standard.jar files should be in the web-inf/lib directory of your webapplication.

  • How to javadoc the src.jar file.....

    Hi all,
    How can I javadoc the src.jar file ( the one containing all the java files ) without incurring in a OutOfMemoryError? My computer runs win98 with 128MB ram and roughly 4GB hard-disk.
    Your help will be much appreciated!
    Luka

    Hi all,
    How can I javadoc the src.jar file ( the one
    containing all the java files ) without incurring in a
    OutOfMemoryError? My computer runs win98 with 128MB
    ram and roughly 4GB hard-disk.
    Your help will be much appreciated!
    LukaTake a look at this link to see why this probably isn't a good idea:
    http://java.sun.com/j2se/javadoc/faq/index.html#memory

  • Where is the Applet JAR file?

    When an Applet (the JAR) is downloaded to the local PC, exactly where (the directory) we can locate the Applet JAR file? Is the file managed by the Internet browser?

    This has got to be browser-specific.
    You shouldn't write code that depends on this kind of information anyway.

  • Why is the application caching the old jar file

    Hi all
    I have an application that is caching the old jar file.
    even when i reboot.
    when the application starts up it appears to pick up the old jar file.
    any idea on how i can let it pick up the new jar file ?
    stev

    I'm pretty sure that it is just this one .jar file.
    You see I changed a Servlet class in the jar file and messed up the application.
    Now I'm putting back the old jar file and guess what
    it's somehow hanging on to this old servlet class. and showing the same error. What is unique is that I did the same thing on another PC a server edition and it let go of the old Servlet with no problem
    but on my PC a professional edition it is hanging onto that old Servlet even though I deleted every instance of it on the PC , shut down the PC and restart the app. I even deleted the old jar file from the recycle bin. the jar file has a very distinct name so i can easily search for it and
    This app uses tomcat as well - not that that's related.
    I have had this problem happen to me before at home with applet. I would change something and it would just hang on to it forever.
    Anybody has any idea how to go into the registry or some other place and get rid of this servlet class or jar file ?
    stev

  • SIP      Where can I find (JSR 180 Package - the actual jar files)

    Hey guys I have been looking for this for hours I'm up to my ears in lovely documentation and samples where can I find the actual jar file of an implementation of the SIP API for J2ME.
    Thank you in advnace Brian

    jjsomer,
    Unfortunately, we offer no such installer package. The closest thing to
    what you desire is the LabVIEW Device Drivers CD which comes with
    LabVIEW. It will install all hardware drivers. Another option would be
    to write a batch file to run the installers in silent mode. Searching
    ni.com for "silent install" should yeild several results for installing
    our software products and device drivers without user interaction.
    Good luck!
    Ryan Verret
    Product Marketing Engineer
    Signal Generators
    National Instruments

  • Opening a file (hst), executes the main jar file to open the hst file HELP

    Greetings,
    I have created a file with an extension *.hst, so in my Win XP computer, when I double click a .hst file, it should be opened in my program, which is a jar file, so during the installation I associate my program to this .hst file extension.
    After all this, when I double click this .hst file, it shows an error message that the jar file is not a vaid win32 application. I donot wish to convert my file to an .exe. Help ?
    Cheers,
    Raj

    How did you specify command line for your .hst file?
    It should be something like "java -classpath
    [youfile.jar] [youclass] %1"I have not specified command line for the .hst file.
    The .hst file is just a file that is created when my main program (jar file) saves its files., later If I double click this saved hst file, it should be opened in the main jar program.
    For the double click to work, I have created a constructor
    public hst(String hstfile)
       //code to set the file contents in the window.
    }the problem is that when I double click it says that the main jar file is not a valid win32 application, so what do I do ?
    Cheers,
    Raj

  • The Java JAR file "minecraft.jar" could not be launched.

    I just downloaded a new version of this game called Minecraft and it says: The Java JAR file "minecraft.jara" could not be launched. Check the console for possible error messages. I have checked the Console and it says: 
    15/10/2011 23:11:08 [0x0-0x1d01d].com.apple.JarLauncher[191] Failed to load Main-Class manifest attribute from
    15/10/2011 23:11:08 [0x0-0x1d01d].com.apple.JarLauncher[191] /Users/sabi1110/Desktop/minecraft.jar/minecraft.jar
    Help?

    How to Diagnose Jar File Problems
    Open Applications > Utilities > Terminal.app, and then type in the following:
    java -version
    java -jar <drag the minecraft.jar file here>
    Then press Enter. Copy and paste whatever error message appears.

Maybe you are looking for