jboss

jboss-web.xml context path name is different from war file's name.

The context-path name in jboss-web.xml is different from the application which we deploy in jboss-5.0 GA. My application creates some files with in the applications sub-folders. but when it goes to create files it searches the application with the name which is mentioned is jboss-web.xml file. I use exploded-war file as my application,...

JBoss as a windows service. Where can i set the JAVA_OPTS?

hi. I'm running JBoss as a windows service, but i can't seem to find where i can configure the JAVA_OPTS to make it work properly. I need to set the Xms and the Xmx. I have tried to just run JBoss manually (run.bat) and in the same file i set the JAVA_OPTS= -Xms128m -Xmx512m. And that works. Here is my install.bat where i install the J...

Limiting the size of a HTTP post request on JBoss

I am using Jboss 4.2.3 as an appserver. Is there a way to limit the size of the HTTP Post request accepted by JBoss? I want to limit the size to avoid DOS attacks. I already sat maxHttpHeaderSize and maxPostSize in the server.xml, but neither of them seem to make any difference. ...

Web service under JBoss using Hibernate: first steps

What's the difference between building a stand-alone application based on Hibernate and a web service (JBoss) based on Hibernate? I'm refering at the creation of the SessionFactory, Configuration and Sessions. What special concerns should I take care when building a web service with Hibernate persistence? I would really appreciate a bas...

Category VS logger tags in jboss-log4j.xml

What should we use in jboss-log4j.xml in order to turn on/off traces for our product - "category" or "logger" tag? By default JBoss uses "category" in jboss-log4j.xml. But as far as I know "category" is deprecated and "logger" should be used instead. Why JBoss uses deprecated "category" tag in a new product? ...

HttpServletRequest.getServerName() occasionally returning null in concurrent use?

Under JBoss 4.0.1SP1, I have a servlet that makes multiple, concurrent calls to web services that are running under the same instance. I'm using request.getServerName() (on HttpServletRequest) to construct the endpoint URL. This normally works fine, but every once in a while returns null. I hadn't seen this before running the web servic...

JBoss Client-Cert Authentication: Hot to setup UsersRolesLoginModule in login-config.xml

I am looking that chapter 8 of the RedHat, JBoss documentation. I am trying to setup Certificate Authentication as described on this page . On the page it says that the login-config file should have this in it: <application-policy name="jmx-console"> <authentication> <login-module code="org.jboss.security.auth.spi.BaseCe...

jboss web services to tranfer files

I dont have any experience for web services. please give me some suggestion about the task below. the task is: users will send a txt file (size should less than 20K ) from a .NET application, I need to write a web services which runs by jboss 5.x to read this file and edit this file and send the file back to .NET UI to display the edited...

Configuring mod_rewrite and mod_jk for Apache 2.2 and JBoss 4.2.3

Hello! My problem is as follows: I have JBoss 4.2.3 application server with AJP 1.3 connector running on one host under Windows (192.168.1.2 for my test environment) and Apache 2.2.14 running on another FreeBSD box (192.168.1.10). Apache acts as a "front gate" for all requests and sends them to JBoss via mod_jk. Everything was working fi...

JBoss 5.0.0.GA datasource security-domain and login-config.xml

Running into an issue where our datasources for two different DBMS (MS-SQLServer and Informix) are not picking up the security-domain configuration in the login-config.xml file. Our datasources look like this: <datasources> <local-tx-datasource> <jndi-name>ourTX</jndi-name> <connection-url>jdbc:informix-sqli:/...

JBoss - does app have to be compiled under same jdk as JBOSS is running under?

I'm a little confused about JBOSS and running it under different JDKs. For example, let's say I'm running JBOSS 5.1, and before starting it I set my JAVA_HOME to point to JDK5. Let's also assume that my JEE application is compiled under JDK6. If I deploy the JEE app (compiled under JDK6) to JBOSS, when I try to look up my EJBs I get e...

Web Service Client in JBOSS 5.1 with JDK6

This is a continuation of the question here: http://stackoverflow.com/questions/2435286/jboss-does-app-have-to-be-compiled-under-same-jdk-as-jboss-is-running-under It's different enough though that it required a new question. I am trying to use jdk6 to run JBOSS 5.1, and I downloaded the JDK6 version of JBOSS 5.1. This works fine and m...

JBoss EJB Bean not bound

Hi, I have the following error Exception in thread "main" javax.naming.NameNotFoundException: CounterBean not bound trying to access an EJB JAR CounterBean.jar deployed on JBoss5 from a client application outside the Application Server. From the Jboss log, it looks like it does not have a global JNDI name? Is this ok? What have I ...

Apache/mod_rewrite > Tomcat encoding %26 and "&"...

Apache is the front-end to my web app then I use mod_rewrite to proxy the request to JBoss. So far this sounds pretty standard, but the problem I am having is: if I access the app directly through jboss @ http://localhost:8080/app/page?raw=foo%26bar&amp;page=1: request.getParameter("raw") = foo&bar If I access the app through Apache @...

Production system running JBoss clustering

Hi, What are some of the largest systems that use JBoss clustering? What are the specs/config? I want to know whether JBoss cluster is really scalable or not. Thanks ...

Trying to cause java.lang.OutOfMemoryException

Hi, I am trying to reproduce java.lang.OutOfMemoryException in Jboss4, which one of our client got, presumably by running the J2EE applications over days/weeks. I am trying to find a way for the webapp to spitout java.lang.OutOfMemoryException in a matter of minutes (instead of days/weeks). One thing come into mind is to write a selen...

JBoss Clustered Service that sends emails from txt file

I need a little push in the right direction. Here's my problem: I have to create an ultra-reliable service that sends email messages to clients whose addresses are stored in txt file on FTP server. Single txt file may contain unlimited number of entries. Most often the file contains about 300,000 entries. Service exposes interface with ...

debugging JBoss 100% CPU usage

Originally posted on Server Fault, where it was suggested this question might better asked here. We are using JBoss to run two of our WARs. One is our web app, the other is our web service. The web app accesses a database on another machine and makes requests to the web service. The web service makes JMS requests to other machines, aggr...

jboss server error problem

when i run jboss server that time show error that is "main class missing" so how do I solve this problem.and I have installed jboss 4.2.1. ...

Migration and deployement problems JBoss 4.2.2.GA to JBoss 6.0.0.M2

Hi, I'm trying to migrate an application running on JBoss 4.2.2.GA to JBoss 6.0.0.M2 I give you some log to explain my problem : boot.log : 2010-03-16 09:59:29,406 ERROR [org.jboss.system.server.profileservice.ProfileServiceBootstrap] (Thread-2) Failed to load profile: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS)...