deployment problem

Discussions

EJB programming & troubleshooting: deployment problem

  1. deployment problem (2 messages)

    i am new to weblogic having worked in j2eeref platform.in j2ee dd is gen automatically without writing any dd.txt file via wizard.how that is done in weblogic5.1 and i am not able to deploy the jar file in deployer.i amgetting the error:
    java.lang.IllegalArgumentException: Listener null is not of type interface java.awt.event.ActionListener

    at javax.swing.event.EventListenerList.remove(Compiled Code)

    at javax.swing.JComboBox.removeActionListener(JComboBox.java:574)

    at weblogic.ejb.ui.common.TargettedIconField.setMap(TargettedIconField.java:109)

    at weblogic.ejb.ui.common.IconField.<init>(IconField.java:34)

    at weblogic.ejb.ui.common.TargettedIconField.<init>(TargettedIconField.java:36)

    at weblogic.ejb.ui.common.TargettedIconField.<init>(TargettedIconField.java:54)

    at weblogic.ejb.ui.deployer.DeployerIconField.<init>(DeployerIconField.java:34)

    at weblogic.ejb.ui.customizers.BeanSummaryPanel.<init>(BeanSummaryPanel.java:128)

    at weblogic.ejb.ui.customizers.BaseBeanPanel.<init>(BaseBeanPanel.java:65)

    at weblogic.ejb.ui.customizers.BeanTreeRoot.<init>(BeanTreeRoot.java:91)

    at weblogic.ejb.ui.deployer.BeansNode.<init>(Compiled Code)

    at weblogic.ejb.ui.deployer.AbstractEJBJarProjectNode.<init>(AbstractEJBJarProjectNode.java:86)

    at weblogic.ejb.ui.deployer.DeployerProjectNode.<init>(DeployerProjectNode.java:23)

    at weblogic.ejb.ui.deployer.DeployerProjectRootNode.load(DeployerProjectRootNode.java:126)

    at weblogic.ejb.ui.deployer.DeployerProjectRootNode.load(DeployerProjectRootNode.java:101)

    at weblogic.ejb.ui.deployer.ProjectLoaderWorker$LoaderThread.run(Compiled Code)


    java.lang.IllegalArgumentException: Listener null is not of type interface java.awt.event.ActionListener

    at javax.swing.event.EventListenerList.remove(Compiled Code)

    at javax.swing.JComboBox.removeActionListener(JComboBox.java:574)

    at weblogic.ejb.ui.common.TargettedIconField.setMap(TargettedIconField.java:109)

    at weblogic.ejb.ui.common.IconField.<init>(IconField.java:34)

    at weblogic.ejb.ui.common.TargettedIconField.<init>(TargettedIconField.java:36)

    at weblogic.ejb.ui.common.TargettedIconField.<init>(TargettedIconField.java:54)

    at weblogic.ejb.ui.deployer.DeployerIconField.<init>(DeployerIconField.java:34)

    at weblogic.ejb.ui.customizers.BeanSummaryPanel.<init>(BeanSummaryPanel.java:128)

    at weblogic.ejb.ui.customizers.BaseBeanPanel.<init>(BaseBeanPanel.java:65)

    at weblogic.ejb.ui.customizers.BeanTreeRoot.<init>(BeanTreeRoot.java:91)

    at weblogic.ejb.ui.deployer.BeansNode.<init>(Compiled Code)

    at weblogic.ejb.ui.deployer.AbstractEJBJarProjectNode.<init>(AbstractEJBJarProjectNode.java:86)

    at weblogic.ejb.ui.deployer.DeployerProjectNode.<init>(DeployerProjectNode.java:23)

    at weblogic.ejb.ui.deployer.DeployerProjectRootNode.load(DeployerProjectRootNode.java:126)

    at weblogic.ejb.ui.deployer.DeployerProjectRootNode.load(DeployerProjectRootNode.java:101)

    at weblogic.ejb.ui.deployer.ProjectLoaderWorker$LoaderThread.run(Compiled Code)


    Threaded Messages (2)

  2. deployment problem[ Go to top ]

    The deployer is problematic. It sounds like it is the deployer itself and not your ejb that is having the problems. Try deploying manually. Here are the steps.

    From the command line prompt:

    1. Compile all three bean classes and any classes your bean depends on
    2. Create xml descriptors for your bean. Modify the ejb-jar.xml and weblogic-ejb-jar.xml files in the weblogic/examples/ejb/basic/<3. Jar up the files following exactly the intstructions in the weblogic documentation (online at www.weblogic.com)
    4. run ejbc on your jar file to create the final ejb jar (see online documentation for exact syntax, but it is something like "ejbc original_jar_name new_jar_name"

    Also, I have a batch file that will compile your code, run ejbc, and deploy to your server if you are running Windows (as opposed to Unix).
  3. deployment problem[ Go to top ]

    U better modify the XML files manually.I donna much more abt automatically.