[EJB3] - Error installing to PreInstall: name=ClientContainer state
by Dhruba Kumar
Dhruba Kumar [https://community.jboss.org/people/kumardhrubajyoti] created the discussion
"Error installing to PreInstall: name=ClientContainer state"
To view the discussion, visit: https://community.jboss.org/message/728751#728751
--------------------------------------------------------------
Hi I am developing an application using EJB3 .The remote bean
is injected in my application client :
import org.myprog.request.UserActionBeanRemote;
public class Main {
@Inject
public static UserActionBeanRemote userActionBeanRemote;
public static void main(String[] args) {
// TODO Auto-generated method stub
try {
UserActionBean remote = (UserActionBean) ctx.lookup("UserActionBean/remote");
System.out.println("**************************"+remote);
}
catch(Exception ex){
ex.printStackTrace();
}
//System.out.println("****************************"+userActionBeanRemote);
}
the Projected successfully deploed in server,but when I execute the application client the following err is thrown
(I am using java 7)
java version "1.7.0"
Java(TM) SE Runtime Environment (build 1.7.0-b147)
Java HotSpot(TM) Client VM (build 21.0-b17, mixed mode, sharing)
command
=========
java -Djava.naming.factory.initial=org.jnp.interfaces.NamingContextFactory -Djava.naming.provider.url=jnp://localhost:1099 -classpath "%JBOSS_HOME%\client\jbossall-client.jar;C:\Users\infodba\workspace\MySEAMEEClient\build\classes" org.jboss.client.AppClientMain -jbossclient org.myeeseam.client.Main -launchers org.jboss.ejb3.client.ClientLauncher -j2ee.clientName My
EEClient
Exception
=======
2012-04-07 19:36:06,985 DEBUG [main][org.jboss.client.AppClientMain] - < java.a
wt.graphicsenv=sun.awt.Win32GraphicsEnvironment>
2012-04-07 19:36:07,000 DEBUG [main][org.jboss.client.AppClientMain] - < java.e
ndorsed.dirs=C:\Program Files\Java\jre7\lib\endorsed>
2012-04-07 19:36:07,001 DEBUG [main][org.jboss.client.AppClientMain] - < os.arc
h=x86>
2012-04-07 19:36:07,002 DEBUG [main][org.jboss.client.AppClientMain] - < java.i
o.tmpdir=C:\Users\infodba\AppData\Local\Temp\>
2012-04-07 19:36:07,003 DEBUG [main][org.jboss.client.AppClientMain] - < line.s
eparator=
>
2012-04-07 19:36:07,005 DEBUG [main][org.jboss.client.AppClientMain] - < java.v
m.specification.vendor=Oracle Corporation>
2012-04-07 19:36:07,006 DEBUG [main][org.jboss.client.AppClientMain] - < user.v
ariant=>
2012-04-07 19:36:07,007 DEBUG [main][org.jboss.client.AppClientMain] - < java.n
aming.factory.url.pkgs=org.jboss.naming.jnp.interfaces>
2012-04-07 19:36:07,008 DEBUG [main][org.jboss.client.AppClientMain] - < os.nam
e=Windows Vista>
2012-04-07 19:36:07,009 DEBUG [main][org.jboss.client.AppClientMain] - < log4j.
configuration=file:///D:/jboss/jboss-6.1.0.Final/client/log4j.properties>
2012-04-07 19:36:07,010 DEBUG [main][org.jboss.client.AppClientMain] - < sun.jn
u.encoding=Cp1252>
2012-04-07 19:36:07,011 DEBUG [main][org.jboss.client.AppClientMain] - < java.l
ibrary.path=C:\Windows\system32;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\W
indows;C:\Windows\system32;C:\Windows;C:\Windows\system32\wbem;D:\oracle\product
\10.2.0\db_1\bin;C:\Program Files\MySQL\MySQL Server 5.0\bin;C:\Program Files\Sl
ikSvn\bin;C:\Windows\System32\WindowsPowerShell\v1.0;d:\Microsoft SQL Server\100
\Tools\Binn;d:\Microsoft SQL Server\100\DTS\Binn;d:\Microsoft SQL Server\100\Too
ls\Binn\VSShell\Common7\IDE;C:\Program Files\Microsoft Visual Studio 9.0\Common7
\IDE\PrivateAssemblies;C:\Program Files\Java\jdk1.6.0_11\bin;E:\Android\android-
sdk\tools;E:\Android\android-sdk\platform-tools;ç6╔;C:\Program Files\Common File
s\Ahead\Lib\;.>
2012-04-07 19:36:07,016 DEBUG [main][org.jboss.client.AppClientMain] - < java.s
pecification.name=Java Platform API Specification>
2012-04-07 19:36:07,017 DEBUG [main][org.jboss.client.AppClientMain] - < java.c
lass.version=51.0>
2012-04-07 19:36:07,019 DEBUG [main][org.jboss.client.AppClientMain] - < sun.ma
nagement.compiler=HotSpot Client Compiler>
2012-04-07 19:36:07,020 DEBUG [main][org.jboss.client.AppClientMain] - < java.n
aming.provider.url=jnp://localhost:1099>
2012-04-07 19:36:07,021 DEBUG [main][org.jboss.client.AppClientMain] - < os.ver
sion=6.0>
2012-04-07 19:36:07,022 DEBUG [main][org.jboss.client.AppClientMain] - < user.h
ome=C:\Users\infodba>
2012-04-07 19:36:07,023 DEBUG [main][org.jboss.client.AppClientMain] - < user.t
imezone=Asia/Calcutta>
2012-04-07 19:36:07,024 DEBUG [main][org.jboss.client.AppClientMain] - < java.a
wt.printerjob=sun.awt.windows.WPrinterJob>
2012-04-07 19:36:07,025 DEBUG [main][org.jboss.client.AppClientMain] - < file.e
ncoding=Cp1252>
2012-04-07 19:36:07,026 DEBUG [main][org.jboss.client.AppClientMain] - < java.s
pecification.version=1.7>
2012-04-07 19:36:07,027 DEBUG [main][org.jboss.client.AppClientMain] - < log4j.
debug=true>
2012-04-07 19:36:07,028 DEBUG [main][org.jboss.client.AppClientMain] - < java.c
lass.path=D:\jboss\jboss-6.1.0.Final\client\jbossall-client.jar;D:\jboss\jboss-6
.1.0.Final\client\jboss-metadata.jar;D:\jboss\jboss-6.1.0.Final\client\log4j.jar
;D:\jboss\jboss-6.1.0.Final\lib\jboss-classloader.jar;D:\jboss\jboss-6.1.0.Final
\lib\jboss-classloading-spi.jar;D:\jboss\jboss-6.1.0.Final\lib\jboss-classloadin
g-vfs.jar;D:\jboss\jboss-6.1.0.Final\lib\jboss-classloading.jar;D:\jboss\jboss-6
.1.0.Final\lib\jboss-dependency.jar;D:\jboss\jboss-6.1.0.Final\lib\jboss-reflect
.jar;D:\jboss\jboss-6.1.0.Final\lib\jboss-kernel.jar;D:\jboss\jboss-6.1.0.Final\
lib\jboss-xml-binding.jar;D:\jboss\jboss-6.1.0.Final\common\jboss-ejb3-vfs-spi.j
ar;D:\jboss\jboss-6.1.0.Final\lib\jboss-vfs.jar;D:\jboss\jboss-6.1.0.Final\lib\j
boss-reflect.jar;D:\jboss\jboss-6.1.0.Final\client\jboss-ejb3-core-client.jar;D:
\jboss\jboss-6.1.0.Final\client\log4j.jar;C:\Users\infodba\workspace\MySEAMEECli
ent\build\classes;D:\jboss\jboss-6.1.0.Final\client\log4j.properties>
2012-04-07 19:36:07,035 DEBUG [main][org.jboss.client.AppClientMain] - < user.n
ame=infodba>
2012-04-07 19:36:07,036 DEBUG [main][org.jboss.client.AppClientMain] - < java.n
aming.factory.initial=org.jnp.interfaces.NamingContextFactory>
2012-04-07 19:36:07,037 DEBUG [main][org.jboss.client.AppClientMain] - < java.v
m.specification.version=1.7>
2012-04-07 19:36:07,038 DEBUG [main][org.jboss.client.AppClientMain] - < sun.ja
va.command=org.jboss.client.AppClientMain -jbossclient org.nynewejb.appclient.Ma
in -launchers org.jboss.ejb3.client.ClientLauncher -j2ee.clientName MyNewEJBAppC
lient>
2012-04-07 19:36:07,040 DEBUG [main][org.jboss.client.AppClientMain] - < java.h
ome=C:\Program Files\Java\jre7>
2012-04-07 19:36:07,041 DEBUG [main][org.jboss.client.AppClientMain] - < sun.ar
ch.data.model=32>
2012-04-07 19:36:07,042 DEBUG [main][org.jboss.client.AppClientMain] - < user.l
anguage=en>
2012-04-07 19:36:07,043 DEBUG [main][org.jboss.client.AppClientMain] - < java.s
pecification.vendor=Oracle Corporation>
2012-04-07 19:36:07,044 DEBUG [main][org.jboss.client.AppClientMain] - < awt.to
olkit=sun.awt.windows.WToolkit>
2012-04-07 19:36:07,045 DEBUG [main][org.jboss.client.AppClientMain] - < java.v
m.info=mixed mode, sharing>
2012-04-07 19:36:07,046 DEBUG [main][org.jboss.client.AppClientMain] - < java.v
ersion=1.7.0>
2012-04-07 19:36:07,048 DEBUG [main][org.jboss.client.AppClientMain] - < java.e
xt.dirs=C:\Program Files\Java\jre7\lib\ext;C:\Windows\Sun\Java\lib\ext>
2012-04-07 19:36:07,051 DEBUG [main][org.jboss.client.AppClientMain] - < sun.bo
ot.class.path=C:\Program Files\Java\jre7\lib\resources.jar;C:\Program Files\Java
\jre7\lib\rt.jar;C:\Program Files\Java\jre7\lib\sunrsasign.jar;C:\Program Files\
Java\jre7\lib\jsse.jar;C:\Program Files\Java\jre7\lib\jce.jar;C:\Program Files\J
ava\jre7\lib\charsets.jar;C:\Program Files\Java\jre7\classes>
2012-04-07 19:36:07,053 DEBUG [main][org.jboss.client.AppClientMain] - < java.v
endor=Oracle Corporation>
2012-04-07 19:36:07,054 DEBUG [main][org.jboss.client.AppClientMain] - < file.s
eparator=\>
2012-04-07 19:36:07,056 DEBUG [main][org.jboss.client.AppClientMain] - < java.v
endor.url.bug= http://bugreport.sun.com/bugreport/ http://bugreport.sun.com/bugreport/>
2012-04-07 19:36:07,057 DEBUG [main][org.jboss.client.AppClientMain] - < sun.io
.unicode.encoding=UnicodeLittle>
2012-04-07 19:36:07,058 DEBUG [main][org.jboss.client.AppClientMain] - < sun.cp
u.endian=little>
2012-04-07 19:36:07,060 DEBUG [main][org.jboss.client.AppClientMain] - < sun.de
sktop=windows>
2012-04-07 19:36:07,061 DEBUG [main][org.jboss.client.AppClientMain] - < sun.cp
u.isalist=pentium_pro+mmx pentium_pro pentium+mmx pentium i486 i386 i86>
2012-04-07 19:36:07,062 DEBUG [main][org.jboss.client.AppClientMain] - <arg=-jbo
ssclient>
2012-04-07 19:36:07,064 DEBUG [main][org.jboss.client.AppClientMain] - <arg=-lau
nchers>
2012-04-07 19:36:07,065 INFO [main][org.jboss.client.AppClientMain] - <-launcher
s=org.jboss.ejb3.client.ClientLauncher>
2012-04-07 19:36:07,067 DEBUG [main][org.jboss.client.AppClientMain] - <arg=-j2e
e.clientName>
2012-04-07 19:36:07,068 INFO [main][org.jboss.client.AppClientMain] - <j2ee.clie
ntName=MyNewEJBAppClient>
2012-04-07 19:36:07,200 DEBUG [main][org.jnp.interfaces.TimedSocketFactory] - <c
reateSocket, hostAddr: localhost/127.0.0.1, port: 1099, localAddr: null, localPo
rt: 0, timeout: 0>
2012-04-07 19:36:07,411 INFO [main][org.jboss.ejb3.client.ClientLauncher] - <Cli
entLauncher, version: $Revision: 112057 $>
2012-04-07 19:36:07,531 DEBUG [main][org.jboss.kernel.KernelFactory] - <Starting
JBoss Kernel construction...>
2012-04-07 19:36:07,760 DEBUG [main][org.jboss.config.plugins.property.PropertyC
onfiguration] - <TypeInfoFactory: org.jboss.reflect.plugins.introspection.Intros
https://community.jboss.org/mailto:pectionTypeInfoFactory@1cd761a pectionTypeInfoFactory@1cd761a>
2012-04-07 19:36:08,345 DEBUG [main][org.jboss.kernel.KernelFactory] - <Complete
d JBoss Kernel construction. Duration: 809 milliseconds>
2012-04-07 19:36:08,898 INFO [main][org.jboss.ejb3.client.ClientLauncher] - <Set
ting up classpath from: >
2012-04-07 19:36:08,900 INFO [main][org.jboss.ejb3.client.ClientLauncher] - <vfs
:///C:/Users/infodba/workspace/.metadata/.plugins/org.jboss.ide.eclipse.as.core/
JBoss_6.x_Runtime_Server1333465990171/deploy/MyNewEJBProjEAR.ear/MyNewEJBAppClie
nt.jar/>
2012-04-07 19:36:08,968 DEBUG [main][org.jboss.vfs.util.automount] - <Automounti
ng: "/C:/Users/infodba/workspace/.metadata/.plugins/org.jboss.ide.eclipse.as.cor
e/JBoss_6.x_Runtime_Server1333465990171/deploy/MyNewEJBProjEAR.ear/MyNewEJBAppCl
ient.jar" with options MountConfig[Expanded: false, Copy: false]>
2012-04-07 19:36:09,045 INFO [main][org.jboss.ejb3.client.ClientLauncher] - <End
classpath>
2012-04-07 19:36:09,156 DEBUG [main][org.jboss.ejb3.client.ClientLauncher] - <De
ploying https://community.jboss.org/mailto:AbstractKernelDeployment@1967348{name=... AbstractKernelDeployment@1967348{name=ClientLauncherClassPath:0.0.0 inst
alled=false beanFactories=[AbstractBeanMetaData@6ab533{name=ClassLoaderSystem be
an=org.jboss.classloader.spi.ClassLoaderSystem properties= constructor=AbstractC
https://community.jboss.org/mailto:onstructorMetaData@19e681c{parameters onstructorMetaData@19e681c{parameters= factoryClass=org.jboss.ejb3.client.Client
Launcher factoryMethod=getClassLoaderSystem} autowireCandidate=true}, AbstractBe
https://community.jboss.org/mailto:anMetaData@c50e46{name=ClassLoading anMetaData@c50e46{name=ClassLoading bean=org.jboss.classloading.spi.dependency.C
lassLoading properties= constructor=null autowireCandidate=true installCallbacks
=[method=addModule] uninstallCallbacks=[method=removeModule]}, VFSClassLoaderFac
https://community.jboss.org/mailto:tory@12c4b66{name=ClientLauncherClassPath tory@12c4b66{name=ClientLauncherClassPath version=0.0.0 parent-first=true}, Abst
https://community.jboss.org/mailto:ractBeanMetaData@10a4761{name=ClientCo... ractBeanMetaData@10a4761{name=ClientContainer bean=org.jboss.ejb3.client.ClientC
ontainer properties= https://community.jboss.org/mailto:classLoader=AbstractClassLoaderMetaDat... classLoader=AbstractClassLoaderMetaData@1d4433f{classloader
https://community.jboss.org/mailto:=AbstractDependencyValueMetaData@8b1a8... =AbstractDependencyValueMetaData@8b1a8f{value=ClientLauncherClassPath:0.0.0}} co
mailto:nstructor=AbstractConstructorMetaData@7caac5{parameters=[org.jboss.metadata.clie nstructor=AbstractConstructorMetaData(a)7caac5{parameters=[org.jboss.metadata.clie
nt.jboss.JBossClientMetaData, java.lang.Class, java.lang.String, java.util.Prope
rties]} autowireCandidate=true}]}>
2012-04-07 19:36:09,635 DEBUG [main][org.jboss.config.plugins.property.PropertyC
onfiguration] - <TypeInfoFactory: org.jboss.reflect.plugins.introspection.Intros
https://community.jboss.org/mailto:pectionTypeInfoFactory@fc61e9 pectionTypeInfoFactory@fc61e9>
2012-04-07 19:36:10,003 DEBUG [main][org.jboss.classloader.spi.ClassLoaderSystem
] - < https://community.jboss.org/mailto:DefaultClassLoaderSystem@189ff97 DefaultClassLoaderSystem@189ff97 registered https://community.jboss.org/mailto:domain=ClassLoaderDomain@eb1f9a domain=ClassLoaderDomain@eb1f9a
{name=DefaultDomain parentPolicy=BEFORE parent=sun.misc.Launcher$AppClassLoader@
e80a59}>
2012-04-07 19:36:10,297 DEBUG [main][org.jboss.classloading.spi.dependency.Domai
n] - < mailto:org.jboss.classloading.spi.dependency.Domain@196b9cd{DefaultDomain org.jboss.classloading.spi.dependency.Domain@196b9cd{DefaultDomain} add mo
dule VFSClassLoaderPolicyModule ClientLauncherClassPath:0.0.0>
2012-04-07 19:36:10,348 DEBUG [main][org.jboss.classloader.spi.base.BaseClassLoa
der] - <Created https://community.jboss.org/mailto:BaseClassLoader@4bdccc{ClientLauncherC... BaseClassLoader@4bdccc{ClientLauncherClassPath:0.0.0$MODULE} wit
h policy https://community.jboss.org/mailto:VFSClassLoaderPolicy@8cf401{name=Clien... VFSClassLoaderPolicy@8cf401{name=ClientLauncherClassPath:0.0.0$MODULE d
omain=null roots=["/C:/Users/infodba/workspace/.metadata/.plugins/org.jboss.ide.
eclipse.as.core/JBoss_6.x_Runtime_Server1333465990171/deploy/MyNewEJBProjEAR.ear
/MyNewEJBAppClient.jar"] exported=[]}>
2012-04-07 19:36:10,351 DEBUG [main][org.jboss.classloader.spi.base.BaseClassLoa
derDomain] - < https://community.jboss.org/mailto:ClassLoaderDomain@eb1f9a{DefaultDomain ClassLoaderDomain@eb1f9a{DefaultDomain} registerClassLoader BaseCl
https://community.jboss.org/mailto:assLoader@4bdccc{ClientLauncherClassPa... assLoader@4bdccc{ClientLauncherClassPath:0.0.0$MODULE}>
2012-04-07 19:36:10,444 ERROR [main][org.jboss.kernel.plugins.dependency.Abstrac
tKernelController] - <Error installing to PreInstall: name=ClientContainer state
=Not Installed>
java.lang.NoClassDefFoundError: org/jboss/ejb3/vfs/spi/VirtualFile
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Unknown Source)
at java.lang.Class.getDeclaredMethods(Unknown Source)
at org.jboss.reflect.plugins.introspection.IntrospectionTypeInfoFactoryI
mpl.getDeclaredMethods(IntrospectionTypeInfoFactoryImpl.java:610)
at org.jboss.reflect.plugins.introspection.IntrospectionTypeInfoFactoryI
mpl$2.run(IntrospectionTypeInfoFactoryImpl.java:198)
at org.jboss.reflect.plugins.introspection.IntrospectionTypeInfoFactoryI
mpl$2.run(IntrospectionTypeInfoFactoryImpl.java:194)
at java.security.AccessController.doPrivileged(Native Method)
at org.jboss.reflect.plugins.introspection.IntrospectionTypeInfoFactoryI
mpl.getMethods(IntrospectionTypeInfoFactoryImpl.java:193)
at org.jboss.reflect.plugins.ClassInfoImpl.getDeclaredMethods(ClassInfoI
mpl.java:416)
at org.jboss.beans.info.plugins.AbstractBeanInfoFactory.getMethods(Abstr
actBeanInfoFactory.java:245)
at org.jboss.beans.info.plugins.AbstractBeanInfoFactory.getBeanInfo(Abst
ractBeanInfoFactory.java:164)
at org.jboss.config.plugins.AbstractConfiguration.getBeanInfo(AbstractCo
nfiguration.java:87)
at org.jboss.kernel.plugins.config.AbstractKernelConfig.getBeanInfo(Abst
ractKernelConfig.java:80)
at org.jboss.kernel.plugins.config.AbstractKernelConfigurator.getBeanInf
o(AbstractKernelConfigurator.java:78)
at org.jboss.kernel.plugins.config.AbstractKernelConfigurator.getBeanInf
o(AbstractKernelConfigurator.java:97)
at org.jboss.kernel.plugins.dependency.PreInstallAction.installActionInt
ernal(PreInstallAction.java:88)
at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction
(InstallsAwareAction.java:54)
at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction
(InstallsAwareAction.java:42)
at org.jboss.dependency.plugins.action.SimpleControllerContextAction.sim
pleInstallAction(SimpleControllerContextAction.java:62)
at org.jboss.dependency.plugins.action.AccessControllerContextAction.ins
tall(AccessControllerContextAction.java:71)
at org.jboss.dependency.plugins.AbstractControllerContextActions.install
(AbstractControllerContextActions.java:51)
at org.jboss.dependency.plugins.AbstractControllerContext.install(Abstra
ctControllerContext.java:379)
at org.jboss.dependency.plugins.AbstractController.install(AbstractContr
oller.java:2044)
at org.jboss.dependency.plugins.AbstractController.incrementState(Abstra
ctController.java:1083)
at org.jboss.dependency.plugins.AbstractController.executeOrIncrementSta
teDirectly(AbstractController.java:1322)
at org.jboss.dependency.plugins.AbstractController.resolveContexts(Abstr
actController.java:1246)
at org.jboss.dependency.plugins.AbstractController.resolveContexts(Abstr
actController.java:1139)
at org.jboss.dependency.plugins.AbstractController.install(AbstractContr
oller.java:894)
at org.jboss.dependency.plugins.AbstractController.install(AbstractContr
oller.java:641)
at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deployBean
(AbstractKernelDeployer.java:319)
at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deployBean
s(AbstractKernelDeployer.java:297)
at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deploy(Abs
tractKernelDeployer.java:130)
at org.jboss.kernel.plugins.deployment.BasicKernelDeployer.deploy(BasicK
ernelDeployer.java:76)
at org.jboss.kernel.plugins.deployment.xml.BasicXMLDeployer.deploy(Basic
XMLDeployer.java:88)
at org.jboss.ejb3.client.ClientLauncher.deploy(ClientLauncher.java:436)
at org.jboss.ejb3.client.ClientLauncher.launch(ClientLauncher.java:277)
at org.jboss.ejb3.client.ClientLauncher.launch(ClientLauncher.java:181)
at org.jboss.ejb3.client.ClientLauncher.launch(ClientLauncher.java:145)
at org.jboss.client.AppClientMain.main(AppClientMain.java:134)
Caused by: java.lang.ClassNotFoundException: org.jboss.ejb3.vfs.spi.VirtualFile
at java.net.URLClassLoader$1.run(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 39 more
2012-04-07 19:36:10,498 DEBUG [main][org.jboss.ejb3.client.ClientLauncher] - <De
ployed https://community.jboss.org/mailto:AbstractKernelDeployment@1967348{name=... AbstractKernelDeployment@1967348{name=ClientLauncherClassPath:0.0.0 insta
lled=true beanFactories=[AbstractBeanMetaData@6ab533{name=ClassLoaderSystem bean
=org.jboss.classloader.spi.ClassLoaderSystem properties= constructor=AbstractCon
https://community.jboss.org/mailto:structorMetaData@19e681c{parameters structorMetaData@19e681c{parameters= factoryClass=org.jboss.ejb3.client.ClientLa
uncher factoryMethod=getClassLoaderSystem} autowireCandidate=true}, AbstractBean
https://community.jboss.org/mailto:MetaData@c50e46{name=ClassLoading MetaData@c50e46{name=ClassLoading bean=org.jboss.classloading.spi.dependency.Cla
ssLoading properties= constructor=null autowireCandidate=true installCallbacks=[
method=addModule] uninstallCallbacks=[method=removeModule]}, VFSClassLoaderFacto
https://community.jboss.org/mailto:ry@12c4b66{name=ClientLauncherClassPath ry@12c4b66{name=ClientLauncherClassPath version=0.0.0 parent-first=true}, Abstra
https://community.jboss.org/mailto:ctBeanMetaData@10a4761{name=ClientCont... ctBeanMetaData@10a4761{name=ClientContainer bean=org.jboss.ejb3.client.ClientCon
tainer properties= https://community.jboss.org/mailto:classLoader=AbstractClassLoaderMetaDat... classLoader=AbstractClassLoaderMetaData@1d4433f{classloader=A
https://community.jboss.org/mailto:bstractDependencyValueMetaData@8b1a8f{... bstractDependencyValueMetaData@8b1a8f{value=ClientLauncherClassPath:0.0.0}} cons
mailto:tructor=AbstractConstructorMetaData@7caac5{parameters=[org.jboss.metadata.client tructor=AbstractConstructorMetaData(a)7caac5{parameters=[org.jboss.metadata.client
.jboss.JBossClientMetaData, java.lang.Class, java.lang.String, java.util.Propert
ies]} autowireCandidate=true}]}>
2012-04-07 19:36:10,505 WARN [main][org.jboss.client.AppClientMain] - <Failed to
launch using: org.jboss.ejb3.client.ClientLauncher>
java.lang.IllegalStateException: Incompletely deployed:
DEPLOYMENTS IN ERROR:
Deployment "ClientContainer" is in error due to: java.lang.NoClassDefFoundErro
r: org/jboss/ejb3/vfs/spi/VirtualFile
at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.internalVa
lidate(AbstractKernelDeployer.java:278)
at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.validate(A
bstractKernelDeployer.java:174)
at org.jboss.ejb3.client.ClientLauncher.validate(ClientLauncher.java:480
)
at org.jboss.ejb3.client.ClientLauncher.launch(ClientLauncher.java:278)
at org.jboss.ejb3.client.ClientLauncher.launch(ClientLauncher.java:181)
at org.jboss.ejb3.client.ClientLauncher.launch(ClientLauncher.java:145)
at org.jboss.client.AppClientMain.main(AppClientMain.java:134)
Please help
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/728751#728751]
Start a new discussion in EJB3 at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 8 months
[jBPM] - Usage of Timer in JBPM 5.2
by Sukumaran Raghavan
Sukumaran Raghavan [https://community.jboss.org/people/suku_1983] created the discussion
"Usage of Timer in JBPM 5.2"
To view the discussion, visit: https://community.jboss.org/message/728723#728723
--------------------------------------------------------------
Hi,
I am using a Timer in my JBPM 5.2 process.
The way i designed my JBPM process invocation is to have a separate ksession for each process instance. The ksessions are disposed once the processis started.
The timers fail and i have figiured out why. The JIRA https://issues.jboss.org/browse/JBPM-3170 https://issues.jboss.org/browse/JBPM-3170 explains why.
The timers do not work when the ksessions are persisted.
The workaround options i have (as far as i understand) are as follows
- Use a single KSession for all processes (Ruled out as my application will get deployed in multiple servers. And the process has human tasks. So i do need persisted sessions).
- Do not dispose the ksession until the process is complete (This too wont work for the same reason as above. The Human task can be executed from any of the servers where my app is deployed. So it will need to use a persisted ksession).
Any bright ideas on how to work around this ?? If anyone has cracked this, do let me know. There was one other workarounf suggested for JBPM 5.1 which suggested the usage of a seperate ksession for the timer. Dint quite understand how that can be achieved !
The timer issue seems to be a killer issue. Hoping it gets fixed soon. It makes the timer pretty much unusable in the context a production grade application.
Regards,
Suku
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/728723#728723]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 8 months
[Beginner's Corner] - AS 7.1.1 send/receive a JMS message in Servlet question
by Michael Justin
Michael Justin [https://community.jboss.org/people/mjustin] created the discussion
"AS 7.1.1 send/receive a JMS message in Servlet question"
To view the discussion, visit: https://community.jboss.org/message/728702#728702
--------------------------------------------------------------
Hello,
I am trying to build a simple JMS produce / consume example in a Servlet. The full source code is below.
The servlet uses a resource annotation to inject the JMS destination which is configured in standalone-full.xml, and I also can verify that the destination exists (in the admin interface) and user and password are valid. The produce / consume methods complete without any errors, but the web admin interface does not show any messages. I tried to use persistent messages but it did not help. I will also check out the examples in the source distribution, and come back if I found the reason.
package servlet;
import java.io.IOException;
import java.io.Writer;
import java.util.logging.Logger;
import javax.annotation.Resource;
import javax.jms.Connection;
import javax.jms.ConnectionFactory;
import javax.jms.DeliveryMode;
import javax.jms.JMSException;
import javax.jms.Message;
import javax.jms.MessageConsumer;
import javax.jms.MessageProducer;
import javax.jms.Session;
import javax.jms.TextMessage;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
@WebServlet(name = "My Servlet", urlPatterns = { "/ms" })
public class MyServlet extends HttpServlet {
private static final long serialVersionUID = 1L;
@Resource(mappedName = "java:/ConnectionFactory")
ConnectionFactory factory;
private static final Logger log = Logger.getLogger("");
private static final String username = "guest";
private static final String password = "secret";
private static final String destination = "ExampleTopic";
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
produce();
consume();
}
private void produce() {
try {
Connection conn = factory.createConnection(username, password);
Session session = conn.createSession(false,
Session.AUTO_ACKNOWLEDGE);
MessageProducer prod = session.createProducer(session
.createTopic(destination));
prod.setDeliveryMode(DeliveryMode.PERSISTENT);
conn.start();
Message msg = session.createTextMessage("hello");
prod.send(msg);
conn.close();
} catch (JMSException e) {
log.info(e.getMessage());
}
}
private void consume() {
try {
Connection conn = factory.createConnection(username, password);
Session session = conn.createSession(false,
Session.AUTO_ACKNOWLEDGE);
MessageConsumer cons = session.createConsumer(session
.createTopic(destination));
conn.start();
Message msg = cons.receive(1000);
if (msg == null) {
log.info("received no message");
} else {
TextMessage t = (TextMessage) msg;
log.info(t.getText());
}
conn.close();
} catch (JMSException e) {
e.printStackTrace();
}
}
}
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/728702#728702]
Start a new discussion in Beginner's Corner at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 8 months