[jboss-user] [Microcontainer] - Re: can't read resource from the classpath??

2009-05-21 Thread jeff.yuchang
"alesj" wrote : "jeff.yuchang" wrote : | | Is the jar package the only way to get this kind of resource?? I mean, do we have other approaches, or can we use a custom package suffix? | It's all by the spec. ;-) | | What you had before was actually 3 deployments | as directories that

[jboss-user] [Microcontainer] - Re: can't read resource from the classpath??

2009-05-21 Thread alesj
"jeff.yuchang" wrote : | Is the jar package the only way to get this kind of resource?? I mean, do we have other approaches, or can we use a custom package suffix? It's all by the spec. ;-) What you had before was actually 3 deployments as directories that don't have a '.' in the name are not

[jboss-user] [Microcontainer] - Re: can't read resource from the classpath??

2009-05-21 Thread jeff.yuchang
"alesj" wrote : "jeff.yuchang" wrote : Also, in this test, I ran the DU::getClasspath, I showed the idm.jar, but couldn't find the idm.cfg.xml file, I was putting it in the idm.jar/META-INF/. | | | Only metadata files should be in META-INF. | Configuration should be in the root. | |

[jboss-user] [Microcontainer] - Re: can't read resource from the classpath??

2009-05-21 Thread alesj
"jeff.yuchang" wrote : Also, in this test, I ran the DU::getClasspath, I showed the idm.jar, but couldn't find the idm.cfg.xml file, I was putting it in the idm.jar/META-INF/. | Only metadata files should be in META-INF. Configuration should be in the root. Or you need to add META-INF infront

[jboss-user] [Microcontainer] - Re: can't read resource from the classpath??

2009-05-21 Thread jeff.yuchang
"alesj" wrote : "jeff.yuchang" wrote : | | | | | 14:34:36,635 ERROR [AbstractKernelController] Error installing to Real: name=vfszip:/local/deploy/jboss-5.0.1.GA/server/default/deploy/idm.jar/ state=PreReal mode=Manual requiredState=Real | | | org.jboss.deployers.spi.DeploymentE

[jboss-user] [Microcontainer] - Re: can't read resource from the classpath??

2009-05-21 Thread jeff.yuchang
Also, in this test, I ran the DU::getClasspath, I showed the idm.jar, but couldn't find the idm.cfg.xml file, I was putting it in the idm.jar/META-INF/. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4232442#4232442 Reply to the post : http://www.jboss.org/

[jboss-user] [Microcontainer] - Re: can't read resource from the classpath??

2009-05-21 Thread jeff.yuchang
Just finished the test, same result, the whole stack tree is as following: | 17:34:07,272 ERROR [AbstractKernelController] Error installing to Real: name=vfszip:/local/deploy/jboss-5.0.1.GA/server/default/deploy/idm.jar/ state=PreReal mode=Manual requiredState=Real | org.jboss.deployers.spi

[jboss-user] [Microcontainer] - Re: can't read resource from the classpath??

2009-05-21 Thread alesj
"jeff.yuchang" wrote : | | | 14:34:36,635 ERROR [AbstractKernelController] Error installing to Real: name=vfszip:/local/deploy/jboss-5.0.1.GA/server/default/deploy/idm.jar/ state=PreReal mode=Manual requiredState=Real | | org.jboss.deployers.spi.DeploymentException: java.lang.Illegal

[jboss-user] [Microcontainer] - Re: can't read resource from the classpath??

2009-05-21 Thread jeff.yuchang
"alesj" wrote : "jeff.yuchang" wrote : pack the stuff into .jar suffix approach doesn't work, the same resource was not found exception. | | | If you use this approach, then you have to use DU::getClassLoader, | when trying to load resources. | | I was using the DU::getResourceClas

[jboss-user] [Microcontainer] - Re: can't read resource from the classpath??

2009-05-21 Thread jeff.yuchang
Thanks, below it is the exception: | 14:34:36,635 ERROR [AbstractKernelController] Error installing to Real: name=vfszip:/local/deploy/jboss-5.0.1.GA/server/default/deploy/idm.jar/ state=PreReal mode=Manual requiredState=Real | org.jboss.deployers.spi.DeploymentException: java.lang.Illegal

[jboss-user] [Microcontainer] - Re: can't read resource from the classpath??

2009-05-21 Thread alesj
"jeff.yuchang" wrote : pack the stuff into .jar suffix approach doesn't work, the same resource was not found exception. | If you use this approach, then you have to use DU::getClassLoader, when trying to load resources. "jeff.yuchang" wrote : | By putting the default config files in the de

[jboss-user] [Microcontainer] - Re: can't read resource from the classpath??

2009-05-21 Thread jaikiran
Can you please post the entire exception stacktrace when you try to access that resource? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4232413#4232413 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4232413 ___

[jboss-user] [Microcontainer] - Re: can't read resource from the classpath??

2009-05-21 Thread jeff.yuchang
pack the stuff into .jar suffix approach doesn't work, the same resource was not found exception. By putting the default config files in the deployers/idm doesn't work either. Nothing happened this way, seems it can't listen the -jboss-idm.xml suffix file in the deployer folder. View the origi

[jboss-user] [Microcontainer] - Re: can't read resource from the classpath??

2009-05-20 Thread alesj
What about if you put the default config files in deployers/idm. Or rename you stuff in deploy to have .jar suffix --> idm.jar, where default-jboss-idm.xml is in this jar's META-INF dir. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4232385#4232385 Reply to th

[jboss-user] [Microcontainer] - Re: can't read resource from the classpath??

2009-05-20 Thread jeff.yuchang
No luck with the DeploymentUnit's cl either. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4232374#4232374 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4232374 ___ jboss-us

[jboss-user] [Microcontainer] - Re: can't read resource from the classpath??

2009-05-20 Thread alesj
"jeff.yuchang" wrote : | So I am wondering whether because the lib was in the deployer/idm-deployer folder, and then can't access the resources in the deploy/idm/ directory? | If you look at the DeployerWrapper, we do set the TCCL to a cl that deployed the deployer. And I guess that one does