Hi, Scott.
Thanks for help!
We are using WebLogic 9.2, not MP1.
I have tried different variants and have gathered some information:
configurations, tests, enviroment... I hope that it help.
===========================================================
1/ upload = false, remote = false, protocol = http
********************************************************
<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>soauser</userId>
<password>12345678</password>
<upload>false</upload>
<remote>false</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 = soauser, password = 12345678, artifactPath
= C:\Projects\test.prj\SOA\userserver\target/SOA-User-App, projectPackaging
= ear, name = server, targetNames = AdminServer, remote = false]
weblogic.Deployer invoked with options: -adminurl
http://127.0.0.1:7001-username soauser -name server -targets
AdminServer -source
C:\Projects\test.prj\SOA\userserver\target/SOA-User-App.ear -deploy
<16.02.2007 11:31:30 NOVT> <Info> <J2EE Deployment SPI> <BEA-260121>
<Initiating deploy operation for application, server [archive:
C:\Projects\test.prj\SOA\userserver\target\SOA-User-App.ear], to AdminServer
.>
no protocol: and
2/ upload = false, remote = false, default protocol = t3
********************************************************
<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>soauser</userId>
<password>12345678</password>
<upload>false</upload>
<remote>false</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 = t3,
adminServerPort = 7001, userId = soauser, password = 12345678, artifactPath
= C:\Projects\test.prj\SOA\userserver\target/SOA-User-App, projectPackaging
= ear, name = server, targetNames = AdminServer, remote = false]
weblogic.Deployer invoked with options: -adminurl t3://127.0.0.1:7001
-username soauser -name server -targets AdminServer -source
C:\Projects\test.prj\SOA\userserver\target/SOA-User-App.ear -deploy
<16.02.2007 11:34:01 NOVT> <Info> <J2EE Deployment SPI> <BEA-260121>
<Initiating deploy operation for application, server [archive:
C:\Projects\test.prj\SOA\userserver\target\SOA-User-App.ear], to AdminServer
.>
no protocol: and
3/ upload = true, remote = true, protocol = http
********************************************************
<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>soauser</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 = soauser, password = 12345678, artifactPath
= C:\Projects\test.prj\SOA\userserver\target/SOA-User-App, projectPackaging
= ear, name = server, targetNames = AdminServer, remote = true]
weblogic.Deployer invoked with options: -adminurl
http://127.0.0.1:7001-username soauser -name server -targets
AdminServer -upload -source
C:\Projects\test.prj\SOA\userserver\target/SOA-User-App.ear -deploy
<16.02.2007 11:34:47 NOVT> <Info> <J2EE Deployment SPI> <BEA-260121>
<Initiating deploy operation for application, server [archive:
C:\Projects\test.prj\SOA\userserver\target\SOA-User-App.ear], to AdminServer
.>
no protocol: and
4/ upload = true, remote = false, default protocol = t3
********************************************************
<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>soauser</userId>
<password>12345678</password>
<upload>true</upload>
<remote>false</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 = t3,
adminServerPort = 7001, userId = soauser, password = 12345678, artifactPath
= C:\Projects\test.prj\SOA\userserver\target/SOA-User-App, projectPackaging
= ear, name = server, targetNames = AdminServer, remote = false]
weblogic.Deployer invoked with options: -adminurl t3://127.0.0.1:7001
-username soauser -name server -targets AdminServer -source
C:\Projects\test.prj\SOA\userserver\target/SOA-User-App.ear -deploy
<16.02.2007 11:36:27 NOVT> <Info> <J2EE Deployment SPI> <BEA-260121>
<Initiating deploy operation for application, server [archive:
C:\Projects\test.prj\SOA\userserver\target\SOA-User-App.ear], to AdminServer
.>
no protocol: and
Enviroment
********************************************************
set
ALLUSERSPROFILE=C:\Documents and Settings\All Users
ANT_HOME=C:\bin\ant-1.6.2
APPDATA=C:\Documents and Settings\bokhan\Application Data
APR_ICONV_PATH=C:\Program Files\Subversion\iconv
CLIENTNAME=Console
CommonProgramFiles=C:\Program Files\Common Files
COMPUTERNAME=BOKHAN
ComSpec=C:\WINDOWS\system32\cmd.exe
FARLANG=Russian
FP_NO_HOST_CHECK=NO
HOME=%HOMEDRIVE%%HOMEPATH%
HOMEDRIVE=C:
HOMEPATH=\Documents and Settings\bokhan
JAVA_HOME=C:\bin\jdk1.5.0_08
LOGONSERVER=\\ADS
NUMBER_OF_PROCESSORS=2
NUTSUFFIX=1
NUT_SUFFIXED_SEARCHING=1
OS=Windows_NT
Path=C:\bin\jdk1.5.0_08\bin;C:\Oracle\product\10.1.0\Client_1\bin;C:\Oracle\product\10.1.0\Client_1\jre\1.4.2\bin\client;C:\Oracle\product\10.1.0\Client_1\jre\1.4.2\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program
Files\Intel\DMIX;C:\Program Files\cvsnt;C:\Program
Files\Subversion\bin;C:\Program Files\Common Files\Adobe\AGL;C:\Program
Files\Rational\common;C:\bin\unixtools\usr\local\wbin;C:\ARC;C:\ARC\bat;C:\ARC\bat\aliases;C:\Program
Files\Autospell60\common
files;C:\bin\ant-1.6.2\bin;C:\bin\maven-2.0.4\bin;C:\Program
Files\Araxis\Araxis Merge v6.5
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
PROCESSOR_ARCHITECTURE=x86
PROCESSOR_IDENTIFIER=x86 Family 15 Model 4 Stepping 7, GenuineIntel
PROCESSOR_LEVEL=15
PROCESSOR_REVISION=0407
ProgramFiles=C:\Program Files
PROMPT=$P$G
RATL_RTHOME=C:\Program Files\Rational\Rational Test
SESSIONNAME=Console
SystemDrive=C:
SystemRoot=C:\WINDOWS
TEMP=C:\DOCUME~1\bokhan\LOCALS~1\Temp
TMP=C:\DOCUME~1\bokhan\LOCALS~1\Temp
TMPDIR=C:\DOCUME~1\bokhan\LOCALS~1\Temp
USERDNSDOMAIN=BCS-IT.LOC
USERDOMAIN=BCS-IT
USERNAME=bokhan
USERPROFILE=C:\Documents and Settings\bokhan
windir=C:\WINDOWS
weblogic-maven-plugin dir
********************************************************
C:\...g\codehaus\mojo\weblogic-maven-plugin\2.9.0-SNAPSHOT>dir
Volume in drive C has no label.
Volume Serial Number is E8B3-4788
Directory of C:\Documents and
Settings\bokhan\.m2\repository\org\codehaus\mojo\weblogic-maven-plugin\2.9.0-SNAPSHOT
16.02.2007 11:28 <DIR> .
16.02.2007 11:28 <DIR> ..
16.02.2007 11:36 407 maven-metadata-Codehaus Snapshots.xml
16.02.2007 11:28 40 maven-metadata-Codehaus
Snapshots.xml.sha1
16.02.2007 11:36 184 maven-metadata-test.bcs-it.loc.xml
16.02.2007 11:28 19 344
weblogic-maven-plugin-2.9.0-20070211.224419-10.jar
16.02.2007 11:28 40
weblogic-maven-plugin-2.9.0-20070211.224419-10.jar.sha1
16.02.2007 11:28 2 866
weblogic-maven-plugin-2.9.0-20070211.224419-10.pom
16.02.2007 11:28 40
weblogic-maven-plugin-2.9.0-20070211.224419-10.pom.sha1
16.02.2007 11:28 19 344 weblogic-maven-plugin-2.9.0-SNAPSHOT.jar
16.02.2007 11:28 2 866 weblogic-maven-plugin-2.9.0-SNAPSHOT.pom
9 File(s) 45 131 bytes
2 Dir(s) 53 960 269 824 bytes free
C:\bin\bea\registry.xml
********************************************************
<?xml version="1.0" encoding="UTF-8"?>
<bea-product-information>
<host home="C:\BIN\bea" name="bokhan">
<product format="1.0" name="WebLogic Platform">
<release level="9.2"
ServicePackLevel="0" PatchLevel="0"
Status="installed" BeaProgramGroup="BEA Products"
StartMenu="C:\Documents and Settings\bokhan\Start Menu\Programs"
InstallTime="25.01.2007 11:36:21"
InstallDir="C:\BIN\bea\weblogic92"
JavaHome="C:\BIN\bea\jrockit90_150_04" JavaVersion="1.5.0_04"
JavaVendor="BEA">
<component name="WebLogic Server" version="9.2.0.0">
<component name="Server"/>
<component name="Server Examples"/>
</component>
</release>
</product>
<java-installation Name="jdk150_04" JavaHome="C:\BIN\bea\jdk150_04"
JavaVersion="1.5.0_04" JavaVendor="Sun" Architecture="32" Platform="win">
<dependent-product Name="WebLogic Platform" Version="9.2.0.0"/>
</java-installation>
<java-installation Name="jrockit90_150_04"
JavaHome="C:\BIN\bea\jrockit90_150_04" JavaVersion="1.5.0_04"
JavaVendor="BEA" Architecture="32" Platform="win">
<dependent-product Name="WebLogic Platform" Version="9.2.0.0"/>
</java-installation>
</host>
</bea-product-information>
My test A.java
********************************************************
import java.io.*;
import java.util.*;
import weblogic.Deployer;
public class A {
public static void main(String[] args){
Deployer.main(new String[]{"-adminurl","http://127.0.0.1:7001
","-username","soauser","-password","12345678","-name","server","-targets","AdminServer","-upload","-source","C:\\Projects\\test.prj\\SOA\\userserver\\target\\SOA-
User-App.ear","-deploy"});
}
}
java -cp .;weblogic-9.2.jar A
weblogic.Deployer invoked with options: -adminurl
http://127.0.0.1:7001-username soauser -name server -targets
AdminServer -upload -source
C:\Projects\test.prj\SOA\userserver\target\SOA-User-App.ear -deploy
<16.02.2007 11:43:25 NOVT> <Info> <J2EE Deployment SPI> <BEA-260121>
<Initiating deploy operation for application, server [archive:
C:\Projects\test.prj\SOA\userserver\target\SOA-User-App.ear], to AdminServer
.>
Task 1 initiated: [Deployer:149026]deploy application server on AdminServer.
Task 1 completed: [Deployer:149026]deploy application server on AdminServer.
Target state: deploy completed on Server AdminServer
===========================================================
May be i should share some more information about the subject? But i have no
any ideas which information can help.
Eugene.
2007/2/15, Scott Ryan <[EMAIL PROTECTED]>:
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.