Alek,
My omission with the classpath, what you listed perfect.  The problem of
seeing exceptions though is the incorrect initialization
of the JNDI inital context by Sun's implementation of j2ee.jar. To get rid
of it, the user should remove " jndi.properties" file from the
class path. If Sun's j2ee implementation is used, this file is in j2ee.jar
and its deletion fixes the problem.
I think I should add this to the readme, along with the classpath - is it
still ok or would it delay the release?
If so, we can just post the steps on the mailing list (wsif list, I hope -
that is an excellent idea).



Piotr


Regards,

Piotr Przybylski, IBM
Internet: [EMAIL PROTECTED]




                                                                                       
                                      
                      Aleksander                                                       
                                      
                      Slominski                To:       "[EMAIL PROTECTED]" 
<[EMAIL PROTECTED]>                 
                      <[EMAIL PROTECTED]        cc:                                     
                                      
                      .edu>                    Subject:  [wsif] testing RC3            
                                      
                                                                                       
                                      
                      01/24/2003 10:15                                                 
                                      
                      AM                                                               
                                      
                      Please respond to                                                
                                      
                      axis-dev                                                         
                                      
                                                                                       
                                      
                                                                                       
                                      



hi,

i have tested all samples on windows 2000 and what i could on solaris (i
did not have JBoss or other app server installed on Solaris so i did not
check JMS and EJB samples) and i have checked in small updates to
documentation

i could get JCA sample to work on windows (after adding one directory to
CLASSPATH) but not on solaris and even on windows it produced lot of
output with stack traces but printed expected result (below).

thanks,

alek

ps. here is how to run JCA sample: with normal classpath it does not work:

C:\tmp\WSIF\wsif-2.0rc3>classpath
build\lib\wsif.jar;build\lib\wsif-j2c.jar;build\classes;build\samples;build\tests;lib\xmlParserAPIs-

2_2_1.jar;lib\xercesImpl-2_2_1.jar;lib\wsdl4j-20021124.jar;lib\soaprmi-1_1.jar;lib\servlet-2_2.jar;l

ib\saaj-1_1.jar;lib\qname-from-wsdl4j-20021124.jar;lib\optional-1_5_1.jar;lib\myeis.jar;lib\log4j-1_

2_4.jar;lib\junit-3_8_1.jar;lib\jms-1_1.jar;lib\jaxrpc-1_1.jar;lib\j2ee-1_3_1.jar;lib\commons-loggin

g.jar;lib\commons-discovery.jar;lib\axis-1_0.jar;lib\axis-1_0-ant.jar;lib\apache_soap-2_3_1.jar;lib\

ant-1_5_1.jar;

C:\tmp\WSIF\wsif-2.0rc3>java com.myeis.customer.J2C_MyEIS_CustomerInfoProxy
Exception in thread "main" java.lang.NoClassDefFoundError:
com/myeis/customer/J2C_MyEIS_CustomerInfoProxy



to fix it it is necessary to add build\samples\jca\customer
(which is a bit strange to do - why it is not compiled into build/samples?)

and then after lot of stack traces it prints expected output

C:\tmp\WSIF\wsif-2.0rc3>set
CLASSPATH=%CLASSPATH%;build\samples\jca\customer

C:\tmp\WSIF\wsif-2.0rc3>java com.myeis.customer.J2C_MyEIS_CustomerInfoProxy
java.io.FileNotFoundException:
C:\tmp\WSIF\wsif-2.0rc3\config\security.properties (The system cannot
 find the path specified)
        at java.io.FileInputStream.open(Native Method)
        at java.io.FileInputStream.<init>(FileInputStream.java:103)
        at
com.sun.enterprise.util.Utility.getPropertiesFromFile(Utility.java:42)
        at com.sun.enterprise.iiop.POAEJBORB.<clinit>(POAEJBORB.java:78)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:207)
        at org.omg.CORBA.ORB.create_impl(ORB.java:306)
        at org.omg.CORBA.ORB.init(ORB.java:345)
        at
com.sun.enterprise.util.ORBManager.createORB(ORBManager.java:138)
        at com.sun.enterprise.util.ORBManager.init(ORBManager.java:65)
        at
com.sun.enterprise.naming.SerialInitContextFactory.<init>(SerialInitContextFactory.java:3


1)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
        at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:


39)
        at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorIm


pl.java:27)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
        at java.lang.Class.newInstance0(Class.java:296)
        at java.lang.Class.newInstance(Class.java:249)
        at
javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:649)
        at
javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:243)
        at javax.naming.InitialContext.init(InitialContext.java:219)
        at javax.naming.InitialContext.<init>(InitialContext.java:175)
        at
org.apache.wsif.providers.jca.WSIFUtils_JCA.lookupConnectionFactory(Unknown

Source)
        at
com.myeis.wsif.providers.j2c.myeis.WSIFProvider_MyEIS.createDynamicWSIFPort(Unknown


Sourc
e)
        at
org.apache.wsif.base.WSIFServiceImpl.createDynamicWSIFPort(Unknown Source)
        at org.apache.wsif.base.WSIFServiceImpl.getPort(Unknown Source)
        at
com.myeis.customer.J2C_MyEIS_CustomerInfoProxy.execute(Unknown Source)
        at
com.myeis.customer.J2C_MyEIS_CustomerInfoProxy.getCustomer(Unknown Source)
        at com.myeis.customer.J2C_MyEIS_CustomerInfoProxy.main(Unknown
Source)
java.io.FileNotFoundException:
C:\tmp\WSIF\wsif-2.0rc3\config\ejb.properties (The system cannot find
 the path specified)
        at java.io.FileInputStream.open(Native Method)
        at java.io.FileInputStream.<init>(FileInputStream.java:103)
        at
com.sun.enterprise.util.Utility.getPropertiesFromFile(Utility.java:42)
        at
com.sun.enterprise.iiop.J2EEInitializer.<init>(J2EEInitializer.java:54)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
        at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:


39)
        at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorIm


pl.java:27)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
        at java.lang.Class.newInstance0(Class.java:296)
        at java.lang.Class.newInstance(Class.java:249)
        at
com.sun.corba.ee.internal.Interceptors.PIORB.registerORBInitializers(PIORB.java:377)


        at
com.sun.corba.ee.internal.Interceptors.PIORB.parseProperties(PIORB.java:347)


        at
com.sun.corba.ee.internal.TxPOA.TxPIORB.parseProperties(TxPIORB.java:116)
        at com.sun.corba.ee.internal.corba.ORB.set_parameters(ORB.java:461)
        at
com.sun.corba.ee.internal.POA.POAORB.set_parameters(POAORB.java:156)
        at
com.sun.corba.ee.internal.Interceptors.PIORB.set_parameters(PIORB.java:336)
        at org.omg.CORBA.ORB.init(ORB.java:346)
        at
com.sun.enterprise.util.ORBManager.createORB(ORBManager.java:138)
        at com.sun.enterprise.util.ORBManager.init(ORBManager.java:65)
        at
com.sun.enterprise.naming.SerialInitContextFactory.<init>(SerialInitContextFactory.java:3


1)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
        at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:


39)
        at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorIm


pl.java:27)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
        at java.lang.Class.newInstance0(Class.java:296)
        at java.lang.Class.newInstance(Class.java:249)
        at
javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:649)
        at
javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:243)
        at javax.naming.InitialContext.init(InitialContext.java:219)
        at javax.naming.InitialContext.<init>(InitialContext.java:175)
        at
org.apache.wsif.providers.jca.WSIFUtils_JCA.lookupConnectionFactory(Unknown

Source)
        at
com.myeis.wsif.providers.j2c.myeis.WSIFProvider_MyEIS.createDynamicWSIFPort(Unknown


Sourc
e)
        at
org.apache.wsif.base.WSIFServiceImpl.createDynamicWSIFPort(Unknown Source)
        at org.apache.wsif.base.WSIFServiceImpl.getPort(Unknown Source)
        at
com.myeis.customer.J2C_MyEIS_CustomerInfoProxy.execute(Unknown Source)
        at
com.myeis.customer.J2C_MyEIS_CustomerInfoProxy.getCustomer(Unknown Source)
        at com.myeis.customer.J2C_MyEIS_CustomerInfoProxy.main(Unknown
Source)

Warning: unable to read transaction.interoperability config property
java.io.FileNotFoundException:
C:\tmp\WSIF\wsif-2.0rc3\config\security.properties (The system cannot
 find the path specified)
        at java.io.FileInputStream.open(Native Method)
        at java.io.FileInputStream.<init>(FileInputStream.java:103)
        at
com.sun.enterprise.util.Utility.getPropertiesFromFile(Utility.java:42)
        at
com.sun.enterprise.iiop.security.SecurityMechanismSelector.<clinit>(SecurityMechanismSele


ctor.java:102)
        at
com.sun.enterprise.iiop.IIOPSSLSocketFactory.getEndPointInfo(IIOPSSLSocketFactory.java:21


1)
        at
com.sun.corba.ee.internal.iiop.ConnectionTable.getConnection(ConnectionTable.java:73)


        at
com.sun.corba.ee.internal.iiop.ConnectionTable.getConnection(ConnectionTable.java:68)


        at
com.sun.corba.ee.internal.iiop.GIOPImpl.getConnection(GIOPImpl.java:70)
        at
com.sun.corba.ee.internal.corba.InitialNamingClient.locateObject(InitialNamingClient.java


:769)
        at
com.sun.corba.ee.internal.corba.InitialNamingClient.getIORUsingHostInfo(InitialNamingClie


nt.java:597)
        at
com.sun.corba.ee.internal.corba.InitialNamingClient.resolveCorbaloc(InitialNamingClient.j


ava:573)
        at
com.sun.corba.ee.internal.corba.InitialNamingClient.resolveUsingORBInitRef(InitialNamingC


lient.java:544)
        at
com.sun.corba.ee.internal.corba.InitialNamingClient.cachedInitialReferences(InitialNaming


Client.java:1080)
        at
com.sun.corba.ee.internal.corba.InitialNamingClient.resolve_initial_references(InitialNam


ingClient.java:981)
        at
com.sun.corba.ee.internal.corba.ORB.resolve_initial_references(ORB.java:2425)


        at
com.sun.enterprise.naming.SerialContext.getProvider(SerialContext.java:52)
        at
com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:120)
        at javax.naming.InitialContext.lookup(InitialContext.java:347)
        at
org.apache.wsif.providers.jca.WSIFUtils_JCA.lookupConnectionFactory(Unknown

Source)
        at
com.myeis.wsif.providers.j2c.myeis.WSIFProvider_MyEIS.createDynamicWSIFPort(Unknown


Sourc
e)
        at
org.apache.wsif.base.WSIFServiceImpl.createDynamicWSIFPort(Unknown Source)
        at org.apache.wsif.base.WSIFServiceImpl.getPort(Unknown Source)
        at
com.myeis.customer.J2C_MyEIS_CustomerInfoProxy.execute(Unknown Source)
        at
com.myeis.customer.J2C_MyEIS_CustomerInfoProxy.getCustomer(Unknown Source)
        at com.myeis.customer.J2C_MyEIS_CustomerInfoProxy.main(Unknown
Source)
Customer number: 33333
Customer name:   Alan Turing

C:\tmp\WSIF\wsif-2.0rc3>


on Solaris however it seems that there is some problem (Windows
dependency?) preventing it from runing:

[aslom@rainier wsif-2.0rc3]$ . classpath.sh
build/lib/wsif-j2c.jar:build/lib/wsif.jar:build/classes:build/samples:build/tests:lib/apac

he_soap-2_3_1.jar:lib/axis-1_0.jar:lib/commons-discovery.jar:lib/commons-logging.jar:lib/j

2ee-1_3_1.jar:lib/jaxrpc-1_1.jar:lib/jms-1_1.jar:lib/junit-3_8_1.jar:lib/log4j-1_2_4.jar:l

ib/optional-1_5_1.jar:lib/qname-from-wsdl4j-20021124.jar:lib/saaj-1_1.jar:lib/servlet-2_2.

jar:lib/soaprmi-1_1.jar:lib/wsdl4j-20021124.jar:lib/xercesImpl-2_2_1.jar:lib/xmlParserAPIs

-2_2_1.jar:.
[aslom@rainier wsif-2.0rc3]$ java
com.myeis.customer.J2C_MyEIS_CustomerInfoProxy
Exception in thread "main" java.lang.NoClassDefFoundError:
com/myeis/customer/J2C_MyEIS_Cu
stomerInfoProxy
[aslom@rainier wsif-2.0rc3]$ export
CLASSPATH=build/samples/jca/customer:$CLASSPATH
[aslom@rainier wsif-2.0rc3]$ java
com.myeis.customer.J2C_MyEIS_CustomerInfoProxy
org.apache.wsif.WSIFException: Port 'CustomerInfoMyEISPort' is not
available and  no alter
native can be found
        at org.apache.wsif.base.WSIFServiceImpl.getPort(Unknown Source)
        at
com.myeis.customer.J2C_MyEIS_CustomerInfoProxy.execute(Unknown Source)
        at
com.myeis.customer.J2C_MyEIS_CustomerInfoProxy.getCustomer(Unknown Source)
        at com.myeis.customer.J2C_MyEIS_CustomerInfoProxy.main(Unknown
Source)

--
"Mr. Pauli, we in the audience are all agreed that your theory is crazy.
What divides us is whether it is crazy enough to be true." Niels H. D. Bohr





Reply via email to