[EJB 3.0] New message: "EJB loading before persistence Unit jar - how to load PAR first?"
by kimbaltrue
User development,
A new message was posted in the thread "EJB loading before persistence Unit jar - how to load PAR first?":
http://community.jboss.org/message/530426#530426
Author : kimbaltrue
Profile : http://community.jboss.org/people/kimbaltrue
Message:
--------------------------------------------------------------
I'm running into an issue that I can't say I've seen before. I'm running 5.1.0.GA, but the issue seems to appear in 5.0.1.GA as well -- at least with this code. I've stripped everything out so that I'm only working with the EJB interface declarations an not any internal code. I've been in the habit of using the entity beans from a JPA persistence unit jar loaded with EJB in the same EAR file in the EJB interface. In my current project when I load the EAR the EJB loads first and the deployer can't find the entity beans in the EJB interface. If I wrap the objects in another object that's inside the EJB jar or in the Java library such as a List object then it works fine. If I try to use the object directly in the interface it fails. It seems to be load order issue, but I'm not sure how to force the PersistenceUnit jar to load first.
Any help would be appreciated.
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/530426#530426
16 years, 4 months
[JBoss Tools] New message: "Re: JBoss AS WTP server adapter removes deployment module"
by henk de boer
User development,
A new message was posted in the thread "JBoss AS WTP server adapter removes deployment module":
http://community.jboss.org/message/530400#530400
Author : henk de boer
Profile : http://community.jboss.org/people/henk53
Message:
--------------------------------------------------------------
To chime in again, I personally haven't seen it happening again that the server in Eclipse's server view showed the resource I recently saved as a top-level deployable artifact.
However...
It keeps happening that in the server view everything looks okay. Both the EJB and Web module are present as normal and they both are labeled with [Synchronized]. When I start up the server though, the Web module *only* contains a few resource I last saved! Everything else is gone. This happens almost daily or at least every few days.
Since I just had it happening again, the last actions I did are still fresh in my mind.
I had started JBoss AS and while it was running made several changes to JSP (JSF) files and Java files (inside method bodies, I don't have JRebel running for the moment). This session lasted for a few hours after which I stopped the server to make some more changes. I made a change in a JSP file again, in a faces-config.xml file and in a java file 3 files total, with the java file containing a static inner class.
Then I started the server again to see my changes, but it failed to start up. After inspection of the deployment it appeared that the entire web module only consisted of those 3 files I edited while the server was stopped and the 1 extra file that represents the static inner class. The Java files were of course the derived .class files in WEB-INF/classes and not the actual .java source files. Everything else was gone again, yet the UI still says "synchronized".
For this is currently extra troublesome, since for a few days JBoss AS tools also often refuses to deploy anything to WEB-INF/lib. I'm very happy when it for some magical reason finally deploys libs to that folder after taking hours of repeated re-deployments, but it all starts over when JBoss AS tools decides to delete everything again.
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/530400#530400
16 years, 4 months
[Beginner's Corner] New message: "Re: Jboss fails to start No error in console or logs."
by Dan Murphy
User development,
A new message was posted in the thread "Jboss fails to start No error in console or logs.":
http://community.jboss.org/message/530369#530369
Author : Dan Murphy
Profile : http://community.jboss.org/people/djm_learningJboss
Message:
--------------------------------------------------------------
Still looking for comments on this one:
I added some System out to Webserver.java
org.jboss.web.
start method
public void start() throws Exception
{
System.out.println(" Im in WebServer.java");
if (threadPool == null)
threadPool = new BasicThreadPool("ClassLoadingPool");
System.out.println(" Im in WebServer.java Threadpool");
try
{
System.out.println("port = " + port);
System.out.println("backlog = " + backlog);
System.out.println("bindAdress " + bindAddress.getHostAddress());
server = new ServerSocket(port, backlog, bindAddress);
System.out.println(" Im in WebServer.java started Serversocket");
log.debug("Started server: " + server);
listen();
System.out.println(" Im in WebServer.javan listening");
}
catch(java.net.BindException be)
{
System.out.println(" Im in WebServer.java throwing Bind exception");
throw new Exception("Port "+port+" already in use.",be);
}
catch (IOException e)
{
System.out.println(" Im in WebServer.java throw io exception");
throw e;
}
catch (SecurityException r)
{
System.out.println(" Im in WebServer.java throw security exception");
throw r;
}
finally
{
System.out.println(" Im in WebServer.java finally");
}
This is what I get in the server.log every time I start jboss with my server code. Jboss runs fine by in default server.
2010-03-07 11:00:56,250 DEBUG [org.jboss.system.ServiceController] Starting dependent components for: jboss.system:service=ThreadPool dependent components: [ObjectName: jboss:service=WebService
State: CREATED
I Depend On:
jboss.system:service=ThreadPool
, ObjectName: jboss:service=Naming
State: CREATED
I Depend On:
jboss.system:service=ThreadPool
jboss:service=NamingBeanImpl
]
2010-03-07 11:00:56,250 DEBUG [org.jboss.system.ServiceController] starting service jboss:service=WebService
2010-03-07 11:00:56,250 INFO [STDOUT] ctx.proxy start jboss:service=WebService ctx.proxy jboss:service=WebService
2010-03-07 11:00:56,250 DEBUG [org.jboss.web.WebService] Starting jboss:service=WebService
2010-03-07 11:00:56,250 INFO [STDOUT] Im in WebServer.java
2010-03-07 11:00:56,250 INFO [STDOUT] Im in WebServer.java Threadpool
2010-03-07 11:00:56,250 INFO [STDOUT] port = 8083
2010-03-07 11:00:56,250 INFO [STDOUT] backlog = 50
2010-03-07 11:00:56,359 DEBUG [org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread] Running
2010-03-07 11:00:56,359 DEBUG [org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread] Disabled, waiting for notification
2010-03-07 11:00:56,359 INFO [STDOUT] bindAdress 0.0.0.0
no error seem to get thrown by serversocket. Could some other thread in jboss be killing this thread. Security Manager.
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/530369#530369
16 years, 4 months
[EJB 3.0] New message: "Re: lookup for remote bean - failure (only from eclipse)"
by Yaron Levy
User development,
A new message was posted in the thread "lookup for remote bean - failure (only from eclipse)":
http://community.jboss.org/message/530348#530348
Author : Yaron Levy
Profile : http://community.jboss.org/people/reyaron
Message:
--------------------------------------------------------------
Hi,
Thanks for responding.
The following advise didn't help me.
> props.setProperty(Context.URL_PKG_PREFIXES, "org.jboss.naming.client");
I also tried the ENC JNDI lookup way without success.
to my opinion: its a bug in eclipse/jboss or somewhere else.
1. The interesting isue is that it works fine also from eclipse if I change the jboss version from jboss-5.1.0.GA to jboss-6.0.0.M1
2. I found some workaround also in jboss-5.1.0.GA: do the lookup without the suffix: "/remote".
this solution populates my client stub successfully.I still don't understand how it works and how exactly the JNDI lookup guesses whether I want the remote or the local EJB.
Thanks
Yaron
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/530348#530348
16 years, 4 months
[JBoss Tools] New message: "Re: WEB-INF/lib remains empty after deployment"
by henk de boer
User development,
A new message was posted in the thread "WEB-INF/lib remains empty after deployment":
http://community.jboss.org/message/530346#530346
Author : henk de boer
Profile : http://community.jboss.org/people/henk53
Message:
--------------------------------------------------------------
> snjeza wrote:
>
> You may be faced the problem described in https://bugs.eclipse.org/bugs/show_bug.cgi?id=279360 and https://jira.jboss.org/jira/browse/JBIDE-4817.
>
> A workaround for that problem is to change the Java output folder, open, close and redeploy the project
Thanks a bunch for the pointer!
Especially the bug at eclipse.org seems highly relevant to my problem. I'm pretty sure I didn't changed the Java output folder last time, although I had been fiddling with a lot of stuff. It will be the first thing I'll try again though should the problem resurface. The JBoss jira issue is a little bit cluttered with unrelated errors, so it's harder to see whether it applies.
It suddenly hit me that in my precious post I left out one other important recent change I did: I upgraded to Eclipse 3.5.2 from 3.5.1 and from JBoss AS tools 3.1cr1 to 3.1cr2. Initially I didn't had the problem. Right after upgrading everything worked fine, but the checkout I did was the first checkout after the upgrade and then the problem manifested itself. Maybe this is handy to know for someone.
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/530346#530346
16 years, 4 months