3/4/08


Some incomprehension

I have found some xsd definition:

<xs:schema targetNamespace="java:java.lang" xmlns:xs=http://www.w3.org/2001/XMLSchema>
<xs:complexType name="NullPointerException">
<xs:complexContent>
<xs:extension base="java:RuntimeException" xmlns:java="java:java.lang"/>
</xs:complexContent>

</xs:complexType>
<xs:complexType name="RuntimeException"/>

</xs:schema>

My attention is attracted by line <xs:extension base="... Is there inheritance in XML Schema?

-------------------------------------------------------------

Another strange issue. Let's look into my MyException src:

package com;
public class MyException extends java.lang.Exception {
private static final long serialVersionUID = 6543L;
private java.lang.String myException;

public java.lang.String getMyException() { return this.myException; }
public MyException() { }

public MyException(java.lang.String myException) { this.myException = myException; }

// public MyException(Throwable ex) {

// super(ex);
// }
}

In WSDL for my service it appears as:

<xs:complexType name="MyException">
<xs:sequence>

<xs:element minOccurs="1" name="MyException" nillable="true" type="xs:string"/>
</xs:sequence>

</xs:complexType>
<xs:element name="MyException" type="java:MyException" xmlns:java="java:com"/>


But clientgen generates right definition for class MyException (with extends). From where it know about if in WSDL information is absence?

-------------------------------------------------------------

Next incomprehension tied with comment code in my Exception class. If uncomment those lines then web service invocation will be accompanied with:

weblogic.wsee.codec.CodecException: Failed to encode
at weblogic.wsee.codec.soap11.SoapCodec.encodeFault(SoapCodec.java:362)...

-----------------------------------------------------

JNDI
I have deployed EJB on the WebLogic server. It has jndi:

EJB is allocated in EAR project:First question:
I looked up that EJB via:

context.lookup("ejb.ScfBeanRemoteHome");

EAR project name not needs while jndi lookup???

Second:
I listed all context containig by:

NamingEnumeration en = context.list("");

while(en.hasMore())
{
System.out.println(en.next().toString());
}


and did not find "ejb.ScfBeanRemoteHome" name.. Why? Where is that name?

List:
com_bea_wli_monitoring_alert_AlertLogService: com.bea.wli.monitoring.alert.AlertLoggerImpl
mejbmejb_jarMejb_EO: weblogic.rmi.cluster.ClusterableRemoteObject
ejb: weblogic.jndi.internal.ServerNamingNode
ALSB Test FrameworksbTestFwkEjb_jarTestService_EO: weblogic.rmi.cluster.ClusterableRemoteObject
com_bea_wli_monitoring_Aggregator: com.bea.wli.monitoring.statistics.prototype.ClusterAggregatorImpl
QueueIn: weblogic.jms.common.WrappedDestinationImpl
javax: weblogic.jndi.internal.ServerNamingNode
wli: weblogic.jndi.internal.ServerNamingNode
ScfEjbMediator_ear: weblogic.jndi.internal.ServerNamingNode
wlsbjmsrpDataSource: weblogic.rmi.cluster.ClusterableRemoteObject
AdminServer_clusterTimerAuthority: com.bea.wli.timer.ClusterTimerAuthorityImpl
weblogic: weblogic.jndi.internal.ServerNamingNode
bea_wls_remote_deployerbea_wls_remote_deployer_jarDeployerBean_EO: weblogic.rmi.cluster.ClusterableRemoteObject
ScfEjbMediator_earScfEjbMediator_ejb_jarScfBean_EO: weblogic.rmi.cluster.ClusterableRemoteObject
ScfEjbMediator_earScfEjbMediator_ejb_jarUtiliteBean_EO: weblogic.rmi.cluster.ClusterableRemoteObject
wlsb: weblogic.jndi.internal.ServerNamingNode
ServiceBus_Console: weblogic.jndi.internal.ServerNamingNode
com: weblogic.jndi.internal.ServerNamingNode
WebLogicEJB_ejbWebLogicEJB_ejbSomeEjb_EO: weblogic.rmi.cluster.ClusterableRemoteObject

No comments: