Why i canot deploy cd.jar when using JBoss on linux

Hi,friends
I have successfully deploy the interest.jar on my linux box.But when deploying cd.jar it tells me that "Could not deploy file:/usr/local/JBoss-2.4.3_Tomcat-3.2.3/jboss/tmp/deploy/Default/cd.jar,
Cause:org.jboss.ejb.DeploymentException: Bean com.web_tomorrow.cd.CDBean not found within this application."
The source directory is described as below:
src
|_com
| |_web_tomorrow
| |_cd
| | (CD.class,CDBean.class,CDHome.class,
| | CDCollection.class,
| | CDCollectionBean.class,
| | CDCollectionHome.class,
| | CDExistsException.class)
| |_jspcd
| |_utils()
|_MATA-INF
| (ejb-jar.xml,jboss.xml)
|_WEB_INF
On src directory
#jar -cvf cd.jar com/web_tomorrow/cd/*.class \
com/web_tomorrow/utils/*.class META-INF/
When i cp the cd.jar to deploy directory jboss automatically begin deploying the cd.jar and echo the above message and stop deploying.
Here is my configuration file:
[ejb-jar.xml]
<?xml version="1.0" encoding="Cp1252"?>
<ejb-jar>
<display-name>MusicCDs</display-name>
<enterprise-beans>
<entity>
<description>Models a music CD</description>
<ejb-name>CDBean</ejb-name>
<home>com.web_tomorrow.cd.CDHome</home>
<remote>com.web_tomorrow.cd.CD</remote>
<ejb-class>com.web_tomorrow.cd.CDBean</ejb-class>
<persistence-type>Container</persistence-type>
<prim-key-class>java.lang.String</prim-key-class>
<reentrant>False</reentrant>
<cmp-field><field-name>id</field-name></cmp-field>
<cmp-field><field-name>title</field-name></cmp-field>
<cmp-field><field-name>artist</field-name></cmp-field>
<cmp-field><field-name>type</field-name></cmp-field>
<cmp-field><field-name>notes</field-name></cmp-field>
<primkey-field>id</primkey-field>
</entity>
<session>
<description>Models a music CD collection</description>
<ejb-name>CDCollectionBean</ejb-name>
<home>com.web_tomorrow.cd.CDCollectionHome</home>
<remote>com.web_tomorrow.cd.CDCollection</remote>
<ejb-class>com.web_tomorrow.cd.CDCollectionBean</ejb-class>
<session-type>Stateless</session-type>
<transaction-type>Bean</transaction-type>
<ejb-ref>
<ejb-ref-name>ejb/CD</ejb-ref-name>
<ejb-ref-type>Entity</ejb-ref-type>
<home>com.web_tomorrow.cd.CDHome</home>
<remote>com.web_tomorrow.cd.CD</remote>
<ejb-link>com.web_tomorrow.cd.CDBean</ejb-link>
</ejb-ref>
</session>
</enterprise-beans>
<assembly-descriptor>
<container-transaction>
<method>
<ejb-name>CDBean</ejb-name>
<method-name>*</method-name>
</method>
<trans-attribute>Required</trans-attribute>
</container-transaction>
</assembly-descriptor>
</ejb-jar>
[jboss.xml]
<?xml version="1.0" encoding="Cp1252"?>
<jboss>
<secure>false</secure>
<container-configurations />
<resource-managers />
<enterprise-beans>
<session>
<ejb-name>CDCollectionBean</ejb-name>
<jndi-name>cd/CDCollection</jndi-name>
<configuration-name></configuration-name>
</session>
<entity>
<ejb-name>CDBean</ejb-name>
<jndi-name>cd/CD</jndi-name>
<configuration-name></configuration-name>
</entity>
</enterprise-beans>
</jboss>
I am frustrated now! Any help is greatly appreciated!
Best Regards!

$(jboss_home)/log/server.log told me that i should have a look at Container.java first.So i openned it and found the following code snippet:
Logger.debug("Binding an EJBReference "+ref.getName());
if (ref.getLink() != null) {
// Internal link
Logger.debug("Binding "+ref.getName()+" to internal JNDI source: "+ref.getLink());
Container refContainer = getApplication().getContainer(ref.getLink());
if (refContainer == null)
throw new DeploymentException ("Bean "+ref.getLink()+" not found within this application.");
OK,the DeploymentException is thrown because the refContainer is null.
Have a look at getContainer method below:
public Container getContainer(String name)
return (Container)containers.get(name);
where,
containers is a HashMap which holds the mapping between ejbName and container.So the reason is the jboss cannot find corresponding container from the given parameter - name.Its value is ref.getLink()'s return value,com.web_tomorrow.cd.CDBean.
open the ejb-jar.xml,i found link is defined as below:
<ejb-ref>
<ejb-ref-name>ejb/CD</ejb-ref-name>
<ejb-ref-type>Entity</ejb-ref-type>
<home>com.web_tomorrow.cd.CDHome</home>
<remote>com.web_tomorrow.cd.CD</remote>
<ejb-link>com.web_tomorrow.cd.CDBean</ejb-link> <- wrong
</ejb-ref>
After i changed it to <ejb-link>CDBean</ejb-link> the jboss can deploy cd.jar normally.
The problem itself isnot complicate but it demonstrated that the open source is good for you to fix the bug up!
BTW,in order to making it easy to fix the bug, the jboss binay version is built with debug infomation.So you can rebuid it without any debug infomation.
<target name="compile" depends="prepare">
<mkdir dir="${build.classes.dir}"/>
<javac srcdir="${src.dir}"
destdir="${build.classes.dir}"
debug="on" <- change it to "off"
deprecation="off"
optimize="on"
includes="org/**"
excludes="**/activation/**, **/*BeanInfo.java"
>
<classpath refid="classpath"/>
</javac>
</target>
Thanks for all your help!

Similar Messages

  • When phone not muted, why isn't there any audio when using facetime?

    When phone not muted, why isn't there any audio when using facetime?

    What version of iMovie?
    What camera?

  • Why do I get bright colors when using the smudge tool?

    Why do I get bright colors when using the smudge tool?

    Thank you!!!
    *Caryl  *
                               (my flickr page ↓)
    *https://www.flickr.com/photos/feathersarenice/
    <https://www.flickr.com/photos/feathersarenice/>*
    We were all born mad. Some remain so.
    "Reality is whatever refuses to go away after I stop believing in it."
    Philip K. Dick

  • I don't know why my iphone4 usually too hot when use about 15 minutes.

    I don't know why my iphone4 usually too hot when use about 15 minutes.
    can you get the another.
    thank you

    You're not addressing Apple here, this is a user to user support forum.
    Basic troubleshooting from the User's Guide is reset, restart, restore (first from backup then as new).  Has any of this been tried?

  • Why does "Link Media" behave differently when used as a keyboard shortcut vs when right clicked???

    Not sure whether anyone else is encountering this, but the "Link Media" command behaves differently when right clicked as opposed to when used as a keyboard shortcut.
    When you right click to select that option for an offline file, you get only the corresponding disconnected source media. But when you execute "Link Media" via a keyboard shortcut, PP brings up a huge list of all other offline media. Why does it only do that when you use the keyboard shortcut for "Link Media" but not when you right click "Link Media".
    I'd like to get the Link Media command to behave via the keyboard shortcut the same way it behaves when right clicked. I don't want to have to deal with relinking a hundred other files, but just the single offline file I'm working on.

    Among the alternatives not mentioned... Using a TiVo DVR, rather than the X1; a Roamio Plus or Pro would solve both the concern over the quality of the DVR, as well as providing the MoCA bridge capability the poster so desperately wanted the X1 DVR to provide. (Although the TiVo's support only MoCA 1.1.) Just get a third-party MoCA adapter for the distant location. Why the hang-up on having a device provided by Comcast? This seems especially ironic given the opinions expressed regarding payments over time to Comcast. If a MoCA 2.0 bridge was the requirement, they don't exist outside providers. So couldn't the poster have simply requested a replacement XB3 from the local office and configured it down to only providing MoCA bridging -- and perhaps as a wireless access point? Comcast would bill him the monthly rate for the extra device, but such is the state of MoCA 2.0. Much of the OP sounds like frustration over devices providing capabilities the poster *thinks* they should have.

  • Why does Photoshop CC running slow when using Mixer brush tool

    Why does Photoshop CC and Photoshop C6 running SOOO slowly when using Mixer brush tool??
    Only to create one stroke it takes several seconds.
    I have to wait a long time to do next stroke. I can't work with this. How do I fix this??
    I have a new computer, a Mac Book Pro with 16 GB ram, so I have plenty of ram.

    You really have to keep your brush size small with the Mixer Brush tool.  And that necessitates keeping your canvas failry small as well.
    Back a few years ago I did a whole painting with the Mixer Brush once and some of the bristle brushes - just to see if I could - and I found I had to really limit the brush size (e.g., to 50 to 75) in order to get enough responsiveness to keep painting.  In that case my canvas was 4096 x 5120.  It's not impossible to get a good, professional result, but you have to be careful about sizing things right.
    -Noel

  • HT1349 why my i phone heats up when using or downloading applications

    why my i phone 5 heats hup when using internet or downloading application

    The Basic Troubleshooting Steps are:
    Restart... Reset... Restore from Backup...  Restore as New...
    Restart / Reset  >  http://support.apple.com/kb/ht1430
    Backing up, Updating and Restoring >  http://support.apple.com/kb/HT1414
    If you try all these Steps and you still have issues... Then a Visit to an Apple Store or AASP (Authorized Apple Service Provider) is the Next Step... Be sure to make an appointment first..

  • Why does Adobe 9 standard crash when using the digital signature

    When using the digital signature in Adobe 9 standard it crashes, it has been repaired, uninstalled and reinstalled and still crashes when putting in the digital signature and not understanding why. Also the digital signature was redone. Your thoughts on this would be most helpful.

    I had the same problems and was VERY frustrated.
    I finally solved my problem by uninstalling reader 9.1, air, acrobat.com and THEN after a restart, installing a lite version of reader 9.1 from this site:
    Good Luck!
    rufus78

  • Why being prompted for login/password when using OVDC, smart card,token/vdi

    Hello,
    I'm using VDI 3.2.1, OVDC, smart card and i assigned a smart card token to a desktop pool.
    Inserting the smart card triggers a new VDI desktop selector which prompts for the login and password.
    Is there any reason why VDI is prompting for the login/password in the VDI selector when using a smart card especially that the smart card token has been assigned to a desktop pool ?
    Thanks
    Thierry.

    You still have to authenticate to get a desktop. If you assigned a token to a pool, the ability to be assigned a desktop is based on the token not the user ID. That means that any user will be assigned a desktop if they use that card.

  • Why can I only make calls when using speakrphone?

    I can only make phone calls when using the speaker phone or headphones.  The receiver can hear me although I can not hear them.  I have only had the phone since Sat, have checked volume levels and tried adjusting during a phone call too.

    Try making a call and turning the volume up using the buttons on the side of the phone. If that doesn't work, your iPhone is faulty. Take it to the nearest apple store or back where you bought it!

  • Why are Image Export Sizes Doubled when using Save vs. SaveForWeb&Devices?

    Hi Folks
    Maybe I'm missing something here ...
    I have 2 versions of an action I use to batch process images. One uses the Save As dialogue and the other uses SaveForWeb&Devices. However, the image sizes created using the latter are about 50% smaller than those created with the former. The two actions differ only in the Save step - I duplicated the original and swapped the save step in the action.
    Is SaveForWeb&Devices usign a more efficient optimisation algorithm or am I missing something?
    The reason for using the Save As dialog is that Batch Processing is able to override the save location, whereas I had trouble overriding save location in a batch process which used an Action that Saved using SaveForWeb&Devices.
    Cheers
    Richard
    P.S. I also find this size doubling takes place when using the Image Processing script supplied with PS. I'm on PS5 on OSX10.6.8.

    SfW throws out redundant custom data, when the normal JPEG save does not. Using the normal save e.g. also retains clipping paths (10 years ago people used that al lthe time for print stuff) and of course also more info on color management, user metadata and what have you. Therfe may bne more specific optimizations in SfW, but that's something Mr. Cox can probably answer better...
    Mylenium

  • Why does my dock get stuck when using full screen apps?

    When using a full screen app like Safari, if I go back to my desktop and to the dock (which i keep minimized) it stays there when going back to the full screen app. I have to go back to the first page and hover over the dock to get it to go back. Not sure whats going on...

    I may not have explained exactly...so basically when i go to the main desktop screen, and open a program or use the dock, it sometimes gets stuck in show mode. Then when i go back to the safari full screen app for instance, the dock stays up, with the latest program highlighted. In order to get the dock to go away, i need to go back to the desktop and hover over the dock again for it to hide.
    I really hope someone else is experiencing this because its very annoying and I want apple to fix it quickly

  • Can someone please tell me why I am getting an error when using my Liquify tool?

    I am receiving an "error"window when using my Liquify tool in Filters. I receive a "delayed write failed" window also...I heard a loud honking sound and then my ability to use the tool is frozen. A little help please?

    You're not alone. There have been several threads about this issue:
    http://forums.adobe.com/thread/1408767?tstart=60
    http://forums.adobe.com/thread/1358619?tstart=120
    http://forums.adobe.com/thread/1407847?tstart=150
    http://forums.adobe.com/thread/1404674?tstart=420
    They're all informative, but I think the last one might be what you want.

  • Why does diadem intellisense not work when using scriptinclude or for global object

    I have a script with a different classes in it (scripted 1).  When I create an object of a class in the script 1 intellisense works.  Intellisense is when you type name of the object created from a class it shows all the possible variables and functions contained in that object.  But when I write another script and use scriptinclude(scripted 1) the intellisense does not work.  I also tried a global object and intesllisense does not work.  Is there a way to get intellisense to work when using scriptinclude?  I am working with version 2012. 

    Here is more information on the issue.
    I have a script with a different classes in it (scripted 1).  When I create an object of a class in the script 1 intellisense works.  Intellisense is when you type name of the object created from a class it shows all the possible variables and functions contained in that object.  But when I write another script and use scriptinclude(scripted 1) the intellisense does not work.  I also tried a global object and intesllisense does not work.  Is there a way to get intellisense to work when using scriptinclude?  I am working with version 2012. 
    'Test.vbs
    class test
        public function test1()
             msgbox("test1")
        end function
        public function test2()
             msgbox("test2")
        end function
    end class
    'now create a object of the class
    dim oTest
    set oTest=new Test
    'now when you type oTest. you get the following functions to choose from
    oTest.test1
            .test2
    Now if you remove the object from Test.vbs and create a main program with scriptinclude(Test.vbs) it will not show the two functions
    'Main.vbs
    Option Explicit  'Forces the explicit declaration of all the variables in a script.
    call scriptinclude("c:\1atmp\Test.vbs")
    dim oTest
    set oTest=new test
    'now when you type oTest. it shows none of the functions in the object oTest
    oTest.

  • Why do I get random BSOD when using Firefox with windows XP pro 32 bit? Seems to happen since system updates on 01/09/13.

    I am using Chrome to write this and no crashes. I have defragged with the system defrager and Defragler both. I bought new memory but this issue happened a couple days after install around the time of some microsoft updates 01/09/13. I have run Memtest and a hard drive test as well, done a power cycle and run a disk cleaner. This only happens when using Firefox.

    See:
    *http://kb.mozillazine.org/Firefox_crashes
    *https://support.mozilla.org/kb/Firefox+crashes
    If you have submitted crash reports then please post the IDs of one or more crash reports that have this format:
    *bp-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
    You can find the IDs of the submitted crash reports on the <i>about:crashes</i> page.
    *You can open the <b>about:crashes</b> page via the location bar, like you open a website.
    See:
    *http://kb.mozillazine.org/Mozilla_Crash_Reporter
    *https://support.mozilla.org/kb/Mozilla+Crash+Reporter

Maybe you are looking for