jboss7.x

Jboss as 7 deploy using HTTP managment api

南笙酒味 提交于 2019-12-21 06:24:49
问题 How to deploy archive to Jboss as 7 using HTTP managment api? I tryied to use the following code that I created from those RHQ plugin classes public class Main2 { public static final String MANAGEMENT = "/management"; public static void main(String[] args) throws ClientProtocolException, IOException { String runtimeName= "jboss-as-numberguess33.war"; String filename = "/Users/mac/jboss-as-numberguess.war"; String deploymentName="jboss-as-numberguess.war"; File file=new File(filename); //STEP

Best practice to get EntityManger and UserTransaction from JSP

若如初见. 提交于 2019-12-21 05:45:23
问题 I am currently trying to figure out the best way to get a entity manager and a usertransaction in my application. In JBoss 5.1 I was able to inject it directly into the JSP file, but this is not permitted anymore: <%!@PersistenceContext(unitName = "unitname") public EntityManager em; @Resource UserTransaction utx; %> I have to access em and utx from different locations in my application such as Servlets and Controller classes. So it would be great to have it in one place and to access it

Set JSON provider at RESTEasy on JBoss 7.1.1

老子叫甜甜 提交于 2019-12-21 04:23:37
问题 How could I set JSON provider for RestEasy at JBoss 7.1.1? RestEasy documentation says: RESTEasy allows you to marshall JAXB annotated POJOs to and from JSON. This provider wraps the Jettison JSON library to accomplish this. But I found that it seems that on JBoss 7.1.1 Resteasy uses Jackson provider because @XmlTransient on my class field was ignored, but @JsonIgnore was processed. How can I tell to Resteasy to use Jettison instead of Jackson? On Jboss I found both providers. 回答1: if you

Clustered EJBs not being balanced in JBoss AS 7

牧云@^-^@ 提交于 2019-12-21 02:39:07
问题 I've successfully setup a cluster of 2 JBoss AS 7 instances, and deployed the following SLSB: @Stateless @Remote(TestEJBRemote.class) @Clustered public class TestEJB implements TestEJBRemote { private static final long serialVersionUID = 1L; private static final Logger logger = Logger.getLogger(...); @Override public void test() { String nodeName = System.getProperty("jboss.node.name"); logger.info(nodeName); } } From the log files I can see that the bean is correctly deployed on the cluster.

Error while running Java service wrapper for JBoss AS 7

旧城冷巷雨未停 提交于 2019-12-20 05:14:27
问题 I'm trying to make Jboss Application Server 7.1.0 run as a service using the Java service wrapper, I already solved many problems but for each one I solve I get a new one. Currently I'm using this configuration: # Java Application #wrapper.java.command=java wrapper.java.command=%JAVA_HOME%/bin/java.exe # Java Main class. This class must implement the WrapperListener interface # or guarantee that the WrapperManager class is initialized. Helper # classes are provided to do this for you. See the

quartz 2.2.1+jboss EAP 6.4 ClassNotFoundException oracle.sql.BLOB

廉价感情. 提交于 2019-12-20 04:13:18
问题 I'm trying to build a quartz scheduler ejb app and have it deployed on JBOSS EAP 6.4. Additionally, I'm trying to do so using quartz JDBC jobstore using an Oracle 11g database. Now, the problem is that whenever I try to schedule a job, I get this exception : 18:45:01,024 ERROR [org.jboss.msc.service.fail] (ServerService Thread Pool -- 50) MSC000001: Failed to start service jboss.deployment.unit."com.hp.heimdall.jar".component.QuartzBootstraper.START: org.jboss.msc.service.StartException in

Wildfly to Wildfly EJB client without remote-outbound-connections

五迷三道 提交于 2019-12-19 10:47:13
问题 I'd like to be able to have two Wildfly (or JBoss 7) instances where one of the servers talks to EJBs on the other server. The tricky part is that according to documentation, remote-outbound-connections with outbound-socket-bindings need to be created. This is a big hassle for our Operations team, especially when we want to scale out. Is there any way for a Wildfly instance to call EJB's on another Wildfly instance by programmatically specifying the remote host? I've been able to have Tomcat

error when deploying Java WS in Jboss 6.3.0 EAP

会有一股神秘感。 提交于 2019-12-19 03:08:20
问题 I am migrating an application with Java WS from Jboss 5.1.0 to Jboss 6.3.0 EAP. It works fine with Jboss 5.1.0 but I am getting error while deploying the same in Jboss 6.3.0 EAP. 14:42:10,887 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-2) MSC000001: Failed to start service jboss.deploy ment.unit."my-app.war".INSTALL: org.jboss.msc.service.StartException in service jboss.deployment.unit."dtm-banking. war".INSTALL: JBAS018733: Failed to process phase INSTALL of deployment "dtm

How to get bound server address and port programmatically in Java EE?

空扰寡人 提交于 2019-12-18 19:23:15
问题 At startup we need to get the server address and the http port of the running application. Until now we made it like this: MBeanServer mBeanServer = ManagementFactory.getPlatformMBeanServer(); ObjectName socketBindingMBean = new ObjectName("jboss.as:socket-binding-group=standard-sockets,socket-binding=http"); String host = (String) mBeanServer.getAttribute(socketBindingMBean, "boundAddress"), Integer port = (Integer) mBeanServer.getAttribute(socketBindingMBean, "boundPort")); Everything was

AsynchronousDispatcher error

限于喜欢 提交于 2019-12-18 14:18:48
问题 i am getting the error when i try to upload a file based exactly off the example shown here Sample The error is Allocate exception for servlet com.testapp.rest.JaxRsActivator: java.lang.RuntimeException: Unable to find a public constructor for class org.jboss.resteasy.core.AsynchronousDispatcher What can this mean? 回答1: If deploying to JBoss 7.x you need to change the scope of your resteasy dependencies to provided . This is because those particular libraries are already included in JBoss as