Hi, Scott!

Plugin works perfectly if and only if I comment dependencies to weblogic and
webservices in the plugin pom file, and after that in mvn.bat I set value
for CLASSPATH:
%MAVEN_JAVA_EXE% %MAVEN_OPTS% -classpath
"%CLASSWORLDS_JAR%;C:\bin\bea\weblogic92\server\lib\weblogic.jar" ...

:-/

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 = soa, password = 12345678, artifactPath =
C:\Projects\test.prj\SOA\userserver\target/SOA-User-App, projectPackaging =
ear, name = userserver, targetNames = AdminServer, remote = true]
weblogic.Deployer invoked with options:  -adminurl
http://127.0.0.1:7001-username soa -name userserver -targets
AdminServer -upload -source
C:\Projects\test.prj\SOA\userserver\target/SOA-User-App.ear -deploy
<19.02.2007 12:50:39 NOVT> <Info> <J2EE Deployment SPI> <BEA-260121>
<Initiating deploy operation for application, userserver [archive:
C:\Projects\test.prj\SOA\userserver\target\SOA-User-App.ear], to AdminServer
.>
Task 5 initiated: [Deployer:149026]deploy application userserver on
AdminServer.
Task 5 completed: [Deployer:149026]deploy application userserver on
AdminServer.
Target state: deploy completed on Server AdminServer


2007/2/16, Ryan, Scott D <[EMAIL PROTECTED]>:

 Try using the t3 protocol and see what happens.   You have all the flags
set to indicate this is a remote server however the url seems to indicate a
localhost?  upload and remote should not be set or at least set to false if
this is a local deploy.  I will try to recreate with your settings cause I
cannot duplicate it with the defaults.


Scott D. Ryan
Senior Java Developer/Architect
Aurora Loan Services
10350 Park Meadows Drive
Littleton, Co. 80124
Office: (720) 945-5328
Cell:    (303) 263-3044
[EMAIL PROTECTED]


 ------------------------------
*From:* Bokhan Eugene [mailto:[EMAIL PROTECTED]
*Sent:* Wednesday, February 14, 2007 10:00 PM
*To:* [email protected]
*Subject:* [mojo-user] Problem with weblogic-maven-plugin: no protocol:
end

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.
- - - - - - - - - - - - - - - - - - - - - - - - - - This message is
intended only for the personal and confidential use of the designated
recipient(s) named. If you are not the intended recipient of this message,
you are hereby notified that any review, dissemination, distribution or
copying of this message is strictly prohibited. This communication is for
information purposes only and should not be regarded as an offer to sell or
as a solicitation of an offer to buy any financial product, an official
confirmation of any transaction, or as an official statement of Aurora Loan
Services. Email transmission cannot be guaranteed to be secure or
error-free. Therefore, we do not represent that this information is complete
or accurate and it should not be relied upon as such. All information is
subject to change without notice.

Reply via email to