jboss

Where is the servlet jar file on JBoss 5.0.1?

旧街凉风 提交于 2020-01-12 05:42:05
问题 Hi All: I'm trying to set up my build file to be run for deployment on JBossAS 5.0.1, and I need to find the servlet jar file that I should use for the build.. All of the web pages I've looked at seem to indicate that the file is javax.servlet.jar and it should be in the C:\< install dir >\server\default\lib directory. I'm looking in this (and every other directory I can think of), but this file cannot be found. I'm either going crazy, have a wonky jboss install, or have bad info. Would

Concurrent Timeout exception on starting Jboss Wildfly 9.02 server

ε祈祈猫儿з 提交于 2020-01-12 04:58:27
问题 I am new to jboss server. When I am trying to deploy .war file on server the following exception gets print on console: 6:38:04,388 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) WFLYCTL0348: Timeout after [300] seconds waiting for service container stability. Operation will roll back. Step that first updated the service container was 'add' at address '[ ("core-service" => "management"), ("management-interface" => "http-interface") ]' 16:38:05,642 INFO [org

Configure JBOss cache to run on JBoss server 4.2.3.GA

五迷三道 提交于 2020-01-11 10:08:11
问题 Our commercial application used to run on different application server and letely we started adjust it to run on JBoss server. The problem is that that application runs JBoss cache and as part of the integration with this framework, the web-inf\lib contains the follwing jars: jboss-aop.jar, jbosscache-core.jar, jboss-common.jar, jboss-common-core.jar, jboss-j2ee.jar, jboss-jmx.jar, jboss-logging-spi.jar This causes a problem to use JNDI through the application because the jboss-common-core

Rest easy and init params - how to access?

*爱你&永不变心* 提交于 2020-01-11 08:45:22
问题 I'd like to have some init params in my web.xml and retrieve them later in the application, I know I can do this when I have a normal servlet. However with resteasy I configure HttpServletDispatcher to be my default servlet so I'm not quite sure how I can access this from my rest resource. This might be completely simple or I might need to use a different approach, either way it would be good to know what you guys think. Following is my web.xml, <web-app xmlns:xsi="http://www.w3.org/2001

Jboss deploying in root context

狂风中的少年 提交于 2020-01-11 02:17:13
问题 Yes, i know about enable-welcome-root=false , but cant find this in files. Use wildfly final or jboss eap 6.2. Where it is? And why i need to add jboss-web.xml in WEB-INF? 回答1: The file in question is standalone.xml and is located in the following directory: %JBOSS_HOME%/configuration/standalone.xml You need to add enable-welcome-root=false in your virtual server definition in your standalone: <virtual-server name="localhost" enable-welcome-root="false"> And create a jboss-web.xml file with

java.lang.ClassCastException: org.jboss.jca.adapters.jdbc.jdk6.WrappedConnectionJDK6 cannot be cast

六眼飞鱼酱① 提交于 2020-01-10 14:45:13
问题 Application Version: JBoss 7.0.0, Oracle 11g (ojdbc6.jar) and JDK 6 version I have a problem when I am trying to insert the value for CLOB Data type using CLOB.createTemporary function, getting the below exception. java.lang.ClassCastException: org.jboss.jca.adapters.jdbc.jdk6.WrappedConnectionJDK6 cannot be cast to oracle.jdbc.OracleConnection After searching in multiple forums, did not find any solution. https://forums.oracle.com/forums/thread.jspa?threadID=279238 Basic steps required to

java.lang.ClassCastException: org.jboss.jca.adapters.jdbc.jdk6.WrappedConnectionJDK6 cannot be cast

寵の児 提交于 2020-01-10 14:45:11
问题 Application Version: JBoss 7.0.0, Oracle 11g (ojdbc6.jar) and JDK 6 version I have a problem when I am trying to insert the value for CLOB Data type using CLOB.createTemporary function, getting the below exception. java.lang.ClassCastException: org.jboss.jca.adapters.jdbc.jdk6.WrappedConnectionJDK6 cannot be cast to oracle.jdbc.OracleConnection After searching in multiple forums, did not find any solution. https://forums.oracle.com/forums/thread.jspa?threadID=279238 Basic steps required to

How to increase heap size for jBoss server

这一生的挚爱 提交于 2020-01-10 12:46:09
问题 I have an upload files scenario in my project. When I'm trying to upload the large files it's giving me an OutOfMemory error. That error is related to Java heap size. How can you increase the heap size in Java and which file do I need to alter for this? I'm using jboss 5.1 server for running my application. 回答1: You can set it as JVM arguments the usual way, e.g. -Xms1024m -Xmx2048m for a minimum heap of 1GB and maximum heap of 2GB. JBoss will use the JAVA_OPTS environment variable to include

How to configure Hibernate in JBoss

坚强是说给别人听的谎言 提交于 2020-01-10 05:44:25
问题 I am creating an application to be run on JBoss using hibernate. When I run the app I get the following error: 21:15:55,848 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-8) HHH000319: Could not get database metadata: java.sql.SQLException: No suitable driver found for jdbc:mysql://localhost:3306/researchprojects at java.sql.DriverManager.getConnection(Unknown Source) [rt.jar:1.6.0_20] at java.sql.DriverManager.getConnection(Unknown Source) [rt.jar:1.6.0_20] at org

JBoss: Binding values into JNDI in JBoss EAP 6 similar to JNDIBindingServiceMgr

▼魔方 西西 提交于 2020-01-10 04:18:06
问题 How do I bind an arbitrary string to JNDI in JBoss EAP 6? I used to do it through org.jboss.naming.JNDIBindingServiceMgr MBean in previous EAP version. Is there anything similar to org.jboss.naming.JNDIBindingServiceMgr in JBoss EAP 6? We are migrating applications from jboss-5.1.EAP to jboss-eap-6.1. We need to bind some things into JNDI, so applications can look up values of environment variables. Many thanks. 回答1: You can do the following: standalone.xml: <subsystem xmlns="urn:jboss:domain