deployment of war on weblogic 10.3.4 files

I have a weblogic 10.3.4 field and a war (smap.war) file. Can I deploy the war file using the weblogic console (10.3.4).
However, I can't the ant (wldeploy 11.1.1.4) to deploy the war file. It shows error as follows.
This file area and weblogic of war is in the same machine.

------------------error---------------------------

[wldeploy] Task 27 failed: [Deployer: 149026] deploy the application smap.war on AdminServer.

[wldeploy] Target State: deployment has failed on the AdminServer Server

[wldeploy] weblogic.descriptor.DescriptorException: VALIDATION of the PROBLEMS have BEEN FOUND

[wldeploy] problem: cvc-complex - type. 2.4: expected for element 'servlet-name @http://java.sun.com/xml/ns/javaee' instead of 'description @http://www.w3.org/2001/XMLSchema-instance' here @http://java.sun.com/xml/ns/javaee servlet element: < null >

[wldeploy] problem: cvc-complex - type. 2.4: expected for element 'servlet-name @http://java.sun.com/xml/ns/javaee' instead of 'display-name @http://www.w3.org/2001/XMLSchema-instance' here @http://java.sun.com/xml/ns/javaee servlet element: < null >
[wldeploy] to weblogic.descriptor.internal.MarshallerFactory$ 1.evaluateResults(MarshallerFactory.java:245)
[wldeploy] to weblogic.descriptor.internal.MarshallerFactory$ 1.evaluateResults(MarshallerFactory.java:231)

---------------------------build.xml------------------------
<? XML version = "1.0" encoding = "UTF-8"? >
<! - ant buildfile generated by Oracle JDeveloper - >
<!-generated on March 11, 2011 15:52:31 >

< by default of the = "init" project >
< target name = "init" >
< tstamp / >
< / target >

< name = "wls.username property" value = "weblogic" / > "
< name = "wls.password property" value = "welcome1" / > "
< name = "wls.hostname property" value = "localhost" / > "
< name = "wls.port property" value = "7001" / > "
< name = "admin.server.name property" value = "AdminServer" / > "
< name = "deploy.target property" value = "AdminServer" / > "
<!-here, you can specify either NOMCLUSTER, IndividualServerName as 'ManagedOne' or list of Managed/AdminServer separated by commas-->
"< name ="deploy.name property"value =" smap.war "/ >
< name = "deploy.source property" value = "E:\SVN_Root\smap_Build" / > "


< taskdef name = "wldeploy" classname = "weblogic.ant.taskdefs.management.WLDeploy" >
< classpath >
< pathelement location="D:\Oracle\Middleware\wlserver_10.3\server\lib\weblogic.jar"/ >
< / classpath >
< / taskdef >

< target name = "szmap" depends = "init" >
".. destfile="${deploy.source}\smap.war of war.
webxml="${deploy.source}\smap\WebContent\WEB-INF\web. XML">
< dir="${deploy.source}\smap\WebContent"/ fileset >
< dir="${deploy.source}\smap\build\classes"/ classes >
< / war >
< / target >

< target name = "deployX" depends = "init" >
< echo message = "deploy.source=${deploy.source}"/ 27 > "
< echo message = "deploy.name=${deploy.name}"/ 28 > "
< wldeploy action = "deploy".
Name = "${deploy." Name} '.
source = "${deploy." Source}-${deploy. Name} '.
User = "${WLS." UserName} ".
nostage = 'true '.
Password = "${WLS." Password}.
verbose = "true".
adminurl = "T3: / / ${WLS." "HostName}: ${WLS.port} ' targets =" ${deploy.target} ""

Debug = 'true '.
/ >
< / target >

<! - transfer Applications - >
< a name = target "redeploy" >
< wldeploy action = "redeploy".
Name = "${deploy." Name} '.
User = "${WLS." UserName} ".
nostage = 'true '.
Password = "${WLS." Password}.
verbose = "true".
adminurl = "T3: / / ${WLS." "HostName}: ${WLS.port} ' targets =" ${deploy.target} "/ >"
< / target >

<! - Uneploying Applications - >
< target name = "undeployX" >
< wldeploy action = "cancel the deployment.
name = "szmap".
FailOnError = "false".
User = "${WLS." UserName} ".
Password = "${WLS." Password}.
verbose = "true".
adminurl = "T3: / / ${WLS." "HostName}: ${WLS.port} ' targets =" ${deploy.target} "/ >"
< / target >

< target name = "all" depends = "init, deployX" / >

< / project >

You can package wsdl4j - 1.6.2.jar in your WAR file and place it in the WEB-INF/lib directory.

Using the deployment substitute weblogic.xml (that you already have - prefer-web-inf-classes) you can ensure
the jar in the WEB-INF/lib drectory gets preference over the classes loaded into the classpath system (WebLogic classpath).

This entry is already in your weblogic.xml file


   true

When you compress your additional jar files in the WEB-INF/lib directory you can leave out the referees of the library.

When you want to use shared libraries, you must wrap the pots in a WAR file, for example with the following structure:

META-INF
    MANIFEST.MF
WEB-INF
    lib
        wsdl4j-1.6.2.jar
    web.xml

The contents of the MANIFEST. MF might be something like:

Manifest-Version: 1.0
Created-By: 1.6.0_05 (BEA Systems, Inc.)
Extension-Name: wsdl4j
Specification-Title: WSDL Library
Specification-Version: 1.6
Specification-Vendor: Middleware Magic
Implementation-Title: WSDL Library
Implementation-Version: 1.6.2
Implementation-Vendor: Middleware Magic

When you use this shared library, you can use weblogic.xml in your file. WAR to designate it, for example.


    wsdl4j
    1.6
    1.6.2
    true

You can also create new WAR file that contains another version of wsdl4j and you specify this version in the MANIFEST. MF file
and refer to it using weblogic.xml.

Tags: Fusion Middleware

Similar Questions

  • How to deploy oasa.war in Weblogic 10.3

    How to deploy oasa.war in Weblogic 10.3?

    Thank you

    I believe that this should just be good deploy the war file. Try it and let me know.

    Published by: rajsunny on July 17, 2009 12:14

  • Newbie - how to check the deployment descriptor in the Weblogic console?

    Hello
    I deploy an application developed with JDEV 11 g, deployed to the file. WAR in JDEV, deploy the WAR file to the weblogic.
    When I test it in the weblogic console, I deployed it and active, I'm going to test and the test Point of the URL is in the form

    http://10.10.74.20:7003 / simple_jsp-Project1-context-root /.

    that gives me, I get a 404 error.

    Where can I check the deployment descriptor in the console of all the other things I need to check?

    Thank you

    Anatoliy

    Hello

    AFTER WLS8.1 version AdminConsole does not provide the functionality to display the deployment descriptors in XML format inside the console...

    In your * "WEB-INF/web.xml" * file please add the following line: in the below please enter your own file name


    index.jsp

    To change the root of context in WEB-INF/weblogic.xml next entry is necessary:



    YourContextRoot

    .
    .
    .
    Thank you
    Jay SenSharma
    http://jaysensharma.WordPress.com (WebLogic wonders are here)

  • Impossible to deploy the Jdeveloper to Weblogic application!

    [14: 36:19] WebLogic Server Exception: weblogic.deploy.api.internal.utils.DeployerHelperException: the source "c:\temp\webapp1.war" for the "webapp1" application could not be loaded on the server ' http://172.16.9.43:80/bea_wls_deployment_internal/DeploymentService.
    Server returned HTTP response code: 407 for URL: http://172.16.9.43:80/bea_wls_deployment_internal/DeploymentService

    Why jdeveloper try find file. WAR in c:\temp when in the deployment profile properties WAR - "C:\jtest\mywork\Application1\Project1\deploy\webapp1.war" file
    I find the wl_comp1472137365997981357.jar file that contains app\webapp1.war in c:\temp

    I have a problem after reinstalling JDeveloper and Weblogic.
    How to solve this problem?

    What version of JDeveloper and WLS?
    How you try to deploy (from the WLS console, JDeveloper, etc.)?
    You have a proxy between you and the WLS Server? (HTTP 407 means that the proxy server login)

    John

  • Deploy the war web-determinations in JBoss

    Hi all

    I need help to deploy the .war in JBoss Application Serverfile, when the file is deployed to the server of the class PluginRegistry not properly load the plugins directory. The problem is the class PluginRegistry compare when the Protocol of the URL of the directory with "* file * ', in the jboss server, this Protocol is" * vfsfile. "

    Any solution for this case of jboss?

    Thanks and greetings

    We offer two methods of recording plugin; the auto-discovery method (which is not compatible with some servers/application deployment methods) and the method of manual registration. See http://docs.oracle.com/html/E29403_01/Content/Extensions/Extensions_PLID.htm.

    Edited to insert a direct link by: Kristy Van Der Vlist on May 29, 2012 17:45

  • Deploy a war in the Oracle application server

    Hello

    We have a few Oracle discoverer running on the oracle application server and I would like to deploy a war to the service file.
    Can someone tell me if its possible to do?
    Should I just drop the war in the deployment of the server folder?

    Thank you
    KK

    Wrong forum.

    Move the thread (close and re-post) to each of discoverer
    or somewhere in http://forums.oracle.com/forums/category.jspa?categoryID=193 (probably Oracle ACE - general forum).

  • How to deploy the WAR Weblogic

    need help please

    How to deploy WAR Weblogic server 11 GR 1 material

    Thanks for your help

    This would help you
    http://www.sagecomputing.com.au/papers_presentations/JDEV11g-WebLogic10.3.PDF

  • Default data adapter error when you deploy a file. War in weblogic

    Hi all

    Newbie here with a few questions regarding the deployment of the OPA 10.1. Really hoping you guys can help...

    (1) I try to deploy a web file - determinations.war unexploded on WebLogic. Thanks to this forum, I have the book "modules folder not found" etc. However, I am now faced with a problem that I can't find any info on. Please see below.

    3672074 [ExecuteThread [ASSET]: '1' for the queue: "(self-adjusting) weblogic.kernel.Default"] WARN com.or
    acle.determinations.web.platform.controller.actions.StartSessionAction - couldn't instansate dfau
    lt data adapter
    java.lang.NullPointerException
    in java.io.File. < init > (File.java:194)
    to com.oracle.determinations.web.platform.plugins.data.XDSDataAdaptor. < init >(XDSDataAdaptor.)
    Java: 55).
    at com.oracle.determinations.web.platform.controller.actions.StartSessionAction.createInterv
    iewSession(StartSessionAction.java:173)
    to com.oracle.determinations.web.platform.controller.actions.StartSessionAction.getResource)
    StartSessionAction.java:66)
    at com.oracle.determinations.web.platform.servlet.WebDeterminationsServlet.doGet (WebDetermin
    ationsServlet.java:67)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
    to weblogic.servlet.internal.StubSecurityHelper$ ServletServiceAction.run (StubSecurityHelper.
    Java: 226)
    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:124)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283)
    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
    at com.oracle.determinations.web.platform.util.CharsetFilter.doFilter(CharsetFilter.java:46)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
    to weblogic.servlet.internal.WebAppServletContext$ ServletInvocationAction.run (WebAppServletC
    ontext. Java:3393)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs (unknown Source)
    at weblogic.servlet.internal.WebAppServletContext.securedExecute (WebAppServletContext.java:2
    140)
    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2046)
    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1366)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:200)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:172)

    I have the following entry in the application.properties file too...
    # XDS data adapter default file path
    #xds.file.path = data

    From that we see that we believe that the code becomes a null pointer because of the following method to the WebDeterminationsServletContext class.

    public String resolveFullPath (String path)
    {
    File f = new File (path);
    return f.isAbsolute ()? f.getAbsolutePath (): this.servletContext.getRealPath (path);
    }


    We believe that the getRealPath (path), highlighted in red, returns null. Any ideas how we can solve this problem?

    (2) the second issue that I am facing is in the ownership of plugins.libraries in the application.properties file. I have the input as

    plugin. Libraries = DataAdaptor.DA;

    which should point to our custom data adapter. However, I get the following error.

    4242994 [ExecuteThread [ASSET]: '2' for the queue: "(self-adjusting) weblogic.kernel.Default"] WARN com.or
    acle.determinations.web.platform.servlet.WebDeterminationsServletContext - cannot find the class: data
    Adaptor.DA
    4243025 [ExecuteThread [ASSET]: '2' for the queue: "(self-adjusting) weblogic.kernel.Default"] WARN com.or
    acle.determinations.interview.engine.local.LocalInterviewEngine - cannot find the class: DataAdaptor.D
    A

    (3) also, does anyone know if it is possible to deploy a web file - determinations.war that contains additional internal application code? What we are trying to do, is provide a single war file that holds not only the code for the determination of the web, but also all the application code that encapsulates the OWD it contains. Right now it just doesn't work. I'm not sure what the conflict is exactly. The only way I seem to be able to get this work is by deploying the code into two separate files of war.

    On these questions, any help would be appreciated stored.

    Thank you
    Taj

    (2) is caused because your data adapter plugin is not installed correctly. The container that contains your plugin should go to the WEB-INF/lib directory, and you must specify the full qualified class name in the plugin.libraries of the application.properties file property.

    If you have not provided a custom data adapter, Web determinations will configure and tie one by default to use instead, which is the base file. If you perform the WebLogic deployment as a war of unxeploded, you must configure the directory default data directory that the plugin will be used by specifying an absolute path that your determinations Web instance has read/write permissions for in the application.properties file xds.file.path property. In your case (1) is mainly caused by (2) because if your data adapter has been loaded correctly by default you do not at all over.

    With regard to the (3) Yes it is probably possible, provided that you do not have library conflicts. How it's done really depends on what are these additional customizations.

  • Deployment of Jenkins on Weblogic 12.1.3.0.5

    Hello

    We try to deploy version 1.644 on Weblogic 12.1.3.0.5 jenkins. I followed the guide on their Web site

    https://wiki.Jenkins-CI.org/display/Jenkins/WebLogic

    Basically, I created a weblogic.xml file in the WEB - INF as below

    <? XML version = "1.0" encoding = "UTF-8"? >

    " < weblogic-web-app xmlns =" http://xmlns.Oracle.com/WebLogic/WebLogic-Web-app "> "

    Jenkins < context root > < / root context >

    <>container-descriptor

    < prefer-web-inf-classes > true < / prefer-web-inf-classes >

    < / container-descriptor >

    < / weblogic-web-app >

    I used the jar cvf and created a war file and deployed on weblogic. The application started without any error.

    However, I'm getting a 403 Forbidden.

    I can't tell what I'm doing wrong. Is there more that needs to be done for an application that run on tomcat to run on weblogic? Is there a newspaper jenkins? or I can create a?

    Please let me know. Thank you!

    Thanks for sharing the exact command that indicates where exactly is the problem.

    Please proceed as follows (first move the edited directory "jenkins" and then run the following command):

    cd jenkins
    jar cvfM jenkins.war  META-INF/MANIFEST.MF *
    

    Just in case if you find that the META-INF/MANIFEST. MF file is not correctly updated inside the WAR update, then please re run the following command:

    jar -uf jenkins.war META-INF/MANIFEST.MF
    

    Or better to run especially 3 orders and then. Then deploy the 'jenkins.war' on your WLS instance that is generated within your current directory.

    Concerning

    Jay SenSharma

  • Deployment of OPA on Weblogic 10.3

    Hi all

    We were already on OPA 10.1 and Weblogic have 10.3.5

    We went to OPA 10.3 and now when we try to deploy bases of the rule on weblogic box - we get a deployment has failed
    An error occurred during activation of changes, please see log for details....
    SOAPSERVICE failed to preload on start-up in Web application: "determination-kash.war", java.lang.RuntimeException: Error trying to load rule bases from Resource URL"
    ..
    ..
    ..
    (last line)
    Caught exception class Java.xml.stream.XMLStreamException: Unexpected Text
     {code}
    
    the screen shot can be found here: http://tinypic.com/r/28arlma/5
    
    Hope that made sense
    
    Thanks                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                

    Hello

    We have seen this problem before and our workaround is to include a file called weblogic.xml in the WEB - INF directory of the webapp with the following parameter:

    
        true
    
    

    By default, this file should already be in the web - determinations.war we provide.

    Could you please make sure that your determination - kash.war archive contains WEB-INF/weblogic.xml with the entry above? If so and the problem persists, please let us know.

    Thank you

    Linda

  • Deploy several WAR, a context root

    I have two web services built in two applications of WAR (1WAR-1WS). If I deploy the first WAR, the service is available at url: http://application-tier server: port/CONTEXTROOT/WSNAME1. The I would like to deploy WS second on the same root context (http / / server: port/CONTEXTROOT/WSNAME2). If I try, after the deployment of the second WAR on OC4J, one are no longer available. I thing it's due to having the same root context for web applications. Is it possible I'm able to deploy two web services from wars with the same context root? I would like to avoid having two web services in a WAR. Thanks for the reply.

    Martin

    Hi Martin,

    Complies with the J2EE standard, each Web Application must have a Unique root of context (Context path) container providers provide implementation of this specification.

    So we cannot assign same context-root to 2 or more different Applications. But we can change the root of context to an existing Application without having to physically edit the deployment descriptors using the feature * "plan.xml" * of WebLogic.

    http://WebLogic-wonders.com/WebLogic/2010/03/24/changing-context-root-of-an-ear-app-using-plan-XML/ (for Enterprise Applications)
    And
    http://blogs.Oracle.com/jamesbayer/2009/07/ (WEB applications)

    Any J2EE container do not two applications different have the same root context.

    It is always possible that you have two Web services with the Same Context-Root with Different "Service-Uri" if they are packaged within a single WAR.

    .
    .
    Thank you
    Jay SenSharma

  • Error while deploying an EAR on Weblogic 11 g (10.3.4) file

    Hi guys,.
    I'm deploying an EAR file to 10.3.4 Weblogic application server. My project uses some session Bean full State. Once the deployment is done and when I try to run the application (the Application name select-> Start). It throws below error. Can anyone help me what is this error and how to fix this?

    Run it as a main security, 'system', chosen for the EJB ' TestApplication (Application: TestApplication, EJBComponent: TestMessagingServices.jar)' is not a valid user principal in the current security field. Please specify a valid main user of the EJB to use.


    Thank you very much.

    Priya

    You must create a user called system in your areas of security.

    This can be done in wls users of the console security realms

  • Ask how we can deploy on the integerated weblogic Server

    Hello

    How many applications we can deploy to server weblogic one very small applications containing 5-6 jspx page

    The integrated wls is only for the test. It was not set up to host multiple applications. However, you can install an application and then one more on this if your memory allows for this.

    You must run multiple applications on a single WebLogic Server stand which is better suited for this.

    Timo

  • not able to deploy ADF app in weblogic

    Hi all

    I use 11.1.1.5. When I'm deploying adf app, I get this error.

    An error occurred during activation of the changes, please see the log for more details. [J2EE:160149] Error processing library reference.

    References application library, defined in weblogic pending - application.xml: [Extension name: adf.oracle.domain, exact match: fake... etc.]

    I don't know what went wrong. can anyone suggest

    did the same thing in library so the more...

    -jstl (1.2,1.2.0.1)
    -jsf (1.2,1.2.9.0)

  • App Deployment on stand-alone Weblogic Server

    Hello

    I deployed a simple application for the stand-alone Weblogic Server:

    1 Middleware and Weblogic installed from jdevstudio11116install.bin
    2. created domain, global created DB connection
    3 application deployed successfully via a direct connection of JDeveloper, JDBC configuration for deployment contains the same JNDI name as global connection DB in WL

    Start page contains a commandImageLinks that navigate to other pages

    Questions:
    1. when I click on the image or the link representative commandImageLink on the Start Page, nothing happens - new view is not loaded and browser keeps to display the Start Page
    2. when I insert a page that has been granted access DB, WL displays error "ORA01005: password to null, connection refused '"crash"

    I missed a few imortant step?

    Thanks for the support,

    Daniel

    http://www.coderanch.com/t/456284/Linux-UNIX/Java-lang-noClassDefFoundError-could-not

    John

Maybe you are looking for