Problems with wlserver ant task for WL 8.1

hi
i have a problem with using wlserver ant task for Weblogic 8.1
basically i want to start the server that is already preconfigured and deploy
one ear.
here's what i do:
<taskdef name="wlserver" classname="weblogic.ant.taskdefs.management.WLServer">
<classpath refid="lib.classpath"/>
</taskdef>
<wlserver action="start" dir="D:/BEA/user_projects/domains/mydomain"
output="wls81.log"/>
(and then the deployment task - irrelevant here)     
the classpath is generated automatically and includes all jars in the specific
project directory:
     <path id="lib.classpath">
     <fileset dir="${proj.lib.dir}">
          <include name="**/*.jar"/>
     </fileset>
     </path>
(weblogic.jar is there as well)
the problem is when i run it, the following happens:
- if i have action="start" (or no action attribute at all), i get the following
exception:
java.lang.NullPointerException
at weblogic.Home.<init>(Home.java:29)
at weblogic.Home.getInstance(Home.java:86)
at weblogic.Home.getPath(Home.java:94)
at weblogic.Home.getFile(Home.java:99)
at weblogic.ant.taskdefs.management.WLServer.execute(WLServer.java:260)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:193)
at org.apache.tools.ant.Task.perform(Task.java:341)
at org.apache.tools.ant.Target.execute(Target.java:309)
at org.apache.tools.ant.Target.performTasks(Target.java:336)
at org.apache.tools.ant.Project.executeTarget(Project.java:1339)
at org.apache.tools.ant.Project.executeTargets(Project.java:1255)
at org.apache.tools.ant.Main.runBuild(Main.java:609)
at org.apache.tools.ant.Main.start(Main.java:196)
at org.apache.tools.ant.Main.main(Main.java:235)
- if i change it to action="startup" as specified on "wlserver Ant Task Reference"
it seems that this task is skipped completely. no error messages, no stack trace,
nothing. i tried -verbose and -debug options on ant, but there're no logs displayed
whatsoever. it takes less than a second to run this task so i presume it's just
getting skipped completely.
i run this from the standalone Ant 1.5.4 on Windows environment.
i've followed the topic "wlserver Ant task for WebLogic 8.1" where kind of similar
problem is described but putting weblogic.jar on the system CLASSPATH is not an
option for this project.
anyone has any idea about how to get this going?
cheers
Andrei

sounds bug to me. NPE should be correctly handled with appropriate error
message. Please contact BEA support to log the call.
"Andrei Rusakou" <[email protected]> wrote in message
news:[email protected]...
>
hi
i have a problem with using wlserver ant task for Weblogic 8.1
basically i want to start the server that is already preconfigured anddeploy
one ear.
here's what i do:
<taskdef name="wlserver"classname="weblogic.ant.taskdefs.management.WLServer">
<classpath refid="lib.classpath"/>
</taskdef>
<wlserver action="start" dir="D:/BEA/user_projects/domains/mydomain"
output="wls81.log"/>
(and then the deployment task - irrelevant here)
the classpath is generated automatically and includes all jars in thespecific
project directory:
<path id="lib.classpath">
<fileset dir="${proj.lib.dir}">
<include name="**/*.jar"/>
</fileset>
</path>
(weblogic.jar is there as well)
the problem is when i run it, the following happens:
- if i have action="start" (or no action attribute at all), i get thefollowing
exception:
java.lang.NullPointerException
at weblogic.Home.<init>(Home.java:29)
at weblogic.Home.getInstance(Home.java:86)
at weblogic.Home.getPath(Home.java:94)
at weblogic.Home.getFile(Home.java:99)
atweblogic.ant.taskdefs.management.WLServer.execute(WLServer.java:260)
atorg.apache.tools.ant.UnknownElement.execute(UnknownElement.java:193)
at org.apache.tools.ant.Task.perform(Task.java:341)
at org.apache.tools.ant.Target.execute(Target.java:309)
at org.apache.tools.ant.Target.performTasks(Target.java:336)
at org.apache.tools.ant.Project.executeTarget(Project.java:1339)
at org.apache.tools.ant.Project.executeTargets(Project.java:1255)
at org.apache.tools.ant.Main.runBuild(Main.java:609)
at org.apache.tools.ant.Main.start(Main.java:196)
at org.apache.tools.ant.Main.main(Main.java:235)
- if i change it to action="startup" as specified on "wlserver Ant TaskReference"
it seems that this task is skipped completely. no error messages, no stacktrace,
nothing. i tried -verbose and -debug options on ant, but there're no logsdisplayed
whatsoever. it takes less than a second to run this task so i presume it'sjust
getting skipped completely.
i run this from the standalone Ant 1.5.4 on Windows environment.
i've followed the topic "wlserver Ant task for WebLogic 8.1" where kind ofsimilar
problem is described but putting weblogic.jar on the system CLASSPATH isnot an
option for this project.
anyone has any idea about how to get this going?
cheers
Andrei

Similar Messages

  • Wlserver ant task

    When I use the wlserver task is in ant build file I get an error saying class weblogic.ant.taskdefs...
    not found even though I have set it in my build file..
    I am not using ant which comes with weblogic.
    Anil

    I heard that wlconfig and wlserver ant tasks do not work with Weblogic 7.0 is that
    true?
    Anil
    "Vitaly Yurik" <[email protected]> wrote:
    >
    Hi Anil,
    Could you send your build file as an attachment. Also I need to know
    under which
    directory this build file is place. Is it correct that you are failing
    to run
    command:
    ant weblogic.Admin
    Vitaly
    "Anil Jacob" <[email protected]> wrote:
    Hi vitaly,
    I am using ant 1.5 which is downloaded from the ant website. Currently
    I use the
    weblogic.Admin utility as a task in the ant build file for stopping,
    starting
    etc.
    However I wanted to see if the wlserver tak gives me any added advantage.
    I have my own build file. I use the ant command to run the build.
    I know I am missing a class, I want to know which class I need in my
    ant /lib
    folder or in my classpath?
    Thanks
    Anil
    "Vitaly Yurik" <[email protected]> wrote:
    Hi Anil,
    When you are saying: "I am not using ant which comes with weblogic.",
    does it
    mean that
    you are using a different version of ant. If so which version are you
    using.
    Also,
    1. are you using the Weblogic build file?
    2. What "ant" command are yo running.
    Vitaly Yurik
    "Anil Jacob" <[email protected]> wrote:
    When I use the wlserver task is in ant build file I get an error saying
    class weblogic.ant.taskdefs...
    not found even though I have set it in my build file..
    I am not using ant which comes with weblogic.
    Anil

  • Ant tasks for portal's dpadmin and par commands

    Has anyone written ant tasks for the dpadmin and par commands? If you look at the shell scripts for dpadmin and par, they are just setting up environment for java method invocation and command-line parsing.

    I created some simple targets to deploy my portlets (copy jsp files and classes to appropriate directories) and the declare them with a target that invoked the dpadmin tool on my desktop xml file. I had experimented around with changing the directory priviledges in order to run my build script as a user other than root but had little success. I am sure building a custom ant task wrapped around dpadmin and par commands would be trivial to implement.

  • Problem with "SELECT...FOR UPDATE OF..." and "POST command" combination

    Problem with "SELECT...FOR UPDATE OF..." and "POST command" combination
    Problem in committing transactions in Multiple Forms (Oracle Forms) with POST built-in command:
    Consider that the following statements are written in WHEN-WINDOW-CLOSED trigger of a called form.
    Statements in called form (Form name: FORM_CHILD):
    go_block('display_block') ;
    do_key('execute_query') ;
    -- Data from table_b will be populated in this block, based on the value of COLUMN_1 obtained
    -- from TABLE_A.
    -- Example: If the value of COLUMN_1 is 10, then all the matching records from TABLE_B, which
    -- are inserted with value 10 in TABLE_B.COLUMN_1 will be fetched and shown here.
    if user_choice = 'YES' then
    commit ;
    else
    rollback ;
    end if ;
    Statements in calling forms:
    There are two calling forms having following statements and it is going to call the above said called form.
    CALLING FORM 1
    Statements in KEY-COMMIT trigger:
    post;
    call_form(form_child, no_activate) ;
    Statements in ON-INSERT trigger:
    select column_1
    from table_a
    for update of column_1
    where column_2 = 'X' ;
    update table_a
    set column_1 = column_1 + 1
    where column_2 = 'X' ;
    insert into table_b ...;
    insert into table_b ...; Statements in KEY-COMMIT trigger:
    post;
    call_form(form_child, no_activate) ;
    CALLING FORM 2:
    Statements in ON-INSERT trigger:
    select column_1
    from table_a
    for update of column_1
    where column_2 = 'X' ;
    update table_a
    set column_1 = column_1 + 1
    where column_2 = 'X' ;
    insert into table_b ...;
    insert into table_b ...;
    insert into table_b ...;
    Our understanding:
    Assume that both the forms are running from two different machines/instances, issuing commit at the same time. In this case, forms will start executing the statements written in ON-INSERT trigger, the moment POST command is executed. Though the commit is issued at the same time, according to oracle, only one of the request will be taken for processing first. Assume that calling form 1 is getting processed first.
    So, it fetches the value available in COLUMN_1 of TABLE_A and locks the row from further select, update, etc. as SELECT...FOR UPDATE command is used (note that NOWAIT is not given, hence the lock will be released only when COMMIT or ROLLBACK happens) and proceed executing further INSERT statements. Because of the lock provided by the SELECT...FOR UPDATE command, the statements in calling form 2 will wait for the resource.
    After executing the INSERT statements, the FORM_CHILD is called. The rows inserted in to TABLE_A will be queried and shown. The database changes will be committed when user closes the window (as COMMIT is issued in its WHEN-WINDOW-CLOSED trigger). Then the SELECT...FOR UPDATE lock will be released and calling form 2's statements will be executed.
    Actual happenings or Mis-behavior:
    Calling form 2 starts executing INSERT statements instead of waiting for SELECT...FOR UPDATE lock. Also, the value selected from TABLE_A.COLUMN_1 is same in both the calling forms, which is wrong.
    The rows inserted into TABLE_B are having similar COLUMN_1 values in calling form 2 and they are fetched and shown in the called form FORM_CHILD.
    Note that in calling form 2 also POST only is issued, but the changes posted there are accessible in calling form 1 also, which is wrong.
    Kindly suggest us as to how to fix above problem. It will be much use, if you can send us the information regarding the behavior of Oracle Forms POST built-in also.
    Our mail ID: [email protected]
    Thanks a lot in advance.

    You have several problems:
    1. On-Insert will ONLY run if you have created a new record in a base-table block. If you haven't done that, then the POST command will not cause it to run.
    2. Select for update without a "no wait" will lock records for the first form, but when the second form tries this, it will hit the ORA-00054 exception, and will NOT wait. The only way you could make it wait is to issue an UPDATE sql command, which is not such a good way to go.
    All POST does is issues SQL insert or update commands for any changes the user has made to records in a form's base-table blocks, without following with a Commit command.
    Also understand that Commit is the same as Commit_Form, and Rollback is the same as Clear_Form. You should read up on these in the Forms help topics.

  • Problems with the "my tasks" iView

    Hello,
    we use the EP 6 SP 09.
    I have  problems with the "my tasks" iView (com.sap.netweaver.bc.uwl.ui.uwl). The first problem is, that the user get no e-mail if anybody give him a task (Options: Notification = Notify on Updates, Completion ...). The next problem I have is, if a user (without admin rights) click on the button "Personalize" he get an empty window. But a user with admin rights get the window with the "Personalize" view.
    Can anybody help me? Where are the possibility to customizing?
    kind regards
    Jochen Kormannshaus

    hi,
      The personalization tray is only visible if the iView tray is visible.So make sure that iView tray is visible.
    Also u can look into followinw links.
    https://weblogs.sdn.sap.com/weblogs/topic/22
    Think outside the box - enhance  processes with Universal Worklist Action Handlers!
    Regards mujjammil

  • Exception starting server when using wlserver Ant task

    Hello All:
    When attempting to start my server using the wlserver Ant task, i receive the following error:
    [wlserver] java.lang.NoClassDefFoundError: weblogic/Server
    [wlserver] Exception in thread "main"
    [wlserver] Error in server execution
    my snippet is as follows:
    <target name="start-server">
    <wlserver beahome="C:\bea" weblogichome="c:\bea\weblogic81" host="localhost"
                        port="7001" username="weblogic" domainname="mydomain" password="weblogic"
                        servername="myserver" action="start"/>
    </target>
    It seems as if it should work fine. Anybody have any solutions? Thanks in advance.
    Ricky

    Ricky,
    You have to add the weblogic JARs to the classpath of the wlserver task.
    add something similar to the following (bold text are additions):
    <path id="classpath.weblogic">
    <fileset dir="c:/bea/weblogic81/server/lib">
    <include name="weblogic_sp.jar" />
    <include name="weblogic.jar" />
    <include name="webserviceclient.jar" />
    </fileset>
    </path>
    <target name="start-server">
    <wlserver beahome="C:\bea" weblogichome="c:\bea\weblogic81" host="localhost"
    port="7001" username="weblogic" domainname="mydomain" password="weblogic"
    servername="myserver" action="start" classpathref="classpath.weblogic"/>
    </target>
    --Peter                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Ant tasks for creating ADF Library

    Created an ADF declarative component, exported it as an ADF library and got it working fine. The ADF Library jar was created within JDeveloper by setting up a Deployment profile. The created ADF Library file has the TLD file and TagHandler / Component class files created on the fly and packaged.
    Not sure of how We could get the same ADF library created by an Ant task. Are there Ant tasks for creating ADF library available? http://www.connotea.org/user/jdeveloper/tag/ant has some details on the JDeveloper based ant tasks but doesn't have details on creating ADF library.

    You can use the ojdeply executable to create and deploy your ADF Library from the commandline:
    <Jdev-install-location>/jdeveloper/jdev/bin/ojdeploy -workspace /mydirectory/yourworkspace.jws -profile yourprofile -project yourproject.jpr

  • I having problem with the answer  question for the App Store. And I forgot the answer

    I having problem with the answer  question for the App Store. And I forgot the answer

    Pleae call 1800MYAPPLE ask to speak to account security

  • Why has my 3G stopped working on my iphone? It is enabled, and I never had problems with it before, but for about 2 months now it has refused to work and as a result I can't send any attachments such as photos or videos via text.

    Why has my 3G stopped working on my iphone? It is enabled, and I never had problems with it before, but for about 2 months now it has refused to work and as a result I can't send any attachments such as photos or videos via text.

    Cellular data is a feature from your phone carrier.  Have you contacted them to resolve your issue.

  • Ant tasks for UDDI

    Hey is anyone aware of ant tasks for UDDI configurations at build time for specifically oracle,
    thanks all,
    jp.

    http://www.google.com/search?q=UDDI+configurations+at+build+time+for+specifically+oracle&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-US:official&client=firefox-a

  • Ant tasks for mxmlc/compc?

    Are there "official" Ant tasks for mxmlc/compc?

        <taskdef name="mxmlc" classname="flex.ant.MxmlcTask" classpath="${flexTasks.jar.loc}" />
        <taskdef name="compc" classname="flex.ant.CompcTask" classpath="${flexTasks.jar.loc}" />

  • I am having major problems with the latest update for my itunes!

    I am having problems with the latest update for itunes, it says 'itunes has an invalid signature'. I have completely uninstalled itunes but now it wont download at all. Have tried downloading it 4 times tonight already. Anyone know how to get it to download? Or what to do?

    I am having problems with the latest update for itunes, it says 'itunes has an invalid signature'.
    That suggests that the installer is getting damaged during the download.
    I'd first try downloading an installer from the Apple website using a different web browser:
    http://www.apple.com/itunes/download/
    If you use Firefox instead of IE for the download (or vice versa), do you get a working installer?

  • RSAU461, problem with activating update rules for cube 0csrv_c01

    Hello,
    I have added new fields to data source 0CRM_SRV_PROCESS_H, then changed transfer rules, added characteristics to ODS 0crm_proh, and reactivated update rules 80crm_proh. But now I have problem with second update rules for this cube named 80crm_cnfh. It is not active and all fields in it have red status, error RSAU461, and I cannot activate it.
    What I should do? Should I change somehow that second source for data to my cube (change infosource, ods, rule?)
    Regards
    Radek

    hi
    As said by the Mti u have just changed the info objects in the ods and u need to map them with the specific info objects from the ods.
    double click on the Update rules of the cube and go to the characteristic tab there map the newly added info objects with the IO in the ods.
    Khaja

  • Problemas with file "ns_emails.xml" for SMTP EXCHANGE

    Hi,
    I have problems with my ns_emails configuration for a SMTP EXCHANGE Mail Server.
    I configured Outlook with this parameters and works: Autenthication: yes, SSL: yes, port: 25, host: gmail.smtp.com.
    In my BPEL process is a right msg, but the email doesn`t arrive:
    <2008-01-27 19:19:51,781> <INFO> <default.collaxa.cube.services> <Utils::initNotificationMode> Notification via voice, fax, SMS, IM or pager will be sent. Emails will be sent with the current settings. If you would like to enable them, please configure accounts in ns_iaswconfig.xml and then set the NotificationMode attribute in ns_emails.xml to either NONE, EMAIL or ALL.
    Please, ¿do you see something wrong with this file?
    <EmailAccounts xmlns="http://xmlns.oracle.com/ias/pcbpel/NotificationService"
    EmailMimeCharset=""
    NotificationMode="EMAIL">
    <EmailAccount>
    <Name>Default</Name>
    <GeneralSettings>
    <FromName>Laura</FromName>
    <FromAddress>[email protected]</FromAddress>
    </GeneralSettings>
    <OutgoingServerSettings>
    <SMTPHost>smtp.gmail.com</SMTPHost>
    <SMTPPort>25</SMTPPort>
    <AuthenticationRequired>true</AuthenticationRequired>
    <UseSSL>true</User>
    <UserName>[email protected]</UserName>
    <Password ns0:encrypted="false" xmlns:ns0="http://xmlns.oracle.com/ias/pcbpel/NotificationService">mypass</Password>
    </OutgoingServerSettings>
    </EmailAccount>
    </EmailAccounts>
    Thanks,
    Laura

    Hi,
    I know about domain.log file. In my first post, I put the message that I get.
    The problema is with the SMTP Exchange MS Server.
    I tried with a Local Mail Server with this parametes and its right.
    <GeneralSettings>
    <FromName>Laura Garcia</FromName>
    <FromAddress>testuser@lgrico-port</FromAddress>
    </GeneralSettings>
    <OutgoingServerSettings>
    <SMTPHost>lgrico-port</SMTPHost>
    <SMTPPort>25</SMTPPort>
    <UserName>testuser@lgrico-port</UserName>
    <Password>laura</Password>
    </OutgoingServerSettings>
    But with this configuration its wrong:
    <OutgoingServerSettings>
    <SMTPHost>smtp.gmail.com</SMTPHost>
    <SMTPPort>25</SMTPPort>
    <AuthenticationRequired>true</AuthenticationRequired>
    <UseSSL>true</UseSSL>
    <UserName>[email protected]</UserName>
    <Password ns0:encrypted="false" xmlns:ns0="http://xmlns.oracle.com/ias/pcbpel/NotificationService">pass</Password>
    </OutgoingServerSettings>
    My company has the same kind of mail server than gmail, so I,m trying to configure this first.
    This is domain.log and it`s right, I can´t see where is the problem.
    <2008-01-29 09:26:05,006> <INFO> <default.collaxa.cube.services> <Utils::initNotificationMode> Notification via voice, fax, SMS, IM or pager will be sent. Emails will be sent with the current settings. If you would like to enable them, please configure accounts in ns_iaswconfig.xml and then set the NotificationMode attribute in ns_emails.xml to either NONE, EMAIL or ALL.
    <2008-01-29 09:26:05,053> <DEBUG> <default.collaxa.cube.services> <oracle.bpel.services.notification.queue.QueueConnectionPool::QueueConnectionPool> Creating connection pool for java:comp/env/jms/Queue/NotificationSenderQueueConnectionFactory initial size 20
    <2008-01-29 09:26:05,053> <DEBUG> <default.collaxa.cube.services> <oracle.bpel.services.notification.queue.QueueConnectionPool::QueueConnectionPool> Fetched a queue connection from pool java:comp/env/jms/Queue/NotificationSenderQueueConnectionFactory, available connections=19
    <2008-01-29 09:26:05,053> <DEBUG> <default.collaxa.cube.services> <oracle.bpel.services.notification.queue.sender.Publisher::init> Start of send(type,caller,message) type = email caller = BPEL
    <2008-01-29 09:26:05,053> <DEBUG> <default.collaxa.cube.services> <oracle.bpel.services.notification.queue.sender.Publisher::init> Notification ID 50d528357d42a957:-4d67d6df:117c49fc103:-7fcf
    <2008-01-29 09:26:05,053> <DEBUG> <default.collaxa.cube.services> <oracle.bpel.services.notification.queue.sender.Publisher::init> Start Persisting notification in database
    <2008-01-29 09:26:05,100> <DEBUG> <default.collaxa.cube.services> <oracle.bpel.services.notification.queue.sender.Publisher::init> End Persisting notification in database
    <2008-01-29 09:26:05,100> <DEBUG> <default.collaxa.cube.services> <oracle.bpel.services.notification.queue.sender.Publisher::init> Start of send(type,caller,message)
    <2008-01-29 09:26:05,100> <DEBUG> <default.collaxa.cube.services> <oracle.bpel.services.notification.queue.QueueConnectionPool::QueueConnectionPool> Released queue connection to pool java:comp/env/jms/Queue/NotificationSenderQueueConnectionFactory, available connections=20
    Thanks for your answers,
    Laura

  • Hi I have a problem with my licence number for Lightroom

    Hi I have a problem with my licence number for Lightroom, has been forced to re-install lightroom again but, have downloaded a trial version of adobe but now works license number are not, there are some who can help me with what is going wrong. Thanks Henrik

    Download Lightroom 5 from Product updates and install, use your serial number

Maybe you are looking for

  • How do I remove an old file from the Finder Favorites list?

    Good Afternoon. I have a shiney new MBPro with 10.7.1. On my old machine running Snow Leopard, I had two .xls files I used often that I had dragged to the left side into the favorites. The truth is, I hadn't used them in months, but hadn't bothered t

  • Robohelp HTML 8 - Generating files with apostrophe in file name

    Before I start, I have read this thread http://forums.adobe.com/message/1062904#1062904 and several others, yet I still have questions. Previously I used Robohelp 5x, which worked perfectly.  Our user manuals are in MS Word and each have several topi

  • A movie file with Alpha channel works in Color??

    I have files exported from Motion which contain Alpha channel. What I like to do is to correct color of the files in Color 1.5. When I import them into a sequence with two tracks in FCP, it appears correctly with the alpha channel. But once I send it

  • Ipad 16-3G connection to Internet only via 3G. Wi-Fi?

    Dear All, IPad1 (16 - 3G): Safari can be connected to the Internet only via 3G network. There is no chance to connect to Internet via Wi-Fi. Extremely inconvenientю thank you for your answer!

  • How long does restore take thru iTunes?

    Has anybody done a restore and how long did it take ?. I am restoring my iPhone due to constant Safari crashes and was curious as mine has been in the restore mode for almost half hour. I have the Apple logo on the screen and the little spinning segm