2
голосов
2ответов
10901 просмотров

JPA+Hibernate: Change of createNativeQuery() + getResultList() behaviour?

What I am going to describe is a bit of legacy code. So there is a lot of stuff I cannot touch/change. This pseudo-code runs well the in Jboss 4.0.3, big_messy_sql = "select t1.f1 as somealias, t2.f2 as somehthingelse from obj1 t1, obj2 t2 where crazy_conditions...."; Query query = entityMan...

1
голосов
2ответов
714 просмотров

Multiple services on same JBoss server?

We're developing a few new services that will run on JBoss and will be accessible by REST API-s. These will be Java apps bundled into EAR files. Is it a good practice to deploy these services to the same JBoss server? This would simplify dev, deployment and testing. Not sure if there are ...

0
голосов
1ответов
1571 просмотров

What is the purpose of the NetBeans 6 'Server Resources' Folder?

In a new JBoss Web Application or EJB project in NetBeans, the 'Server Resources' folder contains two files: jboss-ds.xml jboss4-netbeans-destinations-service.xml However these files are not included in the generated application JAR file. What is the purpose of these files? jboss-ds.xml loo...

2
голосов
3ответов
8361 просмотров

Seam auto login using credentials

I succesfully created a project using seam credentials for authentication, but right now some requirements has change (as usual) and i need authenticate the user automatic. See example bellow: user call the page: http://server:port/project/index.jsp?parameter=xyz. This page has to call a seam co...

0
голосов
2ответов
830 просмотров

How can I install one Web Application in two context roots in JBoss 4?

My goal is to install only one WAR file but to use test or production settings (for example to point to different databases) depending on the context root. mydomain.com/MyWebApp will use production settings mydomain.com/MyWebAppTEST will use test settings Internally the application then shoul...

-1
голосов
2ответов
1269 просмотров

What's the biggest website served by JBoss?

My "normal" development is based on java (1.6), a database (db2, oracle, mysql) and an application server (JBoss). I wonder if there is a limit of concurrent users that I can handle with this configuration. I think running a site like google.com would'nt be possible this way. But where is the ...

0
голосов
2ответов
3215 просмотров

EJB Spec Violation

I created an EJB 2 named EvenementBean for test. I then deleted it. and whenever trying to deploy my .ear project now, I get these errors : WARN [verifier] EJB sepc violation: Bean: Evenement Section: 22.2 Warning: The Bean Provider must specify the fully-qualified name of the Ja...

2
голосов
2ответов
217 просмотров

message driven bean - notification when deployed?

is it possible to get notified inside the bean (mdb in this case) that its deployment procedure has just finished?

0
голосов
1ответов
1884 просмотров

Recovering HyperSQL Database

We are using JBoss 4.0.3 SP1 using Hypersonic as its internal storage engine (timers, queues, etc.) The database is no longer accessible (most likely data corruption) giving error; Caused by: org.hsqldb.HsqlException: old version database must be shutdown. Is there a way or command to shutdown ...

0
голосов
1ответов
593 просмотров

Install Jboss application server on win vista

I want to install Jboss app server 4.2.2. I've downloaded .zip installation from their website and here is what I get when I extract the zip file like in the picture below : I've used their tutorial guide to try to install it but I can't get it working .. http://www.jboss.org/file-access/defa...

0
голосов
1ответов
259 просмотров

using JUnitEE with JBoss-IDE

Can anyone provide me with a tutorial on how to use JUnitEE with JBoss-IDE ? thanks.

2
голосов
3ответов
2447 просмотров

How to direct subdomains to the correct JBoss App?

new to JBoss and am configuring some applications. I know how to do this in apache webserver, but not using Jboss. I have successfully deployed 3 applications on a redhat box, JBoss 4.2. If my server is called fruit.mycompany.com, I can access the three apps this way: http://fruit.mycompany.c...

6
голосов
2ответов
27959 просмотров

JBoss Binding IP addresses

I need some help from someone who understands JBoss Hostname Binding. I think the solution is easy, although it's complicated to explain. I am deploying an application using JBoss (v4.2) and am having troubles configuring the application. This application has two parts, a web site on port 8080...

0
голосов
1ответов
2851 просмотров

After session timeout where does JBoss redirect users to?

After this is reached in JBoss: <session-config> <session-timeout>30</session-timeout> </session-config> where does it redirect users to? Can I change the page it redirects to?

1
голосов
1ответов
1570 просмотров

JBoss Log File Maintenance/Cleanup

I am running JBoss 4.0.2 server and over the years it has created a large number of log files that I would like to clean up. I would like to keep the same logging level but also have it delete any log files older than 3 months. Is there a way to do that in the configuration or should I just w...

0
голосов
1ответов
1919 просмотров

java.lang.NoSuchMethodException: javax.ejb.EJBHome.getHomeHandle()

I'm trying to figure out why I'm getting the following exception when a client app is connecting to JBoss. I happens on startup, when the client attempts to connect to the server. java.lang.ExceptionInInitializerError at org.jboss.proxy.ejb.HomeInterceptor.<clinit>(HomeInterceptor.java:77...

2
голосов
4ответов
9917 просмотров

install war file at server deploy directory

I'm want to have the war file deployed in the server deploy directory (or any directory of my choice) along with the one deployed in the repository. Also, can I control the name of the war file deployed like, I don't want the war file to be projectname-1.0.war I just want the name of the war file...

0
голосов
2ответов
173 просмотров

Accessing JBoss conf file from Flex

I've got a Flex application running on a JBoss server, with dev/QA/production environments. The application needs to coordinate with some other services, also with QA/prod instances. Currently I'm sending the current URL in via javascript values, like this: index.template.html AC_FL_RunConte...

1
голосов
4ответов
6944 просмотров

Why may `@In(create = true)` not create the object in Seam?

I have a very simple piece of code that reads like: @In(create = true) OutletHome outletHome; It was working fine (using Seam 2.2.0.GA), and the object was being created and injected without any problems. But when I tried changing it to: @In(create = true) OutletHome deactivationOutletHome; ...

1
голосов
1ответов
175 просмотров

notification about new subscriber joining to jms topic

is it possible to get kind of notification on the message producer side, that new subscriber joined to the topic? In particular, is it possible with JBoss Messaging?

3
голосов
2ответов
1410 просмотров

Seam 2.0 to 2.1 (2.2) migration

I was curious what kinds of obstacles have you encountered when migrating my app from seam 2.0 to 2.1. Obvious ones are mentioned in: migration guide, but I encountered some problems with rule based security, that are not mentioned there. Firstly I want to post descriptions of my problems and ...

0
голосов
1ответов
359 просмотров

Persisting byte array on the JNDI tree in JBoss

As part of a Java EE application I'm developing on JBoss, I need to persist the contents of a file on the JNDI tree. I'm doing this by reading the contents of the file into a by byte array, then binding it to JNDI as follows. getInitialContext().rebind("customers_datafile", byteArray); This w...

1
голосов
1ответов
127 просмотров

Where do I look for the database script generated from JPA Entities?

I am having a few errors like the following when I deploy my JPA entities into JBoss. 18:34:53,462 ERROR [SchemaExport] You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'Group (id)' at line 1 18:34:53,684 ERRO...

2
голосов
1ответов
1024 просмотров

EJB3 Annotation

I am using JBoss 5 GA, I created a test Session bean, and local interface. I have created a servlet client. I tried to inject the interface in the servlet using @EJB.. But when I call this servlet I got the requested resource is not available!!!! When I comment the //@EJB, the page run successfu...

0
голосов
1ответов
543 просмотров

Jboss failover testing

I have a peculiar situation here. I have installed JBoss 5.1.0 as a service in Wintel box. The service will restart itself if the JBoss instance fails. However I could not find a way to test this scenario. I killed the JVM that was running the JBoss, but it did not restart the service. I need to...

0
голосов
1ответов
623 просмотров

Accessing a list of users through JBoss in a non-admin role?

We would like to make a list of users available in a portlet similar to the admin version of the UsersPortlet, but for those that aren't admins. This list would be names only. Is there a way to do this through JBoss GA 4.2.2? We are currently developing on the Hypersonic DB, but I would hope ther...

0
голосов
2ответов
4490 просмотров

JBoss EJB3 MDB config

I am trying to understand some EJB 3 code running in JBoss 4.3. We've got an ejb3-interceptors-aop.xml file configured in JBoss with some MDB configuration and then we've got the MDB Java class. What I'd like to understand is when and how does the MDB get "bound" to the MQ? That is, when/how ...

1
голосов
3ответов
4891 просмотров

Jboss - Deploy - Undeploy loop caused by HDScanner in a exploded ear

For some unknown reason HDScanner started a deploy-undeploy infinite loop for my (exploded) application deployment, removing and adding it again and again every 15 seconds or so. I already tried to remove the application by hand (I normally use seam restart or seam unexplode) and also removed th...

0
голосов
2ответов
338 просмотров

Custom configuration for JBoss applications?

I've built a simple alert monitor to display the health of various applications. This is configured by XML, as each monitor instance needs to show different metrics. An example configuration may be: <machine> <monitors> <check type="connectivity" name="Production Server">...

1
голосов
3ответов
18892 просмотров

Jurisdiction policy files are not signed by trusted signers....?

We have next exception during starting of our application under JBoss on AIX: Caused by: java.lang.SecurityException: Cannot set up certs fo 12:56:25,055 INFO [STDOUT] r trusted CAs at javax.crypto.b.<clinit>(Unknown Source) at java.lang.J9VMInternals.initializeImpl(Nat...