[JBossWS] - WebService on ESB
by nadiaebrahim
Hi there all..
I am very new to the whole jboss esb thing..(I simply downloaded jbossesb-server zip file and unzipped it on my pc )
I am trying to implement a simple webservice on the esb and have used the webservice_producer sample code as given in the jbossesb-server download.(Have put this project in my eclipse as a dynamic web project) and then exported the war file to server/default/deploy directory.
I can see in the server log(below) that it does something with the war file.
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
2009-07-09 09:02:33,210 DEBUG [javax.enterprise.resource.webcontainer.jsf.config] JSF1021: [/webservice_producer] Configuration option 'com.sun.faces.displayConfiguration' - DISABLED
2009-07-09 09:02:33,210 DEBUG [javax.enterprise.resource.webcontainer.jsf.config] JSF1021: [/webservice_producer] Configuration option 'com.sun.faces.validateXml' - DISABLED
2009-07-09 09:02:33,211 DEBUG [javax.enterprise.resource.webcontainer.jsf.config] JSF1021: [/webservice_producer] Configuration option 'com.sun.faces.verifyObjects' - DISABLED
2009-07-09 09:02:33,211 DEBUG [javax.enterprise.resource.webcontainer.jsf.config] JSF1021: [/webservice_producer] Configuration option 'com.sun.faces.forceLoadConfiguration' - DISABLED
2009-07-09 09:02:33,211 DEBUG [javax.enterprise.resource.webcontainer.jsf.config] JSF1021: [/webservice_producer] Configuration option 'com.sun.faces.enableHtmlTagLibValidator' - DISABLED
2009-07-09 09:02:33,211 DEBUG [javax.enterprise.resource.webcontainer.jsf.config] JSF1021: [/webservice_producer] Configuration option 'com.sun.faces.preferXHTML' - DISABLED
2009-07-09 09:02:33,211 DEBUG [javax.enterprise.resource.webcontainer.jsf.config] JSF1021: [/webservice_producer] Configuration option 'com.sun.faces.compressViewState' - ENABLED
2009-07-09 09:02:33,211 DEBUG [javax.enterprise.resource.webcontainer.jsf.config] JSF1021: [/webservice_producer] Configuration option 'com.sun.faces.compressJavaScript' - ENABLED
2009-07-09 09:02:33,211 DEBUG [javax.enterprise.resource.webcontainer.jsf.config] JSF1021: [/webservice_producer] Configuration option 'com.sun.faces.externalizeJavaScript' - DISABLED
2009-07-09 09:02:33,211 DEBUG [javax.enterprise.resource.webcontainer.jsf.config] JSF1021: [/webservice_producer] Configuration option 'com.sun.faces.sendPoweredByHeader' - ENABLED
2009-07-09 09:02:33,211 DEBUG [javax.enterprise.resource.webcontainer.jsf.config] JSF1021: [/webservice_producer] Configuration option 'com.sun.faces.enableJSStyleHiding' - DISABLED
2009-07-09 09:02:33,211 DEBUG [javax.enterprise.resource.webcontainer.jsf.config] JSF1021: [/webservice_producer] Configuration option 'com.sun.faces.enableScriptsInAttributeValues' - ENABLED
2009-07-09 09:02:33,211 DEBUG [javax.enterprise.resource.webcontainer.jsf.config] JSF1021: [/webservice_producer] Configuration option 'com.sun.faces.writeStateAtFormEnd' - ENABLED
2009-07-09 09:02:33,211 DEBUG [javax.enterprise.resource.webcontainer.jsf.config] JSF1021: [/webservice_producer] Configuration option 'com.sun.faces.enableLazyBeanValidation' - ENABLED
2009-07-09 09:02:33,211 DEBUG [javax.enterprise.resource.webcontainer.jsf.config] JSF1021: [/webservice_producer] Configuration option 'com.sun.faces.enabledLoadBundle11Compatibility' - DISABLED
2009-07-09 09:02:33,211 DEBUG [javax.enterprise.resource.webcontainer.jsf.config] JSF1021: [/webservice_producer] Configuration option 'com.sun.faces.enableRestoreView11Compatibility' - DISABLED
2009-07-09 09:02:33,211 DEBUG [javax.enterprise.resource.webcontainer.jsf.config] JSF1021: [/webservice_producer] Configuration option 'com.sun.faces.serializeServerState' - DISABLED
2009-07-09 09:02:33,211 DEBUG [javax.enterprise.resource.webcontainer.jsf.config] JSF1021: [/webservice_producer] Configuration option 'com.sun.faces.enableViewStateIdRendering' - ENABLED
2009-07-09 09:02:33,211 DEBUG [javax.enterprise.resource.webcontainer.jsf.config] JSF1021: [/webservice_producer] Configuration option 'com.sun.faces.registerConverterPropertyEditors' - DISABLED
2009-07-09 09:02:33,211 DEBUG [javax.enterprise.resource.webcontainer.jsf.config] JSF1021: [/webservice_producer] Configuration option 'com.sun.faces.disableUnicodeEscaping' - DISABLED
2009-07-09 09:02:33,211 DEBUG [javax.enterprise.resource.webcontainer.jsf.config] JSF1021: [/webservice_producer] Configuration option 'com.sun.faces.developmentMode' - DISABLED
2009-07-09 09:02:33,211 DEBUG [javax.enterprise.resource.webcontainer.jsf.config] JSF1018: [/webservice_producer] Configuration option 'javax.faces.STATE_SAVING_METHOD' set to 'server'
2009-07-09 09:02:33,211 DEBUG [javax.enterprise.resource.webcontainer.jsf.config] JSF1018: [/webservice_producer] Configuration option 'javax.faces.DEFAULT_SUFFIX' set to '.jsp'
2009-07-09 09:02:33,211 DEBUG [javax.enterprise.resource.webcontainer.jsf.config] JSF1018: [/webservice_producer] Configuration option 'com.sun.faces.numberOfViewsInSession' set to '15'
2009-07-09 09:02:33,211 DEBUG [javax.enterprise.resource.webcontainer.jsf.config] JSF1018: [/webservice_producer] Configuration option 'com.sun.faces.numberOfLogicalViews' set to '15'
2009-07-09 09:02:33,211 DEBUG [javax.enterprise.resource.webcontainer.jsf.config] JSF1018: [/webservice_producer] Configuration option 'com.sun.faces.injectionProvider' set to 'org.jboss.web.jsf.integration.injection.JBossInjectionProvider'
2009-07-09 09:02:33,211 DEBUG [javax.enterprise.resource.webcontainer.jsf.config] JSF1018: [/webservice_producer] Configuration option 'com.sun.faces.responseBufferSize' set to '1024'
2009-07-09 09:02:33,211 DEBUG [javax.enterprise.resource.webcontainer.jsf.config] JSF1018: [/webservice_producer] Configuration option 'com.sun.faces.clientStateWriteBufferSize' set to '8192'
2009-07-09 09:02:33,211 DEBUG [javax.enterprise.resource.webcontainer.jsf.config] JSF1018: [/webservice_producer] Configuration option 'com.sun.faces.expressionFactory' set to 'com.sun.el.ExpressionFactoryImpl'
2009-07-09 09:02:33,216 DEBUG [javax.enterprise.resource.webcontainer.jsf.config] No FacesServlet found in deployment descriptor - bypassing configuration
2009-07-09 09:02:33,216 DEBUG [org.jboss.web.tomcat.filters.ReplyHeaderFilter] Adding header name: X-Powered-By='Servlet 2.4; JBoss-4.2.3.GA (build: SVNTag=JBoss_4_2_3_GA date=200807181417)/JBossWeb-2.0'
2009-07-09 09:02:33,218 DEBUG [org.jboss.web.tomcat.service.TomcatDeployer] Initialized: {WebApplication: /C:/java/esb/jbossesb-server-4.5.GA/server/default/tmp/deploy/tmp45897webservice_producer-exp.war/, URL: file:/C:/java/esb/jbossesb-server-4.5.GA/server/default/tmp/deploy/tmp45897webservice_producer-exp.war/, classLoader: java.net.FactoryURLClassLoader@4cc70e:5031694} jboss.web:j2eeType=WebModule,name=//localhost/webservice_producer,J2EEApplication=none,J2EEServer=none
2009-07-09 09:02:33,218 DEBUG [org.jboss.web.WebModule] Started jboss.web.deployment:war=webservice_producer.war,id=-1402336082
2009-07-09 09:02:33,218 DEBUG [org.jboss.system.ServiceController] Starting dependent components for: jboss.web.deployment:war=webservice_producer.war,id=-1402336082 dependent components: []
2009-07-09 09:02:33,223 DEBUG [org.jboss.deployment.MainDeployer] End deployment start on package: webservice_producer.war
2009-07-09 09:02:33,223 DEBUG [org.jboss.deployment.MainDeployer] Deployed package: file:/C:/java/esb/jbossesb-server-4.5.GA/server/default/deploy/webservice_producer.war
----------------------------------------------------------------------------------------------------------------------------------------------------------
My problem is that when I deploy to normal jboss application server ,I would be able to see the wsdl url from the below.
http://localhost:8080/jbossws/services
I see nothing on this url know.
I am also confused at to what the url http://localhost:8080/contract means.
I have just copied the jbossesb-server to my directory.I have succesfully implemented a customlistener with the jbossesb-server install..
Not sure what I am doing wrong with the webservice â¦
can somebody please assist.
Thanks
Nadia
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4242599#4242599
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4242599
17 years
[JBoss jBPM] - Re: Hibernate error while deploying process in a web applica
by vignesh57
yeah it did showed up 8000 lines !
I don't know whether it is right or wrong but i added this property to my hibernate.cfg.xml file & got rid of the above error.
anonymous wrote : org.hibernate.context.ThreadLocalSessionContext
But again, i faced another problem. Removed few repeated log statements add embedded it below.
16:21:45,481 INFO [STDOUT] ->public String redeployProcess(String processName)
| 16:21:45,481 INFO [STDOUT] ----->Creating jBPM Configuration....
| 16:21:45,544 INFO [STDOUT] ----->Parsing process definition....
| 16:21:46,122 INFO [STDOUT] ----->Deploying Process definition....
| 16:21:46,200 INFO [Environment] Hibernate 3.2.6
| 16:21:46,200 INFO [Environment] hibernate.properties not found
| 16:21:46,216 INFO [Environment] Bytecode provider name : cglib
| 16:21:46,216 INFO [Environment] using JDK 1.4 java.sql.Timestamp handling
| 16:21:46,325 INFO [Configuration] configuring from resource: hibernate.cfg.xml
| 16:21:46,325 INFO [Configuration] Configuration resource: hibernate.cfg.xml
| 16:21:46,341 INFO [Configuration] Reading mappings from resource : hibernate.extra.hbm.xml
| 16:21:46,419 INFO [Configuration] Reading mappings from resource : hibernate.identity.hbm.xml
| 16:21:46,434 INFO [HbmBinder] Mapping class: org.jbpm.identity.User -> JBPM_ID_USER
| .
| .
| .
| 16:21:47,216 INFO [Configuration] Reading mappings from resource : org/jbpm/taskmgmt/log/SwimlaneAssignLog.hbm.xml
| 16:21:47,216 INFO [HbmBinder] Mapping subclass: org.jbpm.taskmgmt.log.SwimlaneAssignLog -> JBPM_LOG
| 16:21:47,216 INFO [Configuration] Configured SessionFactory: null
| 16:21:47,216 INFO [HbmBinder] Mapping subclass: org.jbpm.graph.action.MailAction -> JBPM_ACTION
| 16:21:47,216 INFO [HbmBinder] Mapping subclass: org.jbpm.context.def.ContextDefinition -> JBPM_MODULEDEFINITION
| 16:21:47,216 INFO [HbmBinder] Mapping collection: org.jbpm.identity.User.memberships -> JBPM_ID_MEMBERSHIP
| 16:21:47,216 INFO [HbmBinder] Mapping collection: org.jbpm.identity.Group.children -> JBPM_ID_GROUP
| .
| .
| .
| 16:21:47,231 INFO [HbmBinder] Mapping collection: org.jbpm.taskmgmt.exe.TaskInstance.variableInstances -> JBPM_VARIABLEINSTANCE
| 16:21:47,231 INFO [HbmBinder] Mapping collection: org.jbpm.taskmgmt.exe.TaskInstance.comments -> JBPM_COMMENT
| 16:21:47,231 INFO [HbmBinder] Mapping collection: org.jbpm.taskmgmt.exe.SwimlaneInstance.pooledActors -> JBPM_POOLEDACTOR
| 16:21:47,231 INFO [HbmBinder] Mapping collection: org.jbpm.logging.log.CompositeLog.children -> JBPM_LOG
| 16:21:47,309 INFO [NamingHelper] JNDI InitialContext properties:{}
| 16:21:47,309 INFO [DatasourceConnectionProvider] Using datasource: java:JbpmDS
| 16:21:47,325 INFO [SettingsFactory] RDBMS: MySQL, version: 5.1.30-community
| 16:21:47,325 INFO [SettingsFactory] JDBC driver: MySQL-AB JDBC Driver, version: mysql-connector-java-5.0.4 ( $Date: 2006-10-19 17:47:48 +0200 (Thu, 19 Oct 2006) $, $Revision: 5908 $ )
| 16:21:47,341 INFO [Dialect] Using dialect: org.hibernate.dialect.MySQLDialect
| 16:21:47,341 INFO [TransactionFactoryFactory] Transaction strategy: org.hibernate.transaction.JTATransactionFactory
| 16:21:47,356 INFO [NamingHelper] JNDI InitialContext properties:{}
| 16:21:47,356 INFO [TransactionManagerLookupFactory] instantiating TransactionManagerLookup: org.hibernate.transaction.JBossTransactionManagerLookup
| 16:21:47,356 INFO [TransactionManagerLookupFactory] instantiated TransactionManagerLookup
| 16:21:47,356 INFO [SettingsFactory] Automatic flush during beforeCompletion(): disabled
| 16:21:47,356 INFO [SettingsFactory] Automatic session close at end of transaction: disabled
| 16:21:47,356 INFO [SettingsFactory] JDBC batch size: 15
| 16:21:47,356 INFO [SettingsFactory] JDBC batch updates for versioned data: disabled
| 16:21:47,356 INFO [SettingsFactory] Scrollable result sets: enabled
| 16:21:47,356 INFO [SettingsFactory] JDBC3 getGeneratedKeys(): enabled
| 16:21:47,356 INFO [SettingsFactory] Connection release mode: auto
| 16:21:47,356 INFO [SettingsFactory] Maximum outer join fetch depth: 2
| 16:21:47,356 INFO [SettingsFactory] Default batch fetch size: 1
| 16:21:47,356 INFO [SettingsFactory] Generate SQL with comments: enabled
| 16:21:47,356 INFO [SettingsFactory] Order SQL updates by primary key: disabled
| 16:21:47,356 INFO [SettingsFactory] Order SQL inserts for batching: disabled
| 16:21:47,356 INFO [SettingsFactory] Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
| 16:21:47,372 INFO [ASTQueryTranslatorFactory] Using ASTQueryTranslatorFactory
| 16:21:47,372 INFO [SettingsFactory] Query language substitutions: {}
| 16:21:47,372 INFO [SettingsFactory] JPA-QL strict compliance: disabled
| 16:21:47,372 INFO [SettingsFactory] Second-level cache: enabled
| 16:21:47,372 INFO [SettingsFactory] Query cache: disabled
| 16:21:47,372 INFO [SettingsFactory] Cache provider: org.hibernate.cache.HashtableCacheProvider
| 16:21:47,372 INFO [SettingsFactory] Optimize cache for minimal puts: disabled
| 16:21:47,372 INFO [SettingsFactory] Structured second-level cache entries: disabled
| 16:21:47,372 INFO [SettingsFactory] Statistics: disabled
| 16:21:47,372 INFO [SettingsFactory] Deleted entity synthetic identifier rollback: disabled
| 16:21:47,372 INFO [SettingsFactory] Default entity-mode: pojo
| 16:21:47,372 INFO [SettingsFactory] Named query checking : enabled
| 16:21:47,434 INFO [SessionFactoryImpl] building session factory
| 16:21:48,325 INFO [SessionFactoryObjectFactory] Not binding factory to JNDI, no JNDI name configured
| 16:21:48,341 INFO [NamingHelper] JNDI InitialContext properties:{}
| 16:21:49,388 ERROR [GraphSession] org.hibernate.HibernateException: getNamedQuery is not valid without active transaction
| 16:21:49,388 INFO [STDOUT] ----->Exception is
| 16:21:49,388 INFO [STDOUT] ----->Deploy Failed....
| 16:21:49,388 ERROR [STDERR] org.jbpm.JbpmException: could not find process definition 'simple'
| 16:21:49,388 ERROR [STDERR] at org.jbpm.db.GraphSession.findLatestProcessDefinition(GraphSession.java:163)
| 16:21:49,388 ERROR [STDERR] at org.jbpm.db.GraphSession.deployProcessDefinition(GraphSession.java:69)
| 16:21:49,388 ERROR [STDERR] at org.jbpm.JbpmContext.deployProcessDefinition(JbpmContext.java:170)
| 16:21:49,388 ERROR [STDERR] at com.sample.dao.JBPMDao.redeployProcess(JBPMDao.java:23)
| 16:21:49,388 ERROR [STDERR] at com.sample.JBPMServlet.doGet(JBPMServlet.java:34)
| 16:21:49,388 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
| 16:21:49,388 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
| 16:21:49,388 ERROR [STDERR] at java.lang.Thread.run(Thread.java:595)
|
| 16:21:49,388 ERROR [STDERR] Caused by: org.hibernate.HibernateException: getNamedQuery is not valid without active transaction
| 16:21:49,388 ERROR [STDERR] at org.hibernate.context.ThreadLocalSessionContext$TransactionProtectionWrapper.invoke(ThreadLocalSessionContext.java:297)
| 16:21:49,388 ERROR [STDERR] at $Proxy50.getNamedQuery(Unknown Source)
| 16:21:49,388 ERROR [STDERR] at org.jbpm.db.GraphSession.findLatestProcessDefinition(GraphSession.java:156)
| 16:21:49,388 ERROR [STDERR] ... 24 more
| 16:21:49,388 INFO [STDOUT] ----->Exception ends
| 16:21:49,388 INFO [STDOUT] ----->Closing jBPM Context....
|
And this is my Hibernate Config file. I removed the mappings & collection-cache.
anonymous wrote : <?xml version='1.0' encoding='utf-8'?>
|
| <!DOCTYPE hibernate-configuration PUBLIC
| "-//Hibernate/Hibernate Configuration DTD 3.0//EN"
| "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
|
| <hibernate-configuration>
| <session-factory>
|
| <!-- hibernate dialect -->
| org.hibernate.dialect.MySQLDialect
|
| <!-- DataSource properties (begin) -->
| java:JbpmDS
|
| org.hibernate.context.ThreadLocalSessionContext
|
| <!-- JTA transaction properties (begin) === -->
| org.hibernate.transaction.JTATransactionFactory
| org.hibernate.transaction.JBossTransactionManagerLookup
| UserTransaction
| <!--==== JTA transaction properties (end) -->
|
| <!-- Simple memory-only cache -->
| org.hibernate.cache.HashtableCacheProvider
|
| <!-- logging properties -->
| true
| true
|
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4242591#4242591
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4242591
17 years