[JBoss Tools Users] - Please give this back to Hibernate or focus on the hibernate
by polliard
The hibernate tools used to be difficult to get installed pre JBOSS but when you did get them installed. It worked. Now a days I have to rely on ant scripts to do all the work since the tools almost NEVER work. JBOSS please spend a little more time if your going to own the hibernate tools and eclipse plugin making sure that it works or else give the ownership back to hibernate.
Case In Point:
Using Eclipse - Galileo (base J2EE Install)
Milestone Build of the tools when creating a hbm.xml file (Unhandled event loop exception Java.lan.StackOverflowError)
Nightly Build of the tools when creating a hbm.xml file (Unhandled event loop exception Java.lan.StackOverflowError)
Sorry if this seems rude, I'm just tired of having to rely on Ant to do what your toolset is supposed to do for me.
Before some Fan Boys comment back. Yes I have worked with Ganymede and the tools are just as broken after a base installation there using the "STABLE" tools.
Thomas
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4263293#4263293
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4263293
14 years, 10 months
[EJB 3.0 Users] - Clustered Session Beans with additional HTTP Remote Proxies
by jkonieczny
Bumped into the following issue, not sure if I'm doing something silly, or if I've wandered into an interesting pothole...
We have a number of stateless session beans that we're using two remote proxies for, one RMI and one HTTPS. They deploy initially just fine and work as expected. When we attempt to redeploy them, the redeploy fails on a NameAlreadyBoundException on the HTTPS bind point.
Narrowed it to a simplified test case and the problem seems to be the combination of clustering and the HTTP or HTTPS remoting proxy.
Test case is a single EJB with no meaningful logic (echo method that round-trips a String) packaged in a jar packaged in an ear. Server is 5.1.0.GA
The jboss.xml for the jar is:
| <?xml version="1.0"?>
| <jboss xmlns="http://www.jboss.com/xml/ns/javaee"
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
| xsi:schemaLocation="http://www.jboss.com/xml/ns/javaee
| http://www.jboss.org/j2ee/schema/jboss_5_1.xsd"
| version="3.0">
| <enterprise-beans>
| <session>
| <ejb-name>TestBean</ejb-name>
| <remote-binding>
| <jndi-name>TestBean/remote</jndi-name>
| </remote-binding>
| <remote-binding>
| <jndi-name>TestBean/remotehttps</jndi-name>
| <client-bind-url>
| https://${public.firewall.address}/servlet-invoker/SSLServerInvokerServlet
| </client-bind-url>
| </remote-binding>
| <clustered>true</clustered>
| </session>
| </enterprise-beans>
| </jboss>
|
Granted clustering doesn't add anything to the HTTP remoting (fail-over and load balancing are performed upstream), but we do need it for the RMI proxies.
Remove the clustered annotation and you can deploy/undeploy/redeploy till the cows come home. Ditto with leaving the clustered but taking out the https binding.
Is there a way to have the clustering only apply to certain remote bindings, or alternatively to have the same bean listed multiple times in the jboss.xml file (other than to transparently subclass the bean implementing the same interfaces)?
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4263280#4263280
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4263280
14 years, 10 months
[Javassist Users] - Javassist can't seem to instrument static method
by ipolevoy
I stumbled upon a Javassist problem, when it fails to add code with insertBefore().
If someone can help, I would really appreciate this.
| package test;
| public class TheAddress extends TheModel {
| static{
| foo("The address!!!");
| }
| }
|
| package test;
| public class TheModel {
| public static void foo(String param){
| System.out.println("Inside foo, param: " + param);
| }
| }
| package test;
| import javassist.*;
| public class JavassistTest {
|
| public static void main(String[] args) throws Exception {
|
| ClassPool pool = ClassPool.getDefault();
| CtClass clazz = pool.get("test.TheAddress");
| CtMethod foo = getMethod("foo", clazz);
|
| foo.insertBefore("{ System.out.println(\"inserted before foo!\");}");
|
| clazz.writeFile();
| clazz.toClass().newInstance();
| }
|
| static CtMethod getMethod(String name, CtClass target){
| for (CtMethod method : target.getMethods()) {
| if (name.equals(method.getName())) return method;
| }
| return null;
| }
| }
cheers!
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4263278#4263278
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4263278
14 years, 10 months