[JBoss Eclipse IDE (users)] - Re: IDE cannot detect JBoss started, then JBoss is stopped
by rob.stryker@jboss.com
Ok I have another solution for you, but some explanation.
If you open your JBoss Servers View (put it on the bottom left) and the Properties View (put it below the editor area), and then in the JBoss Servers View, expand "Descriptor Xpaths" and select "Ports", the properties view will fill up.
In the properties view you can then directly edit all sorts of properties / xpaths in your various descriptors. You can also add your own categories (other than ports) and define your own xpaths to easily modify ANY xpath in any of your descriptors quickly.
However... ... I do not think twiddle (the polling mechanism I use to see if the server is up or down) will recognize "ports-03" yet, so you will have to use the preference window's JBoss IDE -> JBoss Servers section, select the server, set the timeout to be very low (only a few seconds), and then say upon timeout, set server as started.
This will essentially forego the polling mechanism (or short-circuit it) and just set the server to started.
Hopefully you'll find my xpath / ports editor useful =D
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3969054#3969054
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3969054
19 years, 7 months
[Javassist user questions] - Problem using ClassLoaders with Javassit (without the applic
by dsperry
Hi All,
There is problem with javassit and ClassLoaders for wich there is a solution, but involves changing javassit.ClassClassPath a little bit.
= Here goes the problem: =
I am using a special classloader to load an application wich I cannot change.
This application uses javassit, so javassit ends up been loaded by my classloader.
Usually this application runs without my classloader.
Eventualy ClassPool.createCtClass("ClassX",..) is called and, later ClassClassPath.find. At this point javassit.NotFoundException occurs. See the error at the end of this post.
= Here the scenario: =
java.lang.Object is loaded by the System ClassLoader
javassit.ClassClassPath is loaded by my ClassLoader
ClassX is loaded by my ClassLoader
But ClassClassPath asks to java.lang.Object where is the bytecode for "ClassX".
= Here a comment from javassit.ClassClassPath constructor: =
anonymous wrote :
| /* The value of thisClass was this.getClass() in early versions:
| *
| * thisClass = this.getClass();
| *
| * However, this made openClassfile() not search all the system
| * class paths if javassist.jar is put in jre/lib/ext/
| * (with JDK1.4).
| */
| this(java.lang.Object.class);
|
Fine, but this created a new bug which is cited in other posts such as:
"Javassist and Tomcat 4.1"
http://jboss.com/index.html?module=bb&op=viewtopic&p=3902342
"javassist.NotFoundException?: org.neo.swarmdesk.components.S"
http://www.jboss.com/index.html?module=bb&op=viewtopic&t=33476
"Re: Problems using custom ClassLoader" http://www.opensubscriber.com/message/hivemind-user@jakarta.apache.org/51...
= Here a possible solution: =
Assign thisClass=this.getClass() at the default constructor.
Change the implementation of ClassClassPath.openClassfile and
ClassClassPath.find to look for the bytecodes also at java.lang.Object.class.getResource() if the default
constructor was called
i.e: if the resource was not found and thisClass==this.getClass() then search for the resource with java.lang.Object.class.getResource()
Regards and thanks in advance,
Daniel Sperry
----
Caused by: javassist.NotFoundException: com.hoplon.bitverse.handlers.HandlerCaller
at javassist.ClassPool.get(ClassPool.java:389)
at com.hoplon.bitverse.handlers.BytecodeHandler.createHandlerCaller(BytecodeHandler.java:117)
... 12 more
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3969053#3969053
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3969053
19 years, 7 months
[JBoss Eclipse IDE (users)] - Re: IDE cannot detect JBoss started, then JBoss is stopped
by lpmon
About the ports.
In conf/jboss-service.xml I am using ports-03:
ports-03
${jboss.home.url}/server/port-bindings.xml
Meaning ports shift from #0## to #3## (like 8380 for http).
I have now learned that If I remove this and use standard ports my problem goes away. The IDE detects the server has started and all is well.
When I am not using the standard ports I see "twiddle server is down" many times in the log you wanted me to look at.
I know the solution I just cannot kind find where to make the change to the ports.
When I use the new server tool (under JBoss Inc.) I cannot find a place to change the ports. The older server definition tool (not under JBoss Inc, just plain 'JBoss') has the property panel like the one shown here:
http://www.equipmentmonitors.net/serverports.JPG
It allows you to define the jndi port and the http port being used which apparently is key to detecting the presence of the server (makes sense).
Thanks for your help on this Rob. I am not 'stopped' any longer and don't need any more help. If this port setup panel is missing from the new 'JBoss Inc' server tool hopefully it can be added later. If it is there now let me know how to get to it.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3969052#3969052
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3969052
19 years, 7 months
[JBoss Portal] - "t:popup" NG
by chuaky
dear all,
i try to use "t:popup" for activating popup menu in the web pages but encountered this error:
java.lang.IllegalStateException: Already associated with a tx
at org.jboss.tm.TxManager.resume(TxManager.java:311)
I didn't have any problem with "t:commandlink" or "t:graphicimage", wonder whats wrong with "t:popup". By the way, this is the code snippet:
<t:popup closePopupOnExitingElement="false">
<h:outputText value="This is the second textual text situation."/>
<f:facet name="popup">
<h:outputText value="hello"></h:outputText>
</f:facet>
</t:popup>
I'm using:
- JBoss AS 4.04GA
- JBoss Seam 1.01GA
- JBoss Portal 2.40 GA
Any hints would be great.
Thank you.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3969046#3969046
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3969046
19 years, 7 months