OracleConnection.createARRAY: Unable to resolve type
Hi All,
for some good reasons (don't ask ...) I need to implement a solution where a directory listing, on the DB server machine, can be gotten via an sql query.
I have to say I am not very experienced with Java in Oracle, please forgive the newbie mistakes.
Environment: 11gR2 on Win7, SQLDeveloper as front-end.
In order to do this, I created a simple Java class, DB types and PL/SQL wrappers as follows:
CREATE OR REPLACE TYPE T_FS_ENTRY AS OBJECT (
is_dir CHAR( 1 )
, entry_name VARCHAR2( 4000 )
, entry_size NUMBER
, last_modified NUMBER );
CREATE OR REPLACE TYPE T_FS_ENTRY_TAB IS TABLE OF T_FS_ENTRY;
I then created the Java class
CREATE OR REPLACE AND COMPILE java source named FSEntryReturn
as
import java.sql.*;
import java.util.*;
import java.io.File;
import oracle.jdbc.*;
import oracle.sql.*;
public class FSEntryReturn implements ORADataFactory, ORAData {
private CHAR is_dir;
private CHAR entry_name;
private NUMBER entry_size;
private NUMBER last_modified;
public FSEntryReturn( OracleConnection conn
, String is_dir
, String entry_name
, long entry_size
, long last_modified )
throws SQLException
this.is_dir = new CHAR( is_dir, oracle.sql.CharacterSet.make( conn.getStructAttrCsId() ) );
this.entry_name = new CHAR( entry_name, oracle.sql.CharacterSet.make( conn.getStructAttrCsId() ) );
this.entry_size = new NUMBER( entry_size );
this.last_modified = new NUMBER( last_modified );
public FSEntryReturn( CHAR is_dir
, CHAR entry_name
, NUMBER entry_size
, NUMBER last_modified )
throws SQLException
this.is_dir = is_dir;
this.entry_name = entry_name;
this.entry_size = entry_size;
this.last_modified = last_modified;
public FSEntryReturn( Object[] attributes )
throws SQLException {
this( (CHAR)attributes[0]
, (CHAR)attributes[1]
, (NUMBER)attributes[2]
, (NUMBER)attributes[3] );
public FSEntryReturn( Datum d ) throws SQLException {
this( ( (STRUCT)d).getOracleAttributes() );
public ORAData create( Datum d, int sqlType ) throws SQLException {
if(d == null) return null;
else return new FSEntryReturn( d );
public STRUCT toSTRUCT( Connection conn ) throws SQLException {
StructDescriptor sd = StructDescriptor.createDescriptor( "T_FS_ENTRY", conn );
Object[] attributes = { is_dir, entry_name, entry_size, last_modified };
return new STRUCT( sd, conn, attributes );
public Datum toDatum( Connection conn ) throws SQLException {
return toSTRUCT( conn );
public static List<FSEntryReturn> getDirListImpl( OracleConnection conn, final String dirPath )
throws SQLException
List<FSEntryReturn> ret = new ArrayList<FSEntryReturn>();
File dir = new File( dirPath );
if( dir.isDirectory() ) {
for( String fileName : dir.list() ) {
File f = new File( dir, fileName );
FSEntryReturn fsr = new FSEntryReturn( conn
, (f.isDirectory() ? "1" : null)
, fileName
, f.length()
, f.lastModified() );
ret.add( fsr );
} else
throw new RuntimeException( "Path " + dirPath + " is not a directory" );
return ret;
public static ARRAY getDirList( final String dirPath )
throws SQLException, ClassNotFoundException
// initialize the connection
OracleConnection conn = null;
conn = (OracleConnection) ( new oracle.jdbc.OracleDriver() ).defaultConnection();
FSEntryReturn[] retArray = getDirListImpl( conn, dirPath ).toArray( new FSEntryReturn[0] );
// Map the java class to the Oracle type
Map map = conn.getTypeMap();
map.put("T_FS_ENTRY", Class.forName( "FSEntryReturn" ) );
// ArrayDescriptor retArrayDesc = ArrayDescriptor.createDescriptor( "FPL_XSD.T_FS_ENTRY", conn );
// create an Oracle collection on client side to use as parameter
// ARRAY oracleCollection = new ARRAY( retArrayDesc, conn, retArray );
ARRAY oracleCollection = conn.createARRAY( "T_FS_ENTRY", retArray );
return oracleCollection;
Finally the wrapper:
create or replace PACKAGE QAO_SUPPORT
AS
FUNCTION get_dir_list( p_dir IN VARCHAR2 )
RETURN t_fs_entry_tab;
END QAO_SUPPORT;
create or replace PACKAGE BODY QAO_SUPPORT
AS
FUNCTION get_dir_list( p_dir IN VARCHAR2 )
RETURN t_fs_entry_tab
AS LANGUAGE JAVA
NAME 'FSEntryReturn.getDirList( java.lang.String ) return oracle.sql.ARRAY';
END QAO_SUPPORT;
At last I granted privileges on a directory:
BEGIN dbms_java.grant_permission( 'FPL_XSD', 'SYS:java.io.FilePermission', 'C:\-', 'read,write,execute' ); END;
COMMIT;
When I test this as FPL_XSD user, the same schema where the type, package and source are defined:
select * from table( QAO_SUPPORT.get_dir_list( 'C:\\TEMP' ) );
I get the following error (sorry for the dutch stuff, basically, "uncaught java exception: error in creation of descriptor:..."):
ORA-29532: Java-aanroep is afgesloten door niet-onderschepte Java-uitzondering: java.sql.SQLException: Maken van descriptor is mislukt.: Unable to resolve type: "FPL_XSD.T_FS_ENTRY".
ORA-06512: in "FPL_XSD.QAO_SUPPORT", regel 30
Even if it is not exactly stated the error happens at the line:
ARRAY oracleCollection = conn.createARRAY( "T_FS_ENTRY", retArray );
Note that when logged in as FPL_XSD, desc T_FS_ENTRY returns the type description.
I searched everywhere and consulted the documentation. I think it should work. I am out of ideas, but I have a suspect the problem might be with the connection configuration, maybe?
Any help or hint is greatly appreciated.
Kindly,
Andrea
Hi All,
I insisted trying and I found out what the problem was. In:
ARRAY oracleCollection = conn.createARRAY( "T_FS_ENTRY", retArray );
The first argument is an Oracle type name, I wrongly used the RECORD (OBJECT) type name - T_FS_ENTRY -, not the name of the nested table T_FS_ENTRY_TAB.
So the code should look like:
ARRAY oracleCollection = conn.createARRAY( "T_FS_ENTRY_TAB", retArray );
Which works.
//Andrea
Similar Messages
-
Fail to construct descriptor: Unable to resolve type
I'm receiving an error when creating a oracle.sql.STRUCT or ARRAY. the error is java.sql.SQLException: Fail to construct descriptor: Unable to resolve type "X.NAME".
He is the java code.
// Create the StructDescriptor from the connection
StructDescriptor prStructDesc =
StructDescriptor.createDescriptor("X.NAME", conn);
// construct the object array containing the attribute values for the
// X.NAME object to be inserted
Object[] xObjArray =
"val1",
"val2",
// Construct the Struct from the StructDescriptor and xObjStruct
oracle.sql.STRUCT xStruct = new STRUCT(prStructDesc,
conn, xObjArray);
cs = conn.prepareCall("{ call X.PROC(?,?,?)}");
cs.setObject(1, xStruct);
When I run the code within JDeveloper it runs without any errors. When I deploy to 9iAS release 2 and try to run it there, I receive the error. Thanks for any help.Think I found a solution,.. or at least stopped getting the error. I'm using oracle's OracleCallableStatement instead of the java.sql.CallableStatement. I'm also using a different app server. same version 9.0.2.0.0 I'd recommend applying the patches to anyone using this version. I've ran into some errors that have been patched. It's a long process though..
cheers. -
Unable to resolve the type declared in Oracle.
This is the type which i create. When am indexing the type am unable to access the type from java. The type is directly created under the schema.
type pepc_partial_qual_nmTab1 is table of varchar2(20) index by binary_integer;
anArrayDescriptor1 = new oracle.sql.ArrayDescriptor("PEPC_PARTIAL_QUAL_NMTAB1",con);
anARRAYout1 = new ARRAY(anArrayDescriptor1, con, anArrayOut1);
cstmt.setARRAY(1,anARRAYout1);
cstmt.registerOutParameter(1,OracleTypes.ARRAY, "PEPC_PARTIAL_QUAL_NMTAB1");
This is how I try accessing the type from JAVA.
Thanks in AdvanceThink I found a solution,.. or at least stopped getting the error. I'm using oracle's OracleCallableStatement instead of the java.sql.CallableStatement. I'm also using a different app server. same version 9.0.2.0.0 I'd recommend applying the patches to anyone using this version. I've ran into some errors that have been patched. It's a long process though..
cheers. -
Photos either do not arrive at all or arrive as an unrecognized file type, or sometimes go straight through. Apple support has been unable to resolve. Does anyone have any suggestions??? I am experiencing this on all my devices -- MacBookAir, iMac, both running most current version of Lion; iPad v1.0; and iPhone 4S
Turnmerv wrote:
Photos either do not arrive at all or arrive as an unrecognized file type, or sometimes go straight through. Apple support has been unable to resolve. Does anyone have any suggestions??? I am experiencing this on all my devices -- MacBookAir, iMac, both running most current version of Lion; iPad v1.0; and iPhone 4S
If you can not send from any of these devices then it has to be your e-mail service - the e-mail clients for OS X and for IOS 5 are totally different - the only common thread between all of these devices is your e-mail service
LN -
More than one operation defined. Unable to resolve operation
Hi,
Using the attached WSDL to define a BPEL sequence I allways get the following error message:
More than one operation defined. Unable to resolve operation:
This occured in the moment i introduced a seconde operation. With one operation everything works fine.
Does anybody know how to define a WSDL that works for the BPEL system with more than one operation?
Best Regards,
Axel.
WSDL:
<?xml version="1.0" encoding="UTF-8"?>
<definitions xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:tns="http://dummy.ws.axelbenz.de/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" targetNamespace="http://dummy.ws.axelbenz.de/" name="StringInOutService" xmlns:plink="http://schemas.xmlsoap.org/ws/2004/03/partner-link/">
<types>
<xsd:schema>
<xsd:import namespace="http://dummy.ws.axelbenz.de/" schemaLocation="upperService.xsd" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" />
</xsd:schema>
</types>
<message name="lowerMessage">
<part name="lowerParameters" type="tns:lowerType" />
</message>
<message name="lowerMessageResponse">
<part name="lowerResponseParameters" type="tns:lowerTypeResponse" />
</message>
<message name="upperMessage">
<part name="upperParameters" type="tns:upperType" />
</message>
<message name="upperMessageResponse">
<part name="upperResponseParameters" type="tns:upperTypeResponse" />
</message>
<portType name="StringInOut">
<operation name="lowerOperation">
<input message="tns:lowerMessage" />
<output message="tns:lowerMessageResponse" />
</operation>
<operation name="upperOperation">
<input message="tns:upperMessage" />
<output message="tns:upperMessageResponse" />
</operation>
</portType>
<binding name="StringInOutPortBinding" type="tns:StringInOut">
<soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document" />
<operation name="lowerOperation">
<soap:operation soapAction="lower" style="document" />
<input>
<soap:body use="literal" parts="lowerParameters" />
</input>
<output>
<soap:body use="literal" parts="lowerResponseParameters" />
</output>
</operation>
<operation name="upperOperation">
<soap:operation soapAction="upper" style="document" />
<input>
<soap:body use="literal" parts="upperParameters" namespace="" />
</input>
<output>
<soap:body use="literal" parts="upperResponseParameters" />
</output>
</operation>
</binding>
<service name="StringInOutService">
<port name="StringInOutPort" binding="tns:StringInOutPortBinding">
<soap:address location="http://GWBE0040.int.gematik.de:18181/DummyServices/StringInOutService" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" />
</port>
</service>
<plink:partnerLinkType name="partnerlinktype1">
<plink:role name="serviceRequestor" portType="tns:StringInOut"/>
</plink:partnerLinkType>
</definitions>
XSD:
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema version="1.0" targetNamespace="http://dummy.ws.axelbenz.de/" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="lower" type="ns1:lowerType" xmlns:ns1="http://dummy.ws.axelbenz.de/" />
<xs:complexType name="lowerType">
<xs:sequence>
<xs:element name="inp" type="xs:string" minOccurs="0" />
</xs:sequence>
</xs:complexType>
<xs:element name="lowerResponse" type="ns2:lowerTypeResponse" xmlns:ns2="http://dummy.ws.axelbenz.de/" />
<xs:complexType name="lowerTypeResponse">
<xs:sequence>
<xs:element name="return" type="xs:string" minOccurs="0" />
</xs:sequence>
</xs:complexType>
<xs:element name="upper" type="ns3:upperType" xmlns:ns3="http://dummy.ws.axelbenz.de/" />
<xs:complexType name="upperType">
<xs:sequence>
<xs:element name="inp" type="xs:string" minOccurs="0" />
</xs:sequence>
</xs:complexType>
<xs:element name="upperResponse" type="ns4:upperTypeResponse" xmlns:ns4="http://dummy.ws.axelbenz.de/" />
<xs:complexType name="upperTypeResponse">
<xs:sequence>
<xs:element name="return" type="xs:string" minOccurs="0" />
</xs:sequence>
</xs:complexType>
</xs:schema>What client are you using? Are you using the netbeans enterprise pack test driver? If so, you can set the soap action in the test properties to match the ones you have defined in the WSDL.
Also if you could post the actual soap message you are sending that would help.
I also noticed that you're using parts defined via types with a document/literal binding. To be more basic profile compliant in that casue you may want to use RPC style instead - it is not strictly necessary, but increases interoperability.
Andi -
Clientgen: Unable to resolve definition
Hi!
When using clientgen, I'll get the following error:
weblogic.xml.schema.model.XSDException: Unable to resolve definition for ['htt
://foo.bar.com/eServerTypes.xsd']:s2:RequestBase perhaps due to the lack
of an import statement for namespace http://foo.bar.com/eServerTypes.xsd
I'm already using an import statement to resolve the namespace. Using XMLSpy,
it all works fine. Are there any traps, like hidden character, etc.?
Below, you'll find a snap of the wsdl and xsd-file, including the most important
statements.
greetings
Heiner
WSDL:
<?xml version="1.0" encoding="UTF-8"?>
<definitions ... xmlns:s2="http://foo.bar.com/eServerTypes.xsd">
<import namespace="http://foo.bar.com/eServerTypes.xsd" location="file:///D:/eServerTypes.xsd"/>
<types>
<s:schema elementFormDefault="qualified" targetNamespace="http://foo.bar.com/eServer.Status.v1.wsdl">
<s:element type="s2:RequestBase" name="Request"/>
</types>
</definitions>
eServerTypes.xsd:
<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"
xml:lang="en">
<xsd:complexType name="RequestBase">
</xsd:complexType>
</xsd:schema>Hello,
Might take a look at the WS-I BP on this issue (WSDL import location)
[1]; there are some examples as well.
HTH,
Bruce
[1]
http://www.ws-i.org/Profiles/BasicProfile-1.0-2004-04-16.html#refinement16512792
Heiner Amthauer wrote:
>
Hi!
When using clientgen, I'll get the following error:
weblogic.xml.schema.model.XSDException: Unable to resolve definition for ['htt
://foo.bar.com/eServerTypes.xsd']:s2:RequestBase perhaps due to the lack
of an import statement for namespace http://foo.bar.com/eServerTypes.xsd
I'm already using an import statement to resolve the namespace. Using XMLSpy,
it all works fine. Are there any traps, like hidden character, etc.?
Below, you'll find a snap of the wsdl and xsd-file, including the most important
statements.
greetings
Heiner
WSDL:
<?xml version="1.0" encoding="UTF-8"?>
<definitions ... xmlns:s2="http://foo.bar.com/eServerTypes.xsd">
<import namespace="http://foo.bar.com/eServerTypes.xsd" location="file:///D:/eServerTypes.xsd"/>
<types>
<s:schema elementFormDefault="qualified" targetNamespace="http://foo.bar.com/eServer.Status.v1.wsdl">
<s:element type="s2:RequestBase" name="Request"/>
</types>
</definitions>
eServerTypes.xsd:
<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"
xml:lang="en">
<xsd:complexType name="RequestBase">
</xsd:complexType>
</xsd:schema> -
Hi,
I used wls 6.1 sp2 and the sql2000 I wonder any one have the following problem
before.
in the weblogic-ejb-jar.xml I defined tthe <local-jndi name>customer.LocalCustomerHome</local-jndi-name>
and in the jsp page I lookup by InitialContext ic = new InitialContext(); // System.out.println("Init
context"); System.out.println(ic.toString()); Object o = ic.lookup("customer.LocalCustomerHome");
I am using global namespace(customer.LocalCustomerHome) rather than the local
java:comp/env/ejb namespace in here.
when I try to run the jsp file to create customer I got javax.naming.NameNotFoundException:
Unable to resolve comp/env/CustomerBeanRef I changed the comp/env/CustomerBeanRef
in the lookup code of the jsp to customer.LocalCustomerHome that is defined in
weblogic-ejb-jar.xml but it still refer to comp/env/CustomerBeanRef.
I stop the wlserver and deleted all __generate.class from the jsp then restart
the wlserver it still the same.
Thanks
-------part of weblogic-ejb-jar.xml -----------
<weblogic-enterprise-bean> <ejb-name>CustomerBean</ejb-name> <entity-descriptor>
<persistence> <persistence-type> <type-identifier>WebLogic_CMP_RDBMS</type-identifier>
<type-version>6.0</type-version> <type-storage>META-INF/weblogic-cmp-rdbms-jar.xml</type-storage>
</persistence-type> <persistence-use> <type-identifier>WebLogic_CMP_RDBMS</type-identifier>
<type-version>6.0</type-version> </persistence-use>
</persistence>
</entity-descriptor>
<local-jndi-name>customer.LocalCustomerHome</local-jndi-name> </weblogic-enterprise-bean>
-------------------end of weblogic-ejb-jar.xml ---------------
[createCustomer.jsp]Hi,
set this under startup script at java option.
-Dweblogic.jndi.retainenvironment=true
and restart the server again.
Regards,
Kal -
JMS Unable to resolve 'weblogic.jms.TempDestinationFactory' error!
We are running an application within the Weblogic 7.x EJB Framework. While trying
to connect to the application from our GUI I get the following error. **... Unable
to resolve 'weblogic.jms.TempDestinationFactory' Resolved: 'weblogic.jms' Unresolved:'TempDestinationFactory'
; We have configured our JMS server with two topics - one of which is used for
persistent storage (i.e has the 'store' configuration attribute set to TRUE).
Also we have configured NO stores but a JDBC Tx DataSource.
I would appreciate any suggestions.
**see attached picture**
[confui2.jpg]
In order to use WLS JMS temporary destinations, you have to have a temporary destination template configured for
the JMS server.
Dongbo
Puneet Bhatia wrote:
> We are running an application within the Weblogic 7.x EJB Framework. While trying
> to connect to the application from our GUI I get the following error. **... Unable
> to resolve 'weblogic.jms.TempDestinationFactory' Resolved: 'weblogic.jms' Unresolved:'TempDestinationFactory'
> ; We have configured our JMS server with two topics - one of which is used for
> persistent storage (i.e has the 'store' configuration attribute set to TRUE).
> Also we have configured NO stores but a JDBC Tx DataSource.
> I would appreciate any suggestions.
>
> **see attached picture**
>
> ------------------------------------------------------------------------
> Name: confui2.jpg
> confui2.jpg Type: JPEG Image (image/pjpeg)
> Encoding: base64
-
Unable to resolve JNDI DataSource in weblogic 12c When you upgrade web application
I create a datasource which jndi name is jdbc/allianzB2CDataSource and the target is AdminServer ,and i deploy a web application in AdminServer.In that web application,the code(base on spring framework) is:
public static DataSource getJndiDataSource(String name) {
JndiDataSourceLookup dsLookup = new JndiDataSourceLookup();
Properties jndiEnvironment = new Properties();
jndiEnvironment.put("java.naming.factory.initial",
"weblogic.jndi.WLInitialContextFactory");
dsLookup.setJndiEnvironment(jndiEnvironment);
try {
dsLookup.setResourceRef(false);
return dsLookup.getDataSource(name);
} catch (Exception e) {
dsLookup.setResourceRef(true);
return dsLookup.getDataSource(name);
And the parameter is jdbc/allianzB2CDataSource,everything work fine,but when i restart or upgrate the web application,i got the error like this:
javax.naming.NameNotFoundException: Unable to resolve 'jdbc.allianzB2CDataSource'. Resolved 'jdbc'; remaining name 'allianzB2CDataSource'
Unable to resolve 'jdbc.allianzB2CDataSource'. Resolved 'jdbc'; remaining name 'allianzB2CDataSource'I create a datasource which jndi name is jdbc/allianzB2CDataSource and the target is AdminServer ,and i deploy a web application in AdminServer.In that web application,the code(base on spring framework) is:
public static DataSource getJndiDataSource(String name) {
JndiDataSourceLookup dsLookup = new JndiDataSourceLookup();
Properties jndiEnvironment = new Properties();
jndiEnvironment.put("java.naming.factory.initial",
"weblogic.jndi.WLInitialContextFactory");
dsLookup.setJndiEnvironment(jndiEnvironment);
try {
dsLookup.setResourceRef(false);
return dsLookup.getDataSource(name);
} catch (Exception e) {
dsLookup.setResourceRef(true);
return dsLookup.getDataSource(name);
And the parameter is jdbc/allianzB2CDataSource,everything work fine,but when i restart or upgrate the web application,i got the error like this:
javax.naming.NameNotFoundException: Unable to resolve 'jdbc.allianzB2CDataSource'. Resolved 'jdbc'; remaining name 'allianzB2CDataSource'
Unable to resolve 'jdbc.allianzB2CDataSource'. Resolved 'jdbc'; remaining name 'allianzB2CDataSource' -
Servicegen: unable to load type library from classloader weblogic.utils.cl
Hi,
I am new to weblogic. I am encountering an error on trying to run the 'servicegen' command from my ant build scripts, on weblogic 9.2.
Please find the build.xml snapshot, and the stack trace given below.
Please help me out with this.
Points to be noted are:-
1) The ejb-jar.xml specifies the bean class, which is very much present in the classpath. The ejb-jar.xml is generated by xdoclet. Snapshot is given below:-
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN" "http://java.sun.com/dtd/ejb-jar_2_0.dtd">
<ejb-jar >
<description><![CDATA[No Description.]]></description>
<display-name>Generated by XDoclet</display-name>
<enterprise-beans>
<!-- Session Beans -->
<session >
<description><![CDATA[NorthBound Interface]]></description>
<ejb-name>ArcorNBIService</ejb-name>
<home>com.alcatel.hdm.arcoril.webservice.ejb.ArcorNBIServiceHome</home>
<remote>com.alcatel.hdm.arcoril.webservice.ejb.ArcorNBIService</remote>
<local-home>com.alcatel.hdm.arcoril.webservice.ejb.ArcorNBIServiceLocalHome</local-home>
<local>com.alcatel.hdm.arcoril.webservice.ejb.ArcorNBIServiceLocal</local>
<ejb-class>com.alcatel.hdm.arcoril.webservice.ejb.ArcorNBIServiceBean</ejb-class>
<session-type>Stateless</session-type>
<transaction-type>Container</transaction-type>
</session>
</enterprise-beans>
</ejb-jar>
2) When I replace the "ejbJar" attribute in the 'service' command with "javaClassComponents" attribute, I am able to run the servicegen command successfully. Not sure why the ejbJar is creating problems.
3) Build.xml snapshot:-
<target name="gen-webservice" depends="init">
<copy todir="${work.dir}" file="${export.dir}/lib/arcor-il-service-ejb.jar"/>
<autotype javatypes="${javatypes}" targetNamespace="${targetNamespace}" destDir="${work.dir}/classes" keepGenerated="${keepGenerated}" classpathref="webservice.client.classpath"/>
<autotype javaComponents="com.alcatel.hdm.arcoril.webservice.ejb.ArcorNBIService" targetNamespace="com.alcatel.hdm.service.nbi.dto.holders" destDir="${work.dir}/classes" keepGenerated="true" classpathref="webservice.client.classpath"/>
<servicegen destEar="${earfile}" warName="${warname}" contextURI="${contextURI}" keepGenerated="${keepGenerated}" classpathref="webservice.client.classpath">
<service ejbJar="${ejbLocation}" targetNamespace="${targetNamespace}" serviceName="${serviceName}" serviceURI="/${serviceName}" generateTypes="false" expandMethods="${expandMethods}" ignoreAuthHeader="false" protocol="https" style="rpc" useSOAP12="${useSOAP12}" typeMappingFile="${work.dir}/classes/types.xml">
<security enablePasswordAuth="true"/>
</service>
</servicegen>
</target>
4) Exception stacktrace:-
--- Nested Exception ---
java.lang.AssertionError: java.io.IOException
at weblogic.descriptor.DescriptorManager$DefaultMarshallerFactorySingleton.<clinit>(DescriptorManager.java:42)
at weblogic.descriptor.DescriptorManager.getDefaultMF(DescriptorManager.java:116)
at weblogic.descriptor.DescriptorManager.getMarshallerFactory(DescriptorManager.java:125)
at weblogic.descriptor.DescriptorManager.getDescriptorFactory(DescriptorManager.java:153)
at weblogic.descriptor.DescriptorManager.createDescriptor(DescriptorManager.java:277)
at weblogic.descriptor.DescriptorManager.createDescriptor(DescriptorManager.java:248)
at weblogic.descriptor.DescriptorManager.createDescriptor(DescriptorManager.java:309)
at weblogic.descriptor.EditableDescriptorManager.createDescriptor(EditableDescriptorManager.java:99)
at weblogic.application.descriptor.AbstractDescriptorLoader.createDescriptor(AbstractDescriptorLoader.java:344)
at weblogic.application.descriptor.CachingDescriptorLoader.createDescriptor(CachingDescriptorLoader.java:188)
at weblogic.application.descriptor.AbstractDescriptorLoader.createDescriptor(AbstractDescriptorLoader.java:328)
at weblogic.application.descriptor.AbstractDescriptorLoader.getDescriptor(AbstractDescriptorLoader.java:237)
at weblogic.application.descriptor.AbstractDescriptorLoader.getRootDescriptorBean(AbstractDescriptorLoader.java:217)
at weblogic.ejb.spi.EjbJarDescriptor.getEjbJarBean(EjbJarDescriptor.java:141)
at weblogic.ejb.spi.EjbJarDescriptor.getEditableEjbJarBean(EjbJarDescriptor.java:182)
at weblogic.ejb.container.dd.xml.DDUtils.processEjbJarXMLWithSchema(DDUtils.java:519)
at weblogic.ejb.container.dd.xml.DDUtils.createDescriptorFromJarFile(DDUtils.java:182)
at weblogic.ejb.container.dd.xml.DDUtils.createDescriptorFromJarFile(DDUtils.java:126)
at weblogic.ejb.container.dd.xml.DDUtils.createDescriptorFromJarFile(DDUtils.java:154)
at weblogic.ejb.container.dd.xml.DDUtils.createDescriptorFromJarFile(DDUtils.java:147)
at weblogic.ejb.spi.DDUtils.createDescriptorFromJarFile(DDUtils.java:30)
at weblogic.webservice.dd.EJBJarIntrospector.<init>(EJBJarIntrospector.java:52)
at weblogic.ant.taskdefs.webservices.autotype.EJBAutoTyper.<init>(EJBAutoTyper.java:68)
at weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask.runAutoTyper(ServiceGenTask.java:339)
at weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask.generateService(ServiceGenTask.java:313)
at weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask.execute(ServiceGenTask.java:181)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
at org.apache.tools.ant.Task.perform(Task.java:364)
at org.apache.tools.ant.Target.execute(Target.java:341)
at org.apache.tools.ant.Target.performTasks(Target.java:369)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
at org.apache.tools.ant.Main.runBuild(Main.java:668)
at org.apache.tools.ant.Main.startAnt(Main.java:187)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
Caused by: java.io.IOException
at weblogic.descriptor.internal.MarshallerFactory.<init>(MarshallerFactory.java:50)
at weblogic.descriptor.DescriptorManager$DefaultMarshallerFactorySingleton.<clinit>(DescriptorManager.java:40)
... 37 more
Caused by: com.bea.xml.XmlException: unable to load type library from classloader weblogic.utils.classloaders.ClasspathClassLoader@1cc0a7f f
inder: weblogic.utils.classloaders.CodeGenClassFinder@c52200 annotation:
at com.bea.staxb.runtime.internal.BindingContextFactoryImpl.createBindingContext(BindingContextFactoryImpl.java:50)
at weblogic.descriptor.internal.MarshallerFactory.<init>(MarshallerFactory.java:48)
... 38 more
Total time: 5 secondsHi,
I am new to weblogic. I am encountering an error on trying to run the 'servicegen' command from my ant build scripts, on weblogic 9.2.
Please find the build.xml snapshot, and the stack trace given below.
Please help me out with this.
Points to be noted are:-
1) The ejb-jar.xml specifies the bean class, which is very much present in the classpath. The ejb-jar.xml is generated by xdoclet. Snapshot is given below:-
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN" "http://java.sun.com/dtd/ejb-jar_2_0.dtd">
<ejb-jar >
<description><![CDATA[No Description.]]></description>
<display-name>Generated by XDoclet</display-name>
<enterprise-beans>
<!-- Session Beans -->
<session >
<description><![CDATA[NorthBound Interface]]></description>
<ejb-name>ArcorNBIService</ejb-name>
<home>com.alcatel.hdm.arcoril.webservice.ejb.ArcorNBIServiceHome</home>
<remote>com.alcatel.hdm.arcoril.webservice.ejb.ArcorNBIService</remote>
<local-home>com.alcatel.hdm.arcoril.webservice.ejb.ArcorNBIServiceLocalHome</local-home>
<local>com.alcatel.hdm.arcoril.webservice.ejb.ArcorNBIServiceLocal</local>
<ejb-class>com.alcatel.hdm.arcoril.webservice.ejb.ArcorNBIServiceBean</ejb-class>
<session-type>Stateless</session-type>
<transaction-type>Container</transaction-type>
</session>
</enterprise-beans>
</ejb-jar>
2) When I replace the "ejbJar" attribute in the 'service' command with "javaClassComponents" attribute, I am able to run the servicegen command successfully. Not sure why the ejbJar is creating problems.
3) Build.xml snapshot:-
<target name="gen-webservice" depends="init">
<copy todir="${work.dir}" file="${export.dir}/lib/arcor-il-service-ejb.jar"/>
<autotype javatypes="${javatypes}" targetNamespace="${targetNamespace}" destDir="${work.dir}/classes" keepGenerated="${keepGenerated}" classpathref="webservice.client.classpath"/>
<autotype javaComponents="com.alcatel.hdm.arcoril.webservice.ejb.ArcorNBIService" targetNamespace="com.alcatel.hdm.service.nbi.dto.holders" destDir="${work.dir}/classes" keepGenerated="true" classpathref="webservice.client.classpath"/>
<servicegen destEar="${earfile}" warName="${warname}" contextURI="${contextURI}" keepGenerated="${keepGenerated}" classpathref="webservice.client.classpath">
<service ejbJar="${ejbLocation}" targetNamespace="${targetNamespace}" serviceName="${serviceName}" serviceURI="/${serviceName}" generateTypes="false" expandMethods="${expandMethods}" ignoreAuthHeader="false" protocol="https" style="rpc" useSOAP12="${useSOAP12}" typeMappingFile="${work.dir}/classes/types.xml">
<security enablePasswordAuth="true"/>
</service>
</servicegen>
</target>
4) Exception stacktrace:-
--- Nested Exception ---
java.lang.AssertionError: java.io.IOException
at weblogic.descriptor.DescriptorManager$DefaultMarshallerFactorySingleton.<clinit>(DescriptorManager.java:42)
at weblogic.descriptor.DescriptorManager.getDefaultMF(DescriptorManager.java:116)
at weblogic.descriptor.DescriptorManager.getMarshallerFactory(DescriptorManager.java:125)
at weblogic.descriptor.DescriptorManager.getDescriptorFactory(DescriptorManager.java:153)
at weblogic.descriptor.DescriptorManager.createDescriptor(DescriptorManager.java:277)
at weblogic.descriptor.DescriptorManager.createDescriptor(DescriptorManager.java:248)
at weblogic.descriptor.DescriptorManager.createDescriptor(DescriptorManager.java:309)
at weblogic.descriptor.EditableDescriptorManager.createDescriptor(EditableDescriptorManager.java:99)
at weblogic.application.descriptor.AbstractDescriptorLoader.createDescriptor(AbstractDescriptorLoader.java:344)
at weblogic.application.descriptor.CachingDescriptorLoader.createDescriptor(CachingDescriptorLoader.java:188)
at weblogic.application.descriptor.AbstractDescriptorLoader.createDescriptor(AbstractDescriptorLoader.java:328)
at weblogic.application.descriptor.AbstractDescriptorLoader.getDescriptor(AbstractDescriptorLoader.java:237)
at weblogic.application.descriptor.AbstractDescriptorLoader.getRootDescriptorBean(AbstractDescriptorLoader.java:217)
at weblogic.ejb.spi.EjbJarDescriptor.getEjbJarBean(EjbJarDescriptor.java:141)
at weblogic.ejb.spi.EjbJarDescriptor.getEditableEjbJarBean(EjbJarDescriptor.java:182)
at weblogic.ejb.container.dd.xml.DDUtils.processEjbJarXMLWithSchema(DDUtils.java:519)
at weblogic.ejb.container.dd.xml.DDUtils.createDescriptorFromJarFile(DDUtils.java:182)
at weblogic.ejb.container.dd.xml.DDUtils.createDescriptorFromJarFile(DDUtils.java:126)
at weblogic.ejb.container.dd.xml.DDUtils.createDescriptorFromJarFile(DDUtils.java:154)
at weblogic.ejb.container.dd.xml.DDUtils.createDescriptorFromJarFile(DDUtils.java:147)
at weblogic.ejb.spi.DDUtils.createDescriptorFromJarFile(DDUtils.java:30)
at weblogic.webservice.dd.EJBJarIntrospector.<init>(EJBJarIntrospector.java:52)
at weblogic.ant.taskdefs.webservices.autotype.EJBAutoTyper.<init>(EJBAutoTyper.java:68)
at weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask.runAutoTyper(ServiceGenTask.java:339)
at weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask.generateService(ServiceGenTask.java:313)
at weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask.execute(ServiceGenTask.java:181)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
at org.apache.tools.ant.Task.perform(Task.java:364)
at org.apache.tools.ant.Target.execute(Target.java:341)
at org.apache.tools.ant.Target.performTasks(Target.java:369)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
at org.apache.tools.ant.Main.runBuild(Main.java:668)
at org.apache.tools.ant.Main.startAnt(Main.java:187)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
Caused by: java.io.IOException
at weblogic.descriptor.internal.MarshallerFactory.<init>(MarshallerFactory.java:50)
at weblogic.descriptor.DescriptorManager$DefaultMarshallerFactorySingleton.<clinit>(DescriptorManager.java:40)
... 37 more
Caused by: com.bea.xml.XmlException: unable to load type library from classloader weblogic.utils.classloaders.ClasspathClassLoader@1cc0a7f f
inder: weblogic.utils.classloaders.CodeGenClassFinder@c52200 annotation:
at com.bea.staxb.runtime.internal.BindingContextFactoryImpl.createBindingContext(BindingContextFactoryImpl.java:50)
at weblogic.descriptor.internal.MarshallerFactory.<init>(MarshallerFactory.java:48)
... 38 more
Total time: 5 seconds -
Unable to resolve Apache-Tomcat after 5.0.2 Upgrade / Content Server Install
I recently upgraded from 5.0.1 to 5.0.2. With 5.0.1, I was able to resolve to http://<apache-tomcat.domain.com>:8080 as well as http://<apache-tomcat.domain.com>:8080/ptcsand http://<apache-tomcat.domain.com>:8080/ptcs/diagnosticsTest.jsp. However, after upgrading to 5.0.2, I am unable to resolve to any of these URLs. The 'Content Server' admin. folder shows up within the admin. ui and all necessary objects are there. Other than the upgrade, no other changes were made to the server. Any suggestions? Thanks.
Did you upgrade to Tomcat 4.1.27LE version ?
-
I am unable to update software, transfer purchases, sync, or backup any of my 3 devices. I have tried using iTunes on other computers, uninstalling iTunes with tech support walking me through, using a different user on my computer, deleting photos off of my devices, using an ethernet cable instead of connecting with wifi, uninstalling my antivirus software and firewall, and had my laptop examined by several techs who all determined there was nothing wrong with the laptop that explains what has been going on. I am also unable to view or download purchases on iTunes. Clicking the Itunes store results in a blank white screen. I get various error messages, including -9886. Apple techs and now the engineers have been unable to resolve the issues thus far, even after several hours of phone support over the course of several months (about 5 hours this month alone). I have done everything they've suggested, even when they've suggested I do something over again, and I'm becoming frustrated. I would greatly appreciate any advice you can offer. Thank you in advance for your time.
Hi there
Sorry for hijacking your thread as put by Dahveed. However I have resolved my issue so I thought I'll share it with the rest of you.
I checked for the error 3194 in youtube and I found some good videos that tell you how to resolve the problem. The issue I was facing was the actually (I know because I have resolved it now) the communication between my computer and apple server which can be fixed as following (if you are using windows):
There is file in following directory:
C:\Windows/system32/drivers/etc/hosts
The file normally has no extension and it is in file format. You need to open it and make sure that every line that has apple server id starts with "#". In my case one of the line started directly with the ip address and then gs.apple.com.
Perform your restore/update after that and hopefully it should be resolved (mine did).
Cheers -
Java.lang.Exception: Unable to resolve wwinvDataSource
Hi,
=============
java.lang.Exception: Unable to resolve wwinvDataSource. Resolved: '' Unresolved:'wwinvDataSource'
=============
I am getting this error in the JSP. wwinvDataSource is the name of my DataSource.
Has anybody encountered similar problem?
Thanks,
AjayCheck whether your connection pool and datasource are really
started. Also check you have the correct JDNI name, NOT name,
for your datasource.
"Ajay Singh" <[email protected]> wrote:
>
Hi,
=============
java.lang.Exception: Unable to resolve wwinvDataSource. Resolved: '' Unresolved:'wwinvDataSource'
=============
I am getting this error in the JSP. wwinvDataSource is the name of my DataSource.
Has anybody encountered similar problem?
Thanks,
Ajay -
From today's morning , We are having Issue on Our Online SharePoint Site.
Each WebPart is not loading and displaying this Line
Unable to load type Microsoft.SharePoint.Upgrade.SPUpgradeCompatibilityException required for deserialization.
Please write in quick response to fix it at
[email protected]Hi,
According to your post, my understanding is that SharePoint Online Site was unable to load web part and got the “Microsoft.SharePoint.Upgrade.SPUpgradeCompatibilityException” error.
Per my knowledge, the SPUpgradeCompatibilityException occurs during upgrade when the front-end Web server attempts to connect to an incompatible database.
Please check whether the database is compatible.
Regarding SharePoint Online, for quick and accurate answers to your questions, it is recommended that you initial a new thread in Office 365 forum.
Office 365 forum
http://community.office365.com/en-us/forums/default.aspx
Best Regards,
Linda Li
Linda Li
TechNet Community Support -
Error in a page with a master-detail:Unable to resolve a Validator instance
Hi all,
I am using Jdeveloper 11.1.1.2
I have a page with a master table and a detail table.
When I try to select a row in the some tables (master or detail), I have this error:
<AbstractValidatorTag><createValidator> Unable to resolve a Validator instance using either validatorId ' or binding #{row.bindings.IdLocazione.validator}.
<RegistrationConfigurator><handleError> Server Exception during PPR, #1
javax.servlet.ServletException: Unable to resolve a Validator instance using either validatorId '' or binding '#{row.bindings.IdLocazione.validator}'.
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:270)
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:292)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:191)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:97)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:420)
at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:420)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:247)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:157)
at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:94)
at java.security.AccessController.doPrivileged(Native Method)
at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:413)
at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:138)
at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:70)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.dms.wls.DMSServletFilter.doFilter(DMSServletFilter.java:326)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3592)
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:2202)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2108)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1432)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
Any suggestions?
Thanks
Andrea
Edited by: Andrea9 on 17-feb-2010 00:45I am using ADF, I can reproduce in a testcase, but I need time.
If you want, I can cut and paste the jspx page.
However, I have a panelStretchLayout: on top facet I have the master table, while in the center facet I have the detail table.
I have a query component to filtering data of the master table.
I have this problem doing this:
1) create a new record on master table.
2) create some records on detail table (sons of the record of the master table just created).
3) clicking on "find" of the query component.
I have tried to do a master-detail with the HR connection using Departments table (master) and Employee (detail). When I try to delete a departments, it does not work, because I have to delete the employees first, while in my case I want to delete the master and the detail in cascade.
Thanks
Edited by: Andrea9 on 17-feb-2010 08:25
Maybe you are looking for
-
How to create ebook chapter cross-references with inDesign CS6?
Hi, I'm creating a fairly technical ebook, and would like the reader to be able to easily link "See Chapter X for more information" with Chapter X. My problem is that all the "See Chapter X for more information" phrases are set up as a character sty
-
How can I get a download of adobe acrobat X?
I do not want to upgrade and I just need the software download for the exsisting liscence that I have.
-
My hard disk of mac has failed. How do i recover my data
My hard disk of mac has failed. How do i recover my data
-
I have a Microsoft Word document (don't start. I know...) and I'm using the Apple print dialog to save as a PDF. This works fine so long as I read the same PDF on my Mac. The document contains Myriad Pro (TrueType) and Callibri fonts. Perhaps not com
-
Can someone please help with the following casting exception error? Vector names = v.retrieveModuleNames(); ModuleNameNumber mnn = new ModuleNameNumber(); for (int i=0; i<names.size(); i++) { mnn = (ModuleNameNumber)names.elementAt(i); thanks!!