[JBoss Web Services] - Generated WSDL differs between WS Stacks. Bug?
by Kurt Stam
Kurt Stam [http://community.jboss.org/people/kurt.stam%40jboss.com] created the discussion
"Generated WSDL differs between WS Stacks. Bug?"
To view the discussion, visit: http://community.jboss.org/message/571678#571678
--------------------------------------------------------------
Hi guys,
On the Apache jUDDI project we deploy WebServices using the WebService annotation on both the interface as well as on the service implementation. For example:
> In the jUDDI project we generated our WebServices Java classes from the WSDL using the CXF tooling. For the SecuroityService it created annotations on the interface of:
>
> @WebService(name = "UDDI_Security_PortType", targetNamespace = "urn:uddi-org:v3_service")
> public interface UDDISecurityPortType
>
> and on the implementation class:
>
> @WebService(serviceName="UDDISecurityService",
> endpointInterface="org.uddi.v3_service.UDDISecurityPortType",
> targetNamespace = "urn:uddi-org:v3_service")
> public class UDDISecurityImpl extends AuthenticatedService implements UDDISecurityPortType
Now if this is deployed to Tomcat + CXF the generated WSDL says:
> <wsdl:service name="UDDI_Security_Port">
> <wsdl:port binding="tns:UDDI_Security_PortSoapBinding" name="UDDISecurityServicePort">
> <soap:address location= http://localhost:8080/juddiv3/services/security "http://localhost:8080/juddiv3/services/security"/>
> </wsdl:port>
> </wsdl:service>
While when deployed to JBossAS-5.1 (with JBossWS + CXF) the WSDL says:
> <wsdl:service name="UDDISecurityService">
> <wsdl:port binding="tns:UDDISecurityServiceSoapBinding" name="UDDISecurityImplPort">
> <soap:address location= http://127.0.0.1:8080/juddiv3/services/security "http://127.0.0.1:8080/juddiv3/services/security"/>
> </wsdl:port>
> </wsdl:service>
So clearly the annotations are used in different ways by the two WS stacks (even if the CXF implementation is used in both cases).
Question:
Are the differences due to a bug, or is the spec unclear as to what to do with the Annotation MetaData? If it is a bug, which WS Stack does the right thing?
Thx,
--Kurt
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/571678#571678]
Start a new discussion in JBoss Web Services at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 11 months
[IronJacamar] - Re: Throwable while attempting to get a new connection: nul
by Vlad T
Vlad T [http://community.jboss.org/people/b3lowster] created the discussion
"Re: Throwable while attempting to get a new connection: nul"
To view the discussion, visit: http://community.jboss.org/message/571788#571788
--------------------------------------------------------------
Good day
I have a similar problem. This is text of exception:
> 2010-11-18 15:11:25,157 WARN [org.jboss.resource.connectionmanager.JBossManagedConnectionPool] Throwable while attempting to get a new connection: null
> org.jboss.resource.JBossResourceException: Could not create connection; - nested throwable: (java.sql.SQLRecoverableException: Io exception: Connection reset)
> at org.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory.createManagedConnection(LocalManagedConnectionFactory.java:179)
> at org.jboss.resource.connectionmanager.InternalManagedConnectionPool.createConnectionEventListener(InternalManagedConnectionPool.java:577)
> at org.jboss.resource.connectionmanager.InternalManagedConnectionPool.getConnection(InternalManagedConnectionPool.java:262)
> at org.jboss.resource.connectionmanager.JBossManagedConnectionPool$BasePool.getConnection(JBossManagedConnectionPool.java:500)
> at org.jboss.resource.connectionmanager.BaseConnectionManager2.getManagedConnection(BaseConnectionManager2.java:341)
> at org.jboss.resource.connectionmanager.TxConnectionManager.getManagedConnection(TxConnectionManager.java:315)
> at org.jboss.resource.connectionmanager.BaseConnectionManager2.allocateConnection(BaseConnectionManager2.java:396)
> at org.jboss.resource.connectionmanager.BaseConnectionManager2$ConnectionManagerProxy.allocateConnection(BaseConnectionManager2.java:842)
> at org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:88)
> at ua.kyivstar.kiosk.service.dbutils.DBFactory.getPoolConnection(DBFactory.java:97)
> at ua.kyivstar.kiosk.service.dbutils.DBFactory.getConnection(DBFactory.java:65)
> at ua.kyivstar.kiosk.service.dbutils.DBFacet.<init>(DBFacet.java:17)
> at ua.kyivstar.kiosk.service.handler.CreateRequestToConnectHIHandler.handleRequest(CreateRequestToConnectHIHandler.java:31)
> at ua.kyivstar.kiosk.service.LCServer.processRequest(LCServer.java:48)
> at ua.kyivstar.kiosk.InterfaceKiosk.doGet(InterfaceKiosk.java:68)
> at ua.kyivstar.kiosk.InterfaceKiosk.doPost(InterfaceKiosk.java:34)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
> at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
> at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
> at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
> at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
> at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
> at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
> at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
> at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
> at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
> at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
> at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
> at java.lang.Thread.run(Thread.java:619)
> Caused by: java.sql.SQLRecoverableException: Io exception: Connection reset
> at oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.java:101)
> at oracle.jdbc.driver.DatabaseError.newSQLException(DatabaseError.java:133)
> at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:199)
> at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:263)
> at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:521)
> at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:418)
> at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:508)
> at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:203)
> at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:33)
> at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:510)
> at org.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory.createManagedConnection(LocalManagedConnectionFactory.java:171)
> ... 35 more
> Caused by: java.net.SocketException: Connection reset
> at java.net.SocketInputStream.read(SocketInputStream.java:168)
> at oracle.net.ns.Packet.receive(Packet.java:240)
> at oracle.net.ns.NSProtocol.connect(NSProtocol.java:259)
> at oracle.jdbc.driver.T4CConnection.connect(T4CConnection.java:966)
> at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:292)
> ... 40 more
*Is a problem at the database server/driver level?*
In folder lib I have a ojdbc6.jar
MANIFEST.MF:
Manifest-Version: 1.0
Implementation-Vendor: Oracle Corporation
Implementation-Title: ojdbc6.jar
Implementation-Version: Oracle JDBC Driver version - "11.1.0.7.0-Produ
ction"
Implementation-Time: Thu Aug 28 17:39:02 2008
Specification-Vendor: Oracle Corporation
Sealed: true
Created-By: 1.6.0 (Sun Microsystems Inc.)
Specification-Title: Oracle JDBC driver classes for use with JDK6
Specification-Version: Oracle JDBC Driver version - "11.1.0.7.0-Produc
tion"
Main-Class: oracle.jdbc.OracleDriver
Name: oracle/sql/converter_xcharset/
Sealed: false
Name: oracle/sql/
Sealed: false
Name: oracle/sql/converter/
Sealed: false
*Thanks*
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/571788#571788]
Start a new discussion in IronJacamar at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 11 months
[jBPM] - org.jbpm.JbpmException: no ObjectInfo class specified for element 'import'
by aneesh kumar CM
aneesh kumar CM [http://community.jboss.org/people/aneesh.kumar] created the discussion
"org.jbpm.JbpmException: no ObjectInfo class specified for element 'import'"
To view the discussion, visit: http://community.jboss.org/message/570736#570736
--------------------------------------------------------------
hi,
iam trying to fire a timer in my appplication.
<state name="waitForNotification">
<timer duedate="30 seconds" transition='toTimeout'/>
<transition to="Timeout" name="toTimeout" />
<transition to="notificationSuccess" name="toNotificationSuccess"/>
</state>
in my web.xml i have given setvlet mappings
<servlet>
<servlet-name>JobExecutorServlet</servlet-name>
<servlet-class>org.jbpm.job.executor.JobExecutorServlet</servlet-class>
<load-on-startup>3</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>JobExecutorServlet</servlet-name>
<url-pattern>/jobexecutor</url-pattern>
</servlet-mapping>
my jbpm.cfg.xml looks like
<?xml version="1.0" encoding="UTF-8"?>
<jbpm-configuration>
<import resource="classpath:jbpm.jobexecutor.cfg.xml"/>
<import resource="classpath:jbpm.businesscalendar.cfg.xml"/>
<jbpm-context>
<service name="persistence" factory="org.jbpm.persistence.db.DbPersistenceServiceFactory" />
<service name="tx" factory="org.jbpm.tx.TxServiceFactory" />
<service name="message" factory="org.mule.transport.bpm.jbpm.MuleMessageServiceFactory" />
<service name="scheduler" factory="org.jbpm.scheduler.db.DbSchedulerServiceFactory" />
<service name="logging" factory="org.jbpm.logging.db.DbLoggingServiceFactory" />
<service name="authentication" factory="org.jbpm.security.authentication.DefaultAuthenticationServiceFactory" />
</jbpm-context>
<!-- configuration resource files pointing to default configuration files in jbpm-{version}.jar -->
<string name="resource.hibernate.cfg.xml" value="hibernate.cfg.xml" />
<string name="resource.business.calendar" value="org/jbpm/calendar/jbpm.business.calendar.properties" />
<string name="resource.default.modules" value="org/jbpm/graph/def/jbpm.default.modules.properties" />
<string name="resource.converter" value="org/jbpm/db/hibernate/jbpm.converter.properties" />
<string name="resource.action.types" value="org/jbpm/graph/action/action.types.xml" />
<string name="resource.node.types" value="org/jbpm/graph/node/node.types.xml" />
<string name="resource.parsers" value="org/jbpm/jpdl/par/jbpm.parsers.xml" />
<string name="resource.varmapping" value="org/jbpm/context/exe/jbpm.varmapping.xml" />
<long name="jbpm.msg.wait.timout" value="5000" singleton="true" />
<int name="jbpm.byte.block.size" value="1024" singleton="true" />
<string name="mail.smtp.host" value="localhost" />
<bean name="jbpm.task.instance.factory" class="org.jbpm.taskmgmt.impl.DefaultTaskInstanceFactoryImpl" singleton="true" />
<bean name="jbpm.variable.resolver" class="org.jbpm.jpdl.el.impl.JbpmVariableResolver" singleton="true" />
<bean name="jbpm.mail.address.resolver" class="org.jbpm.identity.mail.IdentityAddressResolver" singleton="true" />
<bean name="jbpm.job.executor" class="org.jbpm.job.executor.JobExecutor" singelton="true">
<field name="jbpmConfiguration"><ref bean="jbpmConfiguration" /></field>
<field name="name"><string value="JbpmJobExector" /></field>
<field name="nbrOfThreads"><int value="1" /></field>
<field name="idleInterval"><int value="2500" /></field>
<field name="maxIdleInterval"><int value="3600000" /></field>
<field name="historyMaxSize"><int value="20" /></field>
</bean>
</jbpm-configuration>
While runnig the application using jetty server it is giving the error
nested exception is org.jbpm.JbpmException: no ObjectInfo class specified for element 'import'
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1336)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:471)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
at java.security.AccessController.doPrivileged(Native Method)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:217)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:423)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:728)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:380)
at org.mule.config.spring.SpringRegistry.doInitialise(SpringRegistry.java:87)
at org.mule.registry.AbstractRegistry.initialise(AbstractRegistry.java:68)
... 47 more
Caused by: org.jbpm.JbpmException: no ObjectInfo class specified for element 'import'
at org.jbpm.configuration.ObjectFactoryParser.parse(ObjectFactoryParser.java:139)
at org.jbpm.configuration.ObjectFactoryParser.createObjectFactory(ObjectFactoryParser.java:97)
at org.jbpm.configuration.ObjectFactoryParser.parseInputStream(ObjectFactoryParser.java:83)
at org.springmodules.workflow.jbpm31.LocalJbpmConfigurationFactoryBean.afterPropertiesSet(LocalJbpmConfigurationFactoryBean.java:127)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1367)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1333)
... 61 more
and also another one like
ERROR: org.jbpm.job.executor.JobExecutorThread - exception in job executor thread. waiting 5000 milliseconds
org.hibernate.HibernateException: hibernate.cfg.xml not found
at org.hibernate.util.ConfigHelper.getResourceAsStream(ConfigHelper.java:147)
at org.hibernate.cfg.Configuration.getConfigurationInputStream(Configuration.java:1405)
at org.hibernate.cfg.Configuration.configure(Configuration.java:1427)
at org.jbpm.db.hibernate.HibernateHelper.createConfiguration(HibernateHelper.java:91)
at org.jbpm.persistence.db.DbPersistenceServiceFactory.getConfiguration(DbPersistenceServiceFactory.java:69)
at org.jbpm.persistence.db.DbPersistenceServiceFactory.getSessionFactory(DbPersistenceServiceFactory.java:91)
at org.jbpm.persistence.db.DbPersistenceService.getSessionFactory(DbPersistenceService.java:95)
at org.jbpm.persistence.db.DbPersistenceService.getSession(DbPersistenceService.java:99)
at org.jbpm.persistence.db.DbPersistenceService.getJobSession(DbPersistenceService.java:359)
at org.jbpm.JbpmContext.getJobSession(JbpmContext.java:563)
at org.jbpm.job.executor.JobExecutorThread.acquireJobs(JobExecutorThread.java:112)
at org.jbpm.job.executor.JobExecutorThread.run(JobExecutorThread.java:58)
can anybody plz give me some directions regarding this problem
regards
Aneesh.
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/570736#570736]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 11 months