i try to deploy jar and war on different server
i modified my source code as below:
1. all service component implement a @Remote interface
2. modified jndiPattern to ${project.name}/#{ejbName}/remote in build.xml
3. modified jndiPattern to \#{ejbName}/remote in components.properties
4.added a file "jndi.properties" into war with
java.naming.provider.url=jnp://192.168.210.24:1099 java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory java.naming.factory.url.pkgs=org.jboss.naming\:org.jnp.interfaces
Exception sending context initialized event to listener instance of class org.jboss.web.jsf.integration.config.JBossJSFConfigureListener java.lang.IncompatibleClassChangeError