[JBoss-user] [Persistence,JBoss/CMP, Hibernate, Database] - hibernate jboss configuration help, production problems

2006-01-13 Thread alban_coul
Post

Install : Oracle 9i - Jboss 4.0.2 - Hibernate 3.0.5 - JDK1.5
we have got many application in production. These are packaged as wars. Here is 
our configuration.


OracleDS:


  
OracleDS
jdbc:oracle:thin:@xxx:1521:xxx

oracle.jdbc.driver.OracleDriver
xxx
xxx

  0

  30


org.jboss.resource.adapter.jdbc.vendor.OracleExceptionSorter

  
 Oracle9i
  
  



hibernate.cfg.xml:





java:/OracleDS


org.hibernate.dialect.Oracle9Dialect

false
org.hibernate.transaction.JBossTransactionManagerLookup




Fecth the session factory:

  private Session newSession() {
synchronized (configuration) {
  if (sessionFactory == null) {
if (logger.isInfoEnabled()) {
  logger.info("HiberConf - initialize sessionFactory");
}

sessionFactory = configuration.buildSessionFactory();
  }

  return sessionFactory.openSession();
}
  }

And DefaultDatasource is set to OracleDS in the standardjbosscmp.xml.

No  Hibernate Mbean added in JBoss...

Here is an example of request : 


  public List getAgentsParResponsableProjet(Integer idResponsable) {
List agents = null;
Transaction tx = null;
synchronized (this) {
  try {
session = HibernateUtil.currentSession();
tx = session.beginTransaction();
agents = session.createQuery(
"from ActiviteAffectee aa where aa.Idresponsable='" + 
idResponsable.toString() + "'")
.list();
tx.commit();
  } catch (Exception ex) {
if (tx != null) {
  tx.rollback();
}
if (log.isErrorEnabled()) {
  log.error("getAgentsParResponsableProjet", ex);
}
  } finally {
HibernateUtil.closeSession();
  }
}
return agents;
  }



 We are just wondering if we have got the right configuration  for the couple 
JBoss-Hibernate.
Because we have got stranges errors like synchronisation of TransactionManager 
the are happening sometimes.
We really need help cause these apps are in production and we couldn't make a 
test period for these apps...

Thanks in advance

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3917342#3917342

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3917342


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Tomcat, HTTPD, Servlets & JSP] - myfaces, jsf or struts?

2005-08-09 Thread alban_coul
Hello,
We are using Jboss  4.0.2 AS and Jboss Portal 2.0 RC2.

We are beginning a vaste project with multi sub-projects.

We have choosen struts first as an MVC framework (but we haven't developped 
anything yet). 

We were wondering if we should take another MVC framework, given that the next 
version of JBoss AS will feature built-in Java Server Faces support (JBossFace) 
and struts will be "migrated" into jsf (Shale). 

But which one? keep struts? Sun's jsf? or myfaces?
Thanks.

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3889039#3889039

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3889039


---
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JCA/JBoss] - Re: HAR deployement problem

2005-05-24 Thread alban_coul
Thanks!!
It works now!
Sorry for that stupid mistake.
Alban.

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3878899#3878899

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3878899


---
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JCA/JBoss] - Re: HAR deployement problem

2005-05-24 Thread alban_coul
Here is the output of JBoss.

===
  | .
  |   JBoss Bootstrap Environment
  | .
  |   JBOSS_HOME: C:\jboss-4.0.2\bin\\..
  | .
  |   JAVA: C:\j2sdk1.4.2_05\bin\java
  | .
  |   JAVA_OPTS:  -Dprogram.name=run.bat -Xms128m -Xmx512m
  | .
  |   CLASSPATH: C:\j2sdk1.4.2_05\lib\tools.jar;C:\jboss-4.0.2\bin\\run.jar
  | .
  | 
===
  | .
  | 12:04:21,906 INFO  [Server] Starting JBoss (MX MicroKernel)...
  | 12:04:21,906 INFO  [Server] Release ID: JBoss [Zion] 4.0.2 (build: 
CVSTag=JBoss_4_0_2 date=200505022023)
  | 12:04:21,906 INFO  [Server] Home Dir: C:\jboss-4.0.2
  | 12:04:21,906 INFO  [Server] Home URL: file:/C:/jboss-4.0.2/
  | 12:04:21,906 INFO  [Server] Library URL: file:/C:/jboss-4.0.2/lib/
  | 12:04:21,906 INFO  [Server] Patch URL: null
  | 12:04:21,906 INFO  [Server] Server Name: default
  | 12:04:21,906 INFO  [Server] Server Home Dir: C:\jboss-4.0.2\server\default
  | 12:04:21,906 INFO  [Server] Server Home URL: 
file:/C:/jboss-4.0.2/server/default/
  | 12:04:21,906 INFO  [Server] Server Data Dir: 
C:\jboss-4.0.2\server\default\data
  | 12:04:21,906 INFO  [Server] Server Temp Dir: 
C:\jboss-4.0.2\server\default\tmp
  | 12:04:21,921 INFO  [Server] Server Config URL: 
file:/C:/jboss-4.0.2/server/default/conf/
  | 12:04:21,921 INFO  [Server] Server Library URL: 
file:/C:/jboss-4.0.2/server/default/lib/
  | 12:04:21,921 INFO  [Server] Root Deployment Filename: jboss-service.xml
  | 12:04:21,921 INFO  [Server] Starting General Purpose Architecture (GPA)...
  | 12:04:22,250 INFO  [ServerInfo] Java version: 1.4.2_05,Sun Microsystems Inc.
  | 12:04:22,250 INFO  [ServerInfo] Java VM: Java HotSpot(TM) Client VM 
1.4.2_05-b04,Sun Microsystems Inc.
  | 12:04:22,250 INFO  [ServerInfo] OS-System: Windows XP 5.1,x86
  | 12:04:23,078 INFO  [Server] Core system initialized
  | 12:04:24,546 INFO  [Log4jService$URLWatchTimerTask] Configuring from URL: 
resource:log4j.xml
  | 12:04:24,640 INFO  [WebService] Using RMI server codebase: 
http://XP-ALTECA2:8083/
  | 12:04:24,750 INFO  [NamingService] Started jndi bootstrap jnpPort=1099, 
rmiPort=1098, backlog=50, bindAddress=/0.0.0.0, Client SocketFactory=null, 
Server S
  | [EMAIL PROTECTED]
  | 12:04:28,343 INFO  [Embedded] Catalina naming disabled
  | 12:04:28,703 INFO  [Http11Protocol] Initializing Coyote HTTP/1.1 on 
http-0.0.0.0-8080
  | 12:04:28,703 INFO  [Catalina] Initialization processed in 297 ms
  | 12:04:28,703 INFO  [StandardService] Starting service jboss.web
  | 12:04:28,703 INFO  [StandardEngine] Starting Servlet Engine: Apache 
Tomcat/5.5.9
  | 12:04:28,750 INFO  [StandardHost] XML validation disabled
  | 12:04:28,781 INFO  [Catalina] Server startup in 78 ms
  | 12:04:28,906 INFO  [TomcatDeployer] deploy, ctxPath=/invoker, 
warUrl=file:/C:/jboss-4.0.2/server/default/deploy/http-invoker.sar/invoker.war/
  | 12:04:29,171 INFO  [WebappLoader] Dual registration of jndi stream handler: 
factory already defined
  | 12:04:29,765 INFO  [TomcatDeployer] deploy, ctxPath=/ws4ee, 
warUrl=file:/C:/jboss-4.0.2/server/default/tmp/deploy/tmp15521jboss-ws4ee-exp.war/
  | 12:04:29,875 INFO  [TomcatDeployer] deploy, ctxPath=/, 
warUrl=file:/C:/jboss-4.0.2/server/default/deploy/jbossweb-tomcat55.sar/ROOT.war/
  | 12:04:30,078 INFO  [TomcatDeployer] deploy, ctxPath=/jbossmq-httpil, 
warUrl=file:/C:/jboss-4.0.2/server/default/deploy/jms/jbossmq-httpil.sar/jbossmq-httpi
  | l.war/
  | 12:04:31,656 INFO  [TomcatDeployer] deploy, ctxPath=/web-console, 
warUrl=file:/C:/jboss-4.0.2/server/default/deploy/management/console-mgr.sar/web-console.
  | war/
  | 12:04:32,578 INFO  [MailService] Mail Service bound to java:/Mail
  | 12:04:32,984 INFO  [RARDeployment] Required license terms exist view the 
META-INF/ra.xml: 
file:/C:/jboss-4.0.2/server/default/deploy/jboss-ha-local-jdbc.ra
  | r
  | 12:04:33,109 INFO  [RARDeployment] Required license terms exist view the 
META-INF/ra.xml: file:/C:/jboss-4.0.2/server/default/deploy/jboss-ha-xa-jdbc.rar
  | 12:04:33,218 INFO  [RARDeployment] Required license terms exist view the 
META-INF/ra.xml: file:/C:/jboss-4.0.2/server/default/deploy/jboss-local-jdbc.rar
  | 12:04:33,328 INFO  [RARDeployment] Required license terms exist view the 
META-INF/ra.xml: file:/C:/jboss-4.0.2/server/default/deploy/jboss-xa-jdbc.rar
  | 12:04:33,421 INFO  [RARDeployment] Required license terms exist view the 
META-INF/ra.xml: file:/C:/jboss-4.0.2/server/default/deploy/jms/jms-ra.rar
  | 12:04:33,500 INFO  [RARDeployment] Required license terms exist view the 
META-INF/ra.xml: file:/C:/jboss-4.0.2/server/default/deploy/mail-ra.rar
  | 12:04:34,468 INFO  [WrapperDataSourceService] Bound connection factory for 
resource adapter for ConnectionManager 'jboss.jca:name=DefaultDS,service=DataSou
  | rceBinding to JNDI name 'java:DefaultDS'
  | 12:04:34,796 INFO  [A] Bound to JNDI name: queue/A
  | 12:04:34,796 INFO  [B] Bound

[JBoss-user] [JCA/JBoss] - HAR deployement problem

2005-05-24 Thread alban_coul
hello!
jboss 4.0.2
hibernate 3.0
MySQL 4.0.15

I have got a strange problem:
When I deploy my ear without har inside of it : no problem
When I add the har, it deletes my table or the fields in my table without any 
actions on database via hibernate.

hibernate-service.xml


  | 
  | 
  | 
  | java:/MySqlDS
  | org.hibernate.dialect.MySQLDialect
  | java:/hibernate/CaveatEmptorSessionFactory
  | org.hibernate.cache.HashtableCacheProvider
  | create-drop
  | true
  | 
  | 

mysql-ds.xml

  |   
  | MySqlDS
  | jdbc:mysql://localhost:3306/first
  | com.mysql.jdbc.Driver
  | test
  | test
  | 
org.jboss.resource.adapter.jdbc.vendor.MySQLExceptionSorter
  | 
  | 
  | 
  | 
  | 
  |mySQL
  | 
  |   
  | 


employe.hbm.xml

  | http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd"; >
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 

jboss-app.xml
http://www.jboss.org/j2ee/dtd/jboss-app_4_0.dtd";>
  | 
  | 
  | struts.har
  | 
  | 

I am using JBossIDE with "Xdoclet Configurations" and "Packaging Configurations"

This happens at deployement time.
Before deployement : table is here with the fields.
After deployement : table not here anymore.

NO ERROR message from the output of JBoss.
Thanks.
Alban.

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3878874#3878874

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3878874


---
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [HTTPD, Servlets & JSP] - Probleme with Flash Applications.

2005-05-17 Thread alban_coul
Hello.

JBoss 3.2.3 + tomcat + linux

I have an application (war + jar = ear). In the war, I have Flash stuff (done 
with flash MX) : I have a diaporama which loads an xml file in order to display 
the different produts with the different descriptions related to them. I have a 
problem of rendering : my flash application does'nt render font properly. I 
have a second application with the same diaporama (exactly the same) which runs 
on JBoss too and this one works perfectly, and I have tried to copy and paste 
the good diapo in place of the bad one with the html file related to it. 
Nothing hapens, the first application still renders nothing good, and the 
second renders good (same web page, same flash application, same xml file).
So I was wondering if it could be a problem of cache: the first application 
still keeps the old flash stuff and don't use the new one. Or is ti another 
problem?
Well if you could answer to me, it would be great because if I come here to 
post this problem make sure that I have done EVERYTHING with flash forums (and 
it works with the other application).

Thank you in advance and sorry if this post has nothing to do here.
Alban.

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3877966#3877966

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3877966


---
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossCache] - cache specific question/problem

2005-05-17 Thread alban_coul
Hello.

JBoss 3.2.3 + tomcat on linux.

I have an application (war + jar = ear). In the war, I have Flash stuff (done 
with flash MX) : I have a diaporama which loads an xml file in order to display 
the different produts with the different descriptions related to them. I have a 
problem of rendering : my flash application does'nt render font properly. I 
have a second application with the same diaporama (exactly the same) which runs 
on JBoss too and this one works perfectly, and I have tried to copy and paste 
the good diapo in place of the bad one with the html file related to it. 
Nothing hapens, the first application still renders nothing good, and the 
second renders good (same web page, same flash application, same xml file).
So I was wondering if it could be a problem of cache: the first application 
still keeps the old flash stuff and don't use the new one.
Well if you could answer to me, it would be great because if I come here to 
post this problem make sure that I have done EVERYTHING with flash forums (and 
it works with the other application).
It there cache policy somewhere to follow?

Thank you in advance and sorry if this post has nothing to be here.
Alban.

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3877965#3877965

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3877965


---
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Installation & Configuration] - Re: loader repository : silly but quick question...

2005-03-07 Thread alban_coul
Sorry, 
what does "Valid JMX ObjectNames" mean?

 
www.A.com:loader=A.ear 
 
and the 2nd 
 
www.B.fr:loader=A.ear 
 
this worked!! I don't understand why cause I declared the same ears.


View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3869105#3869105

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3869105


---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Installation & Configuration] - loader repository : silly but quick question...

2005-03-03 Thread alban_coul
Hello,
I have got two ear a.ear and b.ear
thus two jboss-app : 
1. 

 www.A.com:loader=A.ear

and the 2nd

 www.B.fr:loader=B.ear

This works fine.
Before this was (I haven't made this on purpose, this is the problem of copy 
and paste...)
1. 

 www.A.com:loader=A.ear

and the 2nd

 www.B.fr:loader=A.ear


And this worked too...
My silly question is this normal?
Sorry for your time...
Alban.

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3868685#3868685

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3868685


---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Persistence & CMP/JBoss] - Delete Files in tmp directory

2004-06-23 Thread alban_coul
Hello!
Maybe it is a silly question...
I would like to know why it is not possible for me to delete files in the tmp 
directory of JBoss. I have got a J2EE application that through an online 
administration add or delete photos, these photos are uploaded in the tmp directory 
(server/default/tmp/deploy/tmp***), these photos are then backed up in another 
directory. But if the user is not sure of its choices about the photos to upload 
(imagine he uploads 100 photos but keep 10 of them: the 10 are backed up but the 100 
remain in the tmp directory) it can overload the directory.
I use java.io.File.delete() to delete them. The application is in a JBoss secure 
domain . Do I have to go out of this domain to be allowed to delete these file, or do 
I have to fill Permission's stuff somewhere?
The only solution I have for now is to undeployed and re-deployed the application 
after the directory gets too big.
Thank for your help!

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3839660#3839660

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3839660


---
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user