2013-07-01 10 views
5

मैं weblogic 10.3.6.0 और maven 3 का उपयोग कर रहा हूं। मैं अपने प्रोजेक्ट को वेबलॉग सर्वर पर मैवेन प्लगइन के साथ तैनात करना चाहता हूं। मैं this oracle documentsवेबलॉगिक मेवेन तैनात

में एक ही चरण लेकिन जब मैं अपने प्रोजेक्ट का निर्माण, मैं इस त्रुटि

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 

मेरे पोम एक्सएमएल यहाँ

<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> 

मैं उपयोग weblogic server 10.3.6.0, eclipse juno, maven 3.0.4 है मिलता है।

+0

तो यह उपयोगी हो सकता है, सभी चरणों में अच्छी तरह से समझाया गया है। http://buttso.blogspot.com/2011/02/using-weblogic-prefix-with-weblogic.html – user75ponic

+0

या यह: http://stackoverflow.com/questions/13668784/failed-to-load-class-slf4g -staticloggerbinder इस सवाल को कई बार पूछा गया है –

+0

@better_use_mkstemp मेरी समस्या SL4J के बारे में नहीं है। यह वेबलॉगिक सर्वर पर तैनाती के बारे में है। – Zapateus

उत्तर

0

ऐसा लगता है कि JBoss, Weblogic नहीं अपने लॉग के आधार पर उपयोग कर रहे हैं:

Building JBoss Portlet Bridge 
4

आप आयात wlfullclient.jar और webservices.jar की जरूरत है। मैंने पहले weblogic.jar आयात करने की कोशिश की, लेकिन मेवेन ClassCastExceptionweblogic.utils.Debug द्वारा फेंक दिया। इस क्लाइंट को बनाने के लिए आपको WL_HOME/server/lib के अंदर निष्पादन की आवश्यकता है।

एक बार जब आप इसके साथ तैयार कर रहे हैं, Maven भंडार में आयात निम्न कमांड exceuting:

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 
संबंधित मुद्दे