jboss

Arquillian don't clean deployment from JBoss when run from console

倾然丶 夕夏残阳落幕 提交于 2019-12-24 15:07:28
问题 I' am working on a JavaEE Project which we test with Arquillian. All my Tests running well when I start them from Eclipse. But when I start them from console Arquillian don't perfom an undeploy. After the Tests are finished they leave a deployment entry in standalown.xml like these: <deployments> <deployment name="Absenz-ear.ear" runtime-name="Absenz-ear.ear"> <content sha1="612823b52f0a4250c4fa889f885288c2d0ee24b6"/> </deployment> </deployments> And also the deployment won't clean from JBoss

Eclipse打war包部署到Jboss服务器

不问归期 提交于 2019-12-24 14:37:07
配置Runtime Enviroment 1.因为自己本地的jboss是“jboss-eap-6.4”,所以选择Jboss enterprise application platform 6.1+runtime 2.指定下面信息,点击finish即可。 3.最后查看时候检查一遍,如下: eclipse打war并发布到jboss服务器上 1.右键项目,export --> WAR file 2.展示的页面如下图所示,选择指定的路径作为Destination,然后选择jboss runtime ,点finish即可。 3.war包摆放在服务器中的路径: /usr/local/server/jboss-eap-6.4/standalone/deployments 备注: Jboss服务器放在Linux上如果已经启动了,只需要打了war包之后放进去即可访问。他会自动部署(热部署) 来源: https://www.cnblogs.com/zhougongjin/p/11342452.html

How do I programmatically start/stop an EJB

老子叫甜甜 提交于 2019-12-24 14:13:00
问题 Does anyone know if it's possible to start/stop an EJB within my application code? Eg. I have some MDBs that I wish to selectively start/stop while my application is running? Any ideas? Can this maybe be done via JMX? Cheers! 回答1: The EJB spec has no mechanism to start/stop individual EJBs (or even modules) within an application. It is possible to start/stop applications dynamically using JMX via JSR 77. (I see you're using the jboss tag. I have no expertise in JBoss, so I don't know if it

Jackson annotations ignored after deployment to JBOSS

谁说胖子不能爱 提交于 2019-12-24 13:33:52
问题 I have a class which uses two Jackson annotations: @JsonIgnoreProperties(ignoreUnknown = true) public class MyObject{ @JsonProperty(value = "fooVal") private String foo; public MyObject(){} public String getFoo() { return foo; } public void setFoo(String foo) { this.foo = foo; } } When I use the ObjectMapper to map the recieved JSON to MyObject on a local enviroment in a test case it works without problems, however if I deploy the module to my JBOSS AS all the annotations are being ignored

reference for ejb jboss and eclipse development

别等时光非礼了梦想. 提交于 2019-12-24 12:19:01
问题 is there a reference or book, maybe a tutorial that can get me started with ejb using the technologies that I have mentioned above? thank you 回答1: You can take a look at the JBoss Tools if you're interested in developing Java EE applications in Eclipse. If you already know EJB (and if you don't there is quite good Enterprise JavaBeans 3.1 book) you know you can develop your EJB's as plain POJO's just with annotations. No need for fancy plugins here. You would, however, need a plugin to easily

Using Dependency Injection in POJO's to inject EJB's

家住魔仙堡 提交于 2019-12-24 11:35:54
问题 Is it possible to inject ejb's into pojo's using the @EJB annotation? If it is, do I have to set up anything special on a JBoss server to make it work? Please let us not discuss the rationale behind doing this - I am just trying to hack some old code to make it work :-) 回答1: Yes, if you can make JBoss create the Pojo for you. Your problem is that you probably call new to create the Pojo and the framework can't intercept this which is why @EJB is ignored. The solution is to use a factory to

Trying to update the file in src/web/prod folder (jsp)

天涯浪子 提交于 2019-12-24 11:22:17
问题 I am using jboss, eclipse and svn together. I have to files in my test folder: test/create.jsp and test/data.txt . What I want to do is when I call my create.jsp it will update my data.txt . Obviously I want my data.txt to stay where it is as other scripts are tryong to read from it. I have tried dozens of new ways to put the path to my File object but for some reason it creates the file under jboss war folders. Tried: ServletContext app = getServletContext(); String path1 = app.getRealPath("

What's wrong with my listener in my web.xml?

假装没事ソ 提交于 2019-12-24 11:13:05
问题 We're using JBoss 4.22 with portlets. When the listener tag is not in the web.xml the portlet loads, but the listener sessionDestroyed() is never called (obviously). When added the portlet isn't loaded, and there aren't any exceptions or log messages. Are there any gotchas I should be aware of? <web-app xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4

How can I bind a JBoss AS 6 running as service to 0.0.0.0?

早过忘川 提交于 2019-12-24 11:07:48
问题 Where in the JBoss AS 6 startup script can I set the -b 0.0.0.0 parameter like in JBoss AS 5? The new version reads input from a temporary file .r.lock :cmdStart REM Executed on service start del .r.lock 2>&1 | findstr /C:"being used" > nul if not errorlevel 1 ( echo Could not continue. Locking file already in use. goto cmdEnd ) echo Y > .r.lock jbosssvc.exe -p 1 "Starting %SVCDISP%" > run.log call run.bat < .r.lock >> run.log 2>&1 jbosssvc.exe -p 1 "Shutdown %SVCDISP% service" >> run.log del

org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher cannot be cast to javax.servlet.Servlet

白昼怎懂夜的黑 提交于 2019-12-24 10:47:27
问题 I am using rest web service and building the project with maven. The project is building successfully, but when i hit url to test rest web services I am getting following exception. java.lang.ClassCastException: org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher cannot be cast to javax.servlet.Servlet at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1116) at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:809) at org.apache