Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Problema invocando EJB

79 views
Skip to first unread message

eduardo....@gmail.com

unread,
Sep 12, 2012, 2:48:07 AM9/12/12
to
Buenos días,

Estoy intentando llamar a una clase que hace una petición a un WS y soy incapaz de localizar el error.

El error de java es el siguiente:

"Se vuelve a leer el beans con el path /beans.xml
Error Error creating bean with name 'clientScetConsulta' defined in class path resource [beans.xml]:
Instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException:
Factory method [public java.lang.Object org.apache.cxf.jaxws.JaxWsProxyFactoryBean.create()] threw exception;
nested exception is java.lang.RuntimeException: org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'org.apache.cxf.wsdl.WSDLManager' defined in class path resource [cxf.xml]:
Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: C
ould not instantiate bean class [org.apache.cxf.wsdl11.WSDLManagerImpl]: Constructor threw exception;
nested exception is org.apache.cxf.BusException "

Mi código este otro:
"JavaVM lJavaVM
EJBConnection lEJBConn1, lEJBConn2, lEJBConn3,EJBerror
ConsultaScetWSClient cliente
ScetEntidadesFasesWS paramEntrada
ScetResultListFases resultado
ScetError sceterror
integer li_return

lJavaVM = CREATE JavaVM
li_return = lJavaVM.CreateJavaVM( "", true)

// Check the return code
CHOOSE CASE li_return
CASE 0, 1
// MessageBox( "Create JVM", "OK" )
CASE -1
MessageBox( "Unable to Create JVM", "jvm.dll was not found in the classpath." )
CASE -2
MessageBox( "Unable to Create JVM", "pbejbclient90.jar file was not found." )
CASE ELSE
MessageBox( "Unable to Create JVM", "Unknown error." )
END CHOOSE

lEJBConn1 = CREATE EJBConnection
lEJBConn2 = CREATE EJBConnection
lEJBConn3 = CREATE EJBConnection
lEJBConn4 = CREATE EJBConnection

li_return = lEJBConn1.CreateJavaInstance( cliente, "ConsultaScetWSClient")
f_error_conect_ejb(li_return)

li_return = lEJBConn2.CreateJavaInstance( paramEntrada, "ScetEntidadesFasesWS")
f_error_conect_ejb(li_return)

li_return = lEJBConn3.CreateJavaInstance( resultado, "ScetResultListFases")
f_error_conect_ejb(li_return)

li_return = lEJBerror.CreateJavaInstance( sceterror, "ScetError")
f_error_conect_ejb(li_return)

TRY
paramEntrada.setidentidadcat("0")
resultado = cliente.listFases(paramEntrada)
sceterror = resultado.geterror()
CATCH( Throwable t )
MessageBox( "method call failed", t.getMessage() )
END TRY

return 1"

A ver si alguien puede darme una pista.
Gracias y un saludo,
Eduardo

eduardo....@gmail.com

unread,
Sep 12, 2012, 2:49:34 AM9/12/12
to
Se me ha olvidado comentar que estoy con
PB10.5
JVM 1.6.19
JRE 1.5
SDJ 1.5

bruce.a...@yahoo.com

unread,
Sep 25, 2012, 2:42:24 PM9/25/12
to
This group has been marked read only on the Sybase server andt the feed between Google and the Sybase server is not currently working. If you post here, the post will never show up on the Sybase server, and most people who answer questions in that group will never see it. Instead, you may want to access the Sybase newsgroups directly at:

http://www.sybase.com/detail_list?id=11507&pageNum=1&multi=true&show=1248
0 new messages