Re: TomEE 1.5.2 EAR server restart issue

2013-05-06 Thread hwaastad
Hi, I can verify that this does not happen in 1.6.0-SNAPSHOT. And no, openejb-provisioning is not installed. Its a 'vanilla' apache-tomee-plus-1.5.2. hw -- View this message in context: http://openejb.979440.n4.nabble.com/TomEE-1-5-2-EAR-server-restart-issue-tp4662692p4662696.html Sent from

Re: when webapp is ROOT, rest services can't find the webapp

2013-05-08 Thread hwaastad
Hi, I see the same issue myself. However the rest service loads ok on 1.6.0 even if the error message still exists... br hw -- View this message in context: http://openejb.979440.n4.nabble.com/when-webapp-is-ROOT-rest-services-can-t-find-the-webapp-tp4662716p4662721.html Sent from the

Re: when webapp is ROOT, rest services can't find the webapp

2013-05-08 Thread hwaastad
Sorry, I was a little bit too quick in my answer. Deploying as a WAR its OK. Deploying the war in an ear the log messages exists but service is OK. br hw -- View this message in context:

Re: when webapp is ROOT, rest services can't find the webapp

2013-05-08 Thread hwaastad
Sure, I'll try :-) I will try to produce a project having the same issue that I se in my production environment. I'm in the process of migrating from Glassfish to TomEE and so far i looks nice (besides from a couple of bugs in myfaces 2.1.11) Anyway. This is the exception I see: INFO: MyFaces

arquillian-tomee-embedded and ssl constraints

2013-05-10 Thread hwaastad
Hi, I'm trying to get selenium tests going on an arquillian/tomee-embedded configuration. I'm struggelig to get SSL working. As far as I can se only standard port INFO: Starting ProtocolHandler [http-bio-8080] is starting. Is it possible to add a custom server.xml to the embedded configuration

Re: arquillian-tomee-embedded and ssl constraints

2013-05-10 Thread hwaastad
Ah, sorry, didn't think of that Thanks a lot, I'll give it a try. -- View this message in context: http://openejb.979440.n4.nabble.com/arquillian-tomee-embedded-and-ssl-constraints-tp4662784p4662788.html Sent from the OpenEJB User mailing list archive at Nabble.com.

asynch listener

2013-05-12 Thread hwaastad
Hi, I have a logging bean (@Observes) annotated with: @Asynchronous @Stateless The class injects @Resource Sessioncontext It works fine in the last 1.6.0 snapshot (today) and I get the correct principal, however the logs are showing: -- WARNING: Injection data not found in JNDI context:

Last 1.6.0 Snapshot exception

2013-05-14 Thread hwaastad
Hi, something happen when i tested the last snapshot. Yesterdays snapshot is OK. I'm deploying an ear with tomee.sh: SEVERE: An error occured while initializing MyFaces: org.apache.tomee.myfaces.TomEEFacesConfigurationProviderFactory cannot be cast to org.apache.myfaces.spi.FacesC

Re: Last 1.6.0 Snapshot exception

2013-05-14 Thread hwaastad
Hi, I found out my problem. My EAR has skinny wars and by accident the ear/lib contained a myface-api jar. Somehow this worked earlier Well, sorry for making such a fuzz due to my own mistakes :-) -- View this message in context:

Re: Failed to process jar

2013-05-16 Thread hwaastad
Yes, creating a standard tomee-webapp from archetype and then just change tomee-maven-plugin to 1.6.0-SNAPSHOT. btw, my environment is Ubuntu 12.04 x86_64 ii openjdk-7-jdk 7u21-2.3.9-0ubuntu0.12.04.1 OpenJDK Development Kit (JDK) ii

Re: Failed to process jar

2013-05-16 Thread hwaastad
Well, I'm not really sure but there is a dependency to openjdk-7-jre/jdk: apt-cache depends openjdk-7-jre openjdk-7-jre Avhenger av: openjdk-7-jre-headless Avhenger av: libasound2 Avhenger av: libc6 Avhenger av: libcups2 Avhenger av: libfontconfig1 Avhenger av: libgdk-pixbuf2.0-0

@stateless @webservice in war and ear packaging

2013-05-24 Thread hwaastad
Hi, sorry if this is a beginner question... I have a War with the simple-webservice implemented. Works as it should. Then, I'm packaging this war in an EAR. Is there any requirements for this kind of setup? I've tried to add openejb-jar.xml also adding web service references, but it does'nt seem

EJB Scheduler and @RunAs

2013-06-06 Thread hwaastad
Hi, I have a question probably more in the line of implementation. My simple webapp has an EJB jar dependency. In the EJB there is a Scheduler: @Singleton @Startup @DeclareRoles({TestGroup}) @RunAs(TestGroup) public void TestTimerService(){ @Inject @DBLog private EventLogMessage log;

Re: EJB Scheduler and @RunAs

2013-06-07 Thread hwaastad
Hi, yes, the role filtering works as it's supposed to. I'm just wondering why the output for principal name is changing form guest to some other user when the scheduler fires an event. What I want to achieve is to log the user invoking the LogListener method. For all logged in users its OK but

Re: EJB Scheduler and @RunAs

2013-06-07 Thread hwaastad
OK, and thanks. I guess I need to configure JAAS to get what I want to achieve. In glassfish glassfish-web-app error-url= security-role-mapping role-nameTimerGroup/role-name principal-nametest/principal-name /security-role-mapping Then the runas user will log a correct user...and not

Re: Tomee and security-role-mapping

2013-06-08 Thread hwaastad
I've been trying :-) I tested a simple custom loginmodule (http://www.byteslounge.com/tutorials/jaas-authentication-in-tomcat-example) It works fine,but the timerbean/Scheduler never triggers any login/auth check/credentials lookup. Maybe there are some openejb-jar/ejb-jar settings I've been

Re: Tomee and security-role-mapping

2013-06-11 Thread hwaastad
I will asap :-) Another issue, perhaps. I've updated my sample project I've added a border layer between jsf managed beans and ejb layer Maybe this is a little odd scenario, but anyhow. topology (I've skipped the debug statements): RequestScoped Bean - Bordercontroller EJB - BusinessBean EJB

Re: Tomee and security-role-mapping

2013-06-11 Thread hwaastad
Sure, thats why I updated my github sample project accordingly :-) https://github.com/hwaastad/WebSecurity.git -- View this message in context: http://openejb.979440.n4.nabble.com/Tomee-and-security-role-mapping-tp4663567p4663647.html Sent from the OpenEJB User mailing list archive

Re: Tomee and security-role-mapping

2013-06-11 Thread hwaastad
Hi, the user gets the correct role after login (SuperAdmin) Then the user calls the bordercontroller.sayhelloborder. The bordercontroller has @RunAs(InternalGroup) and the method sayhelloborder has @RolesAllowed(SuperAdmin) If I remove @rolesallowed, output is: ViewController Start

Re: Tomee and security-role-mapping

2013-06-11 Thread hwaastad
Hi, not sure myself, but it seems that the runas role is being applied before the rolesallowed is checked, hence the call will be denied. If I add the InternalGroup to Rolesallowed, it's OK -- View this message in context:

Re: Tomee and security-role-mapping

2013-06-11 Thread hwaastad
OK, I rest my case. Probably need to read up on JavaEE specs again. I was just wondering since it was working i glassfish 3.1.2. Thanks again for taking your time. br hw -- View this message in context:

JAXWS in war....in an EAR

2013-06-13 Thread hwaastad
Hi, still working on my debugging project.(https://github.com/hwaastad/WebSecurity.git) Im making the simple-webservice in a war and then in an ear. deploying via tomee.sh: SEVERE: Error deploying JAX-WS Web Service for EJB Calculator java.lang.IllegalArgumentException: addChild: Child name

Re: JAXWS in war....in an EAR

2013-06-14 Thread hwaastad
Not exactly. The actually process is: 1. deploy app via tomee.sh: I see errors in log. 2. I restart tomee and notice that it loads OK. This means, that I always have to restart tomee after I've deployed the EAR. I'm not trying to deploy twice. br hw -- View this message in context:

Re: JAXWS in war....in an EAR

2013-06-14 Thread hwaastad
Sure, always running latest-and-greatest :-) (apache-tomee-1.6.0-20130614.041118-99-plus) br hw -- View this message in context: http://openejb.979440.n4.nabble.com/JAXWS-in-war-in-an-EAR-tp4663770p4663781.html Sent from the OpenEJB User mailing list archive at Nabble.com.

Re: JAXWS in war....in an EAR

2013-06-14 Thread hwaastad
This is the complete output when deploying: --- INFO: Server startup in 827 ms jun 14, 2013 1:21:41 PM org.apache.openejb.util.JarExtractor extract INFO: Extracting jar: /usr/local/development/apache-tomcat/apache-tomee-plus-1.6.0-SNAPSHOT/apps/JaxWs-ear-1.0-SNAPSHOT/JaxWs-web-1.0-SNAPSHOT.war

Re: JAXWS in war....in an EAR

2013-06-14 Thread hwaastad
Nice Looking forward to test :-) Thanks a lot for your dedication! br hw -- View this message in context: http://openejb.979440.n4.nabble.com/JAXWS-in-war-in-an-EAR-tp4663770p4663789.html Sent from the OpenEJB User mailing list archive at Nabble.com.

newEjbAvailableAfterApplicationCreated

2013-06-15 Thread hwaastad
Hi, I've startet testing a web service I've been working on. it's a war containing both jaxrs and jaxws services. Right now it fails with the message I've added beneath. I was just wondering what might cause such an error? br hw -- SEVERE - Cannot instantiate the service class

Re: newEjbAvailableAfterApplicationCreated

2013-06-15 Thread hwaastad
OK, thanks. I'll just have to go through my config, I guess. Just to be sure, is this whats needed for testing jaxws? dependency groupIdorg.apache.openejb/groupId artifactIdopenejb-cxf/artifactId version4.6.0-SNAPSHOT/version scopetest/scope

Re: newEjbAvailableAfterApplicationCreated

2013-06-15 Thread hwaastad
OK. Up to date...I belive so. From build: Downloaded: http://repository.apache.org/snapshots/org/apache/openejb/openejb-cxf/4.6.0-SNAPSHOT/openejb-cxf-4.6.0-20130615.040817-106.jar (56 KB at 49.3 KB/sec) -- View this message in context:

Re: newEjbAvailableAfterApplicationCreated

2013-06-17 Thread hwaastad
Hi, sorry, this was my bad. In a submodule I had defined openejb-core 4.5.2, hence the error. Again, sorry for making the fuzz. Everythings in order now. br hw -- View this message in context: http://openejb.979440.n4.nabble.com/newEjbAvailableAfterApplicationCreated-tp4663802p4663836.html

Re: TomEE Jaas and ldaploginmodule

2013-06-19 Thread hwaastad
and is superUser If I log in with user 1, it fails: [LdapLoginModule] search-first mode; SSL disabled [LdapLoginModule] user provider: ldap://my provider [LdapLoginModule] searching for entry belonging to user: hwaastad [LdapLoginModule] found entry: CN

Re: TomEE Jaas and ldaploginmodule

2013-06-19 Thread hwaastad
Yepp, U were right about your assumptions. the ldaploginmodule added the authzIdentity into UserPrincipal. I just copied the original ldaploginmodule and modified authzIdentity to GroupPrincipal and voilaits alive :-) thanks alot!!! br hw -- View this message in context:

Re: tomee and multicast

2013-06-25 Thread hwaastad
/rmannibucaugt;* *Blog: **http://rmannibucau.wordpress.com/*lt;http://rmannibucau.wordpress.com/gt; *LinkedIn: **http://fr.linkedin.com/in/rmannibucau* *Github: https://github.com/rmannibucau* 2013/6/25 hwaastad lt; helge@ gt; No, u're right. It's not. So, If I wanna include

Re: REST (EJB) in WAR inside EAR publishes twice

2013-08-06 Thread hwaastad
I've seen this one myself. Moving the war containing the rest services to the end of application.xml makes it work for me. (using maven ear plugin and moving the webModule REST to the end). hw -- View this message in context:

TomEE cluster and cdibeans

2013-08-08 Thread hwaastad
Hi, I've been reading around to see how to get clustering and cdibeans to work in tomee. As I've understood, the openejb.session-context = http tomee.session-context.wrapper = http Has to be defined as CATALINA_OPTS Adding CATALINA_OPTS=$CATALINA_OPTS -Dopenejb.session-context=http

Re: TomEE cluster and cdibeans

2013-08-08 Thread hwaastad
OK, systemVariables openejb.session-contexthttp/openejb.session-context tomee.session-context.wrapperhttp/tomee.session-context.wrapper /systemVariables Is the correct way, and it's working. However, adding -- openejb.session-context = http tomee.session-context.wrapper = http -- to

Re: TomEE cluster and cdibeans

2013-08-12 Thread hwaastad
Hi, and thanks for giving my project a shot. Thanks for fixing the system.properties issue. Is this OWB change implemented in 1.6.0-SNAPSHOT right now? If that's the case, somethings very strange. The skinny-all profile triggers an immidiate NPE on the secondary TomEE for me. Just opening

Re: TomEE cluster and cdibeans

2013-08-12 Thread hwaastad
Hi, I tried now to clean out my local repository, mvn clean install owb and tomee from trunk. I got the same result. br hw -- View this message in context: http://openejb.979440.n4.nabble.com/TomEE-cluster-and-cdibeans-tp4664576p4664600.html Sent from the OpenEJB User mailing list archive at

Re: TomEE cluster and cdibeans

2013-08-12 Thread hwaastad
Hi, the skinny-all profile will put all dependencies from web module (and other web modules) into ear/lib and not in WEB-INF/lib in the webapps. I'm trying to limit the size of the total EAR I mean, the skinny-all profile works fine using TomEE standalone, but in clustering it fails. PS, I'm

Re: TomEE cluster and cdibeans

2013-08-14 Thread hwaastad
I must say... I tried the snapshot, but it failed. Then I tried building from source and It seems that you saved my day!! :-) Thanks a lot!! Was it due to the serialization in OWB U mentioned earlier? br hw -- View this message in context:

Re: TomEE cluster and cdibeans

2013-08-16 Thread hwaastad
Hi, I'm continuing testing an issue, maybe related to this post: I have an library module and in this module I have defines a Qualifier to be used in the other modules. https://github.com/hwaastad/ClusterTest.git and branch feature/cdi-jar-event the ejb has an asynchronous observer

Re: TomEE cluster and cdibeans

2013-08-20 Thread hwaastad
Hi Romain, don't wanna trouble you too much, but did you get time to check out this issue? I've been trying all kinds of configuration but the problem still occurs. br hw -- View this message in context: http://openejb.979440.n4.nabble.com/TomEE-cluster-and-cdibeans-tp4664576p4664735.html

Re: TomEE cluster and cdibeans

2013-08-20 Thread hwaastad
Ah, sorry. Wrong branch: git clone https://github.com/hwaastad/ClusterTest.git *git checkout feature/cdi-jar-event* mvn clean package -Pskinny-all in ClusterApp-ear: mvn tomee:run -Pnode1 mvn tomee:run -Pnode2 Access http://localhost:8081/ClusterApp write som stuff in username/password

tomEE-1.6.0-SNAPSHOT issue

2013-08-22 Thread hwaastad
Hi, I noticed today an issue with the latest SNAPSHOT: -- aug 22, 2013 11:39:46 AM org.apache.tomee.loader.TomEEJarScanner tldLocationCache WARNING: Failed to scan JAR [jar:file:/home/helge/ClusterTest/ClusterApp/target/instance1/lib/openejb-jstl-1.2.jar!/META-INF/fmt.tld] from WEB-INF/lib

Re: tomEE-1.6.0-SNAPSHOT issue

2013-08-22 Thread hwaastad
Hi, I hav'nt done nothing with my ClusterApp project since was working last time. br hw -- View this message in context: http://openejb.979440.n4.nabble.com/tomEE-1-6-0-SNAPSHOT-issue-tp4664792p4664800.html Sent from the OpenEJB User mailing list archive at Nabble.com.

Re: tomEE-1.6.0-SNAPSHOT issue

2013-08-22 Thread hwaastad
Hi, any recommendations for this issue? No jdom in my project or tomee-maven-plugin br hw -- View this message in context: http://openejb.979440.n4.nabble.com/tomEE-1-6-0-SNAPSHOT-issue-tp4664792p4664813.html Sent from the OpenEJB User mailing list archive at Nabble.com.

Propagated security in TomEE

2013-08-27 Thread hwaastad
Hi, I was wondering if someone might give me an hint or two how to implement TomEE in an distributed environment. My topology is an TomEE web frontend using remote ejb calls to another TomEE server having an ejb module (packaged in an ear) Users authenticates to the web container (JAAS), but the

Re: Propagated security in TomEE

2013-08-27 Thread hwaastad
Hi, and thank for your answer I'm on 1.6.0-SNAPSHOT. I did try to use the initialcontext setup as diplayed in your post (without the jackson serializer) and I can verify that the authentication is run on all lookups. I'm one step closer :-) I've configured mappednames on @ejb's and jndiprovider:

TomEE eclipselink cache coordination

2013-09-11 Thread hwaastad
Hi, I'm trying to implement L2 cache coordination with TomEE (1.6-SNAPSHOT), eclipselink 2.5.0 and activemq. I have a hard time figuring out how eclipselink is looking up resources defined in tomee.xml. just for testing I'm running the broker on the same jvm. Does anyone have a hint or two how

Re: TomEE eclipselink cache coordination

2013-09-12 Thread hwaastad
Hi, I will not try to comment on issues in eclipselink right now (still in development process). However, property name=eclipselink.cache.coordination.protocol value=jms / property name=eclipselink.cache.coordination.jms.topic value=openejb:Resource/CacheSynchTopic /

Logger producer in tomEE cluster

2013-09-20 Thread hwaastad
Hi, I've got a question, maybe more relatred to slf4j, but maybe someone has a clue on what's happening: I have a TomEE cluster: openejb.session-context = http tomee.session-context.wrapper = http and tomcat has the tcp cluster configured. I want to produce loggers in my project, so I made a

Re: Logger producer in tomEE cluster

2013-09-20 Thread hwaastad
I belive I have, I've testet all kinds of configuration and I think I'll revert back to static loggers again :-| anyway, thanks a lot. -- View this message in context: http://openejb.979440.n4.nabble.com/Logger-producer-in-tomEE-cluster-tp4665176p4665178.html Sent from the OpenEJB User

Re: TomEE Jaas and ldaploginmodule

2013-09-25 Thread hwaastad
Have a look at: http://www.ldaptive.org/ br hw -- View this message in context: http://openejb.979440.n4.nabble.com/TomEE-Jaas-and-ldaploginmodule-tp4663866p4665275.html Sent from the OpenEJB User mailing list archive at Nabble.com.

Rest exception in latest 1.6.0 snapshot

2013-10-02 Thread hwaastad
Hi, I noticed today an exception during deployment of my rest services: [2013-10-02 14:12:14|INFO][org.apache.cxf.endpoint.ServerImpl initDestination]: Setting the server's publish address to be http://localhost:8080/DataApi/data [2013-10-02

tomee-maven-plugin and failsafe

2013-11-25 Thread hwaastad
Hi, I read the post: http://rmannibucau.wordpress.com/2013/09/25/tomee-maven-plugin-and-integration-tests-without-arquillian/ and wanted to try this one out. However, stopping the tomee always fail running mvn clean verify: [ERROR] Failed to execute goal

TomEE and persistent timers

2013-12-15 Thread hwaastad
Hi, until now I've just used standard config for my @schedule processes. However in my quest for clustered setup I've started to look into persistent storage for quartz. Now, I'm quite new to quartz so I might be missing out on something so I hope you can bear with me :-) application.properties:

Re: TomEE and persistent timers

2013-12-16 Thread hwaastad
Hi, yes it's the same database. Well, you're probably right. I moved my scheduling completely over to use quartz configuration/initializing and I get the failover/persistency I need for clustering. BTW, I've read that the application.properties including quartz properties is supposed to be put

Re: TomEE and persistent timers

2013-12-16 Thread hwaastad
OK, i've read some of the discussions on the dev list. Interesting. BTW, I realized that Injection (@EJB/@Inject) does not work in Quartz jobs so I have to lookup my ejb's. But my next problem is that my service EJB's (which are called by the job) are protected by @rolesallowed. I've tried do

Lookup and jndiprovider

2013-12-20 Thread hwaastad
Hi, I'm calling remotes with user login credentials in a web app. Producer: @Produces @RemoteEjb public ZoneServiceRemote getZoneServiceRemote() throws NamingException { Properties properties = new Properties() { { put(Context.INITIAL_CONTEXT_FACTORY,

Re: Lookup and jndiprovider

2013-12-20 Thread hwaastad
Hi, sure i'm using mapped names on remotes I do not need to authenticate to. (or can use a static login principal) However, some of my beans needs to be authenticated by the user logged in. It works as I wrote earlier, but I just wanted to know if its possible to use a dynamic jndiprovider. Or

MBean Autoregister in ear

2014-01-06 Thread hwaastad
Hi, I'm testing auto register MBean in tomee 1.6.0. In a war it's working ok. in the war packaged in an ear I get CNFE. org.apache.openejb.OpenEJBException: Creating application failed:

Re: Create CDI bean on application startup

2014-01-20 Thread hwaastad
You might try this: http://ovaraksin.blogspot.no/2013/02/eager-cdi-beans.html br hw -- View this message in context: http://openejb.979440.n4.nabble.com/Create-CDI-bean-on-application-startup-tp4667228p4667233.html Sent from the OpenEJB User mailing list archive at Nabble.com.

Re: Create CDI bean on application startup

2014-01-20 Thread hwaastad
Hi, U might be right. I've just been playing around with eager appscoped beans (for omnifaces Messages) and it has been working OK. I also know that there is an issue(feature) in omnifaces for an eager applicationscoped bean feature. (But I do agreee regarding singleton/startup. its simpler and

tomee, jax-rs and logback

2014-01-20 Thread hwaastad
Hi, I'm testing logback implementation in TomEE 1.6.0 Current config: catalina_home/lib/logback.xml tomee-maven-plugin: liborg.slf4j:jul-to-slf4j:1.7.5/lib libch.qos.logback:logback-core:1.0.13/lib libch.qos.logback:logback-classic:1.0.13/lib libch.qos.logback:logback-access:1.0.13/lib

Re: tomee, jax-rs and logback

2014-01-21 Thread hwaastad
Hi, changing openejb.log.factory?slf4j did'nt do anything useful. Do you mean moving both logback jars and xml to web app? br hw -- View this message in context: http://openejb.979440.n4.nabble.com/tomee-jax-rs-and-logback-tp4667241p4667243.html Sent from the OpenEJB User mailing list

Re: tomee, jax-rs and logback

2014-01-21 Thread hwaastad
@Alexander You're right. I did test that before, but when running tomee-maven-plugin the setenv.sh is copied with 644. so by changing to 755 its ok. ...but in the end, since it's to much moving around with classpath and libraries, I'll stick to strictly web-app deployment. Thank's a lot. br hw

Re: tomee, jax-rs and logback

2014-01-22 Thread hwaastad
Hi, I've been testing a lot now and the following is my conclusion. configuration: Ear: logback-classic/core and logback-config.jar in ear/lib submodules: logback-classic compile dependency logback-config.jar provided TomEE 1.6.0: does not work TomEE 1.6.1-SNAPSHOT: working Off course,

Stateful clustering

2014-01-29 Thread hwaastad
Hi, I know it's been discussed in an earlier thread but I just want to know if there is any update regarding clustering of stateful session beans? Is this something TomEE would contain in the future? br hw -- View this message in context:

Re: JAX-RS + Bean Validation

2014-02-06 Thread hwaastad
Nice reading and thanks for sharing :-) I tried adding system.properties entry, however I discovered a challenge: --- SEVERE: EjbTransactionUtil.handleSystemException: org.apache.openejb.core.mdb.MdbContext cannot be cast to javax.ejb.SessionContext java.lang.ClassCastException:

activemq xbean and tomee-maven-plugin

2014-02-11 Thread hwaastad
Hi, I'm fiddling around with activemq.xml and tomee-maven-plugin and I always get this: URL [file:conf/activemq.xml]; nested exception is java.io.FileNotFoundException: conf/activemq.xml relevant configuration I have: configuration catalinaBase${project.build.directory}/instance1/catalinaBase

tomee, rest wadl generation

2014-02-19 Thread hwaastad
Hi, I've got a quiestion regarding wadl generation in tomee/cxf/rest I'm not quite sure if this is a tomee issue, but maybe someone has seen this before. A simple rest method: @POST @Consumes(application/json) @Produces(application/json) public Response putJson(User user) {

Re: tomee, rest wadl generation

2014-02-19 Thread hwaastad
Hi Romain, you are correct about the json issue. If i accept/produce both xnl and json: resource path=/generic method name=POST request representation mediaType=application/xml element=prefix1:user/ representation mediaType=application/json/ /request response representation

Re: tomee, rest wadl generation

2014-02-19 Thread hwaastad
Thx for input, still it does'nt change anything. The only thing I found out is that I also need namespace for the xmlrootelement for element in xml aswell. I guess I'll have to check the cxf pages. Thanks again, hw -- View this message in context:

Re: tomee, rest wadl generation

2014-02-20 Thread hwaastad
Ok, so what you're saying is that it's probably not been fixed in current cxf? br hw -- View this message in context: http://openejb.979440.n4.nabble.com/tomee-rest-wadl-generation-tp4667900p4667921.html Sent from the OpenEJB User mailing list archive at Nabble.com.

ejb-jar.xml/beans.xml placement in a war

2014-03-09 Thread hwaastad
Hi, I guess this is discussed several places, but I'm still not 100% sure about my implementation. OK, here it goes: I have a war with rest services. I have implemented bval support for my services defined in ejb-jar.xml. I have producers for JMS connections and sessions. In a war, I guess

tomee-emdedded,rest and jaas test

2014-03-13 Thread hwaastad
Hi, I have a project using a custom jaas module an I'm protecting my rest resources (and ejb's) via @rolesallowed and securityconstraints in web.xml etc. I't working as supposed to. However, is it possible to use tomee embedded for doing end-to-end testing? i.e, catalina_opts

Re: tomee-emdedded,rest and jaas test

2014-03-13 Thread hwaastad
OK, I made some tests and adding login.config to src/test/resources and: System.setProperty(java.security.auth.login.config, src/test/resources/login.config); and in webapp-root/META-INFO/context.xml adding jaasrealm info. Then I can do a complete end-to-end test including JAAS. ...learning

Setting principal in a filter

2014-03-16 Thread hwaastad
Hi, I've been working on a rest service filter for security and have a quick question regarding principal propagation. OK, the filter basically does this: String test = token from request // Custom JAAS login module (I know it can be done without aswell) LoginContext loginContext = new

Re: Setting principal in a filter

2014-03-16 Thread hwaastad
Hi again, yes, by googling around and evaluating some more, I guess I can do one out of two: 1. Keep this configuration and use programmatic role evaluation in all methods 2. Modify my existing loginmodule and wrap my token into,for instance, the password attribute. and then do

Strange EAR issue and versioning

2014-03-18 Thread hwaastad
Hi, I've been banging my head today with a strange kind of error. I have quite a large multimodule project which in the end produces an ear with several skinny wars. Lets say I version all my modules 6.6.6 i clean out .m2 repository and build the project, do a mvn tomee:run in the ear module and

Re: Strange EAR issue and versioning

2014-03-18 Thread hwaastad
Don't see why ;-) Yepp, I've been testing different versions ex: I made a version: 19.0-SNAPSHAKKALAKKA which is complaining. Then I made a 19.0-SNAPSHOCK which is OK Then I made a 19.0.0 which is complaining and in the end the final 19.0 which is OK. I'm kind of afraid of what a no luck bug

Re: Strange EAR issue and versioning

2014-03-18 Thread hwaastad
I'll see if i can get a smaller project up and running this afternoon. Br hw -- View this message in context: http://openejb.979440.n4.nabble.com/Strange-EAR-issue-and-versioning-tp4668251p4668259.html Sent from the OpenEJB User mailing list archive at Nabble.com.

Re: Strange EAR issue and versioning

2014-03-19 Thread hwaastad
Hi, I tried to reproduce in another project (Im not in liberty to expose my production environment) but have no luck yet. I will continue trying but it may take some time so maybe you'll experience thread necromancy ;-) If anyone have an idea what might cause such an issue, I would be most

Re: Strange EAR issue and versioning

2014-03-19 Thread hwaastad
I noticed one thing. The error exists in shell only. the target/apache-tomee/logs/catalina.-xx-xx.log does not. br hw -- View this message in context: http://openejb.979440.n4.nabble.com/Strange-EAR-issue-and-versioning-tp4668251p4668270.html Sent from the OpenEJB User mailing list

TomEE and javamail

2014-03-30 Thread hwaastad
Hi, got a quick question regarding javamail resource in TomEE. I have a hard time getting it to work. I have a web app. I've configured the resource as described in http://tomee.apache.org/configuring-javamail.html http://tomee.apache.org/configuring-javamail.html if i use a

Re: TomEE and javamail

2014-03-30 Thread hwaastad
OK thanks, here's a wrap up: https://github.com/hwaastad/mockitotomee.git br hw -- View this message in context: http://openejb.979440.n4.nabble.com/TomEE-and-javamail-tp4668436p4668440.html Sent from the OpenEJB User mailing list archive at Nabble.com.

Re: TomEE and javamail

2014-03-30 Thread hwaastad
Ah, brilliant Romain. Thank's again br hw -- View this message in context: http://openejb.979440.n4.nabble.com/TomEE-and-javamail-tp4668436p4668463.html Sent from the OpenEJB User mailing list archive at Nabble.com.

Re: TomEE and javamail

2014-03-31 Thread hwaastad
Hi again, I turned back to my production environment and found out that this issue is due to some axis2 dependencies i an external module that I use. I've extended my test project to provide similar dependencies: https://github.com/hwaastad/tomeeaxis.git As u see, the library module (which I do

Re: TomEE and javamail

2014-03-31 Thread hwaastad
Thanks again, i excluded all artifacts which generated contains offending class and it seems to be OK. Great :-) br hw -- View this message in context: http://openejb.979440.n4.nabble.com/TomEE-and-javamail-tp4668436p4668474.html Sent from the OpenEJB User mailing list archive at

Re: ExceptionMapper support in TomEE 1.6.0

2014-04-05 Thread hwaastad
...or add to applicationconfig if applicable. br hw -- View this message in context: http://openejb.979440.n4.nabble.com/ExceptionMapper-support-in-TomEE-1-6-0-tp4668599p4668606.html Sent from the OpenEJB User mailing list archive at Nabble.com.

basic ejb lookup question...

2014-05-12 Thread hwaastad
Hi, having two applications in the same TomEE. (Hope I'm making sense here..) Web App 1: - dependency: ejb-jar Web App 2: - dependency: ejb-jar-client is it possible to use: JndiProvider id=myInitialContext type=javax.naming.InitialContext java.naming.factory.initial =

Re: basic ejb lookup question...

2014-05-13 Thread hwaastad
Hi, and thanks for answering. I've been testing a lot but I've not been able to make it work. Just to make sure, do you mean: @EJB(mappedName = jndi:ext://myInitialContext/Bean implementation)? br hw -- View this message in context:

Re: Strange EAR issue and versioning

2014-05-14 Thread hwaastad
@Romain Hi, remember this one? I've been trying the last couple of days to debug this but I have'nt managed to reproduce the issue. I was wondering if you have any recommendation on how do debug the NameNode.bind to see why it complains about the name? br hw -- View this message in context:

Re: basic ejb lookup question...

2014-05-16 Thread hwaastad
Something strange is happening with email to this list...it bounces. And a reply from Romain never got into the list: --- Remote bean name, ejb-name no link with java itself if you dont name your ejb as the implementation --- Anyway, I had @Stateless @LocalBean on my bean implementation.

Re: Netbeans Users

2014-05-20 Thread hwaastad
Hi, I'm using Netbeans (8) aswell. Developing web apps and businesscomponents in wars and ears. Maven by default. I seldom use tomee directly from Netbeans but rather use tomee-maven-plugin and just attach debugger when needed. br hw -- View this message in context:

Asynchronous principal propagation

2014-05-22 Thread hwaastad
Hi, I have an issue with principal propagation to an asynchronous EJB. This is TomEE 1.6.0 Scenario: - Stateless EJB (ejb1) - Asynchronous Stateless EJB(ejb2) First Request is authorized to the container and sessioncontext.getCallerPrincipal.getname is equal in both beans. (eks u...@domain.com

Re: Asynchronous principal propagation

2014-05-22 Thread hwaastad
@Andy, ejb2 method which I'm invoking is an asynchronous observer. So I just fire an event in ejb1. However I tried to call the asynchronous method as a standard call, but the issue is still the same, I'm in the process of providing an sample. I'll keep you posted :-) br hw -- View this

Re: Asynchronous principal propagation

2014-05-22 Thread hwaastad
Hi Romain, and thanks for taking your time. What happen if you click unpriv - priv - unpriv ? I'll have to wait until 1.7.0-SNAPSHOTS are updates for testing myself: [WARNING] The POM for org.apache.openwebbeans:openwebbeans-impl:jar:1.2.4 is missing, no dependency information available

Re: Asynchronous principal propagation

2014-05-23 Thread hwaastad
Me like :-) BTW, I pushed another version using log interceptor and showing threads etc. Also verifying new sessions after logout. I will build source when ready. br hw -- View this message in context:

Re: Asynchronous principal propagation

2014-05-23 Thread hwaastad
Thanks, I check immidiately. I guess you are correct (would be foolish to say something else :-)), however in my real application, the secure access is being made from a web service client. Not quite sure how to force logout. Maybe another login strategy? br hw -- View this message in

  1   2   3   4   >