[JBoss Seam] - Re: Gavin King: Bad tools of Seam is kill its uses!!!
by tony.herstell@gmail.com
This may not be what you require but I dont use Ant or Seam tools at all.
I use
MyEclipse
Create an EJB3 project and Map the correct files to thew correct "sub" projects (Ear, Jar and War).
I simply tell MyEclipse where the JBoss Server is and hit 1 button to run the server (the project is automgically deployed for me by MyEclipse using something called exploded deployment).
The server output (console) is in a MyEclipse window and I can just add in breakpoints and step through the running code within MyEclipse.
I could not be simpler.
However; Ant is IDE Neutral so you are going to stuck with Ant from the Seam team as Ant makes sense (I even use it to build the demos to find which files to move where)!
It Really COULD NOT be easier... I very rarely re-start the server either as any code cahnges are to the "running code"... so you just make a change to the code and carry on.. VERY useful with your JSF pages!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4085337#4085337
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4085337
18 years, 10 months
host ip lookup problem in JBoss AS
by saqib butt
hi
i am facing a slight problem, when i use to run jboss using the command,
# ./run.sh -c <configuration> -b 0.0.0.0
the services are accessible through the url "http://localhost:8080" and "
http://192.168.1.100:8080"
but the problem arises when i use the "jboss_init_redhat.sh" for starting
the server, after editing it and setting up the value of JBOSS_HOST to
0.0.0.0, i am not able to access my server through url "
http://192.168.1.100:8080" but at the same time i can access my services
through url "http://localhost:8080"
now is there any configuration setting on linux filesystem that i am
missing, by the way 192.168.1.100 is my ip address and i am trying jboss
server to bind itself to my ip address,
could any one please hekp me out, i will be very grateful to you for this
favor.
--
| Regards: |---------------------------------+
+------------------------------------------------ +
| Name: Saqib Butt |
| Email: mr.saqi(a)gmail.com |
| Cell: [0092]3024068471 |
+------------------------------------------------ +
18 years, 10 months
[JBoss Messaging] - Re: I need help about Messaging!
by xdoclet
first, i believe you have to post this to the EJB3 queue , not here. hope someone's going to move this thread to the correct location.
where is the *destination* ?? to which destination are you publishing your messages ??
btw, why do you still use deployment descriptors and do this in such a tortures way ? haven't you heard of annotations ??
you can do the same as follows :
import javax.jms.JMSException;
import javax.jms.Message;
import javax.jms.MessageListener;
import javax.jms.TextMessage;
import javax.ejb.ActivationConfigProperty;
import javax.ejb.MessageDriven;
import javax.ejb.TransactionManagement;
import javax.ejb.TransactionManagementType;
@MessageDriven (activationConfig = {
@ActivationConfigProperty(propertyName="destinationType", propertyValue="javax.jms.Topic"),
@ActivationConfigProperty(propertyName="destination", propertyValue="topic/SriLanka"),
})
@TransactionManagement (TransactionManagementType.BEAN)
public class LogMDB implements MessageListener {
public void onMessage(Message message) {
if (message instanceof TextMessage) {
TextMessage textMessage = (TextMessage) message;
try {
System.out.println(textMessage.getText());
} catch (JMSException e) {
e.printStackTrace();
}
}
}
}
*note*
in this example, i'm publishing messages to the topic called, "SriLanka". as i've said earlier, you got that error for you haven't provided a destination(topic) name.
Tyronne Wickramarathne
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4085332#4085332
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4085332
18 years, 10 months
[Management, JMX/JBoss] - remote call mxbean, but ClassNotFoundException
by mirrorman
Hi~
I test remote call JMX through RMIAdaptor.
i wrote definition to jboss-service.xml about new jmx information and deploy.
it is good working for test in the JMX-console. but, if client program call the operation of jmx, it happen to ClassNotFoundException.
Am i wrong something, would you check my jmx script?
// jmx script
<mbean code="mbean.system.SystemInfo" name="jboss.jmx:service=SystemInfo"
xmbean-dd="">
SystemInfo
mbean.system.SystemInfo
mbean.system.MemoryInfoObject
mbean.system.RuntimeInfoObject
mbean.system.SystemInfoObject
SystemInfoMBean
java.lang.String
MBean Status
getMemoryMXBean
<return-type>java.lang.Object</return-type>
getOperationMXBean
<return-type>java.lang.Object</return-type>
getRuntimeMXBean
<return-type>java.lang.Object</return-type>
// call part of client side
Object result = server.invoke(name, "getMemoryMXBean", new Object[0], new String[0]);
// exception log
Caused by: java.lang.ClassNotFoundException: mbean.system.MemoryInfoObject (no security manager: RMI class loader disabled)
at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:371)
at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:165)
at java.rmi.server.RMIClassLoader$2.loadClass(RMIClassLoader.java:620)
at java.rmi.server.RMIClassLoader.loadClass(RMIClassLoader.java:247)
at sun.rmi.server.MarshalInputStream.resolveClass(MarshalInputStream.java:197)
at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1538)
at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1460)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1693)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:339)
at java.rmi.MarshalledObject.get(MarshalledObject.java:135)
at org.jboss.invocation.jrmp.interfaces.JRMPInvokerProxy.invoke(JRMPInvokerProxy.java:134)
at org.jboss.invocation.InvokerInterceptor.invokeInvoker(InvokerInterceptor.java:365)
at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:197)
at org.jboss.jmx.connector.invoker.client.InvokerAdaptorClientInterceptor.invoke(InvokerAdaptorClientInterceptor.java:66)
at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:70)
at org.jboss.proxy.ClientMethodInterceptor.invoke(ClientMethodInterceptor.java:74)
at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:100)
... 2 more
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4085322#4085322
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4085322
18 years, 10 months
[JBoss Tools (users)] - Re: EJB3 Support
by xdoclet
>>I think tyronne is mostly missing the *wizards*
yes, exactly. :)
>>Didn't we use to have ejb3 component wizards ?
yes we had component wizards. but it's not available with the newer version.
>>session bean as such ?
yes, for both session beans as well as for MDBs. great if we could have those wizards back. for me it badly affects as i'm doing loads of JBM/JBMQ stuff with MDBs. doing things in a quicker time is the key where those wizards played a vital role.
i've been using JBossIDE since 2004, with xdoclet for the ejb2.x projects. so i have no issues adding the class libraries required for ejb3 and creating things from the scratch, but we're missing the ejb3 wizards here and that's what most concerned about.
(btw: bershath27 == xdoclet)
thanks
Tyronne Wickramarathne
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4085321#4085321
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4085321
18 years, 10 months