jboss5.x

How can I obtain port binding information at runtime? (JBoss 5.1)

回眸只為那壹抹淺笑 提交于 2019-12-24 08:18:10
问题 Basically what I want to do is to obtain the port number on which JBoss is listening for HTTP requests (the one that is normally 8080). I came upon this article, which sounds promising, but unfortunately some of the links are broken and I cannot figure out the part: ManagementView managementView = getManagementView(); // via JNDI lookup How could I implement getManagementView()? Or is there any other preferable way to do it? 回答1: If you are looking for a simpler interface, you might want to

Not able to compile JSP files in JBoss 5.1 with Java 1.8

我只是一个虾纸丫 提交于 2019-12-24 05:47:07
问题 Not able to compile JSP files in JBoss 5.1 with Java 1.8. Able to compile regular Java files and even complete Spring project which does not have JSPs. It is working properly, if we kept compiled class files for those JSP files. Following is the error I am getting when I am trying to run a JSP file: 2016-07-15 14:56:00,758 ERROR [org.apache.jasper.compiler.Compiler] (http-0.0.0.0-80-31) Compilation error org.eclipse.jdt.internal.compiler.classfmt.ClassFormatException at org.eclipse.jdt

Error when starting JBoss 5.1.0.GA / AttachmentStore

邮差的信 提交于 2019-12-24 03:46:24
问题 I'm getting this error when starting the JBoss server in Eclipse. Failed to boot JBoss: java.lang.IllegalStateException: Incompletely deployed. DEPLOYMENTS IN ERROR Deployment "AttachmentStore" is in error due to: java.lang.IllegalArgumentException: wrong arguments. new for taget java.land.reflect.Constructor expected=[java.net.URI] actual=[java.io.File] I've googled the AttachementStore error and most suggested modifying the profile.xml (conf/bootstrap/profile.xml) file by adding a class to

Grails 2 app wont deploy on JBOSS: BeanCreationException

半城伤御伤魂 提交于 2019-12-24 01:51:02
问题 After having upgraded one of my apps from Grails 1.3.7 to 2.1.0 and installed a couple of additional plugins the app will no longer deploy on JBOSS AS 5.1, which is used for production. The error I am getting from the JBOSS server log is the following: 13:39:10,263 ERROR [[/]] Exception sending context initialized event to listener instance of class org.codehaus.groovy.grails.web.context.GrailsContextLoaderListener org.springframework.beans.factory.BeanCreationException: Error creating bean

JBoss-provided libraries in Maven-managed Java EE app

南笙酒味 提交于 2019-12-23 19:47:07
问题 It's actually pretty unlikely for me, but it seems that there is no direct answer over the net about importing JBoss-provided dependencies into Maven-managed Java EE application to be deployed within it. AFAIK there are 2 things somehow related to the problem, that is jboss-as-client artifact for external (in sense of JVM) JBoss clients and jboss-as-component-matrix artifact with huge <dependencyManagement> block defining version of the libraries that JBoss uses. The latter artifact is pretty

@Resource annotation not working properly with JBoss5.0.1

∥☆過路亽.° 提交于 2019-12-23 18:37:39
问题 I'm tring to deploy my app in JBoss 5.0.1. Some of my beans in this app are using @Resource annotations. If i understood the problem, my guess is JBoss is tring to process this annotation before spring-core. And i noticed that "Mapped-name" is mandatory for JBoss implementation of @Resource annotation. 15:53:04,037 ERROR [StandardContext] Context [/***] startup failed due to previous errors java.lang.RuntimeException: mapped-name is required for com.***.***.**ServiceImpl/XXprocess at org

Why does the classpath default to the WEB-INF/classes/ instead of WEB-INF/ in JBoss 5.1?

可紊 提交于 2019-12-23 13:25:06
问题 I have a piece of code that get's the spring context using context = new ClassPathXmlApplicationContext("application-context.xml"); The file is located inside the WAR's "WEB-INF/application-context.xml" In JBoss 4.2.3, the above code works fine. In JBoss 5.1, after experimenting, it seems to expect the file to be in "WEB-INF/classes/application-context.xml". And after shifting the file there it works. I also googled around saw lots of references to how the VFS messes with Spring's classpath

Single/complete Maven dependencies for Java EE 5 API

旧时模样 提交于 2019-12-23 07:45:45
问题 Is there a single maven dependency containing whole Java EE 5 spec API. Just like <dependency> <groupId>javax</groupId> <artifactId>javaee-api</artifactId> <version>6.0</version> </dependency> for Java EE 6. I'm using JBoss 5 and want to add single (or several) dependency as provided scope and be sure that I have everyting that is available in JBoss. Maybe some kind of archetype exist for JBoss 5.x.x deployed project? 回答1: Based on maven central I think you need the following: <dependency>

Single/complete Maven dependencies for Java EE 5 API

自闭症网瘾萝莉.ら 提交于 2019-12-23 07:45:38
问题 Is there a single maven dependency containing whole Java EE 5 spec API. Just like <dependency> <groupId>javax</groupId> <artifactId>javaee-api</artifactId> <version>6.0</version> </dependency> for Java EE 6. I'm using JBoss 5 and want to add single (or several) dependency as provided scope and be sure that I have everyting that is available in JBoss. Maybe some kind of archetype exist for JBoss 5.x.x deployed project? 回答1: Based on maven central I think you need the following: <dependency>

why do i get the protected page instead of the login page?

女生的网名这么多〃 提交于 2019-12-23 05:51:46
问题 I'm using JAAS to secure my web-application. As the title says, the problem is that i get the home page which is in the protected folder instead of the login page. Actually the home page is my welcome page. By the way, it works fine when i write the URL (/myappJaas/protected/admin/homeadmin.xhtml) in the web browser. This is the web.xml file: <welcome-file-list> <welcome-file>/protected/admin/homeadmin.xhtml</welcome-file> </welcome-file-list> <security-constraint> <web-resource-collection>