Are you using 9.2 MP1 or just 9.2? I saw the bug early on in 9.2 MP1 and for other instability reasons I had to roll back to 9.2. We have been using it on 9.2 with much success but I have not gone back to 9.2.1 to see if it still breaks there. Today the code uses the deployer as you noted works fine which is what baffles me as to why it fails. I am in the midst of rewriting the plugin to support the native deployment interface defined by the JSR however it has been so unstable in the Weblogic drops I have used that it is rather a challenge. If you can let me know what exact version you are seeing this on I will try to debug the issue. Like I said I saw the issue for a while but then it went away. I also assume that your JAVA_HOME and java version are 1.5 . I have seen this issue as well when one of those environments is set to java 1.4.

Let me know and I will work with you to solve it.

Scott
On Feb 14, 2007, at 10:00 PM, Bokhan Eugene wrote:

Hello!

I'm trying to use the weblogic-maven-plugin with weblogic92, but I have a problem. The problem is: when
I start "mvn weblogic:deploy" I get the error(?) "no protocol: and".

My configuration:
- bea weblogic 9.2
- maven-2.0.4
- pom.xml:
...
<plugin>
    <groupId>org.codehaus.mojo</groupId>
    <artifactId>weblogic-maven-plugin</artifactId>
    <version>2.9.0-SNAPSHOT</version>
    <configuration>
        <adminServerHostName>127.0.0.1</adminServerHostName>
        <adminServerPort>7001</adminServerPort>
        <adminServerProtocol>http</adminServerProtocol>
        <userId>user</userId>
        <password>12345678</password>
        <upload>true</upload>
        <remote>true</remote>
        <verbose>false</verbose>
        <debug>false</debug>
        <name>server</name>
        <targetNames>AdminServer</targetNames>
    </configuration>
</plugin>
...

>mvn weblogic:deploy

[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'weblogic'.
[INFO] ---------------------------------------------------------------------- ------
[INFO] Building userserver
[INFO]    task-segment: [weblogic:deploy]
[INFO] ---------------------------------------------------------------------- ------
[INFO] [weblogic:deploy]
[INFO] Weblogic Deployment beginning with parameters DeployMojoBase [adminServerHostName = 127.0.0.1, adminServerProtocol = http, adminServerPort = 7001, userId = user, password = 12345678, artifactPath = C:\Projects\<project>\userserver\target/ <projectApp>, projectPackaging = ear, name = server, targetNames = AdminServer, remote = true]weblogic.Deployer invoked with options: -adminurl http://127.0.0.1:7001 -username user -name server - targets AdminServer -upload -source C:\Projects\<project>\userserver \target/<projectApp>.ear -deploy<14.02.2007 11:25:30 NOVT> <Info> <J2EE Deployment SPI> <BEA-260121> <Initiating deploy operation for application, server [archive: C:\Projects\<project>\userserver \target\<projectApp>.ear], to AdminServer .>no protocol: and


At the same time the code below works perfectly:

import weblogic.Deployer;
public class A {
    public static void main(String[] args){
Deployer.main(new String[]{"-adminurl"," http:// 127.0.0.1:7001","-username","user","-password","12345678","- name","server","-targets","AdminServer","-upload","-source","C:\ \Projects\\<project>\\userserver\\target\\<projectApp>.ear","- deploy"});
    }
}

I saw maven plugin sources and plugin do the same.

What I'm doing wrong ?

Thanks in advance!

Eugene.

Reply via email to