Maven 2.0 to deploy ear for WebSphere Portal v6.1 profile exception - Websphere

This is a discussion on Maven 2.0 to deploy ear for WebSphere Portal v6.1 profile exception - Websphere ; IDE: Rational Software Architect for Websphere 7.5. Project type: Portlet packaging: ear Server: WebSphere Portal v6.1 Server at localhost I am using maven to manage my dependancies and build. I would like Maven to install the ear file to WebSphere ...

+ Reply to Thread
Results 1 to 3 of 3

Thread: Maven 2.0 to deploy ear for WebSphere Portal v6.1 profile exception

  1. Maven 2.0 to deploy ear for WebSphere Portal v6.1 profile exception

    IDE: Rational Software Architect for Websphere 7.5.
    Project type: Portlet
    packaging: ear
    Server: WebSphere Portal v6.1 Server at localhost

    I am using maven to manage my dependancies and build. I would like Maven to install the ear file to WebSphere Portal v6.1. Maven has a plugin called was6-maven-plugin that I am using. Below is my pom.xml:
    {code}
    4.0.0
    myprojectid
    myArtifact
    ear
    myArtifact




    0.0.1





    system
    com.ibm.ws
    runtime
    6.1.0
    C:/Program Files/IBM/SDP/runtimes/base_v61/plugins/com.ibm.ws.runtime_6.1.0.jar



    icu4j
    icu4j
    3.4.1
    system
    ${basedir}\WebContent\WEB-INF\lib\icu4j_3_4_1.jar



    jsf-ibm
    jsf-ibm
    2.0
    system
    ${basedir}\WebContent\WEB-INF\lib\jsf-ibm.jar



    jsf-impl-messages
    jsf-impl-messages
    2.0
    system
    ${basedir}\WebContent\WEB-INF\lib\jsf-impl-messages.jar



    jsf-portletbridge
    jsf-portletbridge
    2.0
    system
    ${basedir}\WebContent\WEB-INF\lib\jsf-portletbridge.jar



    jstl
    jstl
    2.0
    system
    ${basedir}\WebContent\WEB-INF\lib\jstl.jar



    standard
    standard
    2.0
    system
    ${basedir}\WebContent\WEB-INF\lib\standard.jar



    CMWebService
    CMWebService
    2.0
    system
    ${basedir}\..\lib\CMWebService.jar



    javax.faces
    jsf-api
    1.2_02



    javax.xml
    jaxrpc
    1.1




    org.springframework
    spring
    2.0



    org.springframework
    spring-aspects
    2.0



    org.springframework
    spring-mock
    2.0



    org.hibernate
    ejb3-persistence
    1.0.2.GA



    log4j
    log4j
    1.2.14



    javax.portlet
    portlet-api
    2.0









    !-- C:\Program Files\IBM\SDP70\runtimes\base_v61
    C:\IBM\WebSphere\wp_profile



    install
    ${basedir}/target
    myArtifactEar

    !--

    META-INF




    org.apache.maven.wagon
    wagon-ftp
    1.0-beta-2


    org.apache.maven.wagon
    wagon-file
    1.0-beta-2





    maven-compiler-plugin

    1.5
    1.5



    org.apache.maven.plugins
    maven-source-plugin


    !--

    attach-sources

    jar





    org.apache.maven.plugins
    maven-surefire-plugin


    **/*ManualTest.java




    org.apache.maven.plugins
    maven-eclipse-plugin
    true


    true

    target/classes




    org.codehaus.mojo
    cobertura-maven-plugin
    2.0



    clean












    org.codehaus.mojo
    was6-maven-plugin
    1.1


    install
    install



    !-- wsDefaultBindings
    wsStopServer
    installApp
    wsStartServer





    ${was6Home}
    SOAP
    localhost
    10040
    wpadmin
    admin
    !-- MY-TARGET-CLUSTER
    !-- AppSrv01
    wp_profile
    true
    false









    org.apache.maven.plugins
    maven-surefire-report-plugin


    org.apache.maven.plugins
    maven-checkstyle-plugin

    .checkstyle.xml



    org.apache.maven.plugins
    maven-pmd-plugin

    utf-8
    100
    1.5

    **/*Bean.java
    **/generated/*.java




    org.codehaus.mojo
    cobertura-maven-plugin
    2.0


    org.codehaus.mojo
    taglist-maven-plugin


    TODO
    FIXME
    @rework
    @review
    @code-review
    @todo
    @deprecated

    True
    True



    org.apache.maven.plugins
    maven-javadoc-plugin



    @code-review
    a
    Code Review:





    org.apache.maven.plugins
    maven-changes-plugin



    changes-report





    org.apache.maven.plugins
    maven-jxr-plugin


    org.codehaus.mojo
    findbugs-maven-plugin
    1.1

    false

    Normal
    Default






    false
    false




    d:\Project\myArtifact\target\was6-maven-plugin\was6plugin-build.xml
    [INFO] Project base dir set to: d:\Project\myArtifact\target\was6-maven-plugin
    [INFO] +Target:
    [INFO] +Target: wsEjbDeploy
    [INFO] +Target: wsStartServer
    [INFO] +Target: wsStopServer
    [INFO] +Target: wsInstallApp
    [INFO] +Target: wsUninstallApp
    [INFO] +Target: wsDefaultBindings
    [INFO] +Target: wsStopApp
    [INFO] +Target: wsStartApp
    [INFO] +Target: wsAdmin
    [INFO] +Target: wsListApps
    [INFO] +Target: servicedeploy
    [INFO] Attempting to create object of type org.apache.tools.ant.helper.DefaultExecutor
    [INFO] Adding reference: ant.executor
    [INFO] Build sequence for target(s) `wsStartServer' is [wsStartServer]
    [INFO] Complete build sequence is [wsStartServer, wsDefaultBindings, wsAdmin, wsStartApp, wsListApps, wsEjbDeploy, wsUninstallApp, wsInstallApp, servicedeploy, wsStopServer, , wsStopApp]
    [INFO]
    [INFO] wsStartServer:
    [INFO] Class com.ibm.websphere.ant.tasks.StartServer loaded from parent loader (parentFirst)
    [INFO] +Datatype wsStartServer com.ibm.websphere.ant.tasks.StartServer
    [ERROR]
    [ERROR] BUILD FAILED
    [ERROR] d:\Project\myArtifact\target\was6-maven-plugin\was6plugin-build.xml:10: WSProfileException profileName=wp_profile
    [ERROR] at com.ibm.ws.ant.utils.ProjectUtils.reportError(Proj ectUtils.java:30)
    [ERROR] at com.ibm.websphere.ant.tasks.ServerControl.execute( ServerControl.java:101)
    [ERROR] at org.apache.tools.ant.UnknownElement.execute(Unknow nElement.java:275)
    [ERROR] at org.apache.tools.ant.Task.perform(Task.java:364)
    [ERROR] at org.apache.tools.ant.Target.execute(Target.java:34 1)
    [ERROR] at org.apache.tools.ant.Target.performTasks(Target.ja va:369)
    [ERROR] at org.apache.tools.ant.Project.executeSortedTargets( Project.java:1216)
    [ERROR] at org.apache.tools.ant.Project.executeTarget(Project .java:1185)
    [ERROR] at org.apache.tools.ant.helper.DefaultExecutor.execut eTargets(DefaultExecutor.java:40)
    [ERROR] at org.apache.tools.ant.Project.executeTargets(Projec t.java:1068)
    [ERROR] at org.apache.tools.ant.Main.runBuild(Main.java:668)
    [ERROR] at org.apache.tools.ant.Main.startAnt(Main.java:187)
    [ERROR] at org.apache.tools.ant.Main.start(Main.java:150)
    [ERROR] at org.apache.tools.ant.Main.main(Main.java:240)
    [ERROR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
    [ERROR] at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:79)
    [ERROR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:43)
    [ERROR] at java.lang.reflect.Method.invoke(Method.java:618)
    [ERROR] at com.ibm.ws.bootstrap.WSLauncher.main(WSLauncher.ja va:263)
    [ERROR]
    [ERROR] Total time: 0 seconds
    [INFO] Return code: 0
    [INFO] ------------------------------------------------------------------------
    [INFO] BUILD SUCCESSFUL
    [INFO] ------------------------------------------------------------------------
    [INFO] Total time: 20 seconds
    [INFO] Finished at: Tue Sep 01 14:35:07 MDT 2009
    [INFO] Final Memory: 4M/26M
    [INFO] ------------------------------------------------------------------------{code}

    Does anyone have any idea what I am doign wrong. I am new to Maven, RSA, and Websphere.

    Sincerely,

    dustfinger

  2. Re: Maven 2.0 to deploy ear for WebSphere Portal v6.1 profileexception

    C:\IBM\WebSphere\wp_profile\bin\wasprofile.bat -listProfiles

    The wasprofile.bat script has been deprecated and replaced by the manageprofiles
    bat script.

    [was61profile1, wp_profile]{code}

    Sincerely,

    dustfinger

  3. Re: Maven 2.0 to deploy ear for WebSphere Portal v6.1 profileexception

    Okay, The problem was that I was trying to deploy my ear project to WebSphere Portal v6.1, but the maven plugin is for deploying to WebSphere Application Server v6.1. So I added the WebSphere Application Server v6.1 and modified my pom so that C:\Program Files\IBM\SDP\runtimes\base_v61 . I created a new profile called was61profile1 and updated my pom so that was61profile1. Now I have another error, but I am going to try to trouble shoot it before posting back to the forum.

    Sincerely,

    dustfinger.

+ Reply to Thread