Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8881831
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T20:25:37+00:00 2026-06-14T20:25:37+00:00

I have a Maven EJB project that is meant to be installed on a

  • 0

I have a Maven EJB project that is meant to be installed on a WAS8.5 server. Everything compiles up to the EAR fine, however, when I try to deploy the application the MDB mappings are not auto-filled in. I extract the jar (inside the ear) and I see…

--META-INF
----ejb-jar.xml
----ibm-ejb-jar-bnd.xml

So why isn’t the mapping being picked up? Is there a configuration I need in my Plugin?

       <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-ejb-plugin</artifactId>
            <version>2.2</version>
            <configuration>
                <ejbVersion>3.0</ejbVersion>
                <generateClient>true</generateClient>
                <archive>
                    <manifest>
                        <!-- generate manifest file properly -->
                        <addClasspath>true</addClasspath>
                    </manifest>
                </archive>
            </configuration>
        </plugin>

UPDATE:

This looks like it is more of a problem with ibm-web-bnd.xml. I have confirmed that is in the final war.

Update for question…

I am using activation spec, as far as I can tell these are delcared fine in the ibm-ejb-bnd.xml of the ejb project. I can see them there in the ear. However, it still doesn’t work. Also, I have an ear built by the old system and here and I have found no real differences in the following files…

  • application.xml
  • ibm-web-bnd.xml
  • ibm-ejb-jar-bnd.xml

I have also glanced over the web.xml and MANIFEST files and don’t see anything.

Finally another weird note is when I try to install the maven generated one I see…

enter image description here

However, when I try to upload the Ant (previous build) one I see these options

enter image description here

UPDATE: Per comment

I added these files to a folder called new and one called old.

~/My Documents/tmp/file
$ ls old/
application.xml  ibm-ejb-jar-bnd.xml  ibm-web-ext.xml
ejb-jar.xml      ibm-web-bnd.xml

I then diffed the two folders, here is the outcome…

diff new/application.xml old/application.xml
5c5
<       <module id="Module_1352494482335">^M
---
>       <module id="Module_1276803943498">^M
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T20:25:38+00:00Added an answer on June 14, 2026 at 8:25 pm

    I played around with so many things my resolution was unscientific. However, this SEEMED to work for me….

    <plugin>
                <artifactId>maven-antrun-plugin</artifactId>
                <executions>
                    <execution>
                        <phase>verify</phase>
                        <configuration>
                            <tasks>
                                <property name="was6.home" value="C:\Program Files\IBM\WebSphere\AppServer" />
                                <property name="user.install.root" value="${was6.home}" />   
                                <path id="was.classpath">
                                    <fileset dir="${was6.home}/lib">
                                        <include name="webservices.jar" />
                                        <include name="wsprofile.jar" />
                                        <include name="j2ee.jar" />
                                        <include name="ffdc.jar" />
                                        <include name="wsdl4j.jar" />
                                        <include name="bootstrap.jar" />
                                        <include name="commons-logging-api.jar" />
                                        <include name="commons-discovery.jar" />
                                        <include name="ras.jar" />
                                        <include name="wsexception.jar" />
                                        <include name="emf.jar" />
                                        <include name="classloader.jar" />
                                    </fileset>
                                    <fileset dir="${was6.home}/dev">
                                        <include name="was_public.jar" />
                                    </fileset>
                                    <fileset dir="${was6.home}/plugins">
                                        <include name="com.ibm.ws.runtime.jar" />
                                    </fileset>
                                    <fileset dir="${was6.home}/java/jre/lib">
                                        <include name="xml.jar" />
                                        <include name="ibmorb.jar" />
                                        <include name="ibmorbapi.jar" />
                                    </fileset>
                                </path>
                                <path id="wsejbdeploy.path">
                                    <path refid="maven.compile.classpath"/>
                                    <fileset dir="${was6.home}/java/jre/lib">
                                        <include name="xml.jar" />
                                        <include name="ibmorb.jar" />
                                        <include name="ibmorbapi.jar" />
                                    </fileset>
                                </path>
                                <taskdef name="wasEjbDeploy" classname="com.ibm.websphere.ant.tasks.WsEjbDeploy" 
                                     classpathref="was.classpath" />
    
                                <echo> 
                                    Hello World: FYI
                                    project.name=${project.name}
                                    project.artifactId=${project.artifactId}
                                    project.groupId=${project.groupId}
                                    project.version=${project.version}
                                    project.packaging=${project.packaging}
                                    project.description=${project.description}
                                </echo>
    
                                <delete dir="${project.build.directory}/ejbdeply-working" />
                                <wasEjbDeploy 
                                    inputJar="${project.build.directory}/${project.artifactId}-${project.version}.jar" 
                                    outputJar="${project.build.directory}/${project.artifactId}-${project.version}-OUTPUT.jar" 
                                    wasHome="${was6.home}" 
                                    classpathref="wsejbdeploy.path"
                                    workingDirectory="${project.build.directory}/ejbdeply-working"
                                    keepGenerated="true"
                                    failonerror="true"
                                    trace="true" />
    
                                <move file="${project.build.directory}/${project.artifactId}-${version}.jar" 
                                    tofile="${project.build.directory}/${project.artifactId}-${version}-INPUT.jar"  />
    
                                <move file="${project.build.directory}/${project.artifactId}-${version}-OUTPUT.jar" 
                                   tofile="${project.build.directory}/${project.artifactId}-${version}.jar"  />
    
                                <echo> **** Task WsEJBDeploy Complete! **** </echo>
                            </tasks>
                        </configuration>
                        <goals>
                            <goal>run</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a JavaEE project as follows: hms2 (Maven parent pom) hms2-ear hms2-ejb hms2-web
I have one project (called EJB server) that contains X-Doclet annotated EJB service and
I have Maven on Ubuntu server. It seems to try lots and lots of
I have a Maven based Spring-WS client project that I want to package as
I have a maven project that contains a certain api I need to use
I want to create an EAR project that consists of an EJB 3.1 module
I have a ejb project with 1 dependent project (also in my workspace) that
I have an ear file that is generated through Maven EAR plugin. The ear
I have a maven project running a TestNG test that launches an EJBContainer.createEJBContainer() and
I have a modular maven project, in which two modules, BIZ and EJB contain

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.