Proble with deployment of simple ejb, help me please

Hi there wnat to deploy a simple ejb bean is there any step by step process how to deploy a bean in weblogic server6.0 version please help me, I could able to create ejb-jar file but dont know how to deploy it on to the server, please help me, with regards and thanks in advance Raasi

set STARMODE=false in config/mydomain/startWebLogic script file to start WebLogic server in development mode.
Copy Ejb jar file to config/mydomain/applications directory.

Similar Messages

  • Problems deploying a simple EJB

    I am trying to deploy a simple EJB on the 8.1.5. The bean only owns a single method that needs a unique parameter.
    No problems with compilation of source bean, home and remote interfaces, whatever the type of this parameter is.
    But when I try to deploy the jar on the server, I only succeed if the parameter of my method is a simple type (int, String ...).
    If I try the same passing a complex type (here a oracle.xml.parser.v2.XMLDocument type), I encounter this message from the deployejb tool :
    Generating EJBHome and EJBObject on the server...
    Compilation errors in oracle/aurora/ejb/gen/test_myFluxInsert/EjbObject_FluxInsert:ORA-29535: source requires recompilationjava/lang/Object: Authorization error for referenced class Oracle/xml/parser/v2/XMLDocument.java/lang/Object: Authorization error for referenced class oracle/xml/parser/v2/XMLDocument.oracle/aurora/ejb/gen/test_myFluxInsert/EjbObject_FluxInsert:50: Class oracle.xml.parser.v2.XMLDocument not found in type declaration.
    public java.lang.String insereFlux (oracle.xml.parser.v2.XMLDocument arg0)
    ^ Info: 3 errors
    And if I use an int instead of the XMLDocument parameter, everithing's right.
    Can anybody submit a no-paranormal solution ?
    Thanks.
    GH

    Parameter passing in EJB must implement Serializable. One way to solve this is:
    1. Define a new class which implements
    Serializable.
    2. Place whatever you want to pass inside
    this class.
    3. Now use the new class as your parameter.
    eg.
    public class Params implements java.io.Serializable {
    String p1;
    XmlDocmuent xdoc;,
    etc, etc
    Your program now have to use the class Params for parameter passing.
    Hope this helps.
    Tam
    null

  • Error in deploying a simple EJB 3.0

    Hi ,
    I am getting the following error while deploying my simple ejb of version 3.0 in Weblogic 9.2.
    Exception preparing module: EJBModule(build) [EJB:011023]An error occurred while reading the deployment descriptor. The error was: Error processing annotations: java.lang.NullPointerException.
    During my evaluation of Weblogic 9.2 for EJB 3.0 , I have got the following questions.
    EJB Specification states that EJB's in EJB 3.0 can be developed and deployed without the need of deployment descriptors. I have created a simple EJB with two file Env.java and EnvBean.java and the source code is given below.
    a) I just complied these class files and when I was trying to deploy without ejb-jar.xml and weblogic-ejb-jar.xml, the console was not at all allowing me to deploy.Why is this so?
    b) After I created a META-INF file under root of classes directory by placing ejb-jar.xml with empty <enterprise-beans> element, console was allowing me to deploy with errors in parsing ejb-jar.xml. The error was either session/entity/mdb is a required under <enterprise-beans> element. Why is this required when there are several examples stating <enterprise-beans> element can be empty.
    c) Later I updated ejb-jar.xml with <session> element under <enterprise-beans> with the following values. I got the above error when deployed with this change.
    I had been struggling to deploy this simple bean for almost a day.Pleas point me if there is any documentation that solves my stated problem or if there is a solution.Thanks in advance.
    regards
    Karim
    ejb-jar.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <ejb-jar xmlns="http://java.sun.com/xml/ns/javaee" version="3.0"
    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">
    <enterprise-beans>
    <session>
    <description>This is the stateless ejb</description>
    <display-name>Env Bean</display-name>
    <ejb-name>EnvBean</ejb-name>
    </session>
    </enterprise-beans>
    </ejb-jar>
    Env.java
    package examples ;
    public interface Env {
    public void display();
    EnvBean.java
    package examples;
    import javax.ejb.Remote;
    import javax.ejb.Stateless;
    @Stateless
    @Remote(Env.class)
    public class EnvBean implements Env {
    public void display() {
    System.out.println("Welcome to EJB 3.0");
    }

    Presumably you're using the EJB3 tech preview, and not a vanilla WebLogic 9.2 install, right?
    Can you post the full stack trace?
    -Patrick

  • HT2693 I can't sync my iPhone 4S (updated to 5) to iTunes cuz I have no computer to connect to sync with the iTunes App. Help me please??

    I can't sync my iPhone 4S (updated to 5) to iTunes cuz I have no computer to connect to sync with the iTunes App. Help me please??

    Have you disabled your virus protection?

  • I restore my iPhone 4S on iTunes and then when restarted it is asking for valid SIM card and I don't have SIM card for that, I was just using the iPhone with wifi, any one can help? Please.

    I restore my iPhone 4S on iTunes after the restore was completed the iPhone was restarted and now asking for valid SIM card which I didn't,t have and I was using the iPhone with wifi, and now can't use it because the screen is locked for SIM card. Can anyone help me please.
    Thanks,
    David

    wjosten wrote:
    Phil0124 wrote:
    I doubt the phone is locked to GCI in any way
    Well, you're wrong, & in fact not only is it locked, GCI does not offer unlocking for iPhones.
    Fact is your post won't help the OP.
    And you are 100% sure its locked to them? How can you know this? While GCI does not offer unlocking that does not mean the phone is actually locked to it. Get off your high horse.
    Its possible the original owner had an unlocked phone. he was using with GCI. Or that GCI doesn't actually have locked phones. Seeing as they don't even have their own infrastructure but instead use AT&T's I doubt they'd have iPhones specifically locked to them and that would be the reason they do not offer unlocking (because there's nothing for them to unlock). And just to clarify, I'm not saying for a fact its not locked to them. It very well maybe be, but without knowing more about the phone and going by the fact GCI uses AT&T infrastrucure its possible its not locked. But here's no way to say for sure either way.
    Trying a Sim card from AT&T or another carrier might just help the OP if its actually unlocked or locked to AT&T rather than GCI.

  • HT1338 can't get my camera to work with Skype  can any one help  me please

    cant get my camra to work with skype can any one help me please

    You posted in the OS X 10.3 forum instead of the Mac Pro forum. To get answers to your question, next time post in the proper forum. See https://discussions.apple.com/index.jspa  I'll request that Apple relocate your post.
    What OS X version are you using?
     Cheers, Tom

  • Error while deploy a simple EJB

    Hi , I'm having a problem while trying to deploy a ear [witch only contains a EJB ] in weblogic 10.01 AKA 10mp1 ,
    java.lang.NoClassDefFoundError
         at org.apache.log4j.Logger.getLogger(Logger.java:104)
         at MyClass.<clinit>(MyClass.java:62)
         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:354)
         at java.lang.Class.newInstance(Class.java:307)
         at weblogic.ejb.container.manager.BaseEJBManager.createNewBeanInstance(BaseEJBManager.java:222)
    A little more info
    MyClass.java:62 = private static Logger log = Logger.getLogger(MyClass.class);
    I also have try
    MyClass.java:62 = private static Logger log = Logger.getRootLogger();
    Both with the same result.
    My Log4j properties are simple
    #==================================================================
    #std-out Logger Configuration
    #==================================================================
    log4j.appender.std-out=org.apache.log4j.ConsoleAppender
    log4j.appender.std-out.target=System.out
    log4j.appender.std-out.layout=org.apache.log4j.PatternLayout
    log4j.appender.std-out.layout.ConversionPattern=%d{dd MMM yyyy HH:mm:ss,SSS} [%t] %-5p %c %x - %m\n
    log4j.rootCategory=${root.log}, std-out
    Also have Try Hard Code Properties , but having the same error.
    static {
         PatternLayout out=new PatternLayout("%d{dd MMM yyyy HH:mm:ss,SSS} [%t] %-5p %c %x - %m\n");     
         ConsoleAppender appender=new ConsoleAppender(out);
         appender.setTarget(ConsoleAppender.SYSTEM_OUT);     
         Logger.getRootLogger().addAppender(appender);
    I'm aware of a "bug" of Weblogic 9.2 to 10.02 that weblogic adds first his jars instead the web-inf\lib jars I have added this xml's to the weblogic-application.xml
         <wls:prefer-application-packages>
              <wls:package-name>org.apache.log4j.*</wls:package-name>
         </wls:prefer-application-packages>
    Please note a add the weblogic-application.xml in ejb META-INF folder , as well in the EAR META-INF folder
    That doesn't resolve my problem has you can imagine already
    I'm using log4j 1.2.15 and log4j extras both download from maven repository
    I'll really appreciate some sort of guide since this problem is really annoying me
    Regards
    Carlos Ortiz
    PS. If you need more info , please ask I will facilitate as much as I can

    Yes I Have double check
    Edited by: khrono on Jul 20, 2009 8:32 AM

  • Problems deploying a simple EJB on Weblogic 8.1 using JDeveloper

    Hey guys,
    Title says it all. First I had one problem in that I could not test the connection to the Weblogic server. I moved the weblogic.jar file into the lib/ext folder and that test worked then. After that I wrote the EJB...a very simple one...and I followed the http://dev2dev.bea.com/pub/a/2006/01/wls-jdeveloper.html?page=1 tutorial so far. But when it came time to deploy the ejb to the server, I am getting this funky error:
    ERROR: ejbc found errors while processing the descriptor for C:\oracle\jdeveloper\jdev\mywork\WeblogicApp\EchoEJB\deploy\ejb1.jar:
    ERROR: Error from ejbc: Error processing 'META-INF/ejb-jar.xml': XML document does not appear to contain a properly formed DOCTYPE header
    Honestly I am confused now...any one encounter that error?
    Thanks for all replies.
    Cheers

    So I added the DOCTYPE and now I get another error. And that is as follows:
    ERROR: Error from ejbc: Error parsing file 'META-INF/ejb-jar.xml' at line: 5 column: 219. Attribute "xmlns:xsi" must be declared for element type "ejb-jar".
    It seems that when the EJB is created, then it automatically creates the appropriate ejb-jar.xml and for some reason I guess the one it is creating this time is not good enough for Weblogic because first the DOCTYPE was missing and then after inserting the DOCTYPE I am getting the above error. Any help would be appreciated. This is the first time I am using Weblogic and this is a rather disheartening amount of progress I have made since last night! ;(
    Thanks in advance for any help. If I am doing something silly please point it out so I can learn!
    Cheers,
    Surya

  • Help with Deploy javaFx applet to the web, please

    I am new to JavaFx. I have a difficult time to deploy it to the web as an applet. Java console indicates that my jnlp file is not available. Here is what I have done:
    1. In the javaFx project (netbeans project), I put together a small application following the tutorial (app). Run as standard desktop app, it works fine. Run as applet, everything is ok except no images.
    2. In another web project (also netbeans project), I add the javaFx project generated app.jar to the web-inf/lib folder, modify the index.jsp to include a javaFx project generated app.html file and put it at the root of the web application. I also put the favaFx project generated app_browser.jnlp file in the same folder as index.jsp and app.html. Later on also in the web-inf/lib with app.jar. No matter where i put this app.jnlp file, I only see the spinning java logo. Java console states that jnlp is not available.
    this is in my index.jsp: <jsp:include page="app.html" />
    this is in my app.html:
    <h1>app</h1>
    <script src="http://dl.javafx.com/1.2/dtfx.js"></script>
    <script>
    javafx(
    archive: "app.jar",
    code: "com.app.Main",
    name: "app",
    width: 950,
    height: 600
    </script>
    this is in my app.jnlp
    <jnlp spec="1.0+" codebase="http://localhost:8080/app" href="app_browser.jnlp">>
    <information>
    <title>App</title>
    <vendor>Me</vendor>
    <homepage href="http://localhost:8080/app"/>
    <description>My App</description>
    <offline-allowed/>
    <shortcut>
    <desktop/>
    </shortcut>
    </information>
    <resources>
    <j2se version="1.5+"/>
    <extension name="JavaFX Runtime" href="http://dl.javafx.com/1.2/javafx-rt.jnlp"/>
    <jar href="WEB-INF/lib/app.jar" main="true"/>
    <jar href="WEB-INF/lib/commons-lang.jar"/>
    <jar href="WEB-INF/lib/commons-io.jar"/>
    </resources>
    <applet-desc name="app" main-class="com.sun.javafx.runtime.adapter.Applet" width="950" height="600">
    <param name="MainJavaFXScript" value="com.app.Main"/>
    </applet-desc>
    <update check="background">
    </jnlp>
    What did I miss here? Please help so that I can present this app to my boss and we can use javaFx to build our next application. Thank you very much.
    qding

    Welcome to the Sun forums.
    It would be worth checking the deployment launch file (JNLP) using JaNeLA *(<- link).* As the other poster mentioned, the file is invalid (OK - not well-formed, but possibly also invalid after that is fixed). Also, JaNeLA should warn you that the resources in WEB-INF are not accessible.
    Please do not repost(1) questions in future.
    (1) Post a question twice, or more.

  • How this error is possible with the most simple EJB model example?

    javax.naming.CommunicationException [Root exception is java.net.ConnectException: t3://127.0.0.1:7101: Destination unreachable; nested exception is:
         java.net.ConnectException: Connection refused; No available router to destination]
         at weblogic.jndi.internal.ExceptionTranslator.toNamingException(ExceptionTranslator.java:40)
         at weblogic.jndi.WLInitialContextFactoryDelegate.toNamingException(WLInitialContextFactoryDelegate.java:783)
         at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialContextFactoryDelegate.java:367)
         at weblogic.jndi.Environment.getContext(Environment.java:315)
         at weblogic.jndi.Environment.getContext(Environment.java:285)
         at weblogic.jndi.WLInitialContextFactory.getInitialContext(WLInitialContextFactory.java:117)
         at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:667)
         at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:288)
         at javax.naming.InitialContext.init(InitialContext.java:223)
         at javax.naming.InitialContext.<init>(InitialContext.java:197)
         at test.client.SessionEJBRemoteClient.getInitialContext(SessionEJBRemoteClient.java:259)
         at test.client.SessionEJBRemoteClient.main(SessionEJBRemoteClient.java:34)
    Caused by: java.net.ConnectException: t3://127.0.0.1:7101: Destination unreachable; nested exception is:
         java.net.ConnectException: Connection refused; No available router to destination
         at weblogic.rjvm.RJVMFinder.findOrCreateInternal(RJVMFinder.java:216)
         at weblogic.rjvm.RJVMFinder.findOrCreate(RJVMFinder.java:170)
         at weblogic.rjvm.ServerURL.findOrCreateRJVM(ServerURL.java:153)
         at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialContextFactoryDelegate.java:352)
         ... 9 more
    Caused by: java.rmi.ConnectException: Destination unreachable; nested exception is:
         java.net.ConnectException: Connection refused; No available router to destination
         at weblogic.rjvm.ConnectionManager.bootstrap(ConnectionManager.java:464)
         at weblogic.rjvm.ConnectionManager.bootstrap(ConnectionManager.java:315)
         at weblogic.rjvm.RJVMManager.findOrCreateRemoteInternal(RJVMManager.java:251)
         at weblogic.rjvm.RJVMManager.findOrCreate(RJVMManager.java:194)
         at weblogic.rjvm.RJVMFinder.findOrCreateRemoteServer(RJVMFinder.java:238)
         at weblogic.rjvm.RJVMFinder.findOrCreateInternal(RJVMFinder.java:200)
         ... 12 more
    Process exited with exit code 0.
    can someone orient me on solving this error? i am making this example from oracle:
    http://www.oracle.com/technology/obe/obe11jdev/ps1/ejb/ejb.html
    thank you
    Vael

    yes it is!!! sorry i need to sleep.
    do you know why now i am trying to exec the client and get this error?
    javax.ejb.EJBException: EJB Exception: ; nested exception is:
         java.lang.NoClassDefFoundError: com/mysql/jdbc/Connection; nested exception is: java.rmi.RemoteException: EJB Exception: ; nested exception is:
         java.lang.NoClassDefFoundError: com/mysql/jdbc/Connection
    java.rmi.RemoteException: EJB Exception: ; nested exception is:
         java.lang.NoClassDefFoundError: com/mysql/jdbc/Connection
         at weblogic.rjvm.ResponseImpl.unmarshalReturn(ResponseImpl.java:234)
         at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:348)
         at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:259)
         at test.model.SessionEJB_qxt9um_SessionEJBRemoteImpl_1032_WLStub.getDescripcionextraFindAll(Unknown Source)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at weblogic.ejb.container.internal.RemoteBusinessIntfProxy.invoke(RemoteBusinessIntfProxy.java:73)
         at $Proxy0.getDescripcionextraFindAll(Unknown Source)
         at test.client.SessionEJBRemoteClient.main(SessionEJBRemoteClient.java:36)
    Caused by: java.lang.NoClassDefFoundError: com/mysql/jdbc/Connection
         at java.lang.ClassLoader.defineClass1(Native Method)
         at java.lang.ClassLoader.defineClassCond(ClassLoader.java:632)
         at java.lang.ClassLoader.defineClass(ClassLoader.java:616)
    the Model Project has got the MySQL jar library
    Thank you!

  • Simple viewer help needed please

    I need help with this exact problem please which was posted by Kirby on 9th Feb
    I can't save into the idisk/web folder although I can copy the files over after they refuse to open (if that means anything)...
    "This is for Old Toad. I checked out your demo site which is awesome. I read the tutorial,
    Examples of SimpleViewer and Flash Album Exporter Slideshows (plugins for iPhoto)
    ADDED USING HTML SNIPPET AND IFRAME
    This was great but I am still running into a roadblock. The issue seems to be that in the URL that is given on your demo page...
    http://web.me.com/youraccountname/slideshow folder/index.html
    ....it says to enter my account name (which I did).
    I am uploading the simple-viewer folder to my iDisk using the Go menu but inside of the Web/Sites folder there is no folder called Slideshow Folder. So am I right in thinking that the URL has nothing to point too because that folder isn't there? Why isn't it there? And is there anything I can do to solve this? Is there another place the simple-viewer folder should be on my idisk?"

    Hi:
    When you create the simpleviewer slideshow with iPhoto's plugin there should be a folder created on your HD that contains the items seen in the screenshot below:
    The folder was named simpleviewer because that's what I named it during the export from iPhoto. That's the same folder as I refer to as "Slideshow folder". It can be whatever you name it when exporting from iPhoto. Upload that folder to your iDisk/Web/Sites folder as shown below:
    In the iFrame code use the following URL to the index.html file inside the simpleviewer folder:
    http://web.me.com/YourMMe_AccountName/simplerviewer/index.html
    That should do it.

  • After the latest update to Photoshop 2014, something went wrong and started spray-like black oil on canvas. I have deadline with cover. Can you help me please?

    How do I undo whatever went wrong after installing the latest update to Photoshop 2014 and suddenly when I tried to paint or touch up my illustration (book cover I'd drawn and painted, then scanned in and continued painting, changing. It's mostly done but I needed to send it like yesterday!!) OR touch up a photograph, black-like oily smudge-like substance sprayed around the point of the brush. I tried to fix by resetting but really didn't know what to do and probably made it worse. However, the problem happened after I updated the Photoshop Creative Cloud 2014 on my desktop 8.1 Windows and after a Tech helped update the regular CC Photoshop on my laptop 2007, 64 bit Windows to 2014. He promised to call back after giving it time to install but didn't for whatever reason on Friday. That happened to go up to the same update I did on my Windows 8.1 Windows. I have this deadline and really stressed. COULD IT BE THE UPDATE OR BOTH. REGARDLESS, CAN SOME EXPERT HELP ME UNDO WHATEVER THE UPDATE AND/OR I DID? I'm a God-gifted artist but only started using Photoshop CC, then updated to 2014--which, again, I like even better--when I began my monthly membership January or February 2014, although I had paid version 2002 and updated to paid version 2004 (ownership, not paid subscription like now). I've learned so much, including transforming, moving, stretching, with layers--all in the painting area with my illustrations--a little touch ups with photography.  MY EMAIL IS: [email protected] I really appreciate any help. This needs to be resolved today, the latest tomorrow--I could call tomorrow, however. I was chatting with a Tech support but lost him about an hour or less back. I have the case number and name and gave him my contact number, but they won't be in until tomorrow. He's supposed to give info and escalate the case. I really need an answer--if possible, today. It may require going back to before installing the latest update. THANK YOU KINDLY. Glena Jessee-King

    Update your graphics driver and/or turn off GPU acceleration in the Performance prefs.
    Mylenium

  • Doesn't sync my library with iPod... Help me please or I'll dye...

    Hi, please please help me if you can. I was working all the summer and I've bought iPod nano for my money and... Firt it worked well and everything was going well but.. From Friday I cannot sync my iPod with library. I tried restore it, but it didn't help at all. Actually, the problem is, that if I download some file from internet and then I want to put it into my iPod, I can't. It doesn't sync it, without any error messege (it doesn't show any error messege). It syncs unly "official" CD's. For example, my boyfriend has sent me a song he sang for me, but I can't have it on my iPod. You can see my English is horrible, I've got the iPod in UK so I don't know how I will resolve this. I am just a woman, and this is complicated technical problem, so it's extremelly stressfull situation for me. Heeelp please!!!

    Ok, so, basically... You have to have songs in your PC when you are syncing. Never ever upload the song to iTunes and then delete it because f*ing iTunes will not sync it to your iPod. That's it.

  • My Xperia Z2 is with BUG in the system, help me please.

        Good Morning.
       My Xperia Z2 is apparently with a BUG in the system. I customize the entire desktop by creating folders and reducing screens work, so my interface is more organized because I have many applications. The problem is that when I do any customization of the folders and everything I do on the screen when I put it to load immediately starts a video demo of the device and when I return to the desktop all I've done is lost and comes back as factory .
       Please help because I am that with unit 3 days and I'm already frustrated. I did the last update (17.1.2.a.0.314).

    yeah i know i told you to reapir your phone using PC Companion ok not a hardware..this is a software repair..
    Do not forget to give kudosand to select the correct answer 

  • Why I couldn't buy items in games, even thought I filled all of information in Payment. When I bought "gems" in Clash of Clan, it said that " can not connect with itunes store". Someone help me, please!

    Whenever I buy something in game, it says that " can not connect to itunes store". Why???? I fill all my payment information in app Store, bt I couldnt buy any thing. Why???

    Additonally, at this point I really want to talk to someone who cares about how a customer like I might feel in such a situation and when I call corporate would like to talk to someone who is interested in hearing my input as it really sucks to think I really don't feel like going to the store anymore and would rather just buy stuff on amazon or newegg these days instead;/  When I know how much i used to enjoy going into the store and getting friendly with kind staff who worked with me to get the best deal on the items I got--perhaps this was because it was at a more desperate time when Best Buys fate as a company was more precarious prior to price matching taking origin.  Also, on an aside, would like to add that obviously there is always the one or two people who go out of their way to make sure you have an excellent expeirenece so I am not trying to make any sweeping generalizations here.  In fact, I find the forum contributors to be among the most kind and helpful, but that might be because they don't have to deal with the now seemingly dreaded "pricematch" epidemic;D

Maybe you are looking for