2013-07-01 14 views
5

Sto usando weblogic 10.3.6.0 e maven 3. Voglio distribuire il mio progetto sul server weblogic con il plugin maven. Faccio stessi passi in this oracle documentsWeblogic Maven Deploy

Ma quando ho costruire il mio progetto, ottengo questo errore

SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder 
SLF4J: Defaulting to no-operation (NOP) logger implementation 
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details 
[INFO] Scanning for projects... 
[INFO]                   
[INFO] ------------------------------------------------------------------------ 
[INFO] Building JBoss Portlet Bridge - JSF 2 Basic Portlet 0.0.1-SNAPSHOT 
[INFO] ------------------------------------------------------------------------ 
[INFO] 
[INFO] --- weblogic-maven-plugin:2.9.5:deploy (default-cli) @ TestWeblogic --- 
[WARNING] The POM for weblogic:weblogic:jar:10.3.6 is missing, no dependency i information available 
[WARNING] The POM for weblogic:webservices:jar:10.3.6 is missing, no dependency information available 
[INFO] ------------------------------------------------------------------------ 
[INFO] BUILD FAILURE 
[INFO] ------------------------------------------------------------------------ 
[INFO] Total time: 1.446s 
[INFO] Finished at: Mon Jul 01 16:50:02 EEST 2013 
[INFO] Final Memory: 7M/111M 
[INFO] ------------------------------------------------------------------------ 
[ERROR] Failed to execute goal org.codehaus.mojo:weblogic-maven-plugin:2.9.5:deploy ( (default-cli) on project TestWeblogic: Execution default-cli of goal org.codehaus.mojo:weblogic-maven-plugin:2.9.5:deploy failed: Plugin org.codehaus.mojo:weblogic-maven-plugin:2.9.5 or one of its dependencies could not be resolved: The following artifacts could not be resolved: weblogic:weblogic:jar:10.3.6, weblogic:webservices:jar:10.3.6: Failure to find weblogic:weblogic:jar:10.3.6 in http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced ->  [Help 1] 
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch 
[ERROR] Re-run Maven using the -X switch to enable full debug logging 
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles: 
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginResolutionException 

mio pom XML è qui

<plugin> 
    <groupId>com.oracle.weblogic</groupId> 
    <artifactId>weblogic-maven-plugin</artifactId> 
    <version>10.3.6.0</version> 
    <configuration> 
     <adminurl>t3://localhost:7001</adminurl> 
     <user>username</user> 
     <password>password</password> 
     <upload>true</upload> 
     <action>deploy</action> 
     <remote>false</remote> 
     <verbose>true</verbose> 
     <source>${project.build.directory}/${project.build.finalName}.${project.packaging}</source> 
    <name>${project.build.finalName}</name> 
    </configuration> 
</plugin> 

Io uso weblogic server 10.3.6.0, eclipse juno, maven 3.0.4.

+0

questo potrebbe essere utile, tutti i passaggi sono spiegati bene. http://buttso.blogspot.com/2011/02/using-weblogic-prefix-with-weblogic.html – user75ponic

+0

Oppure: http://stackoverflow.com/questions/13668784/failed-to-load-class-slf4g -staticloggerbinder Questa stessa domanda è stata posta tante volte –

+0

@better_use_mkstemp il mio problema non riguarda SL4J. Riguarda la distribuzione sul server weblogic. – Zapateus

risposta

0

Sembra che si sta usando JBoss, non Weblogic basa sul vostro log:

Building JBoss Portlet Bridge 
4

È necessario importare wlfullclient.jar e webservices.jar. Ho provato a importare lo weblogic.jar prima, ma ho generato un numero ClassCastException entro il weblogic.utils.Debug. Per creare questo client è necessario eseguire: java -jar wljarbuilder.jar all'interno dello WL_HOME/server/lib.

Una volta pronti con esso, l'importazione in repository Maven exceuting i seguenti comandi:

mvn install:install-file -DgroupId=weblogic -DartifactId=weblogic 
-Dversion=10.3.6 -Dpackaging=jar -Dfile=wlfullclient.jar 


mvn install:install-file -DgroupId=weblogic -DartifactId=webservices -Dversion=10.3.6 -Dpackaging=jar -Dfile=webservices.jar 
Problemi correlati