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#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...