[Installation, Configuration & DEPLOYMENT] - Re: Deploying Hudson on JBoss5 beta4
by jaikiran
I spent some time on this today with my local version of JBoss-5 Beta4. A bit of debugging and some modification to the JBoss server code (to print out some logs) pointed to a file named exposed.beans which is present in the META-INF folder of hudson.war/WEB-INF/lib/hudson-core-1.200.jar/META-INF folder. Apparently while parsing/opening this file there's some problem which leads to these exceptions. I haven't exactly been able to figure out what exactly is wrong with this file. As a workaround (just for tests) i deleted this file from the META-INF folder and deployed the application. The application deployed successfully without problems. I was even able to deploy the hudson.war file in an archive format (after deleting the exposed.beans file). I still don't exactly know what's the problem with the exposed.beans. Maybe you would want to point this to someone who's involved in developing Hudson (not sure whether they would entertain this request because you are using a Beta server and their documentation mentions using JBoss-4.2.x)?
P.S: If you are going to delete the exposed.beans for testing, you will also have to delete the HUDSON.SF from hudson.war/META-INF folder (remember this just for testing), or else the war file will fail verification (since this is a signed jar).
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4138980#4138980
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4138980
18 years, 1 month
[JBoss Cache: Core Edition] - eviction inacurracy
by mircea.markus
The modifiedTimeStamp attribute of an NodeEntry is currently being set when the eviction thread kicks in to valus Sys.CurrentTime (a). The inaccuracy is in the difference between (a) and the actual time when action took place, eviction event was created and added to the region(b).
E.g.
if we have a maxAge set to 15, wakeupInterval set to 10.
sec 0) node /a is added
sec 10) eviction thread kicks in, an NodeEntry is created with modifiedTimeStamp set to Sys.currentTime
sec 20) eviction thread kicks in again, notices that node /a is only 10 sec old and does not evict it
sec 30) eviction thread kicks in again and evicts node /a as it's timestamp is 20 sec old
In other words the node is evicted after 30secs. A better approach would be to pass the timestamp from eviction thread, which would reduce the inaccuracy and evict node in 20 secs.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4138977#4138977
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4138977
18 years, 1 month
[JCA/JBoss] - Using CLOB in Serlvet
by PrasnnaP
Hi All,
We want to use CLOB in servlet. For this we created Oracle 9i Datasouce in -ds.xml file. But we getting ClassCast Exception while we retreiving the WrappedConnection from Datasource connection.
DataSource ds = (DataSource) ctx.lookup("java:/OracleDS");
con = ds.getConnection();//DPDao.getConnection();
System.out.println("Connection class = " + con.getClass().getName());
// This returns "$Proxy55"
// This block is never executed.
if(con instanceof org.jboss.resource.adapter.jdbc.WrappedConnection){
WrappedConnection wc=(WrappedConnection)con;
//with getUnderlying connection method , cast it to Oracle Connection
Connection oracleConnection=wc.getUnderlyingConnection();
}
Basically we getting Proxy connection when we want to retriev the Oracle underlying connection in our servlet code.
Thanks in advance !
-PrasP
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4138976#4138976
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4138976
18 years, 1 month