Storing a conf. file

2012-08-16 Thread georgenis
Hi community, my question is a generel question to the topic of jee. I have got an external configuration file, but i dont know where i could save it. I cant save it on the harddrive because a fixed path to an folder does not exists on every machine. When i drop it into my war file, i cant customi

Re: NullPointerException but i would like hide it

2012-07-30 Thread georgenis
Hi Romain, there is no "real" NPE...my service sends me just "null" back, but i tried to hide "null" with an empty array?! (You can see it in my method i wrote in my first entry) if(userList.size()==0) return new String[]! But I get only null back? any ideas & workaround? -- View this message i

NullPointerException but i would like hide it

2012-07-26 Thread georgenis
Hi guys, i have got a problem about NullPointer-Exceptionson my EJB i have got a methodthis one: public String[] findOnlineUser() { Query query = entityManager.createQuery("SELECT x FROM UserInformation x WHERE x.online='"+true+"'"); List userList = (List) query.getResult

Re: TomEE+ - CXF Configuration

2012-07-23 Thread georgenis
I dont want to prevent it ;-) I just want the list of all my webservices...which are deployed?! -- View this message in context: http://openejb.979440.n4.nabble.com/TomEE-CXF-Configuration-tp4631682p4656504.html Sent from the OpenEJB User mailing list archive at Nabble.com.

WAR Deployment failed

2012-07-21 Thread georgenis
Hi guys, i am developing an application and want to deploy it on TomEE+. But it failed and I dont know why...theres no hint in this log file. Jul 22, 2012 2:12:38 AM org.apache.catalina.core.AprLifecycleListener init Information: The APR based Apache Tomcat Native library which allows optimal pe

Re: CMP failed with 3 layered Object structure

2012-06-13 Thread georgenis
I am not @ work. If I am annotate this method, will I need still the getContacts().size()-method, to get no lazyLoading Exception? -- View this message in context: http://openejb.979440.n4.nabble.com/CMP-failed-with-3-layered-Object-structure-tp4655311p4655588.html Sent from the OpenEJB User mai

Re: CMP failed with 3 layered Object structure

2012-06-13 Thread georgenis
No my contact class is just out of a few strings like "firstName, surName, street, city, zipcode, country and so on". -- View this message in context: http://openejb.979440.n4.nabble.com/CMP-failed-with-3-layered-Object-structure-tp4655311p4655582.html Sent from the OpenEJB User mailing list ar

Re: CMP failed with 3 layered Object structure

2012-06-12 Thread georgenis
Hi romain, i debugged my application, when i call the method "getContactList().size()" i get no lazyloading exception. I think its not the "right" way to develope. Is there any possibility to develope it in the right way? -- View this message in context: http://openejb.979440.n4.nabble.com/CMP

Re: CMP failed with 3 layered Object structure

2012-06-12 Thread georgenis
Yes, I am using an EJB. I pasted my full class on following link: http://pastebin.com/vVcZx4aB I am not allowed to share it completely :-( Its a company training project not for external people. I hope you can help me as much as possible. -- View this message in context: http://openejb.979440

Re: CMP failed with 3 layered Object structure

2012-06-12 Thread georgenis
Which getter? I have a similiar method just for customers and contacts. I tried it like this: public Customer getCustomer( String customerId, String sessionId) throws Exception{ Session session = sessionBean.isSessionValid(sessionId);

Re: CMP failed with 3 layered Object structure

2012-06-12 Thread georgenis
Sorry Romain, i am a beginner and do not really understand what you tried to say to me?! I have to implement an method which fetch all "roles"? -- View this message in context: http://openejb.979440.n4.nabble.com/CMP-failed-with-3-layered-Object-structure-tp4655311p4655561.html Sent from the O

Re: CMP failed with 3 layered Object structure

2012-06-12 Thread georgenis
hi guys, i have still a problem with this lazy loading issue. I changed in my persistence.xml "transaction-type" to "JTA" to manage all transactions with the container. But the LazyLoading ISSUE is still alive :( Can anyone help me? -- View this message in context: http://openejb.979440.n4.na

Re: CMP failed with 3 layered Object structure

2012-06-03 Thread georgenis
Thanks for that hint :-) I am a JEE beginner. My Class is an EJB ;-) I fixed it in "persistence.xml" with Transaction-Type = "JTA". -- View this message in context: http://openejb.979440.n4.nabble.com/CMP-failed-with-3-layered-Object-structure-tp4655311p4655352.html Sent from the OpenEJB User ma

Re: CMP failed with 3 layered Object structure

2012-06-02 Thread georgenis
Hi, here is a short preview of my method: @Override public RoleInformation getRole(String roleId, String sessionId) throws OpenflowException { Session session = sessionBean.isSessionValid(sessionId); if(session!=null) {

Re: Deploy - Error - Index out of Bounds Exception

2012-05-30 Thread georgenis
Oh...i solved this problemmy web.xml -> lost. :( -- View this message in context: http://openejb.979440.n4.nabble.com/Deploy-Error-Index-out-of-Bounds-Exception-tp4655171p4655227.html Sent from the OpenEJB User mailing list archive at Nabble.com.

Deploy - Error - Index out of Bounds Exception

2012-05-29 Thread georgenis
Hi community, i am deploying a war-file, but i am getting an error. Here is my exception: Mai 29, 2012 12:53:04 PM org.apache.catalina.core.ContainerBase addChildInternal Schwerwiegend: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: Failed to start component [StandardEng

Re: How can I read deployed Objects?

2012-05-27 Thread georgenis
how can i access in programmatic way ? -- View this message in context: http://openejb.979440.n4.nabble.com/How-can-I-read-deployed-Objects-tp4655125p4655129.html Sent from the OpenEJB User mailing list archive at Nabble.com.

How can I read deployed Objects?

2012-05-27 Thread georgenis
Is there any chance to read out which webservice is running/published on TomEE+? Which Beans are deployed? How can I read them out? best regards -- View this message in context: http://openejb.979440.n4.nabble.com/How-can-I-read-deployed-Objects-tp4655125.html Sent from the OpenEJB User mailing

CDI - Inject Annotation

2012-05-24 Thread georgenis
Hello Community, I am trying to inject a pojo into my Enterprise Web Application. Everytime, when I try to deploy it, my TomEE+ says. Injection failed! because my @Inject Annotiation is wrong. I am a beginner to JEE 6. I just want to ask how can I inject a Custom Java Class to a Stateless session

Re: TomEE+ - CXF Configuration

2012-05-23 Thread georgenis
yes ;-) -- View this message in context: http://openejb.979440.n4.nabble.com/TomEE-CXF-Configuration-tp4631682p4651325.html Sent from the OpenEJB User mailing list archive at Nabble.com.

Re: TomEE+ - CXF Configuration

2012-05-23 Thread georgenis
Okay, this was really easy But now i have got another question to CXF implementation in TomEE+. I dont want use Spring inside my webApp (It's too much for it). But i want a CXFNonSpringServlet. My application says "No services", but TomEE+ publishes all Endpoints. How can I fix that via web.xm

TomEE+ - CXF Configuration

2012-05-14 Thread georgenis
Hello Community, i want to configure the URL of my webservices. My current URL's are http://localhost:8080/{project-name}/webservices/{webserviceImpl-class}, i want to change it, but how can i configure it in TomEE+? -- View this message in context: http://openejb.979440.n4.nabble.com/TomEE-CXF-