[Beginners Corner] - Loading resources
by danielgalan
Hi,
I want to load resources (xml-files), usually I would do this with a FilenameFilter and the file method listFiles(filter) .. this would return an array of files. When deploying in JBoss EJB-Modules, these are packed as jar file, and these jar files are copied into some kind of temporary directory and opend. Because they are in a jar file, I can't use any longer the listFiles method, because this will return always null. Taking instead the jar, and open a ZipFile or ZipStream isn't possible, because they are, as mentioned, opend by the system exclusivly.
I can't even use getClass().getClassLoader().getResources(...) .. because I don't know the name (only the file extension xml, and the package path).
I don't see any possiblity to load these xml files from one package (or recursivley) .. what can I do?
Thanks in advance
Daniel
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3959064#3959064
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3959064
19 years, 9 months
[EJB 3.0] - Problem with auto-generating table;
by benders
Hi!
I am writing my first EJB3 Entity.
I am using jboss 4.0.4GA1 und Mysql 5.
When I deploy the jar-file, there is no error in the log.
But the table was not created.
I can connect to MySQL-Server with the given user/password and can create tables;
Please, can someone give me an advice?
Thank You.
Bernd Enders
Here are my files.
<persitence.xml>
<?xml version="1.0" encoding="UTF-8"?>
<persistence-unit name="gbi">
<jta-data-source>java:/MySqlDS</jta-data-source>
</persistence-unit>
I have tried update and create-drop .
<mysql-ds-xml>
<?xml version="1.0" encoding="UTF-8"?>
<!-- $Id: mysql-ds.xml,v 1.3.2.3 2006/02/07 14:23:00 acoliver Exp $ -->
<!-- Datasource config for MySQL using 3.0.9 available from:
http://www.mysql.com/downloads/api-jdbc-stable.html
-->
<local-tx-datasource>
<jndi-name>MySqlDS</jndi-name>
<connection-url>jdbc:mysql://localhost:3306/jbossdb</connection-url>
<driver-class>org.gjt.mm.mysql.Driver</driver-class>
<user-name>Jboss_Admin</user-name>
???????
<exception-sorter-class-name>org.jboss.resource.adapter.jdbc.vendor.MySQLExceptionSorter</exception-sorter-class-name>
<!-- should only be used on drivers after 3.22.1 with "ping" support
<valid-connection-checker-class-name>org.jboss.resource.adapter.jdbc.vendor.MySQLValidConnectionChecker</valid-connection-checker-class-name>
-->
<!-- sql to call when connection is created
<new-connection-sql>some arbitrary sql</new-connection-sql>
-->
<!-- sql to call on an existing pooled connection when it is obtained from pool - MySQLValidConnectionChecker is preferred for newer drivers
<check-valid-connection-sql>some arbitrary sql</check-valid-connection-sql>
-->
<!-- corresponding type-mapping in the standardjbosscmp-jdbc.xml (optional) -->
<type-mapping>mySQL</type-mapping>
</local-tx-datasource>
<my Enity-class>
package de.bremen.gbi.enders.adressen;
import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
@Entity
@Table(name="Ort")
public class Ort implements Serializable {
private static final long serialVersionUID = -6885450258617826478L;
private long id;
private String land;
private String plz;
private String ort;
@Id
@GeneratedValue(strategy=GenerationType.AUTO)
@Column(name="id",nullable=false)
public long getId() {
return id;
}
public void setId(long id) {
this.id = id;
}
@Column(name="land",nullable=false, length=10)
public String getLand() {
return land;
}
public void setLand(String land) {
this.land = land;
}
@Column(name="ort",nullable=false,length=128)
public String getOrt() {
return ort;
}
public void setOrt(String ort) {
this.ort = ort;
}
@Column(name="plz",nullable=false,length=12)
public String getPlz() {
return plz;
}
public void setPlz(String plz) {
this.plz = plz;
}
}
<my Session class>
package de.bremen.gbi.enders.adressen;
import javax.ejb.Stateless;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
import de.bremen.gbi.enders.adressen.OrteRemote;
@Stateless
public class OrteBean implements OrteRemote, OrteLocal {
@PersistenceContext(unitName="gbi") private EntityManager enityManager;
public void insert(String land,String ort,String plz) {
if (ort.equals("")) ort="DE";
ort=ort.toUpperCase();
Ort o = new Ort();
o.setLand(land);
o.setOrt(ort);
o.setPlz(plz);
enityManager.persist(o);
}
public String getOrtByPlz(String plz) {
return "Nicht vorhanden!";
}
}
<server.log>
2006-07-19 11:21:59,073 DEBUG [org.jboss.deployment.MainDeployer] Starting deployment of package: file:/home/bernd/Z_GBI/Z_Server/jboss4.0.4/server/default/deploy/adressen.jar
2006-07-19 11:21:59,083 DEBUG [org.jboss.deployment.MainDeployer] Starting deployment (init step) of package at: file:/home/bernd/Z_GBI/Z_Server/jboss4.0.4/server/default/deploy/adressen.jar
2006-07-19 11:21:59,083 DEBUG [org.jboss.deployment.MainDeployer] Copying file:/home/bernd/Z_GBI/Z_Server/jboss4.0.4/server/default/deploy/adressen.jar -> /home/bernd/Z_GBI/Z_Server/jboss4.0.4/server/default/tmp/deploy/tmp28813adressen.jar
2006-07-19 11:21:59,096 DEBUG [org.jboss.deployment.MainDeployer] using deployer MBeanProxyExt[jboss.ejb3:service=EJB3Deployer]
2006-07-19 11:21:59,097 DEBUG [org.jboss.ejb3.EJB3Deployer] looking for nested deployments in : file:/home/bernd/Z_GBI/Z_Server/jboss4.0.4/server/default/deploy/adressen.jar
2006-07-19 11:21:59,099 DEBUG [org.jboss.deployment.DeploymentInfo] createLoaderRepository from config: LoaderRepositoryConfig(repositoryName: JMImplementation:service=LoaderRepository,name=Default, repositoryClassName: null, configParserClassName: null, repositoryConfig: null)
2006-07-19 11:21:59,100 DEBUG [org.jboss.mx.loading.RepositoryClassLoader] setRepository, repository=org.jboss.mx.loading.UnifiedLoaderRepository3@1f78ef1, cl=org.jboss.mx.loading.UnifiedClassLoader3@8bf3ec{ url=file:/home/bernd/Z_GBI/Z_Server/jboss4.0.4/server/default/tmp/deploy/tmp28813adressen.jar ,addedOrder=0}
2006-07-19 11:21:59,100 DEBUG [org.jboss.mx.loading.RepositoryClassLoader] setRepository, repository=org.jboss.mx.loading.UnifiedLoaderRepository3@1f78ef1, cl=org.jboss.mx.loading.UnifiedClassLoader3@8bf3ec{ url=file:/home/bernd/Z_GBI/Z_Server/jboss4.0.4/server/default/tmp/deploy/tmp28813adressen.jar ,addedOrder=0}
2006-07-19 11:21:59,100 DEBUG [org.jboss.mx.loading.UnifiedLoaderRepository3] Adding org.jboss.mx.loading.UnifiedClassLoader3@8bf3ec{ url=file:/home/bernd/Z_GBI/Z_Server/jboss4.0.4/server/default/tmp/deploy/tmp28813adressen.jar ,addedOrder=0}
2006-07-19 11:21:59,101 DEBUG [org.jboss.mx.loading.ClassLoaderUtils] Multiple class loaders found for pkg:
2006-07-19 11:21:59,102 DEBUG [org.jboss.deployment.MainDeployer] found 0 subpackages of file:/home/bernd/Z_GBI/Z_Server/jboss4.0.4/server/default/deploy/adressen.jar
2006-07-19 11:21:59,103 DEBUG [org.jboss.deployment.MainDeployer] Watching new file: file:/home/bernd/Z_GBI/Z_Server/jboss4.0.4/server/default/deploy/adressen.jar
2006-07-19 11:21:59,103 DEBUG [org.jboss.deployment.MainDeployer] create step for deployment file:/home/bernd/Z_GBI/Z_Server/jboss4.0.4/server/default/deploy/adressen.jar
2006-07-19 11:21:59,103 DEBUG [org.jboss.ws.server.WebServiceDeployerEJB3] create: file:/home/bernd/Z_GBI/Z_Server/jboss4.0.4/server/default/deploy/adressen.jar
2006-07-19 11:21:59,103 DEBUG [org.jboss.ejb3.EJB3Deployer] create, adressen.jar
2006-07-19 11:21:59,193 DEBUG [org.jboss.ejb3.EJB3Deployer] Deploying: file:/home/bernd/Z_GBI/Z_Server/jboss4.0.4/server/default/deploy/adressen.jar
2006-07-19 11:21:59,194 DEBUG [org.jboss.system.ServiceController] Creating service jboss.j2ee:service=EJB3,module=adressen.jar
2006-07-19 11:21:59,194 DEBUG [org.jboss.ejb3.Ejb3Module] Creating jboss.j2ee:service=EJB3,module=adressen.jar
2006-07-19 11:21:59,201 DEBUG [org.jboss.ejb3.security.JaccHelper] Initialising JACC Context for deployment: adressen.jar
2006-07-19 11:21:59,437 DEBUG [org.jboss.ejb3.Ejb3AnnotationHandler] found EJB3: ejbName=OrteBean, class=de.bremen.gbi.enders.adressen.OrteBean, type=STATELESS
2006-07-19 11:21:59,467 DEBUG [org.jboss.ejb3.ProxyDeployer] no declared remote bindings for : OrteBean
2006-07-19 11:21:59,490 DEBUG [org.jboss.ejb3.ProxyDeployer] there is remote interfaces for OrteBean
2006-07-19 11:21:59,490 DEBUG [org.jboss.ejb3.ProxyDeployer] default remote binding has jndiName of OrteBean/remote
2006-07-19 11:21:59,713 INFO [org.jboss.ejb3.Ejb3Deployment] EJB3 deployment time took: 519
2006-07-19 11:21:59,713 DEBUG [org.jboss.ejb3.Ejb3Module] Created jboss.j2ee:service=EJB3,module=adressen.jar
2006-07-19 11:21:59,713 DEBUG [org.jboss.system.ServiceController] Creating dependent components for: jboss.j2ee:service=EJB3,module=adressen.jar dependents are: []
2006-07-19 11:21:59,772 DEBUG [org.jboss.deployment.MainDeployer] Done with create step of deploying adressen.jar
2006-07-19 11:21:59,772 DEBUG [org.jboss.deployment.MainDeployer] Begin deployment start file:/home/bernd/Z_GBI/Z_Server/jboss4.0.4/server/default/deploy/adressen.jar
2006-07-19 11:21:59,772 DEBUG [org.jboss.ws.server.WebServiceDeployerEJB3] start: file:/home/bernd/Z_GBI/Z_Server/jboss4.0.4/server/default/deploy/adressen.jar
2006-07-19 11:21:59,773 DEBUG [org.jboss.ejb3.EJB3Deployer] start application, deploymentInfo: org.jboss.deployment.DeploymentInfo@2b14e6c9 { url=file:/home/bernd/Z_GBI/Z_Server/jboss4.0.4/server/default/deploy/adressen.jar }
deployer: MBeanProxyExt[jboss.ejb3:service=EJB3Deployer]
status: Starting
state: START_DEPLOYER
watch: file:/home/bernd/Z_GBI/Z_Server/jboss4.0.4/server/default/deploy/adressen.jar
altDD: null
lastDeployed: 1153300919102
lastModified: 1153300919000
mbeans:
, short name: adressen.jar, parent short name: null
2006-07-19 11:21:59,773 DEBUG [org.jboss.system.ServiceController] starting service jboss.j2ee:service=EJB3,module=adressen.jar
2006-07-19 11:21:59,773 DEBUG [org.jboss.ejb3.Ejb3Module] Starting jboss.j2ee:service=EJB3,module=adressen.jar
2006-07-19 11:21:59,776 DEBUG [org.jboss.ejb3.JmxKernelAbstraction] creating wrapper delegate for: org.jboss.ejb3.entity.PersistenceUnitDeployment
2006-07-19 11:21:59,785 INFO [org.jboss.ejb3.JmxKernelAbstraction] installing MBean: persistence.units:jar=adressen.jar,unitName=gbi with dependencies:
2006-07-19 11:21:59,786 INFO [org.jboss.ejb3.JmxKernelAbstraction] jboss.jca:name=MySqlDS,service=ManagedConnectionFactory
2006-07-19 11:21:59,792 DEBUG [org.jboss.system.ServiceController] Creating service persistence.units:jar=adressen.jar,unitName=gbi
2006-07-19 11:21:59,793 DEBUG [org.jboss.system.ServiceController] adding depends in ServiceController.register: [jboss.jca:name=MySqlDS,service=ManagedConnectionFactory]
2006-07-19 11:21:59,793 DEBUG [org.jboss.system.ServiceController] recording that persistence.units:jar=adressen.jar,unitName=gbi depends on jboss.jca:name=MySqlDS,service=ManagedConnectionFactory
2006-07-19 11:21:59,793 DEBUG [org.jboss.ejb3.ServiceDelegateWrapper] Creating persistence.units:jar=adressen.jar,unitName=gbi
2006-07-19 11:21:59,793 DEBUG [org.jboss.ejb3.ServiceDelegateWrapper] Created persistence.units:jar=adressen.jar,unitName=gbi
2006-07-19 11:21:59,793 DEBUG [org.jboss.system.ServiceController] Creating dependent components for: persistence.units:jar=adressen.jar,unitName=gbi dependents are: []
2006-07-19 11:21:59,793 DEBUG [org.jboss.system.ServiceController] starting service persistence.units:jar=adressen.jar,unitName=gbi
2006-07-19 11:21:59,794 DEBUG [org.jboss.ejb3.ServiceDelegateWrapper] Starting persistence.units:jar=adressen.jar,unitName=gbi
2006-07-19 11:21:59,809 DEBUG [org.jboss.ejb3.entity.PersistenceUnitDeployment] Found persistence.xml file in EJB3 jar
2006-07-19 11:21:59,854 INFO [org.hibernate.ejb.Version] Hibernate EntityManager 3.2.0.CR1
2006-07-19 11:21:59,897 INFO [org.hibernate.cfg.annotations.Version] Hibernate Annotations 3.2.0.CR1
2006-07-19 11:21:59,918 INFO [org.hibernate.cfg.Environment] Hibernate 3.2 cr2
2006-07-19 11:21:59,934 INFO [org.hibernate.cfg.Environment] hibernate.properties not found
2006-07-19 11:21:59,941 INFO [org.hibernate.cfg.Environment] Bytecode provider name : javassist
2006-07-19 11:21:59,960 INFO [org.hibernate.cfg.Environment] using JDK 1.4 java.sql.Timestamp handling
2006-07-19 11:22:00,273 DEBUG [org.hibernate.ejb.Ejb3Configuration] Processing PersistenceUnitInfo [
name: gbi
persistence provider classname: org.hibernate.ejb.HibernatePersistence
classloader: org.jboss.mx.loading.UnifiedClassLoader3@8bf3ec{ url=file:/home/bernd/Z_GBI/Z_Server/jboss4.0.4/server/default/tmp/deploy/tmp28813adressen.jar ,addedOrder=39}
Temporary classloader: null
excludeUnlistedClasses: false
JTA datasource: org.jboss.resource.adapter.jdbc.WrapperDataSource@1bedb0
Non JTA datasource: null
Transaction type: JTA
PU root URL: file:/home/bernd/Z_GBI/Z_Server/jboss4.0.4/server/default/deploy/adressen.jar
Jar files URLs []
Managed classes names []
Mapping files names []
Properties [
hibernate.hbm2dll.auto: update
hibernate.jndi.java.naming.factory.url.pkgs: org.jboss.naming:org.jnp.interfaces
hibernate.cache.provider_class: org.hibernate.cache.HashtableCacheProvider
hibernate.jndi.java.naming.factory.initial: org.jnp.interfaces.NamingContextFactory
hibernate.transaction.manager_lookup_class: org.hibernate.transaction.JBossTransactionManagerLookup
hibernate.dialect: org.hibernate.dialect.MySQLDialect
hibernate.jacc.ctx.id: adressen.jar
hibernate.bytecode.use_reflection_optimizer: false
hibernate.bytecode.provider: javassist]
2006-07-19 11:22:00,276 DEBUG [org.hibernate.ejb.Ejb3Configuration] Detect class: true; detect hbm: true
2006-07-19 11:22:00,288 INFO [org.hibernate.ejb.Ejb3Configuration] found EJB3 Entity bean: de.bremen.gbi.enders.adressen.Ort
2006-07-19 11:22:00,295 WARN [org.hibernate.ejb.Ejb3Configuration] Persistence provider caller does not implements the EJB3 spec correctly. PersistenceUnitInfo.getNewTempClassLoader() is null.
2006-07-19 11:22:00,458 INFO [org.hibernate.cfg.Configuration] Reading mappings from resource: META-INF/orm.xml
2006-07-19 11:22:00,465 INFO [org.hibernate.ejb.Ejb3Configuration] [PersistenceUnit: gbi] no META-INF/orm.xml found
2006-07-19 11:22:00,472 DEBUG [org.hibernate.cfg.AnnotationConfiguration] Execute first pass mapping processing
2006-07-19 11:22:00,595 DEBUG [org.hibernate.cfg.AnnotationConfiguration] Process hbm files
2006-07-19 11:22:00,595 DEBUG [org.hibernate.cfg.AnnotationConfiguration] Process annotated classes
2006-07-19 11:22:00,609 INFO [org.hibernate.cfg.AnnotationBinder] Binding entity from annotated class: de.bremen.gbi.enders.adressen.Ort
2006-07-19 11:22:00,664 DEBUG [org.hibernate.cfg.Ejb3Column] Binding column DTYPE unique false
2006-07-19 11:22:00,705 DEBUG [org.hibernate.cfg.annotations.EntityBinder] Import with entity name=Ort
2006-07-19 11:22:00,725 INFO [org.hibernate.cfg.annotations.EntityBinder] Bind entity de.bremen.gbi.enders.adressen.Ort on table Ort
2006-07-19 11:22:00,745 DEBUG [org.hibernate.cfg.AnnotationBinder] Processing de.bremen.gbi.enders.adressen.Ort property annotation
2006-07-19 11:22:00,812 DEBUG [org.hibernate.cfg.AnnotationBinder] Processing annotations of de.bremen.gbi.enders.adressen.Ort.id
2006-07-19 11:22:00,822 DEBUG [org.hibernate.cfg.Ejb3Column] Binding column id unique false
2006-07-19 11:22:00,824 DEBUG [org.hibernate.cfg.AnnotationBinder] id is an id
2006-07-19 11:22:00,838 DEBUG [org.hibernate.cfg.annotations.SimpleValueBinder] building SimpleValue for id
2006-07-19 11:22:00,848 DEBUG [org.hibernate.cfg.annotations.PropertyBinder] Building property id
2006-07-19 11:22:00,859 DEBUG [org.hibernate.cfg.annotations.PropertyBinder] Cascading id with null
2006-07-19 11:22:00,859 DEBUG [org.hibernate.cfg.AnnotationBinder] Bind @Id on id
2006-07-19 11:22:00,859 DEBUG [org.hibernate.cfg.AnnotationBinder] Processing annotations of de.bremen.gbi.enders.adressen.Ort.land
2006-07-19 11:22:00,860 DEBUG [org.hibernate.cfg.Ejb3Column] Binding column land unique false
2006-07-19 11:22:00,861 DEBUG [org.hibernate.cfg.annotations.PropertyBinder] binding property land with lazy=false
2006-07-19 11:22:00,861 DEBUG [org.hibernate.cfg.annotations.SimpleValueBinder] building SimpleValue for land
2006-07-19 11:22:00,861 DEBUG [org.hibernate.cfg.annotations.PropertyBinder] Building property land
2006-07-19 11:22:00,861 DEBUG [org.hibernate.cfg.annotations.PropertyBinder] Cascading land with null
2006-07-19 11:22:00,861 DEBUG [org.hibernate.cfg.AnnotationBinder] Processing annotations of de.bremen.gbi.enders.adressen.Ort.ort
2006-07-19 11:22:00,862 DEBUG [org.hibernate.cfg.Ejb3Column] Binding column ort unique false
2006-07-19 11:22:00,862 DEBUG [org.hibernate.cfg.annotations.PropertyBinder] binding property ort with lazy=false
2006-07-19 11:22:00,862 DEBUG [org.hibernate.cfg.annotations.SimpleValueBinder] building SimpleValue for ort
2006-07-19 11:22:00,862 DEBUG [org.hibernate.cfg.annotations.PropertyBinder] Building property ort
2006-07-19 11:22:00,862 DEBUG [org.hibernate.cfg.annotations.PropertyBinder] Cascading ort with null
2006-07-19 11:22:00,862 DEBUG [org.hibernate.cfg.AnnotationBinder] Processing annotations of de.bremen.gbi.enders.adressen.Ort.plz
2006-07-19 11:22:00,862 DEBUG [org.hibernate.cfg.Ejb3Column] Binding column plz unique false
2006-07-19 11:22:00,862 DEBUG [org.hibernate.cfg.annotations.PropertyBinder] binding property plz with lazy=false
2006-07-19 11:22:00,863 DEBUG [org.hibernate.cfg.annotations.SimpleValueBinder] building SimpleValue for plz
2006-07-19 11:22:00,863 DEBUG [org.hibernate.cfg.annotations.PropertyBinder] Building property plz
2006-07-19 11:22:00,863 DEBUG [org.hibernate.cfg.annotations.PropertyBinder] Cascading plz with null
2006-07-19 11:22:00,871 DEBUG [org.hibernate.cfg.AnnotationConfiguration] processing manytoone fk mappings
2006-07-19 11:22:00,884 DEBUG [org.hibernate.cfg.Configuration] processing extends queue
2006-07-19 11:22:00,885 DEBUG [org.hibernate.cfg.Configuration] processing collection mappings
2006-07-19 11:22:00,885 DEBUG [org.hibernate.cfg.Configuration] processing native query and ResultSetMapping mappings
2006-07-19 11:22:00,885 DEBUG [org.hibernate.cfg.Configuration] processing association property references
2006-07-19 11:22:00,885 DEBUG [org.hibernate.cfg.Configuration] processing foreign key constraints
2006-07-19 11:22:00,951 DEBUG [org.hibernate.validator.ClassValidator] ResourceBundle ValidatorMessages not found in Validator classloader. Delegate to org.hibernate.validator.resources.DefaultValidatorMessages
2006-07-19 11:22:01,008 DEBUG [org.hibernate.cfg.Configuration] Preparing to build session factory with filters : {}
2006-07-19 11:22:01,008 DEBUG [org.hibernate.cfg.AnnotationConfiguration] Execute first pass mapping processing
2006-07-19 11:22:01,008 DEBUG [org.hibernate.cfg.AnnotationConfiguration] Process hbm files
2006-07-19 11:22:01,008 DEBUG [org.hibernate.cfg.AnnotationConfiguration] Process annotated classes
2006-07-19 11:22:01,008 DEBUG [org.hibernate.cfg.AnnotationConfiguration] processing manytoone fk mappings
2006-07-19 11:22:01,008 DEBUG [org.hibernate.cfg.Configuration] processing extends queue
2006-07-19 11:22:01,008 DEBUG [org.hibernate.cfg.Configuration] processing collection mappings
2006-07-19 11:22:01,008 DEBUG [org.hibernate.cfg.Configuration] processing native query and ResultSetMapping mappings
2006-07-19 11:22:01,008 DEBUG [org.hibernate.cfg.Configuration] processing association property references
2006-07-19 11:22:01,009 DEBUG [org.hibernate.cfg.Configuration] processing foreign key constraints
2006-07-19 11:22:01,009 DEBUG [org.hibernate.validator.ClassValidator] ResourceBundle ValidatorMessages not found in Validator classloader. Delegate to org.hibernate.validator.resources.DefaultValidatorMessages
2006-07-19 11:22:01,228 INFO [org.hibernate.connection.ConnectionProviderFactory] Initializing connection provider: org.hibernate.ejb.connection.InjectedDataSourceConnectionProvider
2006-07-19 11:22:01,239 INFO [org.hibernate.ejb.connection.InjectedDataSourceConnectionProvider] Using provided datasource
2006-07-19 11:22:01,253 DEBUG [org.jboss.resource.connectionmanager.IdleRemover] internalRegisterPool: registering pool with interval 900000 old interval: 9223372036854775807
2006-07-19 11:22:01,253 DEBUG [org.jboss.resource.connectionmanager.IdleRemover] internalRegisterPool: about to notify thread: old next: 1153301371253, new next: 1153301371253
2006-07-19 11:22:02,260 INFO [org.hibernate.cfg.SettingsFactory] RDBMS: MySQL, version: 5.0.18-Debian_3.dotdeb.1-log
2006-07-19 11:22:02,261 INFO [org.hibernate.cfg.SettingsFactory] JDBC driver: MySQL-AB JDBC Driver, version: mysql-connector-java-3.1.13 ( $Date: 2005-11-17 15:53:48 +0100 (Thu, 17 Nov 2005) $, $Revision$ )
2006-07-19 11:22:02,379 INFO [org.hibernate.dialect.Dialect] Using dialect: org.hibernate.dialect.MySQLDialect
2006-07-19 11:22:02,451 INFO [org.hibernate.transaction.TransactionFactoryFactory] Transaction strategy: org.hibernate.ejb.transaction.JoinableCMTTransactionFactory
2006-07-19 11:22:02,519 INFO [org.hibernate.transaction.TransactionManagerLookupFactory] instantiating TransactionManagerLookup: org.hibernate.transaction.JBossTransactionManagerLookup
2006-07-19 11:22:02,586 INFO [org.hibernate.transaction.TransactionManagerLookupFactory] instantiated TransactionManagerLookup
2006-07-19 11:22:02,586 INFO [org.hibernate.cfg.SettingsFactory] Automatic flush during beforeCompletion(): disabled
2006-07-19 11:22:02,586 INFO [org.hibernate.cfg.SettingsFactory] Automatic session close at end of transaction: disabled
2006-07-19 11:22:02,587 INFO [org.hibernate.cfg.SettingsFactory] JDBC batch size: 15
2006-07-19 11:22:02,587 INFO [org.hibernate.cfg.SettingsFactory] JDBC batch updates for versioned data: disabled
2006-07-19 11:22:02,651 INFO [org.hibernate.cfg.SettingsFactory] Scrollable result sets: enabled
2006-07-19 11:22:02,651 DEBUG [org.hibernate.cfg.SettingsFactory] Wrap result sets: disabled
2006-07-19 11:22:02,651 INFO [org.hibernate.cfg.SettingsFactory] JDBC3 getGeneratedKeys(): enabled
2006-07-19 11:22:02,651 INFO [org.hibernate.cfg.SettingsFactory] Connection release mode: auto
2006-07-19 11:22:02,715 INFO [org.hibernate.cfg.SettingsFactory] Maximum outer join fetch depth: 2
2006-07-19 11:22:02,716 INFO [org.hibernate.cfg.SettingsFactory] Default batch fetch size: 1
2006-07-19 11:22:02,716 INFO [org.hibernate.cfg.SettingsFactory] Generate SQL with comments: disabled
2006-07-19 11:22:02,716 INFO [org.hibernate.cfg.SettingsFactory] Order SQL updates by primary key: disabled
2006-07-19 11:22:02,716 INFO [org.hibernate.cfg.SettingsFactory] Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
2006-07-19 11:22:02,785 INFO [org.hibernate.hql.ast.ASTQueryTranslatorFactory] Using ASTQueryTranslatorFactory
2006-07-19 11:22:02,786 INFO [org.hibernate.cfg.SettingsFactory] Query language substitutions: {}
2006-07-19 11:22:02,786 INFO [org.hibernate.cfg.SettingsFactory] Second-level cache: enabled
2006-07-19 11:22:02,786 INFO [org.hibernate.cfg.SettingsFactory] Query cache: disabled
2006-07-19 11:22:02,786 INFO [org.hibernate.cfg.SettingsFactory] Cache provider: org.hibernate.cache.HashtableCacheProvider
2006-07-19 11:22:02,852 INFO [org.hibernate.cfg.SettingsFactory] Optimize cache for minimal puts: disabled
2006-07-19 11:22:02,852 INFO [org.hibernate.cfg.SettingsFactory] Structured second-level cache entries: disabled
2006-07-19 11:22:02,932 INFO [org.hibernate.cfg.SettingsFactory] Statistics: disabled
2006-07-19 11:22:02,932 INFO [org.hibernate.cfg.SettingsFactory] Deleted entity synthetic identifier rollback: disabled
2006-07-19 11:22:02,996 INFO [org.hibernate.cfg.SettingsFactory] Default entity-mode: pojo
2006-07-19 11:22:03,131 DEBUG [org.hibernate.validator.ClassValidator] ResourceBundle ValidatorMessages not found in Validator classloader. Delegate to org.hibernate.validator.resources.DefaultValidatorMessages
2006-07-19 11:22:03,163 INFO [org.hibernate.impl.SessionFactoryImpl] building session factory
2006-07-19 11:22:03,164 DEBUG [org.hibernate.impl.SessionFactoryImpl] Session factory constructed with filter configurations : {}
2006-07-19 11:22:03,226 DEBUG [org.hibernate.impl.SessionFactoryImpl] instantiating session factory with properties: {java.vendor=Sun Microsystems Inc., catalina.base=/home/bernd/Z_GBI/Z_Server/jboss4.0.4/server/default, sun.management.compiler=HotSpot Server Compiler, hibernate.ejb.discard_pc_on_close=false, catalina.useNaming=false, hibernate.transaction.flush_before_completion=false, os.name=Linux, sun.boot.class.path=/home/bernd/Z_GBI/Z_Server/jboss4.0.4/lib/endorsed/serializer.jar:/home/bernd/Z_GBI/Z_Server/jboss4.0.4/lib/endorsed/resolver.jar:/home/bernd/Z_GBI/Z_Server/jboss4.0.4/lib/endorsed/xercesImpl.jar:/home/bernd/Z_GBI/Z_Server/jboss4.0.4/lib/endorsed/xalan.jar:/home/bernd/Z_GBI/Z_Server/jboss4.0.4/lib/endorsed/xml-apis.jar:/home/bernd/Z_GBI/Z_JDK/jdk1.5.0_06/jre/lib/rt.jar:/home/bernd/Z_GBI/Z_JDK/jdk1.5.0_06/jre/lib/i18n.jar:/home/bernd/Z_GBI/Z_JDK/jdk1.5.0_06/jre/lib/sunrsasign.jar:/home/bernd/Z_GBI/Z_JDK/jdk1.5.0_06/jre/lib/jsse.jar:/home/bernd/Z_GBI/Z_JDK/jdk1.5.0_06/jre/lib/jce.jar:/home/bernd/Z_GBI/Z_JDK/jdk1.5.0_06/jre/lib/charsets.jar:/home/bernd/Z_GBI/Z_JDK/jdk1.5.0_06/jre/classes, sun.desktop=gnome, java.vm.specification.vendor=Sun Microsystems Inc., java.runtime.version=1.5.0_06-b05, hibernate.connection.autocommit=true, hibernate.cache.provider_class=org.hibernate.cache.HashtableCacheProvider, user.name=bernd, shared.loader=${catalina.base}/shared/classes,${catalina.base}/shared/lib/*.jar, jboss.bind.address=0.0.0.0, tomcat.util.buf.StringCache.byte.enabled=true, hibernate.connection.release_mode=auto, hibernate.hbm2dll.auto=update, jboss.home.dir=/home/bernd/Z_GBI/Z_Server/jboss4.0.4, user.language=de, java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, sun.boot.library.path=/home/bernd/Z_GBI/Z_JDK/jdk1.5.0_06/jre/lib/i386, hibernate.jndi.java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, jboss.home.url=file:/home/bernd/Z_GBI/Z_Server/jboss4.0.4/, java.version=1.5.0_06, user.timezone=Europe/Berlin, jboss.server.home.dir=/home/bernd/Z_GBI/Z_Server/jboss4.0.4/server/default, hibernate.bytecode.provider=javassist, sun.arch.data.model=32, java.endorsed.dirs=/home/bernd/Z_GBI/Z_Server/jboss4.0.4/lib/endorsed, jboss.server.home.url=file:/home/bernd/Z_GBI/Z_Server/jboss4.0.4/server/default/, sun.cpu.isalist=, sun.jnu.encoding=ISO-8859-15, file.encoding.pkg=sun.io, package.access=sun.,org.apache.catalina.,org.apache.coyote.,org.apache.tomcat.,org.apache.jasper.,sun.beans., file.separator=/, java.specification.name=Java Platform API Specification, java.class.version=49.0, jboss.server.config.url=file:/home/bernd/Z_GBI/Z_Server/jboss4.0.4/server/default/conf/, user.country=DE, java.home=/home/bernd/Z_GBI/Z_JDK/jdk1.5.0_06/jre, java.vm.info=mixed mode, jboss.lib.url=file:/home/bernd/Z_GBI/Z_Server/jboss4.0.4/lib/, os.version=2.6.8-2-686, hibernate.jndi.java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces, hibernate.jacc.ctx.id=adressen.jar, hibernate.transaction.factory_class=org.hibernate.ejb.transaction.JoinableCMTTransactionFactory, path.separator=:, java.vm.version=1.5.0_06-b05, java.protocol.handler.pkgs=org.jboss.net.protocol, java.awt.printerjob=sun.print.PSPrinterJob, sun.io.unicode.encoding=UnicodeLittle, package.definition=sun.,java.,org.apache.catalina.,org.apache.coyote.,org.apache.tomcat.,org.apache.jasper., jboss.server.temp.dir=/home/bernd/Z_GBI/Z_Server/jboss4.0.4/server/default/tmp, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces, sun.rmi.dgc.client.gcInterval=3600000, user.home=/home/bernd, java.rmi.server.RMIClassLoaderSpi=org.jboss.system.JBossRMIClassLoader, java.specification.vendor=Sun Microsystems Inc., java.library.path=/home/bernd/Z_GBI/Z_JDK/jdk1.5.0_06/jre/lib/i386/server:/home/bernd/Z_GBI/Z_JDK/jdk1.5.0_06/jre/lib/i386:/home/bernd/Z_GBI/Z_JDK/jdk1.5.0_06/jre/../lib/i386, java.vendor.url=http://java.sun.com/, program.name=run.sh, java.vm.vendor=Sun Microsystems Inc., hibernate.dialect=org.hibernate.dialect.MySQLDialect, sun.rmi.dgc.server.gcInterval=3600000, common.loader=${catalina.home}/common/classes,${catalina.home}/common/i18n/*.jar,${catalina.home}/common/endorsed/*.jar,${catalina.home}/common/lib/*.jar, java.runtime.name=Java(TM) 2 Runtime Environment, Standard Edition, java.class.path=/home/bernd/Z_GBI/Z_Server/jboss4.0.4/bin/run.jar:/home/bernd/Z_GBI/Z_JDK/jdk1.5.0_06/lib/tools.jar, hibernate.bytecode.use_reflection_optimizer=false, jboss.server.log.dir=/home/bernd/Z_GBI/Z_Server/jboss4.0.4/server/default/log, jbossmx.loader.repository.class=org.jboss.mx.loading.UnifiedLoaderRepository3, java.vm.specification.name=Java Virtual Machine Specification, catalina.home=/home/bernd/Z_GBI/Z_Server/jboss4.0.4/server/default, java.vm.specification.version=1.0, jboss.server.lib.url=file:/home/bernd/Z_GBI/Z_Server/jboss4.0.4/server/default/lib/, sun.os.patch.level=unknown, sun.cpu.endian=little, hibernate.connection.provider_class=org.hibernate.ejb.connection.InjectedDataSourceConnectionProvider, java.io.tmpdir=/tmp, java.rmi.server.codebase=http://debian1:8083/, java.vendor.url.bug=http://java.sun.com/cgi-bin/bugreport.cgi, server.loader=${catalina.home}/server/classes,${catalina.home}/server/lib/*.jar, jboss.server.data.dir=/home/bernd/Z_GBI/Z_Server/jboss4.0.4/server/default/data, java.awt.graphicsenv=sun.awt.X11GraphicsEnvironment, os.arch=i386, java.ext.dirs=/home/bernd/Z_GBI/Z_JDK/jdk1.5.0_06/jre/lib/ext, user.dir=/home/bernd, line.separator=
, java.vm.name=Java HotSpot(TM) Server VM, jboss.server.base.dir=/home/bernd/Z_GBI/Z_Server/jboss4.0.4/server, jboss.server.base.url=file:/home/bernd/Z_GBI/Z_Server/jboss4.0.4/server/, javax.management.builder.initial=org.jboss.mx.server.MBeanServerBuilderImpl, file.encoding=ISO-8859-15, hibernate.use_identifier_rollback=false, catalina.ext.dirs=/home/bernd/Z_GBI/Z_Server/jboss4.0.4/server/default/lib, hibernate.transaction.manager_lookup_class=org.hibernate.transaction.JBossTransactionManagerLookup, java.specification.version=1.5, jboss.server.name=default}
2006-07-19 11:22:03,674 DEBUG [org.hibernate.persister.entity.AbstractEntityPersister] Static SQL for entity: de.bremen.gbi.enders.adressen.Ort
2006-07-19 11:22:03,674 DEBUG [org.hibernate.persister.entity.AbstractEntityPersister] Version select: select id from Ort where id =?
2006-07-19 11:22:03,674 DEBUG [org.hibernate.persister.entity.AbstractEntityPersister] Snapshot select: select ort_.id, ort_.land as land0_, ort_.ort as ort0_, ort_.plz as plz0_ from Ort ort_ where ort_.id=?
2006-07-19 11:22:03,674 DEBUG [org.hibernate.persister.entity.AbstractEntityPersister] Insert 0: insert into Ort (land, ort, plz, id) values (?, ?, ?, ?)
2006-07-19 11:22:03,674 DEBUG [org.hibernate.persister.entity.AbstractEntityPersister] Update 0: update Ort set land=?, ort=?, plz=? where id=?
2006-07-19 11:22:03,674 DEBUG [org.hibernate.persister.entity.AbstractEntityPersister] Delete 0: delete from Ort where id=?
2006-07-19 11:22:03,674 DEBUG [org.hibernate.persister.entity.AbstractEntityPersister] Identity insert: insert into Ort (land, ort, plz) values (?, ?, ?)
2006-07-19 11:22:03,735 DEBUG [org.hibernate.loader.entity.EntityLoader] Static select for entity de.bremen.gbi.enders.adressen.Ort: select ort0_.id as id0_0_, ort0_.land as land0_0_, ort0_.ort as ort0_0_, ort0_.plz as plz0_0_ from Ort ort0_ where ort0_.id=?
2006-07-19 11:22:03,736 DEBUG [org.hibernate.loader.entity.EntityLoader] Static select for entity de.bremen.gbi.enders.adressen.Ort: select ort0_.id as id0_0_, ort0_.land as land0_0_, ort0_.ort as ort0_0_, ort0_.plz as plz0_0_ from Ort ort0_ where ort0_.id=?
2006-07-19 11:22:03,736 DEBUG [org.hibernate.loader.entity.EntityLoader] Static select for entity de.bremen.gbi.enders.adressen.Ort: select ort0_.id as id0_0_, ort0_.land as land0_0_, ort0_.ort as ort0_0_, ort0_.plz as plz0_0_ from Ort ort0_ where ort0_.id=? for update
2006-07-19 11:22:03,736 DEBUG [org.hibernate.loader.entity.EntityLoader] Static select for entity de.bremen.gbi.enders.adressen.Ort: select ort0_.id as id0_0_, ort0_.land as land0_0_, ort0_.ort as ort0_0_, ort0_.plz as plz0_0_ from Ort ort0_ where ort0_.id=? for update
2006-07-19 11:22:03,767 DEBUG [org.hibernate.loader.entity.EntityLoader] Static select for action ACTION_MERGE on entity de.bremen.gbi.enders.adressen.Ort: select ort0_.id as id0_0_, ort0_.land as land0_0_, ort0_.ort as ort0_0_, ort0_.plz as plz0_0_ from Ort ort0_ where ort0_.id=?
2006-07-19 11:22:03,768 DEBUG [org.hibernate.loader.entity.EntityLoader] Static select for action ACTION_REFRESH on entity de.bremen.gbi.enders.adressen.Ort: select ort0_.id as id0_0_, ort0_.land as land0_0_, ort0_.ort as ort0_0_, ort0_.plz as plz0_0_ from Ort ort0_ where ort0_.id=?
2006-07-19 11:22:03,772 DEBUG [org.hibernate.impl.SessionFactoryObjectFactory] initializing class SessionFactoryObjectFactory
2006-07-19 11:22:03,779 DEBUG [org.hibernate.impl.SessionFactoryObjectFactory] registered: ff8080810c861782010c861785780000 (unnamed)
2006-07-19 11:22:03,779 INFO [org.hibernate.impl.SessionFactoryObjectFactory] Not binding factory to JNDI, no JNDI name configured
2006-07-19 11:22:03,779 DEBUG [org.hibernate.impl.SessionFactoryImpl] instantiated session factory
2006-07-19 11:22:03,779 DEBUG [org.hibernate.impl.SessionFactoryImpl] obtaining JTA TransactionManager
2006-07-19 11:22:03,844 INFO [org.hibernate.util.NamingHelper] JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces}
2006-07-19 11:22:03,909 DEBUG [org.hibernate.impl.SessionFactoryImpl] Checking 0 named HQL queries
2006-07-19 11:22:03,909 DEBUG [org.hibernate.impl.SessionFactoryImpl] Checking 0 named SQL queries
2006-07-19 11:22:03,914 DEBUG [org.jboss.ejb3.ServiceDelegateWrapper] Started persistence.units:jar=adressen.jar,unitName=gbi
2006-07-19 11:22:03,914 DEBUG [org.jboss.system.ServiceController] Starting dependent components for: persistence.units:jar=adressen.jar,unitName=gbi dependent components: []
2006-07-19 11:22:03,979 DEBUG [org.jboss.ejb3.EJBContainer] Initialising interceptors for OrteBean...
2006-07-19 11:22:03,979 DEBUG [org.jboss.ejb3.EJBContainer] Default interceptors: null
2006-07-19 11:22:03,981 DEBUG [org.jboss.ejb3.EJBContainer] Class interceptors: []
2006-07-19 11:22:03,981 DEBUG [org.jboss.ejb3.EJBContainer] All applicable interceptor classes: []
2006-07-19 11:22:03,981 DEBUG [org.jboss.ejb3.JmxKernelAbstraction] creating wrapper delegate for: org.jboss.ejb3.stateless.StatelessContainer
2006-07-19 11:22:03,996 INFO [org.jboss.ejb3.JmxKernelAbstraction] installing MBean: jboss.j2ee:jar=adressen.jar,name=OrteBean,service=EJB3 with dependencies:
2006-07-19 11:22:03,997 INFO [org.jboss.ejb3.JmxKernelAbstraction] persistence.units:jar=adressen.jar,unitName=gbi
2006-07-19 11:22:04,063 DEBUG [org.jboss.system.ServiceController] Creating service jboss.j2ee:jar=adressen.jar,name=OrteBean,service=EJB3
2006-07-19 11:22:04,063 DEBUG [org.jboss.system.ServiceController] adding depends in ServiceController.register: [persistence.units:jar=adressen.jar,unitName=gbi]
2006-07-19 11:22:04,063 DEBUG [org.jboss.system.ServiceController] recording that jboss.j2ee:jar=adressen.jar,name=OrteBean,service=EJB3 depends on persistence.units:jar=adressen.jar,unitName=gbi
2006-07-19 11:22:04,063 DEBUG [org.jboss.ejb3.ServiceDelegateWrapper] Creating jboss.j2ee:jar=adressen.jar,name=OrteBean,service=EJB3
2006-07-19 11:22:04,063 DEBUG [org.jboss.ejb3.ServiceDelegateWrapper] Created jboss.j2ee:jar=adressen.jar,name=OrteBean,service=EJB3
2006-07-19 11:22:04,063 DEBUG [org.jboss.system.ServiceController] Creating dependent components for: jboss.j2ee:jar=adressen.jar,name=OrteBean,service=EJB3 dependents are: []
2006-07-19 11:22:04,064 DEBUG [org.jboss.system.ServiceController] starting service jboss.j2ee:jar=adressen.jar,name=OrteBean,service=EJB3
2006-07-19 11:22:04,064 DEBUG [org.jboss.ejb3.ServiceDelegateWrapper] Starting jboss.j2ee:jar=adressen.jar,name=OrteBean,service=EJB3
2006-07-19 11:22:04,376 DEBUG [org.jboss.ejb3.interceptor.EJB3InterceptorsFactory] Bound interceptors for joinpoint: public void de.bremen.gbi.enders.adressen.OrteBean.insert(java.lang.String,java.lang.String,java.lang.String) - [Lorg.jboss.ejb3.interceptor.InterceptorInfo;@1fb80c9
2006-07-19 11:22:04,381 DEBUG [org.jboss.ejb3.interceptor.EJB3InterceptorsFactory] Bound interceptors for joinpoint: public java.lang.String de.bremen.gbi.enders.adressen.OrteBean.getOrtByPlz(java.lang.String) - [Lorg.jboss.ejb3.interceptor.InterceptorInfo;@1035ff9
2006-07-19 11:22:04,427 DEBUG [org.jboss.ejb3.tx.UserTransactionImpl] new UserTx: org.jboss.ejb3.tx.UserTransactionImpl@1e4e3e4
2006-07-19 11:22:04,501 DEBUG [org.jboss.ejb3.interceptor.EJB3InterceptorsFactory] Bound interceptors for joinpoint: public void de.bremen.gbi.enders.adressen.OrteBean.insert(java.lang.String,java.lang.String,java.lang.String) - [Lorg.jboss.ejb3.interceptor.InterceptorInfo;@4ba778
2006-07-19 11:22:04,502 DEBUG [org.jboss.ejb3.interceptor.EJB3InterceptorsFactory] Bound interceptors for joinpoint: public java.lang.String de.bremen.gbi.enders.adressen.OrteBean.getOrtByPlz(java.lang.String) - [Lorg.jboss.ejb3.interceptor.InterceptorInfo;@dfe491
2006-07-19 11:22:04,503 DEBUG [org.jboss.ejb3.security.JaccHelper] OrteBean has no @SecurityDomain - skipping JACC configuration
2006-07-19 11:22:04,503 INFO [org.jboss.ejb3.EJBContainer] STARTED EJB: de.bremen.gbi.enders.adressen.OrteBean ejbName: OrteBean
2006-07-19 11:22:04,863 DEBUG [org.jboss.ejb.txtimer.EJBTimerServiceImpl] createTimerService: org.jboss.ejb.txtimer.TimerServiceImpl@431693
2006-07-19 11:22:04,863 DEBUG [org.jboss.ejb3.ServiceDelegateWrapper] Started jboss.j2ee:jar=adressen.jar,name=OrteBean,service=EJB3
2006-07-19 11:22:04,864 DEBUG [org.jboss.system.ServiceController] Starting dependent components for: jboss.j2ee:jar=adressen.jar,name=OrteBean,service=EJB3 dependent components: []
2006-07-19 11:22:04,864 DEBUG [org.jboss.ejb3.Ejb3Deployment] Bound ejb3 container jboss.j2ee:service=EJB3,jar=adressen.jar,name=OrteBean
2006-07-19 11:22:04,864 DEBUG [org.jboss.ejb3.security.JaccHelper] JACC Policy Configuration for deployment has been put in service
2006-07-19 11:22:04,864 DEBUG [org.jboss.ejb3.Ejb3Module] Started jboss.j2ee:service=EJB3,module=adressen.jar
2006-07-19 11:22:04,864 DEBUG [org.jboss.system.ServiceController] Starting dependent components for: jboss.j2ee:service=EJB3,module=adressen.jar dependent components: []
2006-07-19 11:22:04,864 INFO [org.jboss.ejb3.EJB3Deployer] Deployed: file:/home/bernd/Z_GBI/Z_Server/jboss4.0.4/server/default/deploy/adressen.jar
2006-07-19 11:22:04,865 DEBUG [org.jboss.deployment.MainDeployer] End deployment start on package: adressen.jar
2006-07-19 11:22:04,865 DEBUG [org.jboss.deployment.MainDeployer] Deployed package: file:/home/bernd/Z_GBI/Z_Server/jboss4.0.4/server/default/deploy/adressen.jar
2006-07-19 11:22:04,866 DEBUG [org.jboss.deployment.scanner.URLDeploymentScanner] Watch URL for: file:/home/bernd/Z_GBI/Z_Server/jboss4.0.4/server/default/deploy/adressen.jar -> file:/home/bernd/Z_GBI/Z_Server/jboss4.0.4/server/default/deploy/adressen.jar
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3959063#3959063
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3959063
19 years, 9 months
[Installation, Configuration & Deployment] - Specify jar-file in persistence.xml at certain position
by pieterjan
Hi,
I'm still using JBossAS 4.0.3 SP1 so therefore my applications are deployed as .par instead of .jar.
Anyway, I'm referencing entity beans from one .par file in another .par file.
So I added the referenced classes in the persistence.xml file. And everything works fine.
But now, I would rather have the jar-file mentioned in the persistence.xml than the individual classes (for obvious maintenance reasons).
And here's the thing: I found out that,
the following line will look in : jboss-4.0.3SP1/bin
<jar-file>referenced_project.par</jar-file>
the following line will look in : jboss-4.0.3SP1/server/barc/deploy/BARC/applicationtwo/
<jar-file>../referenced_project.par</jar-file>
and this is okay when the par files are located in the same directory
but in my case each project has its own directory, so...
the following line will look in : jboss-4.0.3SP1/server/barc/deploy/BARC/applicationtwo/pplicationone
<jar-file>../../applicationone/referenced_project.par</jar-file></jar-file>
As you can see letter 'a' has been removed and the two dots did not make the deployer move/look in the correct directory.
To make it even more obvious...
the following line will look in: jboss-4.0.3SP1/server/barc/deploy/BARC/applicationtwo/icationone
<jar-file>../../../../../applicationone/referenced_project.par</jar-file>
So can anyone tell me what I'm doing wrong? Does the deployer use the dots as special characters and is there a workaround?
In summary. What I want is to reference
jboss-4.0.3SP1/server/barc/deploy/BARC/applicationone/referenced_project.par from the persistence.xml file in
jboss-4.0.3SP1/server/barc/deploy/BARC/applicationtwo/project.par
Cheers,
Pieter-Jan Savat
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3959062#3959062
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3959062
19 years, 9 months
[EJB/JBoss] - migration to 4.0.4 GA deployment problem --- MBeans waiting
by amitguz
I migrate my application from jboss 4.0.4 RC1 to JBOSS 4.0.4 GA
and I got error during the deployment.
In general the error is about mutual dependecy.
i.e - suppose I have 2 Stateless session bean:
1.) XXBean 2.)YYBean
and I have the following code:
|
| public @Stateless class XXBean implements XX {
|
| @EJB YYBean ybean;
| }
|
| public @Stateless class YYBean implements XX {
|
| @EJB XXBean ybean;
| }
|
|
this code in 4.0.4 GA will raise error during the depolyment process.
Does anybody know why? and how to overcome it?
thanks, amit
p.s - this is the error I got
anonymous wrote :
| --- MBeans waiting for other MBeans ---
| ObjectName: jboss.j2ee:ear=imagineManagment.ear,jar=imagineBusiness.ejb3,name=DeviceManagerBean,service=EJB3
| State: NOTYETINSTALLED
| I Depend On:
| jboss.j2ee:ear=imagineManagment.ear,jar=imagineBusiness.ejb3,name=PortManagerBean,service=EJB3
| persistence.units:ear=imagineManagment.ear,unitName=ImagineDB
| Depends On Me:
| jboss.j2ee:ear=imagineManagment.ear,jar=imagineBusiness.ejb3,name=ModuleManagerBean,service=EJB3
| jboss.j2ee:ear=imagineManagment.ear,jar=imagineBusiness.ejb3,name=PortManagerBean,service=EJB3
|
| ObjectName: jboss.j2ee:ear=imagineManagment.ear,jar=imagineBusiness.ejb3,name=ModuleManagerBean,service=EJB3
| State: NOTYETINSTALLED
| I Depend On:
| jboss.j2ee:ear=imagineManagment.ear,jar=imagineBusiness.ejb3,name=DeviceManagerBean,service=EJB3
| persistence.units:ear=imagineManagment.ear,unitName=ImagineDB
|
| ObjectName: jboss.j2ee:ear=imagineManagment.ear,jar=imagineBusiness.ejb3,name=PortManagerBean,service=EJB3
| State: NOTYETINSTALLED
| I Depend On:
| jboss.j2ee:ear=imagineManagment.ear,jar=imagineBusiness.ejb3,name=DeviceManagerBean,service=EJB3
| persistence.units:ear=imagineManagment.ear,unitName=ImagineDB
| Depends On Me:
| jboss.j2ee:ear=imagineManagment.ear,jar=imagineBusiness.ejb3,name=DeviceManagerBean,service=EJB3
| jboss.j2ee:ear=imagineManagment.ear,jar=imagineBusiness.ejb3,name=QAMDeviceManagerBean,service=EJB3
|
| ObjectName: jboss.j2ee:ear=imagineManagment.ear,jar=imagineBusiness.ejb3,name=QAMDeviceManagerBean,service=EJB3
| State: NOTYETINSTALLED
| I Depend On:
| jboss.j2ee:ear=imagineManagment.ear,jar=imagineBusiness.ejb3,name=PortManagerBean,service=EJB3
| jboss.j2ee:ear=imagineManagment.ear,jar=imagineBusiness.ejb3,name=SiteManagerBean,service=EJB3
| jboss.j2ee:ear=imagineManagment.ear,jar=imagineBusiness.ejb3,name=QAMGroupManagerBean,service=EJB3
| persistence.units:ear=imagineManagment.ear,unitName=ImagineDB
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3959060#3959060
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3959060
19 years, 9 months
[JBoss jBPM] - Re: Modeling simple process(tasks)
by dlipski
anonymous wrote : would cost me (personally) to much free time
In my opinion it does mean that existing possibilities are not sufficient, because it is common and simple situation so it should be easy to model it.
anonymous wrote : Some suggestions are made above
If you are talking about this one with parallel tasks i think it's too complicated for such simple case.
anonymous wrote : It is the combination of how *you* want to draw/design the process
I want to design it as simple as it is possible, because in the future it will not be changed by system architect/programmer but by system user.
Maybe i made same wrong assumption here.(but why not ?)
As i said at the biginning I'm using jBPM for few days and never used any other workflow system. So maybe problem lies in the way i want to change processes in the future. I thought that this shuld be made by customer, not system programmers/designers etc. Thats why i want to model easy cases easly.
Maybe i don't understand the process of designing, deploying processes.
I imagine that process is designed by customer and after that it is deployed by system developers. Of course developers can add something to process (only actions?) but this should be invisible for process designers. I think that process deployers shouldn't transform process design to some different form which fulfil technical requirements.
Yours suggestions may work but they are to complicated, this problem can be solved much simplier: adding possibility to link tasks with transitions. But this is only newbie suggestion.
anonymous wrote :
| If you still want to draw it like you do now, maybe jBPM is not the best engine for your needs.
I want to draw it easly, and im looking for easy solution (parallel in generaly isn't easy). Maybe it isn't the best solution, but don't understand me wrong, i respect your work, i see a lot of good solutions here but it's hard to imagine for me that such simple case must be designed in some strange way.
Thanks for your support
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3959058#3959058
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3959058
19 years, 9 months