jboss7.x

Deploying a Jersey webapp on Jboss AS 7

杀马特。学长 韩版系。学妹 提交于 2019-12-17 09:19:23
问题 Currently running some webapps on Jboss AS 4/5 and I am testing migration to jboss7. When I try to deploy a jersey based webapp on JBoss AS 7 (full profile with standalone-preview config file), I get: org.jboss.as.server.deployment.DeploymentUnitProcessingException: Only one JAX-RS Application Class allowed. I've done a bit of hunting around on it and found that RestEasy is the default JAX-RS implementation embedded into Application Server. Posts like http://community.jboss.org/message/579996

Enable hot deploy for web pages in jboss-as-7.1.1.Final

我的未来我决定 提交于 2019-12-14 03:45:22
问题 i am new to jboss, and i want to enable the hot deploy feature as in tomcat. right now when making any change to the xhtml page, i rebuild the application then redeploy the whole war, which is too much. but in tomcat the war file was extracted, and then i replace the change xhtml file only and see the change immediately. i was wondering how to accomplish same behavior for jboss-as-7.1.1.Final, and not in eclipse. please advise how to do that, thanks. 回答1: You can do the same thing in JBoss as

Spring MVC + Maven + JBoss: can't deploy (The application must supply JDBC connections)

喜夏-厌秋 提交于 2019-12-14 03:18:38
问题 I'm currently trying to setup a Spring MVC 3.1.1 project using Maven and deploying on JBoss 7.1.1. I have tried a few tutorials but I couldn't finish any as at some point I would get stuck with something that was assumed in the tutorial and nonexistent in my setup. My second try was to create a "Spring MVC Project" using eclipse and copy/paste the configuration files from a working Spring MVC project to my new one but so far no good. I created my whole domain using JPA and now that I try to

Secure flag on session cookies in a Java Web Application

别来无恙 提交于 2019-12-14 02:28:33
问题 I'm trying to add the secure flag to the session cookie in a Java web application. The standard approach however presents a problem, in that when secure is true, even http requests will get the secure flag. This means that the web server does not pick up on the cookie on subsiquent requests and we end up with a new session. It works fine on HTTPS. The application in question has multiple entry points, from different domains and some internal entry points as well with an internal IP. Some are

Remote debug JBoss AS 7.1 from Eclipse Indigo

↘锁芯ラ 提交于 2019-12-14 00:25:59
问题 I read some guides on the subject and made the following steps. http://oreilly.com/pub/a/java/archive/eclipse-jboss-remote-debug.html?page=8 https://community.jboss.org/thread/177687 JBoss debugging in Eclipse The guides have some distinctions but on the whole they are similar. The steps I made. I compiled and deployed my web project and deployed it on JBoss AS 7.1 by clicking Run on Server -> JBoss AS 7.1 in Eclipse. I stopped JBoss AS in Eclipse. I uncommented the line JAVA_OPTS="$JAVA_OPTS

Transaction setTimeOut ignored in JTA environment

元气小坏坏 提交于 2019-12-13 18:14:13
问题 We have a problem setting transaction timeout on specific operations, overriding the general timeout in an application with Hibernate 4.2.1 and Jboss 7AS, since we find values set with "setTimeOut" are ignored. We have a JTA non-CMT persistence unit like this: <persistence-unit name="ourName" transaction-type="JTA"> <provider>org.hibernate.ejb.HibernatePersistence</provider> <jta-data-source>java:/datasources/ourDataSourceName</jta-data-source> <properties> <property name="hibernate

Cannot start JBoss 7.0.2 on Windows

喜欢而已 提交于 2019-12-13 16:55:03
问题 I have a problem starting JBoss version 7.0.2 on Windows 7. I got this error also with Jboss 7.1.1 and 7.1.0 so I thought reverting to an older and more stable version would do the trick, but with no use. Below is the problem - the LogManager was not properly installed. I have not deployed anything that might use the logger or anything, I just run standalone.bat after a clean install and restart. I found this issue but it seems to be resolved... The funny thing is, I was able to start it from

WAR in EAR - jboss-deployment-structure.xml ignored

只愿长相守 提交于 2019-12-13 14:00:35
问题 My EAR consists out of an common-jar, an EJB-jar and a WAR. The WAR uses a spring context, so it is dependend on the spring-namespace description files in the META-INF direcotry. My WAR/jboss-deployment-structure.xml contains <module name="org.springfw"> <imports> <include path="META-INF**" /> <include path="org**" /> </imports> </module> If i deploy the EAR and the WAR seperatly, the application works perfectly. By deploying the same WAR inside of the EAR it fails with a

JBoss AS7 - Failed to process phase POST_MODULE of deployment

99封情书 提交于 2019-12-13 12:40:17
问题 Always when I deploy my project (jsf) I get the following error on my JBoss AS7. On JBoss 6 everything worked fine. What can be reasons for that error message? Do you have any idea how I can solve that? JBoss AS7-Console 21:25:17,026 INFO [org.jboss.as.server.deployment] (MSC service thread 1-1) JBAS015876: Starting deployment of "myproject.war" 21:25:17,662 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-5) MSC00001: Failed to start service jboss.deployment.unit."seminarpla ner.war"

Deploying war in Jboss 7.0.1 through Commandline

◇◆丶佛笑我妖孽 提交于 2019-12-13 11:45:53
问题 I have a war file and I need to deploy it on Jboss 7.0.1 Server. Now I have gone through the documentation, but didnt find any thing to deploy a war file. Moreover for deploying your build through command line you generally have to use maven. So do we need for the war as well? If so, does it affects the war file? FYI : I am using linux (CentOs5)... 回答1: You can deploy a .war file using the Management Command Line Interface. The specific documentation for it is located here: JBoss AS7 Admin