[JBossWS] - Re: Cannot Rename web.xml
by bsisson
Additional information, if I attempt to do a full publish again it is during this second full publish that I get the "Endpoint already registered" exception for my web service.
13:23:08,646 INFO [TomcatDeployer] undeploy, ctxPath=/PSDynamicWebProject, warUrl=.../deploy/PSDynamicWebProject-ear.ear/PSDynamicWebProject.war/
13:23:08,661 INFO [EJBContainer] STOPPED EJB: org.jboss.seam.async.TimerServiceDispatcher ejbName: TimerServiceDispatcher
13:23:08,677 WARN [JmxKernelAbstraction] jboss.j2ee:ear=PSDynamicWebProject-ear.ear,jar=jboss-seam.jar,name=TimerServiceDispatcher,service=EJB3 is not registered
13:23:08,677 INFO [EJBContainer] STOPPED EJB: org.jboss.seam.transaction.EjbSynchronizations ejbName: EjbSynchronizations
13:23:08,677 WARN [JmxKernelAbstraction] jboss.j2ee:ear=PSDynamicWebProject-ear.ear,jar=jboss-seam.jar,name=EjbSynchronizations,service=EJB3 is not registered
13:23:08,677 INFO [PersistenceUnitDeployment] Stopping persistence unit persistence.units:ear=PSDynamicWebProject-ear.ear,unitName=PSDynamicWebProject
13:23:08,677 INFO [SessionFactoryImpl] closing
13:23:08,677 INFO [SessionFactoryObjectFactory] Unbinding factory from JNDI name: persistence.units:ear=PSDynamicWebProject-ear.ear,unitName=PSDynamicWebProject
13:23:08,677 INFO [NamingHelper] JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces}
13:23:08,677 INFO [SessionFactoryObjectFactory] Unbound factory from JNDI name: persistence.units:ear=PSDynamicWebProject-ear.ear,unitName=PSDynamicWebProject
13:23:08,677 WARN [JmxKernelAbstraction] persistence.units:ear=PSDynamicWebProject-ear.ear,unitName=PSDynamicWebProject is not registered
13:23:08,692 INFO [EARDeployer] Undeploying J2EE application, destroy step: file:/C:/Eclipse/Servers/jboss-4.2.2.GA/jboss-4.2.2.GA/server/all/deploy/PSDynamicWebProject-ear.ear/
13:23:08,692 INFO [EARDeployer] Undeployed J2EE application: file:/C:/Eclipse/Servers/jboss-4.2.2.GA/jboss-4.2.2.GA/server/all/deploy/PSDynamicWebProject-ear.ear/
13:23:08,692 INFO [EARDeployer] Init J2EE application: file:/C:/Eclipse/Servers/jboss-4.2.2.GA/jboss-4.2.2.GA/server/all/deploy/PSDynamicWebProject-ear.ear/
13:23:09,239 WARN [MainDeployer] Found non-jar deployer for jboss-seam.jar: MBeanProxyExt[jboss.ejb3:service=EJB3Deployer]
13:23:11,020 WARN [DeploymentInfo] Only the root deployment can set the loader repository, ignoring config=LoaderRepositoryConfig(repositoryName: seam.jboss.org:loader=PSDynamicWebProject, repositoryClassName: org.jboss.mx.loading.HeirarchicalLoaderRepository3, configParserClassName: org.jboss.mx.loading.HeirarchicalLoaderRepository3ConfigParser, repositoryConfig: java2ParentDelegation=false)
13:23:11,755 ERROR [MainDeployer] Could not create deployment: file:/C:/Eclipse/Servers/jboss-4.2.2.GA/jboss-4.2.2.GA/server/all/deploy/PSDynamicWebProject-ear.ear/PSDynamicWebProject.war/
java.lang.IllegalStateException: Endpoint already registered: jboss.ws:context=PSDynamicWebProject,endpoint=TestWs
at org.jboss.wsf.framework.management.DefaultEndpointRegistry.register(DefaultEndpointRegistry.java:89)
at org.jboss.wsf.framework.management.ManagedEndpointRegistry.register(ManagedEndpointRegistry.java:59)
at org.jboss.wsf.framework.deployment.EndpointRegistryDeploymentAspect.create(EndpointRegistryDeploymentAspect.java:46)
at org.jboss.wsf.framework.deployment.DeploymentAspectManagerImpl.deploy(DeploymentAspectManagerImpl.java:115)
at org.jboss.wsf.container.jboss42.ArchiveDeployerHook.deploy(ArchiveDeployerHook.java:97)
at org.jboss.wsf.container.jboss42.DeployerInterceptor.create(DeployerInterceptor.java:79)
at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.create(SubDeployerInterceptorSupport.java:180)
at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:91)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
at $Proxy54.create(Unknown Source)
at org.jboss.deployment.MainDeployer.create(MainDeployer.java:969)
at org.jboss.deployment.MainDeployer.create(MainDeployer.java:959)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:818)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
at sun.reflect.GeneratedMethodAccessor29.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
at $Proxy9.deploy(Unknown Source)
at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:610)
at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:274)
at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:225)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4149531#4149531
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4149531
16 years, 8 months
[JBossWS] - Cannot Rename web.xml
by bsisson
I created a web service using annotations and am deploying it to a JBoss Server in Eclipse. I have JBoss Tools deployed into Eclipse. I am running Eclipse 3.3 and JBoss 4.2.2GA. With my web service running I make a change to a class file (not the web service but a class in the same directory). I am then prompted to continue, stop or restart. I select continue and then I go to my JBoss Server view and right click on my web service module and select full deploy. I get the following error: Cannot rename web.xml. I'm curious how to prevent the error and in addition how to make live updates that will be propogated to JBoss without having to restart everytimg?
13:17:15,545 INFO [TomcatDeployer] undeploy, ctxPath=/PSDynamicWebProject, warUrl=.../deploy/PSDynamicWebProject-ear.ear/PSDynamicWebProject.war/
13:17:15,670 INFO [EJBContainer] STOPPED EJB: org.jboss.seam.async.TimerServiceDispatcher ejbName: TimerServiceDispatcher
13:17:15,670 WARN [JmxKernelAbstraction] jboss.j2ee:ear=PSDynamicWebProject-ear.ear,jar=jboss-seam.jar,name=TimerServiceDispatcher,service=EJB3 is not registered
13:17:15,670 INFO [EJBContainer] STOPPED EJB: org.jboss.seam.transaction.EjbSynchronizations ejbName: EjbSynchronizations
13:17:15,670 WARN [JmxKernelAbstraction] jboss.j2ee:ear=PSDynamicWebProject-ear.ear,jar=jboss-seam.jar,name=EjbSynchronizations,service=EJB3 is not registered
13:17:15,670 INFO [PersistenceUnitDeployment] Stopping persistence unit persistence.units:ear=PSDynamicWebProject-ear.ear,unitName=PSDynamicWebProject
13:17:15,686 INFO [SessionFactoryImpl] closing
13:17:15,686 INFO [SessionFactoryObjectFactory] Unbinding factory from JNDI name: persistence.units:ear=PSDynamicWebProject-ear.ear,unitName=PSDynamicWebProject
13:17:15,701 INFO [NamingHelper] JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces}
13:17:15,701 INFO [SessionFactoryObjectFactory] Unbound factory from JNDI name: persistence.units:ear=PSDynamicWebProject-ear.ear,unitName=PSDynamicWebProject
13:17:15,701 WARN [JmxKernelAbstraction] persistence.units:ear=PSDynamicWebProject-ear.ear,unitName=PSDynamicWebProject is not registered
13:17:15,717 ERROR [MainDeployer] Deployer destroy failed for: file:/C:/Eclipse/Servers/jboss-4.2.2.GA/jboss-4.2.2.GA/server/all/deploy/PSDynamicWebProject-ear.ear/PSDynamicWebProject.war/
org.jboss.wsf.spi.deployment.WSFDeploymentException: javax.xml.ws.WebServiceException: Cannot rename web.xml: C:\Eclipse\Servers\jboss-4.2.2.GA\jboss-4.2.2.GA\server\all\deploy\PSDyna...
at org.jboss.wsf.spi.deployment.WSFDeploymentException.rethrow(WSFDeploymentException.java:54)
at org.jboss.wsf.framework.deployment.DeploymentAspectManagerImpl.failsafeDestroy(DeploymentAspectManagerImpl.java:190)
at org.jboss.wsf.framework.deployment.DeploymentAspectManagerImpl.undeploy(DeploymentAspectManagerImpl.java:162)
at org.jboss.wsf.container.jboss42.ArchiveDeployerHook.undeploy(ArchiveDeployerHook.java:111)
at org.jboss.wsf.container.jboss42.DeployerInterceptor.destroy(DeployerInterceptor.java:112)
at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.destroy(SubDeployerInterceptorSupport.java:204)
at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:103)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
at $Proxy54.destroy(Unknown Source)
at org.jboss.deployment.MainDeployer.destroy(MainDeployer.java:704)
at org.jboss.deployment.MainDeployer.destroy(MainDeployer.java:696)
at org.jboss.deployment.MainDeployer.undeploy(MainDeployer.java:639)
at org.jboss.deployment.MainDeployer.undeploy(MainDeployer.java:632)
at org.jboss.deployment.MainDeployer.undeploy(MainDeployer.java:615)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
at $Proxy9.undeploy(Unknown Source)
at org.jboss.deployment.scanner.URLDeploymentScanner.undeploy(URLDeploymentScanner.java:450)
at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:604)
at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:274)
at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:225)
Caused by: javax.xml.ws.WebServiceException: Cannot rename web.xml: C:\Eclipse\Servers\jboss-4.2.2.GA\jboss-4.2.2.GA\server\all\deploy\PSDyna...
at org.jboss.wsf.container.jboss42.ModifyWebMetaDataDeploymentAspect.destroy(ModifyWebMetaDataDeploymentAspect.java:90)
at org.jboss.wsf.framework.deployment.DeploymentAspectManagerImpl.failsafeDestroy(DeploymentAspectManagerImpl.java:186)
... 34 more
13:17:15,717 INFO [EARDeployer] Undeploying J2EE application, destroy step: file:/C:/Eclipse/Servers/jboss-4.2.2.GA/jboss-4.2.2.GA/server/all/deploy/PSDynamicWebProject-ear.ear/
13:17:15,717 INFO [EARDeployer] Undeployed J2EE application: file:/C:/Eclipse/Servers/jboss-4.2.2.GA/jboss-4.2.2.GA/server/all/deploy/PSDynamicWebProject-ear.ear/
13:17:15,748 INFO [EARDeployer] Init J2EE application: file:/C:/Eclipse/Servers/jboss-4.2.2.GA/jboss-4.2.2.GA/server/all/deploy/PSDynamicWebProject-ear.ear/
13:17:16,326 WARN [MainDeployer] Found non-jar deployer for jboss-seam.jar: MBeanProxyExt[jboss.ejb3:service=EJB3Deployer]
13:17:17,795 WARN [DeploymentInfo] Only the root deployment can set the loader repository, ignoring config=LoaderRepositoryConfig(repositoryName: seam.jboss.org:loader=PSDynamicWebProject, repositoryClassName: org.jboss.mx.loading.HeirarchicalLoaderRepository3, configParserClassName: org.jboss.mx.loading.HeirarchicalLoaderRepository3ConfigParser, repositoryConfig: java2ParentDelegation=false)
13:17:18,529 INFO [JmxKernelAbstraction] creating wrapper delegate for: org.jboss.ejb3.entity.PersistenceUnitDeployment
13:17:18,529 INFO [JmxKernelAbstraction] installing MBean: persistence.units:ear=PSDynamicWebProject-ear.ear,unitName=PSDynamicWebProject with dependencies:
13:17:18,529 INFO [JmxKernelAbstraction] jboss.jca:name=PSDynamicWebProjectDatasource,service=DataSourceBinding
13:17:18,529 INFO [PersistenceUnitDeployment] Starting persistence unit persistence.units:ear=PSDynamicWebProject-ear.ear,unitName=PSDynamicWebProject
13:17:18,561 INFO [Ejb3Configuration] found EJB3 Entity bean: org.domain.PSDynamicWebProject.entity.Employee
13:17:18,592 INFO [Configuration] Reading mappings from resource : META-INF/orm.xml
13:17:18,592 INFO [Ejb3Configuration] [PersistenceUnit: PSDynamicWebProject] no META-INF/orm.xml found
13:17:18,592 INFO [AnnotationBinder] Binding entity from annotated class: org.domain.PSDynamicWebProject.entity.Employee
13:17:18,592 INFO [EntityBinder] Bind entity org.domain.PSDynamicWebProject.entity.Employee on table WBPSEMPL2
13:17:18,670 INFO [ConnectionProviderFactory] Initializing connection provider: org.hibernate.ejb.connection.InjectedDataSourceConnectionProvider
13:17:18,670 INFO [InjectedDataSourceConnectionProvider] Using provided datasource
13:17:18,670 INFO [SettingsFactory] RDBMS: Oracle, version: Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
13:17:18,670 INFO [SettingsFactory] JDBC driver: Oracle JDBC driver, version: 10.2.0.1.0XE
13:17:18,670 INFO [Dialect] Using dialect: org.hibernate.dialect.Oracle10gDialect
13:17:18,670 INFO [TransactionFactoryFactory] Transaction strategy: org.hibernate.ejb.transaction.JoinableCMTTransactionFactory
13:17:18,670 INFO [TransactionManagerLookupFactory] instantiating TransactionManagerLookup: org.hibernate.transaction.JBossTransactionManagerLookup
13:17:18,670 INFO [TransactionManagerLookupFactory] instantiated TransactionManagerLookup
13:17:18,670 INFO [SettingsFactory] Automatic flush during beforeCompletion(): disabled
13:17:18,670 INFO [SettingsFactory] Automatic session close at end of transaction: disabled
13:17:18,670 INFO [SettingsFactory] JDBC batch size: 15
13:17:18,670 INFO [SettingsFactory] JDBC batch updates for versioned data: disabled
13:17:18,670 INFO [SettingsFactory] Scrollable result sets: enabled
13:17:18,670 INFO [SettingsFactory] JDBC3 getGeneratedKeys(): disabled
13:17:18,670 INFO [SettingsFactory] Connection release mode: auto
13:17:18,670 INFO [SettingsFactory] Default batch fetch size: 1
13:17:18,670 INFO [SettingsFactory] Generate SQL with comments: disabled
13:17:18,670 INFO [SettingsFactory] Order SQL updates by primary key: disabled
13:17:18,670 INFO [SettingsFactory] Order SQL inserts for batching: disabled
13:17:18,670 INFO [SettingsFactory] Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
13:17:18,670 INFO [ASTQueryTranslatorFactory] Using ASTQueryTranslatorFactory
13:17:18,670 INFO [SettingsFactory] Query language substitutions: {}
13:17:18,670 INFO [SettingsFactory] JPA-QL strict compliance: enabled
13:17:18,670 INFO [SettingsFactory] Second-level cache: enabled
13:17:18,670 INFO [SettingsFactory] Query cache: disabled
13:17:18,670 INFO [SettingsFactory] Cache provider: org.hibernate.cache.HashtableCacheProvider
13:17:18,670 INFO [SettingsFactory] Optimize cache for minimal puts: disabled
13:17:18,670 INFO [SettingsFactory] Cache region prefix: PSDynamicWebProject-ear_ear,PSDynamicWebProject
13:17:18,670 INFO [SettingsFactory] Structured second-level cache entries: disabled
13:17:18,670 INFO [SettingsFactory] Echoing all SQL to stdout
13:17:18,670 INFO [SettingsFactory] Statistics: disabled
13:17:18,670 INFO [SettingsFactory] Deleted entity synthetic identifier rollback: disabled
13:17:18,670 INFO [SettingsFactory] Default entity-mode: pojo
13:17:18,670 INFO [SettingsFactory] Named query checking : enabled
13:17:18,686 INFO [SessionFactoryImpl] building session factory
13:17:18,733 INFO [SessionFactoryObjectFactory] Factory name: persistence.units:ear=PSDynamicWebProject-ear.ear,unitName=PSDynamicWebProject
13:17:18,733 INFO [NamingHelper] JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces}
13:17:18,733 INFO [SessionFactoryObjectFactory] Bound factory to JNDI name: persistence.units:ear=PSDynamicWebProject-ear.ear,unitName=PSDynamicWebProject
13:17:18,733 WARN [SessionFactoryObjectFactory] InitialContext did not implement EventContext
13:17:18,733 INFO [SchemaUpdate] Running hbm2ddl schema update
13:17:18,733 INFO [SchemaUpdate] fetching database metadata
13:17:18,748 INFO [SchemaUpdate] updating schema
13:17:18,826 INFO [TableMetadata] table found: SALARY.WBPSEMPL2
13:17:18,826 INFO [TableMetadata] columns: [phone, rehire_dt, support_flag, ccc_sub_ministry, empl_type, address1, supervisorname, statuscode, sex, cmpny_seniority_dt, activeflag, address2, mail_code, emailsecure, hiredate, zip, location, secure_employee, compsenioritydate, ccc_ministry, first_name, deptnameabbrv, pref_first_name, deptname, jobtitleabbrv, termination_dt, empltype, jobtitle, e_mail_addr, county, mailcode, reimbflag, reporting_date, socsecflag, deptname_abbrv, secureemployee, marstatusdate, preferred_name, firstname, supervisor_name, state, emplid, hire_dt, statusdescr, marstatus, cccsubministry, name_prefix, reportingdate, soc_sec_flag, e_mail_secure, fromdate, nameprefix, mar_status, birthdate, preffirstname, country_code, terminationdate, active_flag, orighiredate, empstatus, mar_status_dt, paygroup, supportflag, name, status_descr, jobtitle_abbrv, city, empl_status, email_addr, ssn, rehiredate, countrycode, address4, deptid, last_name, cccministry, spousename, lastname, status_code, country, orig_hire_dt, asofdate, preferredname, emailaddr, reimb_flag, address3, couple_title_descr, coupletitledescr, spouse_name]
13:17:18,842 INFO [TableMetadata] foreign keys: []
13:17:18,842 INFO [TableMetadata] indexes: [wbpsempl2_pk]
13:17:18,842 INFO [SchemaUpdate] schema update complete
13:17:18,842 INFO [NamingHelper] JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces}
13:17:18,842 INFO [EJB3Deployer] Deployed: file:/C:/Eclipse/Servers/jboss-4.2.2.GA/jboss-4.2.2.GA/server/all/deploy/PSDynamicWebProject-ear.ear/PSDynamicWebProject-ejb.jar/
13:17:18,858 INFO [JmxKernelAbstraction] creating wrapper delegate for: org.jboss.ejb3.stateless.StatelessContainer
13:17:18,858 INFO [JmxKernelAbstraction] installing MBean: jboss.j2ee:ear=PSDynamicWebProject-ear.ear,jar=jboss-seam.jar,name=TimerServiceDispatcher,service=EJB3 with dependencies:
13:17:18,904 INFO [EJBContainer] STARTED EJB: org.jboss.seam.async.TimerServiceDispatcher ejbName: TimerServiceDispatcher
13:17:18,951 INFO [JmxKernelAbstraction] creating wrapper delegate for: org.jboss.ejb3.stateful.StatefulContainer
13:17:18,951 INFO [JmxKernelAbstraction] installing MBean: jboss.j2ee:ear=PSDynamicWebProject-ear.ear,jar=jboss-seam.jar,name=EjbSynchronizations,service=EJB3 with dependencies:
13:17:18,998 INFO [EJBContainer] STARTED EJB: org.jboss.seam.transaction.EjbSynchronizations ejbName: EjbSynchronizations
13:17:19,014 INFO [EJB3Deployer] Deployed: file:/C:/Eclipse/Servers/jboss-4.2.2.GA/jboss-4.2.2.GA/server/all/deploy/PSDynamicWebProject-ear.ear/jboss-seam.jar
13:17:19,014 INFO [TomcatDeployer] deploy, ctxPath=/PSDynamicWebProject, warUrl=.../deploy/PSDynamicWebProject-ear.ear/PSDynamicWebProject.war/
13:17:19,748 WARN [config] Unable to process deployment descriptor for context 'null'
13:17:22,967 INFO [EARDeployer] Started J2EE application: file:/C:/Eclipse/Servers/jboss-4.2.2.GA/jboss-4.2.2.GA/server/all/deploy/PSDynamicWebProject-ear.ear/
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4149530#4149530
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4149530
16 years, 8 months
[JBossWS] - Re: Endpoint already registered
by bsisson
I would like to provide additional information for this issue. Our whole team has looked at this issue and cannot find a work around or the cause of the issue but we have figured out the sequence that triggers the issue.
1) We created a web service using annotations (@WebService(name = "TestWs") and it runs fine.
2) We created a class (People) that is annotated for xml marshalling (@XmlRootElement).
3) In the web service a database is queried and the data is stored in the People class.
4) Using javax.xml.bind the class is marshalled into a xml string.
5) At this point, in debut mode, there are occasions (depending upon the class fields) the marshaller will either work fine or the it wil fail. If it works fine the xml string is returned to the Web Service Explorer (built into Eclipse) and if it fails the error message string is returned to the Web Service Explorer.
6) Then we make changes to the People class (add or delete fields) and we get a message asking us if we want to continue, stop or restart the server. If we select continue the server runs find but only picks up the old version of the People class and not the new changes. The issues begin when we chose stop or restart server.
When the server is restarted there are two key issues: (1) If I search the console I cannot find a reference to my web service after the restart. The first time I start the server I see a reference that the web service was deplyed. (2) When I used the Web Service Explorer to find the web service I get an exception: javax.xml.ws.WebServiceException: Cannot obtain endpoint for: jboss.ws:context=/PSDynamicWebProject,endpoint=TestWs
At this point nothing we do in Eclipse can eliminate this exception. We have tried restarting the JBoss server, clicking on the module and doing a full publish and nothing works. The only resolution to get around this at this point has been to shutdwon Eclipse completely and restart it. This works until we have to change the class again and we go through the same steps.
We are in the start-up phase of re-writing our web applicaitons here and are evaluating JBoss and JBoss tools. We would really like to find a reslution to this since we are using Eclipse as our IDE and any help would be apprecaited.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4149462#4149462
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4149462
16 years, 8 months
[JBossWS] - namespace and unmarshalling issues
by regget
Hi, I have a web service deployed using the top-down approach. The web service is running and i'm referencing my wsdl file.
The problem occurs when I'm making web service calls. The web service is having trouble marshalling the input xml message to object. I will end up with an empty object. However, when I strip out the namespaces below the root element, the object is populated correctly. What is causing this?
example of the problem:
input/parameter object is populated with following xml -
| <ins:getRates>
| <header><type>1</type></header>
| <payload>
| <experience>
| <licenceType>g</licenceType>
| </experience>
| </payload>
| </ins:getRates>
|
but the input object is empty with the following xml
| <ins:getRates>
| <ins:header><hs:type>1</hs:type></ins:header>
| <ins:payload>
| <dvr:experience>
| <dvr:licenceType>g</dvr:licenceType>
| </dvr:experience>
| </ins:payload>
| </ins:getRates>
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4149404#4149404
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4149404
16 years, 8 months
[JBossWS] - Webservice deployment failed
by marie123
I'm using Jboss4.2.2GA with JBOssWS installed.
I'm quite new to JbossWS.
When i tried to deploy a webservice i'm getting an exception as shown below.
java.lang.NoSuchMethodError: javax.wsdl.xml.WSDLLocator.close().
i dont know whatz going wrong..
Any help is appreciated.
| 2008-05-08 09:41:36,703 ERROR [org.jboss.deployment.MainDeployer] Could not start deployment: file:/D:/jboss-4.2.2.GA/server/all/tmp/deploy/tmp19266rr-webservice.ear-contents/rr-webservice-ejb.jar
| java.lang.NoSuchMethodError: javax.wsdl.xml.WSDLLocator.close()V
| at org.jboss.ws.tools.wsdl.JBossWSDLReaderImpl.readWSDL(JBossWSDLReaderImpl.java:2367)
| at org.jboss.ws.tools.wsdl.WSDLDefinitionsFactory.parse(WSDLDefinitionsFactory.java:127)
| at org.jboss.ws.metadata.umdm.ServiceMetaData.getWsdlDefinitions(ServiceMetaData.java:321)
| at org.jboss.ws.metadata.builder.jaxws.JAXWSWebServiceMetaDataBuilder.buildWebServiceMetaData(JAXWSWebServiceMetaDataBuilder.java:166)
| at org.jboss.ws.metadata.builder.jaxws.JAXWSServerMetaDataBuilder.setupProviderOrWebService(JAXWSServerMetaDataBuilder.java:50)
| at org.jboss.ws.metadata.builder.jaxws.JAXWSMetaDataBuilderEJB3.buildMetaData(JAXWSMetaDataBuilderEJB3.java:78)
| at org.jboss.wsf.stack.jbws.UnifiedMetaDataDeploymentAspect.create(UnifiedMetaDataDeploymentAspect.java:71)
| at org.jboss.wsf.framework.deployment.DeploymentAspectManagerImpl.deploy(DeploymentAspectManagerImpl.java:115)
| at org.jboss.wsf.container.jboss42.ArchiveDeployerHook.deploy(ArchiveDeployerHook.java:97)
| at org.jboss.wsf.container.jboss42.DeployerInterceptor.start(DeployerInterceptor.java:90)
| at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.start(SubDeployerInterceptorSupport.java:188)
| at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:95)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| at $Proxy34.start(Unknown Source)
| at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
| at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1015)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
| at sun.reflect.GeneratedMethodAccessor54.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| at $Proxy9.deploy(Unknown Source)
| at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
| at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634)
| at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
| at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:274)
| at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:225)
|
|
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4149290#4149290
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4149290
16 years, 8 months
[JBossWS] - Re: Empty object is returned.
by skudzelia
Here is an Order class, may be it will be useful:
|
| package beanservice;
|
| import javax.xml.bind.annotation.XmlAccessType;
| import javax.xml.bind.annotation.XmlAccessorType;
| import javax.xml.bind.annotation.XmlElement;
| import javax.xml.bind.annotation.XmlType;
| import com.osmoticweb.purchase.ArrayOfXsdInt;
| import com.osmoticweb.purchase.ArrayOfXsdString;
|
|
| /**
| * <p>Java class for Order complex type.
| *
| * <p>The following schema fragment specifies the expected content contained within this class.
| *
| * <pre>
| * <complexType name="Order">
| * <complexContent>
| * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
| * <sequence>
| * <element name="customerName" type="{http://www.w3.org/2001/XMLSchema}string"/>
| * <element name="itemCodes" type="{http://osmoticweb.com/Purchase}ArrayOf_xsd_string"/>
| * <element name="quantities" type="{http://osmoticweb.com/Purchase}ArrayOf_xsd_int"/>
| * <element name="shippingAddress" type="{http://www.w3.org/2001/XMLSchema}string"/>
| * </sequence>
| * </restriction>
| * </complexContent>
| * </complexType>
| * </pre>
| *
| *
| */
| @XmlAccessorType(XmlAccessType.FIELD)
| @XmlType(name = "Order", propOrder = {
| "customerName",
| "itemCodes",
| "quantities",
| "shippingAddress"
| })
| public class Order {
|
| @XmlElement(required = true, nillable = true)
| protected String customerName;
| @XmlElement(required = true, nillable = true)
| protected ArrayOfXsdString itemCodes;
| @XmlElement(required = true, nillable = true)
| protected ArrayOfXsdInt quantities;
| @XmlElement(required = true, nillable = true)
| protected String shippingAddress;
|
| /**
| * Gets the value of the customerName property.
| *
| * @return
| * possible object is
| * {@link String }
| *
| */
| public String getCustomerName() {
| return customerName;
| }
|
| /**
| * Sets the value of the customerName property.
| *
| * @param value
| * allowed object is
| * {@link String }
| *
| */
| public void setCustomerName(String value) {
| this.customerName = value;
| }
|
| /**
| * Gets the value of the itemCodes property.
| *
| * @return
| * possible object is
| * {@link ArrayOfXsdString }
| *
| */
| public ArrayOfXsdString getItemCodes() {
| return itemCodes;
| }
|
| /**
| * Sets the value of the itemCodes property.
| *
| * @param value
| * allowed object is
| * {@link ArrayOfXsdString }
| *
| */
| public void setItemCodes(ArrayOfXsdString value) {
| this.itemCodes = value;
| }
|
| /**
| * Gets the value of the quantities property.
| *
| * @return
| * possible object is
| * {@link ArrayOfXsdInt }
| *
| */
| public ArrayOfXsdInt getQuantities() {
| return quantities;
| }
|
| /**
| * Sets the value of the quantities property.
| *
| * @param value
| * allowed object is
| * {@link ArrayOfXsdInt }
| *
| */
| public void setQuantities(ArrayOfXsdInt value) {
| this.quantities = value;
| }
|
| /**
| * Gets the value of the shippingAddress property.
| *
| * @return
| * possible object is
| * {@link String }
| *
| */
| public String getShippingAddress() {
| return shippingAddress;
| }
|
| /**
| * Sets the value of the shippingAddress property.
| *
| * @param value
| * allowed object is
| * {@link String }
| *
| */
| public void setShippingAddress(String value) {
| this.shippingAddress = value;
| }
|
| }
|
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4149211#4149211
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4149211
16 years, 8 months
[JBossWS] - Empty object is returned.
by skudzelia
I try to user webservice client that is created using JBossWS with Axis1 server. The problem is that I cannot receive a complex type from the server even though it is properly returned. Judging by TCPMon U receive th following message:
| <?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Body><findOrderReturn xmlns="http://osmoticweb.com/PurchaseService/"><customerName>Ron</customerName><itemCodes xsi:nil="true"/><quantities xsi:nil="true"/><shippingAddress xsi:nil="true"/></findOrderReturn></soapenv:Body></soapenv:Envelope>
|
As you see customerName has value "Ron". I user the following code to call the server method:
| Service service = Service.create(wsdlLocation, serviceName);
| BeanService beanS = (BeanService) service.getPort(BeanService.class);
| Order o = beanS.findOrder();
|
No exceptions are thrown. Order object is returned but it has all the properties values equal to null (as you can see from the result message from the server "customerName" has its value).
Here is the wsdl:
| <?xml version="1.0" encoding="UTF-8"?>
| <wsdl:definitions targetNamespace="http://osmoticweb.com/Purchase" xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:impl="http://osmoticweb.com/Purchase" xmlns:intf="http://osmoticweb.com/Purchase" xmlns:tns1="urn:BeanService" xmlns:tns2="http://osmoticweb.com/PurchaseService/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
| <!--WSDL created by Apache Axis version: 1.2.1
| Built on Jun 14, 2005 (09:15:57 EDT)-->
| <wsdl:types>
| <schema elementFormDefault="qualified" targetNamespace="http://osmoticweb.com/Purchase" xmlns="http://www.w3.org/2001/XMLSchema">
| <import namespace="urn:BeanService"/>
| <complexType name="ArrayOf_xsd_string">
| <sequence>
| <element maxOccurs="unbounded" minOccurs="0" name="item" type="xsd:string"/>
| </sequence>
|
| </complexType>
| <complexType name="ArrayOf_xsd_int">
| <sequence>
| <element maxOccurs="unbounded" minOccurs="0" name="item" type="xsd:int"/>
| </sequence>
| </complexType>
| <element name="order" type="tns1:Order"/>
| </schema>
| <schema elementFormDefault="qualified" targetNamespace="urn:BeanService" xmlns="http://www.w3.org/2001/XMLSchema">
|
| <import namespace="http://osmoticweb.com/Purchase"/>
| <complexType name="Order">
| <sequence>
| <element name="customerName" nillable="true" type="xsd:string"/>
| <element name="itemCodes" nillable="true" type="impl:ArrayOf_xsd_string"/>
| <element name="quantities" nillable="true" type="impl:ArrayOf_xsd_int"/>
| <element name="shippingAddress" nillable="true" type="xsd:string"/>
| </sequence>
| </complexType>
|
| </schema>
| <schema elementFormDefault="qualified" targetNamespace="http://osmoticweb.com/PurchaseService/" xmlns="http://www.w3.org/2001/XMLSchema">
| <import namespace="http://osmoticweb.com/Purchase"/>
| <import namespace="urn:BeanService"/>
| <element name="findMeReturn" type="xsd:string"/>
| <element name="findOrderReturn" type="tns1:Order"/>
| </schema>
| </wsdl:types>
|
| <wsdl:message name="findOrderRequest">
|
| </wsdl:message>
|
| <wsdl:message name="findMeResponse">
|
| <wsdl:part element="tns2:findMeReturn" name="findMeReturn"/>
|
| </wsdl:message>
|
| <wsdl:message name="findMeRequest">
|
| <wsdl:part element="impl:order" name="order"/>
|
| </wsdl:message>
|
| <wsdl:message name="findOrderResponse">
|
| <wsdl:part element="tns2:findOrderReturn" name="findOrderReturn"/>
|
| </wsdl:message>
|
| <wsdl:portType name="BeanService">
|
| <wsdl:operation name="findMe" parameterOrder="order">
|
| <wsdl:input message="impl:findMeRequest" name="findMeRequest"/>
|
| <wsdl:output message="impl:findMeResponse" name="findMeResponse"/>
|
| </wsdl:operation>
|
| <wsdl:operation name="findOrder">
|
| <wsdl:input message="impl:findOrderRequest" name="findOrderRequest"/>
|
| <wsdl:output message="impl:findOrderResponse" name="findOrderResponse"/>
|
| </wsdl:operation>
|
| </wsdl:portType>
|
| <wsdl:binding name="OrderProcessorSoapBinding" type="impl:BeanService">
|
| <wsdlsoap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
|
| <wsdl:operation name="findMe">
|
| <wsdlsoap:operation soapAction=""/>
|
| <wsdl:input name="findMeRequest">
|
| <wsdlsoap:body use="literal"/>
|
| </wsdl:input>
|
| <wsdl:output name="findMeResponse">
|
| <wsdlsoap:body use="literal"/>
|
| </wsdl:output>
|
| </wsdl:operation>
|
| <wsdl:operation name="findOrder">
|
| <wsdlsoap:operation soapAction=""/>
|
| <wsdl:input name="findOrderRequest">
|
| <wsdlsoap:body use="literal"/>
|
| </wsdl:input>
|
| <wsdl:output name="findOrderResponse">
|
| <wsdlsoap:body use="literal"/>
|
| </wsdl:output>
|
| </wsdl:operation>
|
| </wsdl:binding>
|
| <wsdl:service name="BeanServiceService">
|
| <wsdl:port binding="impl:OrderProcessorSoapBinding" name="OrderProcessor">
|
| <wsdlsoap:address location="http://127.0.0.1:9999/axis/services/OrderProcessor"/>
|
| </wsdl:port>
|
| </wsdl:service>
|
| </wsdl:definitions>
|
|
In case a string ibject is returned from the method than it's OK, I receive the value. An Order object is also properly send to the server as a method parameter. What is wrong? I've spend the whole day trying to find the cause of problem.
Order class and BeanService are generated by using WSConsume tool. JBoss 4.2.2GA is used.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4149210#4149210
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4149210
16 years, 8 months
[JBossWS] - @XmlMimeType(
by pdrummond
Hi all,
I am using Revision: jbossws-3.0.1-native-2.0.4.GA and trying to get attachments to work. I have no problems running the XOP test case but when I try to write my own service I always have the same problem. When I deploy my WAR the ns1:expectedContentTypes is always "application/octet-stream" even though I specify @XmlMimeType("text/plain") in the code.
My end-point code is as follows:
| package eas.attachment;
| import java.io.IOException;
| import javax.activation.DataHandler;
| import javax.jws.WebMethod;
| import javax.jws.WebService;
| import javax.xml.bind.annotation.XmlMimeType;
| import javax.xml.ws.BindingType;
| import javax.xml.ws.WebServiceException;
|
| @WebService(name = "EASEndpoint", serviceName = "EASEndpointService")
| @BindingType(value = "http://schemas.xmlsoap.org/wsdl/soap/http?mtom=true")
| public class EASEndpointImpl implements EASEndpoint {
|
| @WebMethod
| @XmlMimeType("text/plain")
| public DataHandler fileUpload(@XmlMimeType("text/plain") DataHandler data) {
| try {
| System.out.println("Recv " + data.getContentType());
| System.out.println("Content is " + data.getContent());
| return new DataHandler("Server data", "text/plain");
| }
| catch (IOException e) {
| throw new WebServiceException(e);
| }
| }
| }
|
The code is almost identical to the WrappedEndpoint in the sample code - if I am missing something, I can't see it!!! I can confirm that the wsdl for the WrappedEndpoint does include what you'd expect - ns1:expectedContentTypes="text/plain" so why doesn't mine?
Can anyone help? I am now stepping through the JBossWS source code to determine the source of this problem and will report any findings...
Thanks,
Paul Drummond
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4149184#4149184
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4149184
16 years, 8 months