Keeping generated Java files???

How do I keep the generated java source code when my
          jsp pages get compiled. I have the following in my properties file:
          weblogic.httpd.register.*.jsp=weblogic.servlet.JSPServlet
          weblogic.httpd.initArgs.*.jsp=\
          pageCheckSeconds=1,\
          compileCommand=C:/jdk1.3/bin/java.exe,\
          workingDir=C:/Weblogic/myserver/classfiles,\
          verbose=true,\
          keepgenerated=true
          The only files that are saved are the ones that get generated from
          jsp pages that contain errors.
          

Hi Leo,
          as you are using a WebApp: sef, your context isn't the default one
          the solution is to put :
          <context-param>
          <param-name>weblogic.jsp.keepgenerated</param-name>
          <param-value>true</param-value>
          </context-param>
          at the begining of your web.xml file in the WEB-INF dir. after the
          "description" tag.
          You can too modify, using this method, the defaults of:
          weblogic.jsp.precompile
          weblogic.jsp.verbose
          weblogic.jsp.packagePrefix
          weblogic.jsp.compileCommand
          weblogic.jsp.pageCheckSeconds
          but it seems (at least I have not been able to do it...:) )
          that this is not possible with:
          weblogic.jsp.workingDir
          to put the generated file in other place.
          PacoG.
          P.D.: Pay attention to the fact that the generated files will be
          remote accesible at the URL:
          http://yourserver/yourwebapp/_tmp_war/yourpackageprefix/yourgeneratedfile.ja
          va
          and
          http://yourserver/yourwebapp/_tmp_war/yourpackageprefix/yourgeneratedfile.cl
          ass
          > Is there another location where the jsp properties are set? I notice in
          my
          > console that
          > keepgenerated is set to false regardless of what I have entered in my
          > properties file.
          >
          > <WebAppServletContext-sef> registering JSPServlet with initArgs
          > '[JspConfig:verbose=true,packagePrefix=jsp_servlet,compileCommand=javac,
          >
          workingDir=c:\ejb_examples\sef\_tmp_war,pageCheckSeconds=1,superclass=null,
          > keepgenerated=false
          >
          > "murali" <[email protected]> wrote in message
          > news:[email protected]...
          > > hai,
          > > it is working fine with me.
          > > iam able to get java files.problem may be something else.
          > > my code as follows:
          > > weblogic.httpd.register.*.jsp=weblogic.servlet.JSPServlet
          > > weblogic.httpd.initArgs.*.jsp=\
          > > pageCheckSeconds=1,\
          > > compileCommand=/jdk1.2.2/bin/javac.exe,\
          > > workingDir=/tools/weblogic/myserver/classfiles,\
          > > overbose=true,\
          > > keepgenerated=true
          > >
          > > bye,
          > > murali
          > >
          > > Leo Lam wrote:
          > >
          > > > How do I keep the generated java source code when my
          > > > jsp pages get compiled. I have the following in my properties file:
          > > >
          > > > weblogic.httpd.register.*.jsp=weblogic.servlet.JSPServlet
          > > > weblogic.httpd.initArgs.*.jsp=\
          > > > pageCheckSeconds=1,\
          > > > compileCommand=C:/jdk1.3/bin/java.exe,\
          > > > workingDir=C:/Weblogic/myserver/classfiles,\
          > > > verbose=true,\
          > > > keepgenerated=true
          > > >
          > > > The only files that are saved are the ones that get generated from
          > > > jsp pages that contain errors.
          > >
          >
          >
          

Similar Messages

  • Problems keeping generated java files

    hi!
              I have a war containing a lot of jsp files.
              I want those files to be precompiled when I start my server, only if the war file has changed.
              I also want to keep the generated files,
              So that the next time I start the server
              It won't need to precomile them (unless changed, ofcourse).
              I set the "keepgenerated" flag and "precompile" flag to true, in the weblogic.xml file.
              i also added:
              <context-param>
              <param-name>weblogic.jsp.keepgenerated</param-name>
              <param-value>true</param-value>
              </context-param>
              in the web.xml
              but everytime I start up the server, it deletes all
              the old generated files, and precompiles my jsp all over again.
              I also tried not using the pre-compilation option at all,
              just to see the effect that "keepgenerated" flag had,
              but the generated files were still removed each time i restarted the server.
              Is it at all possible to keep those files?
              If so, how?
              thanx,
              Einav
              

              I tried using jspc to precompile the jsp files and deploy the resulting class files
              (and the jsp files). This way the server never regenerates the files or compiles
              the servlets.
              

  • Tools for generating java files

    Hello!
    I need a tool which can generate .java files (just like rmic generates _Stub.java files). 
    I know Velocity but i'm looking for something better. Can you help me?
    Kuba Kr�likowski

    rmic does not generate Stub and Skel .java
    files, but it generates .class files.
    (just a side-note)RMIC always produce .java files at first - you can keep them using -keep or -keepgenerated option!
    Kuba

  • How to generate .xsd file using jaxb generated java files

    Hi,
    We need to upgrade our applicatio to jdk1.6 which has jaxb2.0 class files in it. Our application has java files generated from .xsd using jaxb1.0.2 version. At present we dont have .xsd or .xml file with us.
    We decide to generate .xsd file by using jaxb1.0.2 generated java files. I tried using schemagen.exe given by jdk1.6 to generate .xsd file. It error out. Is there any other way to generate .xsd file ?
    pls let me know.
    thanks,
    Thiru

    Object-XML mapping is a new feature in JAXB 2.0. Classes generated with JAXB 1.0 won't generate a schema.
    Generate Java classes with JAXB 2.0 xjc.
    http://www.theregister.co.uk/2006/09/22/jaxb2_guide/

  • Compile error with IDLJ generated java files.

    When compiling the IDLJ generated java files, javac is not able to recognize org.omg.CORBA.ObjectHelper
    classs. Looks like the import is not finding this class.
    I have located these classes in rt.jar but including this jar in CLASSPATH gives
    a version '48.0' is too recent error.
    Thanks
    Ramesh

    PLEASE IGNORE THIS MESSAGE. I HAVE RESOLVED THIS ISSUE.
    "Ramesh Nadella" <[email protected]> wrote:
    >
    When compiling the IDLJ generated java files, javac is not able to recognize
    org.omg.CORBA.ObjectHelper
    classs. Looks like the import is not finding this class.
    I have located these classes in rt.jar but including this jar in CLASSPATH
    gives
    a version '48.0' is too recent error.
    Thanks
    Ramesh

  • Where does WL keep my Java files that it creates from JSPs?

    Hi,
    I'm using WL 9.2.2 on Solaris 9 (JDK 1.5). When WL builds a JSP page, it presumably converts those JSP pages to Java files before compiling them. Where does it keep those Java files? I'm having a hard time figuring out where my NullPointerException is occurring ...
    java.lang.NullPointerException
    at jsp_servlet._jsp._groups.__addgroup._jspService(__addgroup.java:810)
    at weblogic.servlet.jsp.JspBase.service(JspBase.java:34)
    at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283)
    at weblogic.servlet.internal.ServletStubImpl.onAddToMapException(ServletStubImpl.java:394)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:309)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
    at weblogic.servlet.internal.RequestDispatcherImpl.invokeServlet(RequestDispatcherImpl.java:525)
    at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:261)
    at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1085)
    at org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:398)
    at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:241)
    at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
    at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
    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.myco.nps.im.plugin.NPSIMIntercepter.forwardRequestDirect(NPSIMIntercepter.java:852)
    at com.myco.nps.im.plugin.NPSIMIntercepter.doFilter(NPSIMIntercepter.java:193)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3229)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
    at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2002)
    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:1908)
    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1362)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:181)
    Thanks, - Dave

    It deletes them by default. If you want to preserve them, set the "keepgenerated" and "working-dir" (this one so you don't have to hunt for them) elements in the "jsp-descriptor" element in the weblogic.xml file.
    [http://e-docs.bea.com/wls/docs103/webapp/weblogic_xml.html#wp1038491]

  • How to generate java file from WSDL file

    Hi friends,
    I am new to this thing, so that's why I need some guidence .
    I need to generate java file programatically from existing wsdl file.
    I thought the ways - to use xmlbeans apache library or jaxb.
    Can you suggest what will be better way to generate java file from wsdl? can you please be more descriptive and can you direct me to appropriate link?
    Thanks.
    Harshit

    xmlbeans apache provides easiest way to create java file from wsdl there is very good link for that
    http://www.ibm.com/developerworks/webservices/library/ws-soa-clientxmlbeans.html
    If you want more programmatic approach then Jaxb will be a better option

  • How to generate .java file from xml?

    Does anyone have an idea of how i can generate .java file from xml file? Tools like jakrata digester, JOX are there but both of them are useful in populating java beans from xml. My requirement is to generate .java file from .xml with getters and setters methods for xml elements/attributes. I also tried JAXB. But JAXB generates bunch of files and most of them are interfaces, which is not going to work for me.
    For e.g. i have following xml file and i want to generate Address.java file with getters/setters. Any ideas?
    <?xml version='1.0' encoding='UTF-8' ?>
    <Address>
    <FirstName type="String"/>
    <PoBox type="int"/>
    </Address>
    Thanks,
    Vicky

    Crosspost.
    http://forum.java.sun.com/thread.jsp?thread=475564&forum=4&message=2205846

  • Unable to compile the JAXB generated java files

    Hi
    I am using JAXB 2.0 API for binding process.
    I have products.xml file as
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE PRODUCTDATA SYSTEM "products.dtd">
    <PRODUCTDATA>
    <PRODUCT PRODID="P001" CATEGORY="Books">
    <PRODUCTNAME>Gone with the wind</PRODUCTNAME>
    <DESCRIPTION>This is abt American Civil War</DESCRIPTION>
    <PRICE>25.00</PRICE>
    <QUANTITY>3</QUANTITY>
    </PRODUCT>
    </PRODUCTDATA>
    and products.xsd(Schema file) as
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <xsd:element name="PRODUCTDATA" type="prdt"/>
    <xsd:complexType name="prdt">
    <xsd:sequence>
    <xsd:element name="PRODUCT" type="prd" maxOccurs="unbounded" />
    </xsd:sequence>
    </xsd:complexType>
    <xsd:complexType name="prd">
    <xsd:sequence>
    <xsd:element name="PRODUCTNAME" type="xsd:string"/>
    <xsd:element name="DESCRIPTION" type="xsd:string"/>
    <xsd:element name="PRICE" type="xsd:positiveInteger"/>
    <xsd:element name="QUANTITY" type="xsd:nonNegativeInteger"/>
    </xsd:sequence>
    <xsd:attribute name="PRODID" type="pid" use="required"/>
    <xsd:attribute name="CATEGORY" type="xsd:string" use="optional"/>
    </xsd:complexType>
    <xsd:simpleType name="pid">
    <xsd:restriction base="xsd:string">
    <xsd:pattern value="[p]{1}/d{3}"/>
    <xsd:length value="4"/>
    </xsd:restriction>
    </xsd:simpleType>
    </xsd:schema>
    I am converting these schema file to java files by using binding compiler xjc.
    So that three java files are genearated automatically.
    1) ObjectFactory.java
    // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.0 in JDK 1.6
    // See http://java.sun.com/xml/jaxb
    // Any modifications to this file will be lost upon recompilation of the source schema.
    // Generated on: 2008.06.23 at 04:09:25 PM IST
    package testing.jaxb;
    import javax.xml.bind.JAXBElement;
    import javax.xml.bind.annotation.XmlElementDecl;
    import javax.xml.bind.annotation.XmlRegistry;
    import javax.xml.namespace.QName;
    * This object contains factory methods for each
    * Java content interface and Java element interface
    * generated in the testing.jaxb package.
    * <p>An ObjectFactory allows you to programatically
    * construct new instances of the Java representation
    * for XML content. The Java representation of XML
    * content can consist of schema derived interfaces
    * and classes representing the binding of schema
    * type definitions, element declarations and model
    * groups. Factory methods for each of these are
    * provided in this class.
    @XmlRegistry
    public class ObjectFactory {
    private final static QName PRODUCTDATAQNAME = new QName("", "PRODUCTDATA");
    * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: testing.jaxb
    public ObjectFactory() {
    * Create an instance of {@link Prd }
    public Prd createPrd() {
    return new Prd();
    * Create an instance of {@link Prdt }
    public Prdt createPrdt() {
    return new Prdt();
    * Create an instance of {@link JAXBElement }{@code <}{@link Prdt }{@code >}}
    @XmlElementDecl(namespace = "", name = "PRODUCTDATA")
    public JAXBElement<Prdt> createPRODUCTDATA(Prdt value) {
    return new JAXBElement<Prdt>(_PRODUCTDATA_QNAME, Prdt.class, null, value);
    2)Prdt.java
    // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.0 in JDK 1.6
    // See http://java.sun.com/xml/jaxb
    // Any modifications to this file will be lost upon recompilation of the source schema.
    // Generated on: 2008.06.23 at 04:09:25 PM IST
    package testing.jaxb;
    import java.util.ArrayList;
    import java.util.List;
    import javax.xml.bind.annotation.XmlAccessType;
    import javax.xml.bind.annotation.XmlAccessorType;
    import javax.xml.bind.annotation.XmlElement;
    import javax.xml.bind.annotation.XmlType;
    * <p>Java class for prdt complex type.
    * <p>The following schema fragment specifies the expected content contained within this class.
    * <pre>
    * <complexType name="prdt">
    * <complexContent>
    * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
    * <sequence>
    * <element name="PRODUCT" type="{}prd" maxOccurs="unbounded"/>
    * </sequence>
    * </restriction>
    * </complexContent>
    * </complexType>
    * </pre>
    @XmlAccessorType(XmlAccessType.FIELD)
    @XmlType(name = "prdt", propOrder = {
    "product"
    public class Prdt {
    @XmlElement(name = "PRODUCT", required = true)
    protected List<Prd> product;
    * Gets the value of the product property.
    * <p>
    * This accessor method returns a reference to the live list,
    * not a snapshot. Therefore any modification you make to the
    * returned list will be present inside the JAXB object.
    * This is why there is not a <CODE>set</CODE> method for the product property.
    * <p>
    * For example, to add a new item, do as follows:
    * <pre>
    * getPRODUCT().add(newItem);
    * </pre>
    * <p>
    * Objects of the following type(s) are allowed in the list
    * {@link Prd }
    public List<Prd> getPRODUCT() {
    if (product == null) {
    product = new ArrayList<Prd>();
    return this.product;
    3) Prd.java
    // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.0 in JDK 1.6
    // See http://java.sun.com/xml/jaxb
    // Any modifications to this file will be lost upon recompilation of the source schema.
    // Generated on: 2008.06.23 at 04:09:25 PM IST
    package testing.jaxb;
    import java.math.BigInteger;
    import javax.xml.bind.annotation.XmlAccessType;
    import javax.xml.bind.annotation.XmlAccessorType;
    import javax.xml.bind.annotation.XmlAttribute;
    import javax.xml.bind.annotation.XmlElement;
    import javax.xml.bind.annotation.XmlType;
    * <p>Java class for prd complex type.
    * <p>The following schema fragment specifies the expected content contained within this class.
    * <pre>
    * <complexType name="prd">
    * <complexContent>
    * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
    * <sequence>
    * <element name="PRODUCTNAME" type="{http://www.w3.org/2001/XMLSchema}string"/>
    * <element name="DESCRIPTION" type="{http://www.w3.org/2001/XMLSchema}string"/>
    * <element name="PRICE" type="{http://www.w3.org/2001/XMLSchema}positiveInteger"/>
    * <element name="QUANTITY" type="{http://www.w3.org/2001/XMLSchema}nonNegativeInteger"/>
    * </sequence>
    * <attribute name="CATEGORY" type="{http://www.w3.org/2001/XMLSchema}string" />
    * <attribute name="PRODID" use="required" type="{}pid" />
    * </restriction>
    * </complexContent>
    * </complexType>
    * </pre>
    @XmlAccessorType(XmlAccessType.FIELD)
    @XmlType(name = "prd", propOrder = {
    "productname",
    "description",
    "price",
    "quantity"
    public class Prd {
    @XmlElement(name = "PRODUCTNAME", required = true)
    protected String productname;
    @XmlElement(name = "DESCRIPTION", required = true)
    protected String description;
    @XmlElement(name = "PRICE", required = true)
    protected BigInteger price;
    @XmlElement(name = "QUANTITY", required = true)
    protected BigInteger quantity;
    @XmlAttribute(name = "CATEGORY")
    protected String category;
    @XmlAttribute(name = "PRODID", required = true)
    protected String prodid;
    * Gets the value of the productname property.
    * @return
    * possible object is
    * {@link String }
    public String getPRODUCTNAME() {
    return productname;
    * Sets the value of the productname property.
    * @param value
    * allowed object is
    * {@link String }
    public void setPRODUCTNAME(String value) {
    this.productname = value;
    * Gets the value of the description property.
    * @return
    * possible object is
    * {@link String }
    public String getDESCRIPTION() {
    return description;
    * Sets the value of the description property.
    * @param value
    * allowed object is
    * {@link String }
    public void setDESCRIPTION(String value) {
    this.description = value;
    * Gets the value of the price property.
    * @return
    * possible object is
    * {@link BigInteger }
    public BigInteger getPRICE() {
    return price;
    * Sets the value of the price property.
    * @param value
    * allowed object is
    * {@link BigInteger }
    public void setPRICE(BigInteger value) {
    this.price = value;
    * Gets the value of the quantity property.
    * @return
    * possible object is
    * {@link BigInteger }
    public BigInteger getQUANTITY() {
    return quantity;
    * Sets the value of the quantity property.
    * @param value
    * allowed object is
    * {@link BigInteger }
    public void setQUANTITY(BigInteger value) {
    this.quantity = value;
    * Gets the value of the category property.
    * @return
    * possible object is
    * {@link String }
    public String getCATEGORY() {
    return category;
    * Sets the value of the category property.
    * @param value
    * allowed object is
    * {@link String }
    public void setCATEGORY(String value) {
    this.category = value;
    * Gets the value of the prodid property.
    * @return
    * possible object is
    * {@link String }
    public String getPRODID() {
    return prodid;
    * Sets the value of the prodid property.
    * @param value
    * allowed object is
    * {@link String }
    public void setPRODID(String value) {
    this.prodid = value;
    Next step is to compile these three files
    So I am compiling these three files it gives me compiler error as:
    testing/jaxb/ObjectFactory.java:31: illegal character: \64
    @XmlRegistry
    ^
    testing/jaxb/ObjectFactory.java:63: illegal character: \64
    @XmlElementDecl(namespace = "", name = "PRODUCTDATA")
    ^
    testing/jaxb/ObjectFactory.java:65: <identifier> expected
    return new JAXBElement<Prdt>(_PRODUCTDATA_QNAME, Prdt.class, null, value
    ^
    testing/jaxb/ObjectFactory.java:65: <identifier> expected
    return new JAXBElement<Prdt>(_PRODUCTDATA_QNAME, Prdt.class, null, value
    ^
    testing/jaxb/ObjectFactory.java:65: '{' expected
    return new JAXBElement<Prdt>(_PRODUCTDATA_QNAME, Prdt.class, null, value
    ^
    testing/jaxb/Prdt.java:38: illegal character: \64
    @XmlAccessorType(XmlAccessType.FIELD)
    ^
    testing/jaxb/Prdt.java:39: illegal character: \64
    @XmlType(name = "prdt", propOrder = {
    ^
    testing/jaxb/Prdt.java:44: illegal character: \64
    @XmlElement(name = "PRODUCT", required = true)
    ^
    testing/jaxb/Prdt.java:45: <identifier> expected
    protected List<Prd> product;
    ^
    testing/jaxb/Prdt.java:69: <identifier> expected
    public List<Prd> getPRODUCT() {
    ^
    testing/jaxb/Prdt.java:75: ';' expected
    ^
    testing/jaxb/Prd.java:43: illegal character: \64
    @XmlAccessorType(XmlAccessType.FIELD)
    ^
    testing/jaxb/Prd.java:44: illegal character: \64
    @XmlType(name = "prd", propOrder = {
    ^
    testing/jaxb/Prd.java:52: illegal character: \64
    @XmlElement(name = "PRODUCTNAME", required = true)
    ^
    testing/jaxb/Prd.java:53: <identifier> expected
    protected String productname;
    ^
    testing/jaxb/Prd.java:54: illegal character: \64
    @XmlElement(name = "DESCRIPTION", required = true)
    ^
    testing/jaxb/Prd.java:55: <identifier> expected
    protected String description;
    ^
    testing/jaxb/Prd.java:56: illegal character: \64
    @XmlElement(name = "PRICE", required = true)
    ^
    testing/jaxb/Prd.java:57: <identifier> expected
    protected BigInteger price;
    ^
    testing/jaxb/Prd.java:58: illegal character: \64
    @XmlElement(name = "QUANTITY", required = true)
    ^
    testing/jaxb/Prd.java:59: <identifier> expected
    protected BigInteger quantity;
    ^
    testing/jaxb/Prd.java:60: illegal character: \64
    @XmlAttribute(name = "CATEGORY")
    ^
    testing/jaxb/Prd.java:61: <identifier> expected
    protected String category;
    ^
    testing/jaxb/Prd.java:62: illegal character: \64
    @XmlAttribute(name = "PRODID", required = true)
    ^
    testing/jaxb/Prd.java:63: <identifier> expected
    protected String prodid;
    ^
    25 errors
    I want all three files to compiled successfully.If it is compiled only then I will continue on Unmarshalling process

    I suspect you are trying to compile the files one by one. You may also be trying to compile them disregarding the package structure.
    From your post, I gather these files are in the package: com.geindustrial.sqms
    Therefore, if they are not so already, put them under a directory structure:
    com/geindustrial/sqms
    and then compile with:
    javac com/geindustrial/sqms/AddCtq.java com/geindustrial/sqms/Ctq.java com/geindustrial/sqms/VariableData.java
    (The above is all on one line.)
    HTH,
    Manuel Amago.

  • Autotype won't generate java files from wsdl

    Hi!
    I'm having troube generating the java classes for a non built-in datatype from
    wsdl. The autotype ant task will only generate a types.xml file, but it does not
    generate the corresponding java files for the non-built in datatypes, nor does
    it generate any serializer/deserializer classes.
    Thanks in advance for any help on this!
    The WSDL defines the following datatype:
    <xsd:complexType name="w2Edisoprec">
              <xsd:complexContent>
                   <xsd:restriction base="SOAP-ENC:Array">
                        <xsd:attribute ref="SOAP-ENC:arrayType" wsdl:arrayType="w2EdisoprecArrayItem[]"/>
                   </xsd:restriction>
              </xsd:complexContent>
         </xsd:complexType>
         <xsd:complexType name="w2EdisoprecArrayItem">
              <xsd:sequence>
                   <xsd:element name="sAs_soptunnus" type="xsd:string" minOccurs="1" maxOccurs="1"/>
                   <xsd:element name="sAs_soptun_alk" type="xsd:string" minOccurs="1" maxOccurs="1"/>
                   <xsd:element name="lAs_soptun_lop" type="xsd:string" minOccurs="1" maxOccurs="1"/>
                   <xsd:any processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
              </xsd:sequence>
              <xsd:anyAttribute processContents="lax"/>
         </xsd:complexType>
         <xsd:element name="w2Edisoprec" type="w2EdisoprecArrayItem" />
    I'm using the following build.xml file:
    <project name="buildWebservice" default="generate-types">
         <target name="generate-types">
         <autotype
         wsdl="http://localhost/Lak_hEdisopLK.wsdl"
         packageName="ssi3Client.types"
         destDir="c:/tuxedo2sap/l158/ssi3/wsdl/types"
         />
         </target>
    </project>
    The types.xml file generated by autotype is:
    <wsdd:type-mapping xmlns:wsdd="http://www.bea.com/servers/wls70"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
    <wsdd:type-mapping-entry xmlns:lcl0="http://www.webMethods.com/noNamespace/"
    class-name="javax.xml.soap.SOAPElement"
    type="lcl0:w2Edisoprec"
    serializer="weblogic.webservice.core.encoding.stream.SOAPElementCodec"
    deserializer="weblogic.webservice.core.encoding.stream.SOAPElementCodec">
    </wsdd:type-mapping-entry>
    <wsdd:type-mapping-entry xmlns:lcl0="http://www.webMethods.com/noNamespace/"
    class-name="javax.xml.soap.SOAPElement"
    type="lcl0:v2EdisoprecArrayItem"
    serializer="weblogic.webservice.core.encoding.stream.SOAPElementCodec"
    deserializer="weblogic.webservice.core.encoding.stream.SOAPElementCodec">
    </wsdd:type-mapping-entry>
    <wsdd:type-mapping-entry xmlns:lcl0="http://www.webMethods.com/noNamespace/"
    class-name="javax.xml.soap.SOAPElement"
    type="lcl0:w2EdisoprecArrayItem"
    serializer="weblogic.webservice.core.encoding.stream.SOAPElementCodec"
    deserializer="weblogic.webservice.core.encoding.stream.SOAPElementCodec">
    </wsdd:type-mapping-entry>
    <wsdd:type-mapping-entry xmlns:lcl0="http://www.webMethods.com/noNamespace/"
    class-name="javax.xml.soap.SOAPElement"
    type="lcl0:v2Edisoprec"
    serializer="weblogic.webservice.core.encoding.stream.SOAPElementCodec"
    deserializer="weblogic.webservice.core.encoding.stream.SOAPElementCodec">
    </wsdd:type-mapping-entry>
    </wsdd:type-mapping>

    Hi Hans,
    It is a known issue that the XML schema processor in WLS 7.0, doesn't currently
    handle the <xsd:anyAttribute processContents="lax"/> and <xsd:any processContents="lax"
    minOccurs="0" maxOccurs="unbounded"/> lines in your xsd. This may be corrected
    in the next service pack - SP2.
    Regards,
    Mike Wooten
    "Hans Dumbrajs" <[email protected]> wrote:
    >
    Hi!
    I'm having troube generating the java classes for a non built-in datatype
    from
    wsdl. The autotype ant task will only generate a types.xml file, but
    it does not
    generate the corresponding java files for the non-built in datatypes,
    nor does
    it generate any serializer/deserializer classes.
    Thanks in advance for any help on this!
    The WSDL defines the following datatype:
    <xsd:complexType name="w2Edisoprec">
              <xsd:complexContent>
                   <xsd:restriction base="SOAP-ENC:Array">
                        <xsd:attribute ref="SOAP-ENC:arrayType" wsdl:arrayType="w2EdisoprecArrayItem[]"/>
                   </xsd:restriction>
              </xsd:complexContent>
         </xsd:complexType>
         <xsd:complexType name="w2EdisoprecArrayItem">
              <xsd:sequence>
                   <xsd:element name="sAs_soptunnus" type="xsd:string" minOccurs="1"
    maxOccurs="1"/>
                   <xsd:element name="sAs_soptun_alk" type="xsd:string" minOccurs="1"
    maxOccurs="1"/>
                   <xsd:element name="lAs_soptun_lop" type="xsd:string" minOccurs="1"
    maxOccurs="1"/>
                   <xsd:any processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
              </xsd:sequence>
              <xsd:anyAttribute processContents="lax"/>
         </xsd:complexType>
         <xsd:element name="w2Edisoprec" type="w2EdisoprecArrayItem" />
    I'm using the following build.xml file:
    <project name="buildWebservice" default="generate-types">
         <target name="generate-types">
         <autotype
         wsdl="http://localhost/Lak_hEdisopLK.wsdl"
         packageName="ssi3Client.types"
         destDir="c:/tuxedo2sap/l158/ssi3/wsdl/types"
         />
         </target>
    </project>
    The types.xml file generated by autotype is:
    <wsdd:type-mapping xmlns:wsdd="http://www.bea.com/servers/wls70"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
    <wsdd:type-mapping-entry xmlns:lcl0="http://www.webMethods.com/noNamespace/"
    class-name="javax.xml.soap.SOAPElement"
    type="lcl0:w2Edisoprec"
    serializer="weblogic.webservice.core.encoding.stream.SOAPElementCodec"
    deserializer="weblogic.webservice.core.encoding.stream.SOAPElementCodec">
    </wsdd:type-mapping-entry>
    <wsdd:type-mapping-entry xmlns:lcl0="http://www.webMethods.com/noNamespace/"
    class-name="javax.xml.soap.SOAPElement"
    type="lcl0:v2EdisoprecArrayItem"
    serializer="weblogic.webservice.core.encoding.stream.SOAPElementCodec"
    deserializer="weblogic.webservice.core.encoding.stream.SOAPElementCodec">
    </wsdd:type-mapping-entry>
    <wsdd:type-mapping-entry xmlns:lcl0="http://www.webMethods.com/noNamespace/"
    class-name="javax.xml.soap.SOAPElement"
    type="lcl0:w2EdisoprecArrayItem"
    serializer="weblogic.webservice.core.encoding.stream.SOAPElementCodec"
    deserializer="weblogic.webservice.core.encoding.stream.SOAPElementCodec">
    </wsdd:type-mapping-entry>
    <wsdd:type-mapping-entry xmlns:lcl0="http://www.webMethods.com/noNamespace/"
    class-name="javax.xml.soap.SOAPElement"
    type="lcl0:v2Edisoprec"
    serializer="weblogic.webservice.core.encoding.stream.SOAPElementCodec"
    deserializer="weblogic.webservice.core.encoding.stream.SOAPElementCodec">
    </wsdd:type-mapping-entry>
    </wsdd:type-mapping>

  • Cannot generate java file from i18ngen utility

    Hi,
    I have a message catalog file named PNS.xml which generated by MsgEditor and
    its content as follow.
    <message_catalog
    i18n_package="weblogic.i18n"
    l10n_package="weblogic.i18n"
    subsystem="pns"
    version="1.0"
    >
    <!-- -->
    <message
    messageid="lang_id"
    datehash="336038090"
    datelastchanged="1020896502008"
    method="langId(String arg0)"
    >
    <messagebody>
    EN {0}
    </messagebody>
    </message>
    </message_catalog>
    --------------- End of content
    However, there is no output file(s) in c:\temp\weblogic\i18n\ directory
    when I enter the follow command.
    C:\Temp>java weblogic.i18ngen -debug weblogic\msgcat\PNS.xml
    Options:
    server=false
    ignore=false
    verbose=false
    debug=true
    nobuild=false
    i18n=false
    l10n=false
    compile=false
    Processing input: C:\Temp\weblogic\msgcat\PNS.xml
    Using validating parser
    Document start
    Receive element: message_catalog
    Adding new message_catalog
    PNS.xml
    Setting attr: name=i18n_package, value=weblogic.i18n
    Setting attr: name=l10n_package, value=weblogic.i18n
    Setting attr: name=subsystem, value=pns
    Setting attr: name=version, value=1.0
    Receive element: message
    Adding new Message
    Setting attr: name=messageid, value=lang_id
    Setting attr: name=datehash, value=336038090
    Setting attr: name=datelastchanged, value=1020896502008
    Setting attr: name=method, value=langId(String arg0)
    processing method, langId(String arg0)
    Setting method name, langId
    Adding arg, String
    Receive element: messagebody
    Adding new messagebody
    Received chars: <
    EN {0}
    >
    adding to body
    linking messagebody to message lang_id
    linking message lang_id to message_catalog
    Validating simple message catalog...
    Validating message...
    C:\Temp>
    (C:\Temp is already in my classpath)
    If anyone knows how to use this utility, please let me know.
    Thanks for your help.
    Tommy

    Admittedly poor choice of option names. -i18n causes Logger classes to be
    created. Loggers are generated from Log message catalogs, which you aren't
    using. The -l10n option works on your catalog. The diff between i18n and l10n
    is the notion of whether the generated classes are used for i18n-izing or
    localizing at runtime. When you use the generated Logger classes you are
    outputting localizable (ie internationalized) message to the log. The
    TextFormatter, on the other hand, produces localized output
    Tommy wrote:
    Sorry for the typo, the command I used in the last message should be this
    one.
    C:\Temp>java weblogic.i18ngen -i18n -debug weblogic\msgcat\PNS.xml
    For another scenario, the java file and the properties file could be
    generated with the -l10n option.
    What is the different in between those options?
    Thanks for your help.
    Tommy
    "Tommy" <[email protected]> wrote in message
    news:[email protected]...
    Hi,
    I have a message catalog file named PNS.xml which generated by MsgEditorand
    its content as follow.
    <message_catalog
    i18n_package="weblogic.i18n"
    l10n_package="weblogic.i18n"
    subsystem="pns"
    version="1.0"
    >
    <!-- -->
    <message
    messageid="lang_id"
    datehash="336038090"
    datelastchanged="1020896502008"
    method="langId(String arg0)"
    >
    <messagebody>
    EN {0}
    </messagebody>
    </message>
    </message_catalog>
    --------------- End of content
    However, there is no output file(s) in c:\temp\weblogic\i18n\ directory
    when I enter the follow command.
    C:\Temp>java weblogic.i18ngen -debug weblogic\msgcat\PNS.xml
    Options:
    server=false
    ignore=false
    verbose=false
    debug=true
    nobuild=false
    i18n=false
    l10n=false
    compile=false
    Processing input: C:\Temp\weblogic\msgcat\PNS.xml
    Using validating parser
    Document start
    Receive element: message_catalog
    Adding new message_catalog
    PNS.xml
    Setting attr: name=i18n_package, value=weblogic.i18n
    Setting attr: name=l10n_package, value=weblogic.i18n
    Setting attr: name=subsystem, value=pns
    Setting attr: name=version, value=1.0
    Receive element: message
    Adding new Message
    Setting attr: name=messageid, value=lang_id
    Setting attr: name=datehash, value=336038090
    Setting attr: name=datelastchanged, value=1020896502008
    Setting attr: name=method, value=langId(String arg0)
    processing method, langId(String arg0)
    Setting method name, langId
    Adding arg, String
    Receive element: messagebody
    Adding new messagebody
    Received chars: <
    EN {0}
    >
    adding to body
    linking messagebody to message lang_id
    linking message lang_id to message_catalog
    Validating simple message catalog...
    Validating message...
    C:\Temp>
    (C:\Temp is already in my classpath)
    If anyone knows how to use this utility, please let me know.
    Thanks for your help.
    Tommy

  • Generate Java file based on a C++ header file

    Hi,
    I want to know if it is possible to generate a java file and JNI-based C++ file based on the header file of C++ code which I want to call.

    go to www.swig.org... swig is an exe that generates wrapper code & java JNI code. You'll need to compile & link to an so / dll yourself, but it should work

  • Access generated JAVA files in JDev10g

    Is there a way to access the JAVA files that are generated when a view object or an entity object are created? For example, the file ARandomViewViewImpl.java.
    It was very easy in JDev 9i, but know a can't find the way to do it. Is there a way to do it, if not, will there be a way to do it in the production version?
    Thanks
    J�r�

    Click on the ViewObject in the Navigator, then in the structure pane you'll see the java files associated with it. You may then open it from the structure pane.
    Hope this helps,
    Rob
    Team JDev

  • _SQL_NAME in generated java file with JPublisher

    Does anyone has generated the java wrapper of EBS SQL packages with JPublisher 10? I use JPublisher to generate the java classes of APPS.AR_ADJUST_PUB which is a SQL package in EBS Financial. The APIs in this package has an input parameter whose type is the rowtype of table AR_ADJUSTMENTS (AR_ADJUSTMENTS%rowtype). The JPublisher generate the SQLNAME as "ARADJUSTPUB_ROWTYPE_SQL". But when I run the generated java code, it gives an SQLException saying APPS.ARADJUSTPUB_ROWTYPE_SQL is not a existed object.
    Can anyone give me some idea? Thanks very much!

    but if one of the when clause faild or some rows are
    rejectet the sequence is not right.Did you read the link?
    "If a record is rejected (that is, it has a format error or causes an Oracle error), the generated sequence numbers are not reshuffled to mask this. If four rows are assigned sequence numbers 10, 12, 14, and 16 in a particular column, and the row with 12 is rejected, the three rows inserted are numbered 10, 14, and 16, not 10, 12, and 14. This allows the sequence of inserts to be preserved despite data errors. When you correct the rejected data and reinsert it, you can manually set the columns to agree with the sequence."
    also if you read multiple lines and they inserted in
    the wrong order the number from the sequence is not
    the line number...what do you mean with "reading multiple lines and wrong order?"

  • Solaris 10 update 6 keeps generating core file (/core)

    I wonder if somebody has encountered the following issue.
    I did a fresh install of Solaris 10 update 6 on two servers (T5140 and T524) from DVD.
    I noticed that a core file was in the root filesystem (/core).
    So, I deleted it.
    As soon as I delete the core file, another one is generated.
    This is happening on both servers where I installed Solaris 10 update 6 from the DVD.
    This is not a live update install. Solaris was installed from scratch. When prompted to preserve previous data, I replied with 'do not preserve data'
    Does anybody know where the core file is coming from and how to stop it being generated?
    Found out that is coming from vold
    SunOS b1osdtsun02 5.10 Generic_137137-09 sun4v sparc SUNW,T5240
    # more /etc/release
                          Solaris 10 10/08 s10s_u6wos_07b SPARC
               Copyright 2008 Sun Microsystems, Inc.  All Rights Reserved.
                            Use is subject to license terms.
                                Assembled 27 October 2008
    # mdb /core
    Loading modules: [ libsysevent.so.1 libnvpair.so.1 libc.so.1 ld.so.1 ]
    ::statusdebugging core file of vold (32-bit) from b1osdtsun02
    file: /usr/sbin/vold
    initial argv: /usr/sbin/vold -f /etc/vold.conf
    threading model: multi-threaded
    status: process terminated by SIGSEGV (Segmentation Fault)
    ::stacklibc.so.1`strlen+0x18(408450a5, 0, 0, 88b70, 600, 180)
    read_slices+0x114(874a0, b, 889a0, feeafd34, 1, 5)
    read_hsfs_partition+0x88(b, 46c00, 6d0000, 2c, 34400, 1010101)
    read_partition+0x30(874a0, 341a4, 3, 34000, 34400, 9)
    create_top_partition+0x140(7cbe0, 7cc24, 7cbe0, 874a0, ffffffff, b)
    0x265e0(800012, feeaff9c, c, 598e0, 7cbe0, ffffffff)
    create_medium+0x74(800012, feeaff9c, 20, 12, 47800, c)
    0x2232c(5d278, 0, 0, 800012, 20, 33000)
    libc.so.1`_lwp_start(0, 0, 0, 0, 0, 0)
    >
    #It seems that vold is failing to mount the DVD on both servers after Solaris was installed.
    Is this a Solaris 10 update 6 bug?
    Edited by: shen on Jan 29, 2009 8:45 PM

    Never mind.
    It is a known bug documented on manual " [Solaris 10 10/08 Release Notes, Chapter 2 Solaris Runtime Issues|http://docs.sun.com/app/docs/doc/820-5245/chapter2-1000?a=view] " as shown below.
    The solution is to apply vold patch [138130-01|http://sunsolve.sun.com/search/document.do?assetkey=1-21-138130-01-1].
    Solaris 10 10/08 DVD Media Might Not be Automatically Mounted by vold (6712352)
    The Solaris 10 10/08 DVD does not mount by default during runtime. No error message is displayed.
    Workaround: Perform the following steps:
       1. Become superuser.
       2. Disable vold:
          * On Solaris 10 Systems:
                # svcadm disable -t volfs
          * On Solaris 8 and Solaris 9 systems:
                /etc/init.d/volmgt stop
       3. Mount the media manually by using the # mount -F hsfs path to block device path to mount point command. For example:
          # mount -F hsfs /dev/rdsk/c0t2d0s2 /mnt

Maybe you are looking for

  • Win8.1 - Error when using traceview "PDB file does not contain provider information"

    We have been attempting to manage a Windows 8.1 machine by using the Enterprise Device Management Protocol. We are encountering a failure during the process and would like to inspect what is going wrong on the Client Side. Used the "Windows 8.1 Enter

  • Mini DV Camcorder

    Hello, I have an old analog camcorder, and am ready to purchase a mini DV camcorder. I am interested in transferring to i Movie and then edit and burn DVD's. I have been told that the Canon ZR series is excellent for compatibility with i Movie. Does

  • Purchase Order email triggering

    Hi All, In my project we are using functionality of sending purchase order to vendor via email. I have maintained 3 email ID's in vendor master but email it going to only one mail ID. I want to send email to all the mail ID's maintained in vendor mas

  • Startup imminent disk error showing

    yesterday i was doing some work on my hp pavilion dv7 notebook.after some time when i closed and reopend it , it shows an hard disk imminent failiure error. it recommended me to run a hard drive test but the test was not runnung  logs are failiure id

  • Netscape.ldap.LDAPException: Server down (80); Unknown error

    Hi, We are facing a strange problem in our staging environment. It has two Sun one Dir. server 5.2 running in multi-master mode befind a load-balancer. A Connection Pool has been defined on the Application server for the same with minConn=5 and MaxCo