How to create a deployable ejb(.jar file) when we use Oracle application sever?

Hi,
In case if we use Weblogic we give following command on console to create a deployable ejb, while weblogic.jar is in classpath.
java weblogic.ejbc temp.jar StudentBean.jar
1)What are the classes or jar files we have to set in classpath,
2)What console based command(like what I mentioned above for weblogic) can we use,
so that we can create a deployable jar file in case if we are using Oracle application server.
thanks,
Milind

You can discover the origins of a loaded class programatically. You want to print:
TheClass.class.getProtectionDomain().getCodeSource().getLocation().toString();

Similar Messages

  • How do i keep my apple lossless files when I use iTunes match?

    When I started using iTunes Match, my Apple Lossless and aiff lossless files were converted to lower quality 256 files in iTunes on my mac.  How do I stop this from happening?  I want to keep the Lossless files as they are. 
    Thanks
    Bud

    Sorry ......  but .....
    Would it make a difference when I used iMatch ....  I started the service the day it was made available.  Was it an original issue and has since been corrected?
    -iTunes and the music files were on my iMac internal Hard Drive.  Only 1 iTunes Library.
    -No alternate iTunes libraries were created ergo match not turned on to an alterante.
    -The original files were added to the iTunes Library from an external hard drive ... which were copied to my internal hard drive by iTunes.  (Advanced tab feature)  The external backup drive (4TB Seagate Mac Drive) is only connected when I use it to backup physical files.  I do not use a backup program.  Everything is copied its own folder.  Most files were ripped from my cd's i.e. to the external Drive using XLD.  Not one pirated file. a few HD albums purchased from HD Tracks.
    -I even tried re-adding some of the Original FLAC files to iTunes again.  They were physical in my iTunes on the internal hard drive.  They were also replaced.
    The fact is .... The Original Files were altered.  They had not been deleted and replaced, they were altered. They were the original files on my internal hard drive.  Only 1 copy of iTunes is on the computer.

  • How to create and deploy a war file on wls using the console

              my question is how to deploy the simpleSession.jsp example in the weblogic/samples/examples/jsp/
              dir examples as a war file on wls cluster what are the steps to do so.. thanks
              in advance
              

    [att1.html]
              

  • Problem Building a Deployable EJB Jar

    I have a situation where I have compiled and jarred an EJB's Implementation and interfaces, along with some supporting code -- prior to running ejbc.
    I would like to distribute this jar along with a build.xml so that a developer can provide some simple implementation classes (not EJB implementations) along with the ejb-jar.xml and weblogic-ejb-jar.xml and create a deployable EJB jar. I would prefer not to package this as an ear so that the jar could then be neatly added to an ear or deployed separately, at the developers discretion.
    I have everything set up but am struggling to get this to work with some sample code.
    I am using Weblogic 8.1sp4, and can be sure that the developers will be using this level or higher. In my build.xml, I compile the sample code and package the deployable jar together ok. I then run the wlappc task on the jar.
    It took me several iterations to get wlappc to work, and I had to use the following layout for the deployable jar:
    /META-INF/myejbimplclasses.jar
    /META-INF/log4j.jar
    /META-INF/ejb-jar.xml
    /META-INF/weblogic-ejb-jar.xml
    /META-INF/Manifest.mf
    /com... sample compiled class files
    And the Manifest.mf contents look like:
    Manifest-Version: 1.0
    Class-Path: myejbimplclasses.jar;log4j.jar
    Created-By: 1.4.1_05-b01 (Sun Microsystems Inc.)
    Ant-Version: Apache Ant 1.5.3
    I thought it was strange that I needed to put the .jars under META-INF, but this was the only way that I could get the wlappc task to work. I also had to put a semicolon in between the two jars in the Class-Path line (I don't know why).
    Once I put it together this way, wlappc works. However, when I try to deploy the resulting jar, it does not work. It reports an error as follows:
    weblogic.ejb20.deployer.DeploymentDescriptorException: Unable to load a class specified in your ejb-
    jar.xml: com.dcbls.svc.ComponentManagerEJB
    Note that this .class file is available within myejbimplclasses.jar, along with all the other classes it relies on (except the log4j stuff.)
    Is there a simple problem that I can fix with this setup, or do I need to completely revamp my approach? If so, does anyone have a suggested
    approach?
    Thanks,
    ken clark

    OK -- I will concede that this cannot be done, at least not elegantly.
    I have started down the path of reorganizing this EJB such that it can be easily built and included in an Ear. However, I am now running into some ant build problems, primarily -- I think -- with wlappc.
    I set up the build.xml so that it first compiles the developer's local code, using a classpathref that refers to the EJB code I have previously developed and packaged in a jar, as in:
    <path id="compile.classpath">
    <pathelement location="../dcblsfw.jar"/>
    </path>
    <target name="compile_ejb" depends="init">
    <javac srcdir="${source}/src" destdir="${build}" debug="true" classpathref="compile.classpath"/>
    </target>
    Then I jar the output up with the META-INF stuff in the appropriate places. I also want to put the Manifest.mf together to refer to my jar as at the root (where I can have the Ear locate the jar file.)
    However, when I set up this manifest, and then run wlappc, also with the same classpathref, as in:
    <target name="appc" depends="jar.ejb">
    <wlappc debug="${debug}"
    source="${dist}/${jar.name}"
    classpathref="compile.classpath"/>
    </target>
    The appc throws all sorts of exceptions. It seems that the skeleton code it builds does not really match up well with the actual EJB code, and the compiler then complains when trying to compile the skeleton code. For example:
    [wlappc] C:\DOCUME~1\clarkk03\LOCALS~1\Temp\appcgen\com\pfizer\dcbls\svc\SampleEJBComponentManager_nrpnna_Impl.java:67: ejbActivate() in com.pfizer.dcbls.svc
    .SampleEJBComponentManager_nrpnna_Impl cannot override ejbActivate() in com.pfizer.dcbls.svc.ComponentManagerEJB; overridden method does not throw java.rmi.RemoteException
    [wlappc] public void ejbActivate()
    Now, when I remove the Class-Path entry in the Manifest.mf, wlappc works fine.
    For reference, the jar building task (with manifest entry included,) is:
    <target name="jar.ejb" depends="compile_ejb">
    <jar jarfile="${dist}/${jar.name}"
    basedir="${build}"
    update="yes">
    <manifest>
    <attribute name="Class-Path" value="dcblsfw.jar"/>
    </manifest>
    </jar>
    </target>
    Is this a bug with appc/wlappc? Is there a better way to do this, or a workaround to make it work?
    It seems odd that if the Class-Path in Manifest.mf is not to refer to anything internal to the jar, that it affects appc the way it does.
    Thanks,
    ken

  • Unable to create ejb.jar file.

    how do we create an ejb.jar file in j2ee explorer.
    I am not able to see the option <i>Build Ejb.jar</i>
    in the context menu when i click on my ejb project
    Regards
    Naresh Garg

    hi Naresh,
    There is option called EJB Archive this option builds your EJB. if your trying to create Web Module Project you can only create WAR file .
    Venkat

  • How to deploy EJB jar file in Weblogic 8.1

    Hi,
    I have created the EJB jar file, bearing home,remote,ejb and client class aling with the META-INF folder containing ejb-jar.xml and weblogic-ejb-jar.xml.
    After all this I am confused where to put this EJB jar file so that the container could deploy it.
    I am putting it in application folder of my own created Domain.
    Suggest me...

    Put it anywhere you like. You can always deploy it using the administrator console. There usually is an auto-deployment directory for the domain. You could find all that information in the Weblogic documentation.

  • 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?

  • Cannot build EJB jar file in NWDS

    hello,
    I changed java beans file, and tried to build jar file again, then the "build EJB archive" context menu is disabled so I can not make EJB jar file!
    So frustrated.. NWDS recognizes the changes in the java files , right? How come there 's no Build menu..
    Is there any pre-requisite to enable the menu?
    I have no idea how I can build jar file..
    Please give me a advice.. Thanks~!

    You might check the weblogic.developer.interest.ejb.tools new group.
    Make sure that the tool doesn't leave this ejbcgen directory around. It
    should delete
    that temp dir. When it doesn't it keeps all the old generated stuff around
    and your changes won't be
    reflected in the new jar.
    Rodrigo Ruiz Aguayo <[email protected]> wrote in message
    news:[email protected]..
    Hi,
    I have a problem with the EJBDeployerTool. When I want to update
    a class file (for example, because I corrected any problem), the
    deployer tool doesn't update the file correctly. It keeps the
    old version of the class file.
    In order to update a jar I have to copy the newer version in the
    .ejbdeployer/provider-projects directory by hand. Is it a bug?
    Is there any other way to do this? We are wasting too much time
    in this task, instead of programming :_(
    Thanks in advance,
    José Rodrigo Ruiz Aguayo e-mail : [email protected]
    I.T. en Informática de Sistemas webpage : ---------------------
    "Simulation is perfect, whenever we're not talking about reality"

  • How can I get a single jar file with NetBeans?

    How can I get a single jar file with NetBeans?
    When I create the project I get these files:
    dist/lib/libreria1.jar
    dist/lib/libreria2.jar
    dist/software.jar
    The libraries that have been imported to create the project are in separate folders:
    libreria1/libreria1.jar
    libreria2/libreria2.jar
    libreria1, libreria2, dist folders are all located inside the project folder.
    I added the following code to the build.xml:
    <target name="-post-jar">
    <jar jarfile="dist/software.jar">
    <zipfileset src="${dist.jar}" excludes="META-INF/*" />
    <zipfileset src="dist/lib/libreria1.jar" excludes="META-INF/*" />
    <zipfileset src="dist/lib/libreria2.jar" excludes="META-INF/*" />
    <manifest>
    <attribute name="Main-Class" value="pacco.classeprincipale"/>
    </manifest>
    </jar>
    </target>
    Of course there is also the project folder:
    src/pacco/classeprincipale.form
    src/pacco/classeprincipale.java
    Can you tell me what is wrong? The error message I get is as follows:
    C:...\build.xml:75: Problem creating jar: archive is not a ZIP archive BUILD FAILED (total time: 2 seconds)

    This is not a NetBeans forum, it is a JDeveloper forum. You might want to try http://forums.netbeans.org/. I also saw your other question - try looking in the New to Java forum: New To Java

  • How to handle 2 or more .jar files with an applet

    Hey out there
    I have created an ftpClient application that uses "jakarta ftpClient". It works fine as an JFrame application � But when I converted the Application into an JApplet I get the following Exception:
    java.lang.NoClassDefFoundError: org/apache/commons/net/ftp/FTPClient
    I have bundled the main application into a .jar file (Application,jar). But I don't know how to handle the 2 jakarta .jar files with my JApplet??
    I Tried to append the 2 jakarta .jar files to the Application,jar with the following code:
    jar cvf Application.jar 1.class 2.class�. commons-net-1.4.1.jar jakarta-oro-2.0.8.jar
    But with the same result / Exception (I have signed the Jar file!)
    Can anyone help me

    Hi i have a question with your application can you down- or upload more files at the same time? Because i'm having problems with my ftp application.
    Here is the link with my problem maybe you can help me. I will be very pleased when you can help me.
    http://forum.java.sun.com/thread.jspa?threadID=5162042&tstart=0
    Thx
    Satanduvel

  • Problem building EJB jar file using Eclipse

    Hi,
    Here's my file sturcture.
    ejb\x\y\z\test\
    ejb\x\y\z\test1\
    'ejb' is the root directory.
    The java source files under 'test' have a package name x.y.z.test.
    The java source files under 'test1' have a package name x.y.z.test1.
    I want to build a EJB jar file for 'test' and 'test1' separately. In eclipse when I create an EJB project, I specify the root folder as the source in the java build path settings. So the project explorer in Eclipse shows both the packages since they are under the same root folder. When I try to do 'Export - EJB Jar File', it includes both the 'test' and 'test1' in the .jar. Is there a way to build them separately ?
    Thanks,

    As far as I know, there is no way in Eclipse to specify a package prefix for a source folder. Assuming that you are not using an operating system with support for symbolic links at FS-level, the only way I can think of solving your problem is via linked folders and includes/excludes.
    1. Create two ejb projects in your workspace. Specify locations somewhere independent of where the root of your source tree is located.
    2. Right click on proj1 and select Properties / Java Build Path / Source.
    3. Click Link Source and specify the location to your source root on disk. Click Next.
    4. In the inclusion patterns section, add a pattern that captures classes appropriate for that module. Click Finish.
    5. Delete the original source directory that was created during project creation before leaving Build Path configuration dialog.
    6. Repeat steps 2-5 on the second project, except specify a different inclusion pattern.
    This should produce a project structure that Eclipse will be happy with, but you have to be a little bit careful. Even though you filtered out classes from the view of the java compiler for a particular project, you will still see them listed in the various navigational views (such as Package Explorer or Project Explorer). Don't modify these filtered out files. The project that is supposed to be building them will not react to changes in the other project. You will have to manually refresh (right click on project and select refresh) the other project before the java compiler will see changes.
    Hope this will help you out.
    - Konstantin

  • Deployment error when using several ejb-jar files

    Hello All,
    I am having problems with deployment of my J2EE application. My EAR file has several EJB-JARs, one for each entity bean. However I refer to the other EJBs in one EJB. Hence I included the <ejb-ref> element in the deployment descriptor of the entity bean. But I am getting the deployment error that "the bundle does not contain the bean name". I tried to change the <ejb-name> value (within the <ejb-ref> element) to the JNDI name of the EJB I am referring to, and also added the <ejb-link> tag specifying the location of the JAR file that has the EJB. None of the attempts worked.
    Can someone help me out on how I am supposed to go about when I have several ejb-jar files as opposed to a single one? I am deploying my app on Sun ONE AS 7.0.
    Thank you,
    PS: I am posting this message on several forum topics. Please disregard this message if you have seen/answered this message. Thanks.

    Hello,
    Thanks for the response. I have got both Local and Remote EJB References, but for the JAR (where the ejbc compiler stopped) that I have an error, it is the local reference.

  • EJB relation mappings between different ejb jar files.

    I have two local entity EJBs but they are in different ejb jar files. I'd like to make a relationship mapping (one-to-one, one-to-many or whatever) between them. Is it possible? To do that, I need <ejb-name> reference tag each other in both ejb-jar.xml, but how can I refer to ejb-name defined in different ejb jar files? Or as long as you make EJB relationship mappings, all EJBs must be in the same ejb jar file?
    thanks,
    -tom

    Refer to
    http://www.onjava.com/pub/a/onjava/2001/06/26/ejb.html?page=2&x-showcontent=text

  • Deployment problems when using several ejb-jar files

    Hello All,
    I am having problems with deployment of my J2EE application. My EAR file has several EJB-JARs, one for each entity bean. However I refer to the other EJBs in one EJB. Hence I included the <ejb-ref> element in the deployment descriptor of the entity bean. But I am getting the deployment error that "the bundle does not contain the bean name". I tried to change the <ejb-name> value (within the <ejb-ref> element) to the JNDI name of the EJB I am referring to, and also added the <ejb-link> tag specifying the location of the JAR file that has the EJB. None of the attempts worked.
    Can someone help me out on how I am supposed to go about when I have several ejb-jar files as opposed to a single one? I am deploying my app on Sun ONE AS 7.0.
    Thank you,
    PS: I am posting this message on several forum topics. Please disregard this message if you have seen/answered this message. Thanks.

    Hi ,
    It would help if you could post the relevant snippets of your
    ejb-jar.xml. In general, you definitely shouldn't use jndi-name
    for any of the linking information. jndi-name is not part of the
    standard deployment descriptor. The syntax for the ejb-link is
    [ejb-jar uri]#ejb-name
    K

  • How do I access my encrypted User Account files from my Back Up hard drive?  Time Machine  was used to create the back up disk; File Vault was used to encrypt the files.

    How do I access my encrypted User Account files from my Back Up hard drive?  Time Machine  was used to create the back up disk; File Vault was used to encrypt the files.

    Thanks.  I will try going through TM.  Since my Simpletech is on the way out, I'll be plugging in a new external hard drive (other than the back-up drive) and trying to restore the library to the new drive.  Any advice or warning if this is NOT the right thing to do?
    Meanwhile, that is a great tip to do an alternate back-up using a different means.  It's been tough to figure out how to "preserve access" to digital images and files for posterity, knowing the hardware will always fail/obsolesce sooner or later, and that "clouds" are only as good as their consistent and reliable accessibility.  Upping the odds with redundancy will help dull the edge of my "access anxiety", though logically, it can never relieve it.  Will look into
    Carbon Copy Cloner.

Maybe you are looking for

  • Downloads going into wrong folder

    I have it set up so that when downloading any apps etc from the iTunes store that they go into a specific folder, but they are being downloaded into the default C: Users/my name/My Music/iTunes/mobile applications every time. Obviously I can copy the

  • How do I limit the  number of emails showing in the inbox.  (iOS 7)

    When using iOS 6 I was able to limit the inbox emails under Mail, Show and pick the number I wanted. Can't find any control like this in Mail with iOS 7.

  • Error Message when transferring music from itunes to ipod

    When i connect my ipod to itunes it will transfer some but not all songs from itunes to ipod. currently every song in my itunes library will transfer EXCEPT all songs from M-R and i get a unknown error message (-69). can anyone help. Thks.

  • Service ticket's priority value

    Dear Experts, I'm just wondering on how to perform the customizingby by add in a new priority value, where the Priority is the value that available during service ticket creation in Satellite system. FYI, I'm using Solman version 3.2 and the Satellit

  • PRO*C VERSION MATRIX 및 VERSION 별 특성

    제품 : PRECOMPILERS 작성날짜 : 1998-02-19 PRO*C version matrix 및 version 별 지원 내용 =========================================== [1] PRO*C 의 version 별 지원 내용 RDBMS 의 version 과 PRO*C 의 version 별 지원내용은 다음과 같다. PRO* Last RDBMS Languages Version Version Version ===