Is the java tag in application.xml recognizable.

 

Hi
This was a bug in 7.0 it has been fixed in 7.0 sp1
Ajay
"Vasudha" <[email protected]> wrote in message
news:[email protected]..
>
I am using Weblogic Server 7.0
Vasudha.
"Ajay" <[email protected]> wrote:
Hi what version of the Server are you using?
Ajay
"Vasudha Upadhyaya" <[email protected]> wrote in message
news:[email protected]..
Is the <java> tag in application.xml recognizable.
I have a EAR with a couple of EJB's and a JAR file(Java Client
classes).If
I package
the JAR(Java Client classes) file and specify it as <java> tag in theapplication.xml
the EAR file cannot be deployed.
If I remove the JAR(Java Client classes) from the EAR and the <java>tag
from
the application.xml then the EAR file is deployed(EAR has only EJB's).
Can anyone help me on this.
Thanks,
Vasudha.

Similar Messages

  • Can the "mode" tag in vhost.xml file be edited using getconfig() and setconfig()?

    can the "mode" tag in vhost.xml file be edited using getconfig() and setconfig()?

    You can create client and have following code in it: (But before that Admin Server is running on the machine which you want make edge server programatically)
    var admin_nc = new NetConnection();
    sendCommand.enabled = false;   // where sendCommand is button on stage with "sendCommand" as instance name
    admin_nc.onStatus = function(info) {
    if (info.code == "NetConnection.Connect.Success")
    sendCommand.enabled = true;
    sendBtn.addEventListener("click", callAdminAPI);
    function callAdminAPI() {
    admin_nc.call("setConfig2",new Result1(),"Proxy/Mode","remote","Adaptor:_defaultRoot_/VHost:_defaultVHost_");
    function Result1() {
          this.onResult = function(info) {
    if (info.code == "NetConnection.Call.Success" ) {
    admin_nc.call("startServer",new Result2(),"restart"); // you can might as well use restartVHost
    function Result2(){
    this.onResult = function(info) {
    if (info.code == "NetConnection.Call.Success" ) {
    trace("Server started successfully);
    admin_nc.connect("rtmp://<your Edge Server IP>:1111/admin","admin","admin");  //here admin/admin is userid/password of Admin of server

  • How to append the declaration tags to generated xml using Xquery

    Hi,
      How to append the declaration tags to generated xml using Xquery.generated XML is like
    <ROOT>
      <CHILD1></CHILD1>
      <CHILD2></CHILD2>
    </ROOT>
    Here I want to append the <?xml version="1.0" encoding="ISO-8859-1"?> and the result xml should be
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <ROOT>
      <CHILD1></CHILD1>
      <CHILD2></CHILD2>
    </ROOT>
    Can anybody help to do this.
    Thanks
    Mani

    First assign this element to a temp variable
    <ROOT>
      <CHILD1></CHILD1>
      <CHILD2></CHILD2>
    </ROOT>
    Now in XQuery expression create a new variable
    <?xml version="1.0" encoding="ISO-8859-1"?>
    $temp

  • Help required in building up the Java Bean for an XML data

    Hi ,
    I want to build a Java bean which will actually represent an xml data . The class will be named as User and it will typically represent the data in the follwing xml:
    <user>
    <cwsId>barbete</cwsId>
    <firstName>William</firstName>
    <lastName>Barber</lastName>
    <status>true</status>
    <role>
    <roleCode>1000000177</roleCode>
    <roleName>Customer Administrator</roleName>
    </role>
    <language>en</language>
    <country>US</country>
    <preferences>
    <equipmentGroup>2717</equipmentGroup>
    <dateFormat>MON-dd-yyyy</dateFormat>
    <timeFormat>HH:MI AM</timeFormat>
    <timeZone>-12:00</timeZone>
    <daylightSavings>Y</daylightSavings>
    <location>NC</location>
    <recordsPerPage>10</recordsPerPage>
    <historyPeriod>3</historyPeriod>
    <distanceUnit>MILE</distanceUnit>
    <fuelUnit>G</fuelUnit>
    <unitIdDisplay>E</unitIdDisplay>
    <smuUpdate>W</smuUpdate>
    <countries>
    <country>
    <countryCode>GB</countryCode>
    <countryName>UNITED KINGDOM</countryName>
    </country>
    <country>
    <countryCode>US</countryCode>
    <countryName>UNITED STATES</countryName>
    </country></countries>
    </preferences>
    </user>
    Now for single child nodes like cwsId of the main user node i have kept properties like
    private String cwsId;
    But i am not sure as to how to represent the nodes which contain subnodes like "preferences"node. Any ideas?What is the standard practice?

    One thing you could do is create an object model first, which will contain all the data for your user.
    then all you need in the bean is a Hashtable with the name of the user as a key, and the user-object (which is actually the complete object model) as a value.
    with the XML stated by you, you would get an object model something like this:
    Class User
        String cwsid;
        String firstName;
        ArrayList<Role> roles = new ArrayList<Role>(); //I'm assuming a user can have more then one role.
        ArrayList<Country> countries = new ArrayList<Country>();
    class Role {
        String code;
        String name;
    class Country {
        String code;
        String name;
    }And so on for all the varioous elemets of your XML.

  • Creating the DTD tag in an XML Documento

    I am using the Xalan XLST Transformer to generate XML documents.
    I want to include a DTD tag in each XML file and in my programs I create it using the following code:
    DocumentType dt = documento.getImplementation().createDocumentType(nombreDTD, nombreDTD, nombreArchivo);
    documento.appendChild(dt);
    ..The variable documento is the root element of the document, nombreDTD is the name identifying the root element tag, nombreArchivo is the name of the DTD file I want to reference.
    However when the XML output is generated, the DTD tag is always missing.
    Do anybody have any idea what might be causing this?
    Thanks,
    Color

    XSLT has its own method of putting the DTD information in the XML it creates. Include an xsl:output element in your XSL transformation like this:
    <xsl:output doctype-public="..." doctype-system="..." />

  • Error in deploying the java studio creator application to tomcat

    Hi,
    I'm trying to deploy my Sun Java Studio application to Apache Tomcat 5.0.28.
    A simple JSF web application built using the creator works fine after deploying the war file under tomcat/weapps directory.
    In case of a application with databse connection I'm getting the
    " com.sun.rave.web.ui.appbase.ApplicationException: org.apache.jasper.JasperException: org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC driver of class '' for connect URL 'null' "
    above error. My application connects to Oracle database using the Oracle Server type provided by the Studio Creator.
    I have copied
    jstl.jar
    standard.jar
    to webapps\%app%\WEB-INF\lib
    The below url is currently not available ( Page not Found )stated as a solution in most of the querries regarding the deplyment to tomcat.
    http://developers.sun.com/prodtech/javatools/jscreator/reference/tips/deploy_to_tomcat.html
    Thanks for any help
    abhi

    I had similar problems.
    I used mysql with tomcat and have mysql in my Creator environment as well but still had the driver message you experienced.
    I found that simply copying the WAR file into the webapp directory in tomcat caused a faulty deployment (it was creating /etc/tomcat5/localhost/YourProject.xml as a directory, not as a file)
    I updated my Projects/MyProject/build.xml to include a deploy target and I manually execute the ant deploy step (having not figured out how to tweak the internal ant within Creator)
    Note that this requires two jar files (see comments in the ant definition)
    <project name="YourRoster" default="default" basedir=".">
        <description>Builds, tests, and runs the project YourProject.</description>
        <import file="nbproject/build-impl.xml"/>
       <property file="build.properties"/>
       <property name="appdir" value="."/>
       <property name="distdir" value="${appdir}/dist"/>
       <property name="warfile" value="${distdir}/${app}.war"/>
       <property name="builddir" value="${appdir}/build"/>
       <path id="classpath">
          <pathelement location="${servlet.api.jar}"/>
          <pathelement location="${jsp.api.jar}"/>
          <fileset dir="${builddir}/WEB-INF/lib">
             <include name="*.jar"/>
          </fileset>  
       </path>
       <!-- requires tomcat/server/lib/catalina-ant.jar -->
       <target name="lrp-init">
          <tstamp/>
          <fail unless="app" message="Run ant -Dapp=... or update 'build.properties'"/>
       </target>
       <target name="deploy-tomcat" depends="dist"
          description="Deploy web application.">
          <echo message="Deploying ${app} ..."/>
          <taskdef name="deploy"  
             classname="org.apache.catalina.ant.DeployTask"/>
          <deploy url="${manager.url}" username="${username}"
             password="${password}" path="/${app}"
             war="file:${warfile}"/>
       </target>
       <target name="undeploy-tomcat" depends="lrp-init"
          description="Undeploy web application.">
          <echo message="Undeploying ${app} ..."/>
          <taskdef name="undeploy"   
             classname="org.apache.catalina.ant.UndeployTask"/>
          <undeploy url="${manager.url}" username="${username}"
             password="${password}" path="/${app}"/>
       </target>
       <!-- requires ant-contrib (http://ant-contrib.sourceforge.net) -->
       <target name="try.undeploy-tomcat" depends="lrp-init"
          description="Call the undeploy task (which may fail).">
          <taskdef resource="net/sf/antcontrib/antcontrib.properties"/> 
          <trycatch>
             <try>
                <ant target="undeploy-tomcat"/>
             </try>
             <catch/>
          </trycatch>
       </target>
       <target name="redeploy-tomcat" depends="try.undeploy-tomcat,deploy-tomcat"
          description="Undeploy and deploy web application.">
       </target>
    </project>In addition, the build.properties...
    jsf.dir=/opt/jsf-1_1_01
    tomcat.dir=/opt/tomcat5
    app=YourProject
    username=tomcatAdminUser
    password=tomcatPassword
    manager.url=http://localhost:8080/manager
    servlet.api.jar=${tomcat.dir}/common/lib/servlet-api.jar
    jsp.api.jar=${tomcat.dir}/common/lib/jsp-api.jar
    jsf.lib.dir=${jsf.dir}/lib
    jstl.lib.dir=${tomcat.dir}/webapps/jsp-examples/WEB-INF/lib
    commons.lib.dir=${tomcat.dir}/server/lib
    jsf.libs=jsf-api.jar,jsf-impl.jar
    jstl.libs=jstl.jar,standard.jar
    commons.libs=commons-beanutils.jar,commons-digester.jarHope this helps.
    ...Lyall

  • How to invoke a pdf from the java  stand alone application

    I have a JFileChooser and i select a pdf through that . And i should be able to invoke the file in an acrobat reader.
    The acrobat application should be invoked on a click the button upon selection.
    Thanx in advance.

    Try to use Runtime.exec() method like this:
    String exePath = "path to acrobat reader executable";
    String filePath = "path to the file to execute";
    Runtime.getRuntime().exec(exePath+" "+filePath);

  • destination tag in bundle.xml is ignored

    We are developing an extension to JDeveloper.
    When our extension is downloaded through "Check for Updates", we want it to be unzipped under folder "${ORACLE_HOME}/jdeveloper", instead of the default location, which is "${ORACLE_HOME}/jdeveloper/jdev/extensions".
    For this, I added a "destination" tag to bundle.xml as specified here <http://ide.us.oracle.com/doc/Assemble_a_Check_for_Updates_Bundle>.
    However, JDeveloper does not seem to honor this tag, and the bundle zip file still gets extracted under "jdev/extensions" folder.
    Due to this "Check for Updates" seems to fail.
    How can I get "Check for Updates" to extract the bundle inside "${ORACLE_HOME}/jdeveloper"?

    Hi
    This was a bug in 7.0 it has been fixed in 7.0 sp1
    Ajay
    "Vasudha" <[email protected]> wrote in message
    news:[email protected]..
    >
    I am using Weblogic Server 7.0
    Vasudha.
    "Ajay" <[email protected]> wrote:
    Hi what version of the Server are you using?
    Ajay
    "Vasudha Upadhyaya" <[email protected]> wrote in message
    news:[email protected]..
    Is the <java> tag in application.xml recognizable.
    I have a EAR with a couple of EJB's and a JAR file(Java Client
    classes).If
    I package
    the JAR(Java Client classes) file and specify it as <java> tag in theapplication.xml
    the EAR file cannot be deployed.
    If I remove the JAR(Java Client classes) from the EAR and the <java>tag
    from
    the application.xml then the EAR file is deployed(EAR has only EJB's).
    Can anyone help me on this.
    Thanks,
    Vasudha.

  • Application.xml - Unknown Assembly Tag

    Hello:
    Has anyone encountered the error:
    05/11/18 10:01:39 Error instantiating application at ..... Unknown assembly tag in file:..... <library>
    This happens when I start up the oc4j application server...
    I am positive that it happens because of the following line in my application.xml file:
    <library path="../bvp-web/WEB-INF/lib"/>
    When I take that line out, the applicaiton starts up fine.
    Does anyone have any thoughts as to why I am getting that error? Isn't <library> a tag that is expected to be in the application.xml file?
    I need that line in there since my jsps refer to classes that are in that directory.
    Thanks for your help.

    <library> tag only applies to the orion-application.xml in META-INF/ of a j2ee application or the j2ee/home/config/application.xml, which is actually the orion-application.xml of the default application of oc4j.

  • Using ADL when Application.xml and Content.swf are not in the BIN directory

    Hello, I am trying to use the air debug launcher (ADL) to
    launch a simple air app. My issue is I am trying to have ADL launch
    this app from outside of the bin directory of the SDK. Whenever I
    try to pass adl the full path to the Applicaiton.xml file it says
    "application descriptor not found" Does anyone know how to get
    around this? How can I run an AIR app that is outside of the bin?
    My situation C:\AIR has the Applicaiton.xml and Content.swf
    files, then a directory way below C:\Program Files\....\..... has
    the bin directory. I can run adl using its full path C:\Program
    Files\....\bin\adl, but when I pass it the full path for
    Application.xml it fails.
    By the way when I put everything in the bin, or below the bin
    it works just fine.

    If you're receiving this error message then the full path
    you're specifying for application.xml must be incorrect.

  • HostnameVerificationIgnored  tag in config.xml

    I have configured SSL for WLS 8.1 sp1. I have 2 questions regarding the HostNameVerification
    setting..
    Initially, I set the HostnameVerificationIgnored="FALSE" in the <SSL> tag of config.xml.
    But the cmd window displayed the following message:
    <Dec 16, 2003 7:16:41 PM PST> <Info> <Management> <BEA-141034> <Java system property:
    weblogic.security.SSL.ignoreHostnameVerify = false.>
    This is expected. Now, changed HostnameVerificationIgnored="TRUE" in config.xml.
    Even now, it shows the exact same message!!
    <Dec 16, 2003 7:29:22 PM PST> <Info> <Management> <BEA-141034> <Java system property:
    weblogic.security.SSL.ignoreHostnameVerify = false.>
    Other than the timestamp, nothing has changed. This tells me that it is not reading
    the config.xml setting properly.
    There is NO entry for -Dweblogic.security.SSL.ignoreHostnameVerification in startweblogic.cmd
    either. I am not sure where is it picking this property from. But the cmd window
    always shows that it is false, regardless of my setting in config.xml.
    1) How can we verify that this is actually working the expected way...?
    2) Is there a bug in 8.1 - that it is failing to read the setting in config.xml
    correctly?
    Thanks,
    Anant

    Anant,
    How about you try to get the SSL MBean and check the attribute?
    Try using weblogic.Admin,
    java weblogic.Admin -username xx -password xxxxxxxx -url
    t3://localhost:7001 get -type SSL -property HostnameVerificationIgnored
    and see if the variable is properly set and the server is running with
    that attribute value.
    Thanks,
    -satya
    Anant Kadiyala wrote:
    I have configured SSL for WLS 8.1 sp1. I have 2 questions regarding the HostNameVerification
    setting..
    Initially, I set the HostnameVerificationIgnored="FALSE" in the <SSL> tag of config.xml.
    But the cmd window displayed the following message:
    <Dec 16, 2003 7:16:41 PM PST> <Info> <Management> <BEA-141034> <Java system property:
    weblogic.security.SSL.ignoreHostnameVerify = false.>
    This is expected. Now, changed HostnameVerificationIgnored="TRUE" in config.xml.
    Even now, it shows the exact same message!!
    <Dec 16, 2003 7:29:22 PM PST> <Info> <Management> <BEA-141034> <Java system property:
    weblogic.security.SSL.ignoreHostnameVerify = false.>
    Other than the timestamp, nothing has changed. This tells me that it is not reading
    the config.xml setting properly.
    There is NO entry for -Dweblogic.security.SSL.ignoreHostnameVerification in startweblogic.cmd
    either. I am not sure where is it picking this property from. But the cmd window
    always shows that it is false, regardless of my setting in config.xml.
    1) How can we verify that this is actually working the expected way...?
    2) Is there a bug in 8.1 - that it is failing to read the setting in config.xml
    correctly?
    Thanks,
    Anant

  • Ejb jars not being read from application.xml

    Hello. If somebody wouldn't mind reading this, I've been wrestling wiht this most of the day. I have a coupe of entity ejbs and a stateless session ejb, each packed into it's own jar. When I deploy the ear, the war deploys fine but the three ejb jar files are not read as per the application.xml. As a test, I put the jars into the default server lib directory and after I did that, the enterpise app launched as expected. I can't figure out why the server, resin 3.0.12, is not able to see these ejb jars. I've tried to add the directory after deployment to the classpath in the autoexec.bat but no dice. I've moved the ejb jars around into subdirectories and modified the application.xml accordingly but to no avail. I've also looked into the server configuration file but resin doesn't seem to have any taggings within it's ejb server tag that would dictate where the container would look for jar or class files. Does anybody have any ideas what this could be?...this is the application.xml...pretty straightforward...the ejb jars are located in the root of the ear...
    <?xml version="1.0" encoding="ISO-8859-1" ?>
    <!DOCTYPE web-app (View Source for full doctype...)>
    - <application>
    <display-name>MyApp</display-name>
    - <module>
    <ejb>cn.jar</ejb>
    </module>
    - <module>
    <ejb>cnf.jar</ejb>
    </module>
    - <module>
    <ejb>cni.jar</ejb>
    </module>
    - <module>
    - <web>
    <web-uri>nctims.war</web-uri>
    <context-root>/nctims</context-root>
    </web>
    </module>
    </application>
    Thank you very much for taking your time to read my post.

    Hello. Thank you very much for the reply.
    Yeah, application.xml is sitting in META-INF. The war referenced wihtin application.xml deploys fine...the container jsut seems to ignore the <module><ejb>..</ejb></module> tags when it reads the ejb deployment descriptors and tries to locate the classes. I've tried everything...shouldn't application.xml take care of all class-loader issues with the module references? Thank you again to everybody reading this or whatever.

  • Setter method not getitng called in the custom tag

    Hi,
    I have written a custom tag and I have declared an attribute in the tld file and have specified the setter method for the same in the java tag file but that setter method is not getting called...for rest of the attributes, the methods are getting called and not just for one!! any idea what could be the problem....
    Regards
    Deepak Saini

    Do you have a getter method to match that property?
    Post some example code - what does your tld define for this property, and what get/set methods have you defined for it?

  • Cannot change the host name in registry.xml

    After installing WebLogic 10.3.3 on Oracle VM template, the regsitry.xml and registry.dat files cannot be changed to reflect the hostname of the VM Guest
    nstall WebLogic server in a OVM template. The host tag in registry.xml will contain the hostname from the template (e.g. firsttemp.oradev.inddev.national.com.in) .
    Create a guest using this OVM Template and the The host tag in registry.xml will still contain the hostname from the template (e.g. firsttemp.oradev.inddev.national.com.in) rather than the actual hsotname.
    I dont want to change it manually in the register.xml since it may cause problems in future
    any pointers are highly appreciated..

    It is not recommended to change the name for an IP addressIt is not recommended by who? AFAIK there is no such sentence in documentation.
    But there is other:
    host Required. Specify the host name or IP address of the database server computer.
    Instad of "It is not recommended..." better use "Consider this..."
    , as if ever it changes in the future, you'll have to be back and change once again your ip.The same is truth when we are speaking about FQDN (fully qualified domain name).
    How often your company changes the IP adresses on server platform?
    My experience from past:
    First case:
    My company has rebranded and and domain name has been changed but IP has not. Unfortunatelly we were not using OID for resolving. If there were FQDN used then would have to make changes in many files. Fortunatelly we were using IP addresses.
    Now we are using OID for resolving of tnsnames (as primary method).
    What I want to say is both solutions (FQDN or IP) are fine. Each of them has some advantages and also disadvantages.

  • OC4J orion-application.xml - elements and attributes

    Hi. i read in oracle docs sentense like this: "Each property maps to an element attribute in the orion-application.xml descriptor." These properties are from deployment plan and i need to know what is the name of the element in orion-application.xml wich is mapped to webSiteBinding property (from deployment plan).

    I just did a quick test of this, and it seems to work for me.
    I used the following XML:
    <?xml version="1.0" encoding="iso-8859-1"?>
    <Employees xmlns="
    http://www.foo.com/Employees">
    <Employee Id="001">
    <LastName>Davis</LastName>
    <FirstName>Kirk</FirstName>
    </Employee>
    <Employee Id="002">
    <LastName></LastName>
    <FirstName>James</FirstName>
    </Employee>
    <Employee Id="003">
    <FirstName>Anthony</FirstName>
    </Employee>
    <Employee>
    </Employee>
    </Employees>
    With the XPath "/Employees/Employee" I got rows in the data
    set and things displayed fine in my page. Changing it to
    "/employees/employee" caused the data set to have no rows which I
    would expect since things should be case sensitive.
    Can you provide me with some sample XML and XPath that
    doesn't work?
    Thanks!
    --== Kin ==--

Maybe you are looking for

  • How to change the Default Password on AP1131AG

    Hi all : I tried to change the default password Cisco to other by command line but the password cannot work out. The command line I used are as below : AP#conf t Enter configuration commands, one per line.  End with CNTL/Z. AP(config)#enable pass AP(

  • PO Idoc Generation for vendor

    hi, we want to generate Idoc for PO when PO is Saved and post it on Staging server we have maintain partner  profile  using TRN code we20. when we are trying to put EDI in output profile in me22n than i am getting below error. Maintain outgoing EDI-c

  • Time to upgrade Quicksilver HD & DVR - What? How? Suggestions?

    Hi, I am considering upgrading my internal hard drive and replacing my existing DVR. I hate to mess with things that are not broke, but I am at the point now that I think I need to just go for it! I am not too tech savvy so bear with me. I would appr

  • External monitor quivers on L440, not on Acer

    Hi there, My external monitor quivers when connected to my new Lenovo ThinkPad L440. I does not do it when connected to my 4 year old Acer laptop, is seems perfectly fine there. In both cases connected with the same VGA cable. It's a constant, tiny f

  • Possible 1.3 Leopard fix for HP, but wierd Elements behavior

    Please forgive me for copying what i typed on another forum, but it is a long process to type over again. ok, here's hoping i dont jinx my latest luck by sharing this method before messing around with it some more. I have an HP 9800 so, of course, yo