Re: OpenEjb create Map> resource for @Resource

2010-10-22 Thread michaelmgsy

I look up the source code. 
For Map> type resource.
In line 363 of PropertyEditors.class, why the parameters type of map only
must be Class?
The getTypeParameters method can found parameters type array. the array can
be used for  Map> type resource.

This is source can be modified.
-- 
View this message in context: 
http://openejb.979440.n4.nabble.com/OpenEjb-create-Map-String-Map-Long-String-resource-for-Resource-tp3008067p3008172.html
Sent from the OpenEJB User mailing list archive at Nabble.com.


Re: deployment in 3.1.3

2010-10-22 Thread David Blevins

On Oct 22, 2010, at 12:04 AM, joe wrote:

> Hi,
> 
> The deploy command:
> openejb deploy -s ejbd://joe:4 -u 
> C:\Users\joe\development\eclipse-java-helios-win32-workspace\dc5-ejb\build\dc5-ejb-5.0.0.jar
> 
> My System:
> Java 1.6
> Windows 7 (UAC is turned off :)
> 
> For OpenEJB 3.1.2 this deploy command works with a 1.5 VM

As the java versions are different, try the 3.1.2 with the new java version 
just to rule out any possible java issue.  We'd still want to find and fix it, 
but would give a better idea in where to look.

Trying to get caught up on issues reported against 3.1.3 so we can get a 3.1.4 
out there ASAP, so any investigation is greatly appreciated.

Definitely one of the things we'd want to make sure is issue-free before a 3.1.4


-David



Re: OpenEjb create Map> resource for @Resource

2010-10-22 Thread David Blevins

On Oct 22, 2010, at 6:09 PM, michaelmgsy wrote:

> 
> How to creating the Map> resource for @Resource in
> openEjb?

See http://openejb.979440.n4.nabble.com/Please-Help-me-td2999052.html#a2999052



Re: how to adjust classpath - version 3.1.2

2010-10-22 Thread David Blevins

On Oct 22, 2010, at 2:40 PM, Yu, Xiaohui wrote:

> Was anyone able to see if the log openejb generated is normal according to 
> the include/exclude I configured? I'm concerned about all this loadings. I 
> started to get OOM again with slightly newer code base.
> 
> Here's the new output:
> Apache OpenEJB 3.1.2 build: 20091010-03:11
> 

The latest 3.1.3 has this change which should eliminate all those ClientModules:

  https://issues.apache.org/jira/browse/OPENEJB-1130

If you can confirm that you still get that behavior in 3.1.3 we can get a fix 
in for 3.1.4

-David



Re: deployment in 3.1.3

2010-10-22 Thread David Blevins

On Oct 22, 2010, at 1:29 AM, Jacek Laskowski wrote:

> On Thu, Oct 21, 2010 at 8:40 PM, David Blevins  wrote:
> 
>> There should be an apps dir.  So that's definitely something we'll want to 
>> fix.
> 
> No, it doesn't exist. I'd noticed it during 3.1.3 release, but since
> there's an easy fix I shamelessly decided to vote for it. Sorry for
> not having reported it before.

No worries.  We can fix it in 3.1.4.

-David



RE: how to adjust classpath - version 3.1.2

2010-10-22 Thread Yu, Xiaohui
Was anyone able to see if the log openejb generated is normal according to the 
include/exclude I configured? I'm concerned about all this loadings. I started 
to get OOM again with slightly newer code base.
 
Here's the new output:
Apache OpenEJB 3.1.2 build: 20091010-03:11

http://openejb.apache.org/

INFO - openejb.home = C:\DEV\DataServices30\DataServiceEJB

INFO - openejb.base = C:\DEV\DataServices30\DataServiceEJB

INFO - Configuring Service(id=Default Security Service, type=SecurityService, 
provider-id=Default Security Service)

INFO - Configuring Service(id=Default Transaction Manager, 
type=TransactionManager, provider-id=Default Transaction Manager)

INFO - Using 'openejb.deployments.classpath.include=.*DataServiceEJB/classes/.*'

INFO - Using 'openejb.deployments.classpath.exclude=.*'

INFO - Found EjbModule in classpath: 
C:\DEV\DataServices30\DataServiceEJB\classes

INFO - Found ClientModule in classpath: 
C:\bea103\modules\com.bea.core.kodo_1.0.0.0_4-2-0.jar

INFO - Found ClientModule in classpath: 
C:\bea103\modules\org.apache.openjpa_2.2.0.0_1-1-0.jar

INFO - Found ClientModule in classpath: 
C:\bea103\modules\monfox.dsnmp.agent_1.0.0.0_4-6-5.jar

INFO - Found ClientModule in classpath: 
C:\bea103\modules\org.apache.ant_1.6.5\lib\ant-launcher.jar

INFO - Found ClientModule in classpath: 
C:\bea103\wlserver_10.3\server\lib\weblogic.jar

INFO - Found ClientModule in classpath: 
C:\bea103\modules\glassfish.jaxws.tools_1.0.0.0_2-1-3.jar

INFO - Found ClientModule in classpath: 
C:\bea103\modules\glassfish.jaxb.xjc_2.1.6.jar

INFO - Found ClientModule in classpath: 
C:\bea103\wlserver_10.3\server\lib\ojdbc6.jar

INFO - Found ClientModule in classpath: 
C:\bea103\wlserver_10.3\common\lib\pdev.jar

INFO - Found ClientModule in classpath: 
C:\DEV\DataServices30\DataService\lib\freemarker.jar

INFO - Found ClientModule in classpath: 
C:\DEV\DataServices30\DataService\lib\javassist.jar

INFO - Found ClientModule in classpath: 
C:\Tools\openejb-3.1.2\lib\xml-resolver-1.2.jar

INFO - Found ClientModule in classpath: 
C:\Tools\openejb-3.1.2\lib\serializer-2.7.1.jar

INFO - Found ClientModule in classpath: 
C:\bea103\wlserver_10.3\server\lib\jconn2.jar

INFO - Found ClientModule in classpath: 
C:\bea103\modules\org.apache.ant_1.6.5\lib\ant-all.jar

INFO - Found ClientModule in classpath: 
C:\bea103\modules\com.bea.core.i18n.tools_1.1.0.0.jar

INFO - Found ClientModule in classpath: 
C:\bea103\modules\org.apache.ant_1.6.5\lib\ant.jar

INFO - Beginning load: C:\DEV\DataServices30\DataServiceEJB\classes

INFO - Beginning load: C:\bea103\modules\com.bea.core.kodo_1.0.0.0_4-2-0.jar

INFO - Beginning load: C:\bea103\modules\org.apache.openjpa_2.2.0.0_1-1-0.jar

INFO - Beginning load: C:\bea103\modules\monfox.dsnmp.agent_1.0.0.0_4-6-5.jar

INFO - Beginning load: 
C:\bea103\modules\org.apache.ant_1.6.5\lib\ant-launcher.jar

INFO - Beginning load: C:\bea103\wlserver_10.3\server\lib\weblogic.jar

INFO - Beginning load: C:\bea103\modules\glassfish.jaxws.tools_1.0.0.0_2-1-3.jar

INFO - Beginning load: C:\bea103\modules\glassfish.jaxb.xjc_2.1.6.jar

INFO - Beginning load: C:\bea103\wlserver_10.3\server\lib\ojdbc6.jar

INFO - Beginning load: C:\bea103\wlserver_10.3\common\lib\pdev.jar

INFO - Beginning load: C:\DEV\DataServices30\DataService\lib\freemarker.jar

INFO - Beginning load: C:\DEV\DataServices30\DataService\lib\javassist.jar

INFO - Beginning load: C:\Tools\openejb-3.1.2\lib\xml-resolver-1.2.jar

INFO - Beginning load: C:\Tools\openejb-3.1.2\lib\serializer-2.7.1.jar

INFO - Beginning load: C:\bea103\wlserver_10.3\server\lib\jconn2.jar

INFO - Beginning load: C:\bea103\modules\org.apache.ant_1.6.5\lib\ant-all.jar

INFO - Beginning load: C:\bea103\modules\com.bea.core.i18n.tools_1.1.0.0.jar

INFO - Beginning load: C:\bea103\modules\org.apache.ant_1.6.5\lib\ant.jar

INFO - Configuring enterprise application: classpath.ear

FATAL - OpenEJB has encountered a fatal error and cannot be started: The 
Assembler encountered an unexpected error while attempting to build the 
container system.

java.lang.OutOfMemoryError: Java heap space

at org.apache.xbean.asm.ClassReader.a(Unknown Source)

at org.apache.xbean.asm.ClassReader.(Unknown Source)

at org.apache.xbean.finder.ClassFinder.readClassDef(ClassFinder.java:728)

at org.apache.xbean.finder.ClassFinder.(ClassFinder.java:141)

at org.apache.xbean.finder.ClassFinder.(ClassFinder.java:113)

at 
org.apache.openejb.config.AnnotationDeployer$DiscoverAnnotatedBeans.deploy(AnnotationDeployer.java:315)

at 
org.apache.openejb.config.AnnotationDeployer$DiscoverAnnotatedBeans.deploy(AnnotationDeployer.java:261)

at 
org.apache.openejb.config.AnnotationDeployer.deploy(AnnotationDeployer.java:188)

at 
org.apache.openejb.config.ConfigurationFactory$Chain.deploy(ConfigurationFactory.java:247)

at 
org.apache.openejb.config.ConfigurationFactory.configureApplication(ConfigurationFactory.java:601)

at 
org.apache.openejb.config.ConfigurationFactory.configureApplication(Configurati

Re: jsf deployment

2010-10-22 Thread Deepak Vohra
Please refer
JSF Injection Support

http://openejb.apache.org/3.0/tomcat.html
--- On Fri, 10/22/10, El Arbi Aboussoror  wrote:


From: El Arbi Aboussoror 
Subject: jsf deployment
To: users@openejb.apache.org
Date: Friday, October 22, 2010, 10:48 AM


Hi,
  Can I deploy a JSF web app on OpenEJB ?

-- 
El Arbi Aboussoror



  

jsf deployment

2010-10-22 Thread El Arbi Aboussoror
Hi,
  Can I deploy a JSF web app on OpenEJB ?

-- 
El Arbi Aboussoror


Re: HttpServletRequest in webservice

2010-10-22 Thread typhoon

Thanks David!
I added dependency (v 6.1.23), but now get the following exception:

Caused by: org.apache.cxf.binding.soap.SoapFault: The bean encountered a
non-application exception; nested exception is: 
java.lang.IllegalStateException: No SessionHandler or SessionManager 
while
invoking public abstract ... with params [...].
at
org.apache.cxf.binding.soap.interceptor.Soap11FaultInInterceptor.unmarshalFault(Soap11FaultInInterceptor.java:75)
at
org.apache.cxf.binding.soap.interceptor.Soap11FaultInInterceptor.handleMessage(Soap11FaultInInterceptor.java:46)
at
org.apache.cxf.binding.soap.interceptor.Soap11FaultInInterceptor.handleMessage(Soap11FaultInInterceptor.java:35)
at
org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:244)
at
org.apache.cxf.interceptor.AbstractFaultChainInitiatorObserver.onMessage(AbstractFaultChainInitiatorObserver.java:99)
at
org.apache.cxf.binding.soap.interceptor.CheckFaultInterceptor.handleMessage(CheckFaultInterceptor.java:69)
at
org.apache.cxf.binding.soap.interceptor.CheckFaultInterceptor.handleMessage(CheckFaultInterceptor.java:34)
at
org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:244)
at org.apache.cxf.endpoint.ClientImpl.onMessage(ClientImpl.java:729)
at
org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponseInternal(HTTPConduit.java:2261)
at
org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponse(HTTPConduit.java:2134)
at
org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1988)
at 
org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java:66)
at org.apache.cxf.transport.http.HTTPConduit.close(HTTPConduit.java:639)
at
org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:62)
at
org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:244)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:516)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:313)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:265)
at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:73)
at 
org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:124)

Has anyone faced such problem before?

Regards,
ty
-- 
View this message in context: 
http://openejb.979440.n4.nabble.com/HttpServletRequest-in-webservice-tp2969409p3006914.html
Sent from the OpenEJB User mailing list archive at Nabble.com.


Re: Testing WebService with 3.1.3

2010-10-22 Thread martin.th.be

Many many thanks..

My Maven dependencies was correct. Somewhere Eclipse has cached the version. 

I didn't notice anything unusual, but in the eclipse-console was the
output-text: 'Apache OpenEJB 3.1.2'.


Thanks, it works!!
-- 
View this message in context: 
http://openejb.979440.n4.nabble.com/Testing-WebService-with-3-1-3-tp3006802p3006853.html
Sent from the OpenEJB User mailing list archive at Nabble.com.


Re: Testing WebService with 3.1.3

2010-10-22 Thread Jacek Laskowski
On Fri, Oct 22, 2010 at 10:24 AM, martin.th.be
 wrote:

> Caused by: java.lang.ClassCastException: class
> org.apache.cxf.ws.addressing.wsdl.UsingAddressing

It's a shot in the dark, but could you verify that you're
inadvertently not deploy some CXF-related libraries with your
(web)app? CCE seems to imply that's the case - the class is available
in two different classloaders and hence the exception.

Jacek

-- 
Jacek Laskowski
Notatnik Projektanta Java EE - http://jaceklaskowski.pl
Komitet organizacyjny warsjawa 2010 - http://warsjawa.pl


Re: deployment in 3.1.3

2010-10-22 Thread Jacek Laskowski
On Thu, Oct 21, 2010 at 8:40 PM, David Blevins  wrote:

> There should be an apps dir.  So that's definitely something we'll want to 
> fix.

No, it doesn't exist. I'd noticed it during 3.1.3 release, but since
there's an easy fix I shamelessly decided to vote for it. Sorry for
not having reported it before.

Jacek

-- 
Jacek Laskowski
Notatnik Projektanta Java EE - http://jaceklaskowski.pl
Komitet organizacyjny warsjawa 2010 - http://warsjawa.pl


Testing WebService with 3.1.3

2010-10-22 Thread martin.th.be

Hello Community

I have a new Problem, that don't existed in 3.1.2. 

When I run my JUnit test with WSDL-Communication, I get two error
exceptions. 

ERROR - Cannot instantiate the service class
org.apache.openejb.server.cxf.CxfService. Received error:
org.apache.xbean.recipe.ConstructionException Error invoking constructor:
public org.apache.openejb.server.cxf.CxfService()
org.apache.xbean.recipe.ConstructionException: Error invoking constructor:
public org.apache.openejb.server.cxf.CxfService()

Caused by: java.lang.ClassCastException: class
org.apache.cxf.ws.addressing.wsdl.UsingAddressing

My system is:

Libraries:

OpenEJB 3.1.3

wsdl4j 1.6.2

jboss 5.1

ejb3


Maven dependencies

openejb-cxf: 3.1.3; test;  exclusion:openjpa, wsdl4j

wsdl4j: 1.6.2;


JUnit-Test with WSDL-Communication

Service hService = Service.create(new
URL("http://127.0.0.1:4204/UserBackendBeanImpl?wsdl";), new
QName("http://localhost/UserBackendBean";, "UserBackendBeanWSService"));
assertNotNull("Webservice konnte nicht erzeugt werden", hService);

  return hService.getPort(UserBackendBean.class);

WSDL-Class

@Stateless

@WebService(portName = "UserBackendBeanPort", serviceName =
"UserBackendBeanWSService",targetNamespace =
"http://localhost/UserBackendBean";)


WSDL-Interface

@WebService(targetNamespace =
"http://userbackend.winrace.de/UserBackendBean";)

public interface UserBackendBean


I hope you can Help me again.

Martin

-- 
View this message in context: 
http://openejb.979440.n4.nabble.com/Testing-WebService-with-3-1-3-tp3006802p3006802.html
Sent from the OpenEJB User mailing list archive at Nabble.com.


Re: JUnit-Tests with OpenEJB and Spring

2010-10-22 Thread martin.th.be

Hi dblevins, hi Community

This problem is still exists. =(

I need some 'tutorial' or 'example', to test my Spring-beans with OpenEJB. 

Maybe I have in my source code (see above) an error.

We are now switched on the new version of OpenEJB (2.1.3).

I hope again you / the community can help me.

Martin

-- 
View this message in context: 
http://openejb.979440.n4.nabble.com/JUnit-Tests-with-OpenEJB-and-Spring-tp2069260p3006766.html
Sent from the OpenEJB User mailing list archive at Nabble.com.


Re: deployment in 3.1.3

2010-10-22 Thread joe

Hi,

The deploy command:
openejb deploy -s ejbd://joe:4 -u 
C:\Users\joe\development\eclipse-java-helios-win32-workspace\dc5-ejb\build\dc5-ejb-5.0.0.jar


My System:
Java 1.6
Windows 7 (UAC is turned off :)

For OpenEJB 3.1.2 this deploy command works with a 1.5 VM