[JBoss-user] [EJB 3.0] - EJB3 Entities and NoClassDefFound

2006-03-10 Thread fcorneli
My EJB3 entities use the JAXB annotation API. Since this does not come with 
JBoss yet, I thought to put it inside my EAR and let the entity JAR point to it 
via the MANIFEST.MF Class-Path entry. But, this does not work. How do I tell 
the EJB3 deployer to use my jaxb-api-xxx.jar that comes with my EAR file when 
deploying the PARs? I don't feel like pushing all my required libraries into 
$JBOSS_HOME/lib...

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3929258#3929258

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3929258


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB/JBoss] - Remote JMX access

2006-03-08 Thread fcorneli
Hi,

I'm running JBoss 4.0.4RC1 on Linux. Connecting to JMX via JNDI 
jmx/invoker/RMIAdaptor on a local running JBoss works just fine. But, when I 
try  to connect to a remote server, I always get the following exception. What 
am I doing wrong here?

  | java.rmi.NoSuchObjectException: no such object in table
  | at 
sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:247)
  | at 
sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:223)
  | at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:126)
  | at org.jboss.invocation.jrmp.server.JRMPInvoker_Stub.invoke(Unknown 
Source)
  | at 
org.jboss.invocation.jrmp.interfaces.JRMPInvokerProxy.invoke(JRMPInvokerProxy.java:133)
  | at 
org.jboss.invocation.InvokerInterceptor.invokeInvoker(InvokerInterceptor.java:241)
  | at 
org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:181)
  | 

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3928787#3928787

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3928787


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB 3.0] - Re: Classloading and multiple non-isolated EARs

2006-03-07 Thread fcorneli
Hi,

I just stumbled on the same issue within the application I'm developing. When 
will this bug be solved? It's really a show stopper for us...

Regards,
Frank.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3928451#3928451

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3928451


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB 3.0] - 2 EJB JARs in one EAR

2006-03-06 Thread fcorneli
Hi,

When I only put one EJB3 JAR in my EAR, the security domain works just fine. 
RBAC is working and I get the SessionContext injected in my (default, via 
ejb-jar.xml) interceptors. But when I put a second EJB3 JAR in my EAR (file 
that is), I don't get the SessionContext injected.

Anyone else also noticed this?

Frank.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3928187#3928187

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3928187


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB 3.0] - Injecting a String

2006-03-02 Thread fcorneli
In my MDB I have:

  | @Resource(mappedName = TheStringResource)
  | private String theStringResource;
  | 
I also have a resource-env-ref in both my ejb-jar.xml and jboss.xml. But when 
onMessage is invoked it gives me null for the value of the 'theStringResource' 
variable. And this while:

  | String value = new InitialContext().lookup(TheStringResource);
  | 
is retrieving the correct value. Isn't is possible to inject Strings via 
@Resource or am I doing something wrong here? Using 4.0.4RC1.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3927394#3927394

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3927394


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB 3.0] - NoClassDefFoundError by ServiceController

2006-03-02 Thread fcorneli
When JBoss is loading my EJB it gives me a NoClassDefFoundError when he tries 
to start the service jboss.j2ee:service=EJB3,module=my-model.jar.
The funny thing is that the Class-Path inside the MANIFEST.MF of the EJB JAR is 
set correctly and the JAR containing the class lives inside my EAR.
It seems like the ServiceController is using some reflection to load method 
dependencies, but with a classpath that is incorrect. Or am I doing something 
wrong here?

  | 11:18:05,966 WARN  [ServiceController] Problem starting service 
jboss.j2ee:service=EJB3,module=my-model.jar
  | [exec] java.lang.NoClassDefFoundError: the.class.name
  | [exec]  at java.lang.Class.getDeclaredMethods0(Native Method)
  | [exec]  at 
java.lang.Class.privateGetDeclaredMethods(Class.java:2365)
  | [exec]  at java.lang.Class.getDeclaredMethods(Class.java:1763)
  | [exec]  at 
org.jboss.ejb3.injection.PersistenceContextHandler.loadMethodDependencies(PersistenceContextHandler.java:244)
  | [exec]  at 
org.jboss.ejb3.injection.PersistenceContextHandler.loadDependencies(PersistenceContextHandler.java:348)
  | [exec]  at 
org.jboss.ejb3.EJBContainer.processMetadata(EJBContainer.java:239)
  | [exec]  at 
org.jboss.ejb3.Ejb3Deployment.processEJBContainerMetadata(Ejb3Deployment.java:406)
  | [exec]  at 
org.jboss.ejb3.Ejb3Deployment.start(Ejb3Deployment.java:457)
  | [exec]  at 
org.jboss.ejb3.Ejb3Module.startService(Ejb3Module.java:139)
  | ...
  | 

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3927398#3927398

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3927398


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB 3.0] - Re: EJB3 RC5 JNDI lookup in JSF WAR

2006-02-08 Thread fcorneli
It's getting even better. In case you're in a SAR, you have to do something 
like:


  | ClassLoader classLoader = Thread.currentThread().getContextClassLoader();
  | if (classLoader instanceof UnifiedClassLoader) {
  | UnifiedClassLoader unifiedClassLoader = (UnifiedClassLoader) 
classLoader;
  | URL url = unifiedClassLoader.getURL();
  | String path = url.getPath();
  | if (path.matches(.* + EAR_PREFIX + .*\\.ear.*)) {
  | String fullEARPrefix = path.substring(path.indexOf(EAR_PREFIX), 
path
  | .indexOf(.ear));
  | return fullEARPrefix;
  | }
  | }
  | 

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3922283#3922283

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3922283


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB 3.0] - Datasource EJB3

2006-02-07 Thread fcorneli
Hi,

I would like to package my data source definition together with my application 
EAR file. So I created a SAR as part of the EAR, containing an MBean. When the 
MBean starts, I invoke deploy on the MainDeployer via JMX, pointing to a 
-ds.xml file that I constructed at run-time. The problem here is that for 
somehow reason the data source is not yet visible for the EJB3's when they get 
loaded... and thus the thing explodes. How can I package my data source 
definition together with my application EAR so that it works? It's really 
important for me that I can package my application in one self-configuring EAR 
file.


Regards,
Frank.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3922050#3922050

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3922050


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB 3.0] - EJB3 RC5 JNDI lookup in JSF WAR

2006-02-07 Thread fcorneli
Hi,

Since RC4 there is the JNDI ear prefixing which is very useful to prevent name 
clashes. But, when I try to call an EJB3 from within my JSF based WAR I have to 
do very crazy things to find out about the runtime name of the ear file. This 
because my ear file has a format like EARNAME-A_VERSION.ear. The A_VERSION is 
something I don't feel like hard coding into my JSF BB's, I need to find out 
about it at runtime. Isn't there something like an EAR local JNDI tree which 
all WARs within the same EAR can use to find their EAR local stuff? I already 
tried via 'java:comp', but this is not populated with the EJB3 beans at all.

BTW: the runtime full EAR name detection code looks like (anyone, please, how 
do I avoid such f*cking things):

private static final String EAR_PREFIX = myapplication-deploy;

private  T getEJB3(Class clazz) {
try {
ClassLoader classLoader = Thread.currentThread()
.getContextClassLoader();
String fullEARPrefix = ;
if (classLoader instanceof URLClassLoader) {
URLClassLoader urlClassLoader = 
(URLClassLoader) classLoader;
URL[] urls = urlClassLoader.getURLs();
for (URL url : urls) {
String path = url.getPath();
if (path.matches(.* + EAR_PREFIX + 
.*\\.ear.*)) {
fullEARPrefix = path.substring(

path.indexOf(EAR_PREFIX), path.indexOf(.ear));
break;
}
}
}
LOG.debug(full EAR prefix:  + fullEARPrefix);
InitialContext initialContext = new InitialContext();
T instance = (T) initialContext.lookup(fullEARPrefix
+ clazz.getSimpleName() + /local);
return instance;
} catch (NamingException e) {
throw new RuntimeException(naming error:  + 
e.getMessage(), e);
}
}

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3922055#3922055

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3922055


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB 3.0] - Re: EJB3 RC5 JNDI lookup in JSF WAR

2006-02-07 Thread fcorneli
[EMAIL PROTECTED] wrote : why don't you just define your own jndi mappings 
for the EJBs within jboss.xml or @Local/RemoteBinding?

If I use @Local/RemoteBinding I lose the EAR prefix behaviour. I need to keep 
the EAR prefix because I have to deploy the same application multiple times, 
each time with a different EAR filename. Thus I need the EAR prefixes to scope 
my applications, but I don't want to have the prefix all over my WAR servlets. 
It should (IMHO) be possible to do an 'EAR scoped JNDI lookup' without too much 
pain.

Frank.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3922065#3922065

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3922065


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Installation Configuration] - JBoss 4 and JSTL 1.1

2004-12-28 Thread fcorneli
In a previous posting 'Standard taglib with jboss 3.2.3, tomcat 5' someone 
suggested to set, in the Tomcat 5 SAR, in jboss-service.xml,  UseJBossWebLoader 
to false. Now JBoss 4.0.0 comes with a default false for this attribute. But 
shouldn't it be set to true when you want to install JSTL within the JBoss 
server lib directory (within my WEB-INF/lib seems dirty to me since JSTL will 
probably be included in J2EE in the future). From what I can make up out of it 
you have to put it to true in order for Tomcat to use the JBoss classloader and 
thus to find the JSTL tag libs. If you don't set this attribute to true you get 
the very annoying:

org.apache.jasper.JasperException: The absolute uri: 
http://java.sun.com/jsp/jstl/fmt cannot be resolved in either web.xml or the 
jar files deployed with this application

The problem is that it doesn't work this way. Thus my question: how do I 
install JSTL in the JBoss server lib directory and let the Tomcat service 
locate this JSTL stuff?

BTW: It would also make things cleaner if JBoss had a server lib/ext and in 
jboss-service.xml an extra
lt classpath codebase=lib/ext archives=*/ gt



View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3860078#3860078

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3860078


---
SF email is sponsored by - The IT Product Guide
Read honest  candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user