jboss

How to convert Maven War project to an EAR project in Openshift?

女生的网名这么多〃 提交于 2020-01-05 08:56:44
问题 I have created an JEE application in Openshift using the JBOSS AS 7.1 cartridge a Maven project have been generated with the War deployment format. I need to use EJBs into the application but the War format cannot hold EJB so I changed the from War to Ear, the problem is that when I deploy the Ear the application does not Work(404 Error when I access the home page). Is there any simple solution in order to make this work? Or Should I create two seperate projects(one EJB project and another

Adding JBoss repository to m2eclipse, no latest Hibernate version

和自甴很熟 提交于 2020-01-05 08:26:23
问题 I'm trying to add JBoss repository to m2eclipse, mainly for Hibernate. It seems to work, but it can't find the latest version of Hibernate (3.5.1), only 3.5.0beta. I looked at some other packages, and they all seem a couple of months behind. What could be causing this? I'm running latest m2eclipse, and i guess latest Eclipse (it just says 20100218-1602, eclipse people think it's funny to not include version in the about dialog), on ubuntu 9.10. This is my settings.xml <settings> <profiles>

How to put JSF provided by JBoss AS7 on the classpath of a JAR module?

我怕爱的太早我们不能终老 提交于 2020-01-05 08:23:34
问题 Overview : I have a JEE6 project that uses Apache Maven as the build system. My project produces an EAR that contains some common JARs, some EJB modules and a WAR. The produced EAR should be deployed to JBoss AS 7 (7.1.1 for now). Best practices : If you have a web-application (like mine) and the classes for the webapp (managed beans) might be reused in other projects, it is the recommended way ( the maven way ) to package these classes into a separate JAR and make the WAR depend on this JAR.

Getting the jsp source code appended with the file content when I download files

女生的网名这么多〃 提交于 2020-01-05 08:09:21
问题 I am working on a File upload/download functionality, in Java using Struts2 framework, where we are uploading to and downloading from a remote server path. All seems to work fine when I check the functionality at my local machine with a local path as the destined path from where i am downloading and to which am uploading the files of any format. The development environment has JBoss server. But when I run the same over at the prod env, where the application is deployed in Weblogic server,

HTTP response '401: Unauthorized' using NTLM with Wildfly

与世无争的帅哥 提交于 2020-01-05 08:08:31
问题 When the SOAP request is too long we are getting '401: Unauthorized' as a response using JAX-WS in WildFly 11 (Apache CXF under the hood). We are calling a SOAP Web Service from WildFly to SharePoint, using NTLM protocol. If the request size is short it works fine, but if the request is "large" (SOAP messages with 1MB for example) it fails with error HTTP 401. We are using this web service to send images, but encoded as base64 binary. We tried to call the service using SOAP UI and it worked,

How to get Container Managed Transactions (CMT) working with EJB 3.1, Hibernate 3.6, JPA 2.0 , JBoss and MySQL

狂风中的少年 提交于 2020-01-05 07:37:12
问题 I was trying to get CMT working with JPA EntityManagers and EJBs, but came up with the error below. (stack trance truncated): Caused by: java.lang.RuntimeException: **Could not resolve @EJB reference: [EJB Reference: beanInterface 'com.mydomain.beans.TestBean2', beanName 'testBean2', mappedName 'null', lookupName 'null',** owning unit 'AbstractVFSDeploymentContext@2008455195{vfs:///Users/willtardy/Documents/workspace/.metadata/.plugins/org.jboss.ide.eclipse.as.core/JBoss_6.0_Runtime

War file deployment in JBoss 4.2 server, with Maven repositories

送分小仙女□ 提交于 2020-01-05 07:14:19
问题 I am a first time maven user. The project I have needs to be deployed into JBoss 4.2 server as a war file. I realized we can eliminate Ant if we are using Maven . Previously I used to configure my build path and my jars location in build.properties file. Now using Maven I am confused how to build a war file with referenced libraries are with Maven. My directory structure is as follows: My previous build.properties file was : deploydir=C:/jboss-4.2.3.GA/server/default/deploy userlib=C:/Jar

Where to put property file in JBOSS 7 or Glassflish? (Best practice)

此生再无相见时 提交于 2020-01-05 07:13:44
问题 I have developed applications for JBOSS EAP 5 with eclipse. I placed property files under server-conf/conf/... I am now developing in Netbeans (7.2). The bundled glassfish server is used for easier development. The target environment is JBOSS EAP 6. What is the best place to place property files? A common place for both environments would be great. 回答1: If you want to have them external to the application you'll probably have to write a custom module. This isn't as bad as it sounds, check out

Where to put property file in JBOSS 7 or Glassflish? (Best practice)

旧时模样 提交于 2020-01-05 07:13:03
问题 I have developed applications for JBOSS EAP 5 with eclipse. I placed property files under server-conf/conf/... I am now developing in Netbeans (7.2). The bundled glassfish server is used for easier development. The target environment is JBOSS EAP 6. What is the best place to place property files? A common place for both environments would be great. 回答1: If you want to have them external to the application you'll probably have to write a custom module. This isn't as bad as it sounds, check out

JBoss [ClassLoaderManager] Unexpected err… cannot access superclass?

醉酒当歌 提交于 2020-01-05 03:06:43
问题 Trying to deploy to JBoss-6.0.0.Final container and have been battling the following stacktrace. Maybe there's a known solution?? 14:36:08,218 INFO [AbstractJBossASServerBase] Server Configuration: JBOSS_HOME URL: file:/E:/java/jboss-6.0.0.Final/ Bootstrap: $JBOSS_HOME\server/default/conf/bootstrap.xml Common Base: $JBOSS_HOME\common/ Common Library: $JBOSS_HOME\common/lib/ Server Name: default Server Base: $JBOSS_HOME\server/ Server Library: $JBOSS_HOME\server/default/lib/ Server Config: