"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
"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
"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.
|
|
"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
"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
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/
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
"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
"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
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
"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
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
___
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
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
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
"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
16 matches
Mail list logo