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
Similar Messages
-
How to access the *.java file corresponding to a TypeElement T?
Here is a problem:
How to access the *.java file corresponding to a TypeElement T from a AnnotationProcessor environment?
Let us say the hook method
public boolean process(Set<? extends TypeElement> annos, RoundEnvironment roundEnv)
is invoked with a TypeElement T such that T.getQualifiedname() = "a.b.c.X"
And the problem is how to locate the file that has the *.java source code for a.b.c.X?
That is the file that has the source code for a.b.c.X say "some/path/a/b/c/X.java"?
For simplicity, let us assume that TypeElement T corresponds to a top-level Java class.Pinaki wrote:
That is not something you as the annotation processor author should be asking about. That is something you the person configuring the javac environment should set up via the -d option or its equivalent.
I strongly recommend using a separate output directory hierarchy.That is the way the current implementation is. The annotation processor takes a -Aout= <some directory path> to write generated output relative to a user-specified location (which defaults to the class output location).That is contrary to the design of the annotation processing facility. The intended use is for that information to be configured via options like "javac -d".
Additionally, IMO it is a serious configuration error to put generated files and input files, presumably tracked under version control, in the same directory. Interesting you said that. We are just running some "field trial" with these things and some users want them to be in the same directory of the original *.java files (especially when their source files are spread across many roots) .
Who knows what the user wants?The user does and the user is free to (mis)configure their environment however they like ;-) However, that is the user's option and the user has control of this via the javac command line. The annotation processor is not the proper place to configure this setting; see slide 7 of http://blogs.sun.com/darcy/resource/J1_2006-BOF-0606.pdf for some thoughts on different roles in annotation processing.
presumably tracked under version control, in the same directory.version control is another 'usability issues' that we are trying to get our heads around with this stuff. "To check-in or not?" - that seems to be the question. When presented these facilities without any cue, "the users" were divided -- some wanted them to be checked-in, some did not. The context where these generated files being used -- there exists some rationale to check them in a version control system.The right answer depends on the circumstances, but IMO generally generated files should not be checked in under version control, especially if they are derived from other source files. Checking in generated files of this nature just creates the opportunity for them to get out of date with the originating files. -
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,
ThiruObject-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
RameshPLEASE 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 -
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�likowskirmic 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 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.
Harshitxmlbeans 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,
VickyCrosspost.
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 processI 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.
TommyAdmittedly 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
-
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.
> >
>
>
-
_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?" -
[ANNOUNCEMENT] Hetman 1.0 Early Access - powerful Java file manager
SoftAge has launched the Early Access Program for Hetman 1.0.
Handy Java desktop application Hetman is a dual-panel file manager for the huge Java community.
Hetman is powered by Fusion framework (based on SWT), it has a decent responsive cross platform GUI and impressive overall performance.
Tabbed rich design interface, native cross platform widgets implementation, powerful text editor, advanced console and much more make Hetman the indispensable and full-featured programmer�s tool.
The following features are currently almost complete:
- two panel file management UI
- powerful incremental file navigation
- built-in text editor with syntax highlight
- advanced console
- Windows networking support
- Zip archives
- FTP
- Open API
Planned features:
- Linux and Mac OS X implementations
- Enhancements for Java developers
- just ask � and we'll do it :)
The most important keys to start:
Alt-F1, Alt-F2 � change drive
Ctrl-T � open new file tab
Ctrl-O � open new console
F4 � edit file under cursor
Ctrl-W � close tab
<any symbol in file panel> � start incremental search
Ctrl-F � start incremental search in editor and console output
Alt-Up, Alt-Down � go to next/previous item in selection, search results etc.
Alt-Left, Alt-Right � go to next/previous tab
You can use Button Bar at the bottom to figure out the most important key combinations yourself. It automatically changes state according to current location and modifier key pressed (Ctrl, Alt, Ctrl+Alt),
Hetman�s Open API has been designed to enable adding features easily and quickly. You can develop your own implementation of the file system that will be fully supported by Hetman.
We are focused to bring Java applications to desktop. Hetman is our first attempt in this direction. We invite you to download EAP (Early Access Program) Hetman�s version for testing and evaluation. Your opinion is what matters most to us.
You can read more about Hetman at http://www.myhetman.com.
Early Acess Program page: http://www.myhetman.com/download/eap.html
Should you have any questions or comments, please don�t hesitate to contact us at [email protected].
Best regards,
Hetman TeamYou know, I think I'll make it a personal policy to never look at anything that someone dumps an ad for in the formums.
-
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.
Maybe you are looking for
-
Creative Cloud Packager 1.2 Builds error on Install...
As I posted in this thread, with no resolution, I am running into issues with Creative Cloud Packager 1.2 Builds. The builds create fine, the applications install fine (when you unpack and rename the Set-up.dat to Set-up.exe), however trying to run t
-
RWRBE60.EXE - Application Error. The memory could not be written - URGENT !
Hi, We are getting the error "RWRBE60.EXE - Application Error. The memory could not be written" in two of the 5 machines. That too, this error is encountered only some times and not always. Scenario: The report builder generates the .PDF file and pla
-
The speaker in my notes has greyed out all of a sudden. How do I get it back?
I use my notes a lot and use the speaker to input them. All of a sudden the speaker button greyed out and I can't get it to work. Any idea how I can fix this?
-
Format a string in java 1.4
I am facing this problem i have a string amount whose value can be 88.0 , 88.26 but if it is 88.0i want this to be displayed as 88.00 can anyone suggest me how to do this . I know this can be done by String.format but unfortunately I guess this is no
-
Any JDBC beans available for JSP? I know regular JDBC can be used but putting database connection logic in jsp sort of destroys its purpose. Are any beans in the works? Freeware/OSS beans?