Feature Requests item #706850, was opened at 2003-03-20 12:14
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=376688&aid=706850&group_id=22866
Category: JBossServer
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Van caneghem (vancan13)
Assigned to: Nobody/Anonymous (nobody)
Summary: ejb-link doesn't work with exploded EJB .jar files
Initial Comment:
(see [ jboss-Bugs-650929 ] ejb-link doesn't work in
deployment)
There is a bug when ejbjar is not a jar but a directory
(when .ear file contains exploded EJB .jar files).
An additional '/' must be added to the ejbjar URL.
You can add in the method "resolveRelativeLink" of
"EjbUtil.java" the following code:
DeploymentInfo targetInfo = null;
try
{
targetInfo = (DeploymentInfo)server.invoke(
MainDeployerMBean.OBJECT_NAME,
"getDeployment",
new Object[] {target},
new String[] {URL.class.getName()}
);
==>>
// if null, try with an extra '/'
// (happen when ejbjar is a directory)
if( targetInfo == null )
{
// add a '/' at the end and retry
target = new URL( ourPath + '/' );
targetInfo = (DeploymentInfo)server.invoke(
MainDeployerMBean.OBJECT_NAME,
"getDeployment",
new Object[] {target},
new String[] {URL.class.getName()}
);
}
<<==
}
catch( Exception e )
{
log.error( "Got Exception when looking for
DeploymentInfo: " + e );
return null;
}
==>>>>>>>>>>>>>>
>Comment By: Christian Riege (lqd)
personally i think this is out of the scope of the specs as
the specs don't mention exploded modules inside of an .ear
file (or any exploded content at all). however i can see
your use-case for this.
could you please re-file this as a separate "Feature
Request" here on sourceforge and i'll integrate it (yeah,
sounds like bureaucracy but i want to keep track of it
separately from this bug).
thanks in advance,
christian
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=376688&aid=706850&group_id=22866
-------------------------------------------------------
This SF.net email is sponsored by: Tablet PC.
Does your code think in ink? You could win a Tablet PC.
Get a free Tablet PC hat just for playing. What are you waiting for?
http://ads.sourceforge.net/cgi-bin/redirect.pl?micr5043en
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development