[ perun_ @ 26.05.2008. 19:49 ] @
Resavam jednostavan problem. Naime postoji samo jedna tabela u bazi. Dakle, samo jedan EntityBean: Code: package hajde; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.Id; import javax.persistence.Table; @Entity @Table(name="osoba") public class Osoba { private Integer id; private String ime; private String prezime; public Osoba() { super(); } public Osoba(Integer id, String ime, String prezime) { super(); this.id = id; this.ime = ime; this.prezime = prezime; } @Id @Column(name = "IDOsoba", unique = true, nullable = false, insertable = true, updatable = true) public Integer getId() { return id; } public void setId(Integer id) { this.id = id; } @Column(name = "ime", unique = false, nullable = false, insertable = true, updatable = true, length = 20) public String getIme() { return ime; } public void setIme(String ime) { this.ime = ime; } @Column(name = "prezime", unique = false, nullable = false, insertable = true, updatable = true, length = 20) public String getPrezime() { return prezime; } public void setPrezime(String prezime) { this.prezime = prezime; } } OsobaTestBeanLocal: Code: package hajde; import javax.ejb.Local; @Local public interface OsobaTestBeanLocal { public void test(); } OsobaTestBeanLocal: Code: package hajde; import javax.ejb.Remote; @Remote public interface OsobaTestBeanRemote { public void test(); } OsobaTestBean: Code: package hajde; import java.io.Serializable; import javax.ejb.Stateless; import javax.persistence.EntityManager; import javax.persistence.PersistenceContext; @Stateless public class OsobaTestBean implements OsobaTestBeanLocal,OsobaTestBeanRemote,Serializable{ /** * */ private static final long serialVersionUID = 2609262789016232311L; @PersistenceContext EntityManager em; public static final String RemoteJNDIName = OsobaTestBean.class.getSimpleName() + "/remote"; public static final String LocalJNDIName = OsobaTestBean.class.getSimpleName() + "/local"; @Override public void test() { Osoba o=new Osoba(null,"aleksandar", "bjelanovic"); em.persist(o); } } Client: Code: package test; import java.util.Properties; import javax.ejb.EJB; import javax.naming.Context; import javax.naming.InitialContext; import javax.naming.NamingException; import hajde.*; /** * @author PeRuN * */ public class TutisClient { @EJB private static OsobaTestBeanRemote facade; /** * @param args */ public static void main(String[] args) { Properties properties = new Properties(); properties.put("java.naming.factory.initial","org.jnp.interfaces.NamingContextFactory"); properties.put("java.naming.factory.url.pkgs","=org.jboss.naming:org.jnp.interfaces"); properties.put("java.naming.provider.url","localhost:1099"); Context context; try { context = new InitialContext(); facade = (OsobaTestBeanRemote) context.lookup(OsobaTestBean.RemoteJNDIName); facade.test(); } catch (NamingException e) { e.printStackTrace(); } } } persistence.xml: Code: <persistence> <persistence-unit name="axaPU"> <jta-data-source>java:/axaDS</jta-data-source> <properties> <property name="hibernate.hbm2ddl.auto" value="create-drop"/> <property name="hibernate.dialect" value="org.hibernate.dialect.MySQLInnoDBDialect"/> </properties> </persistence-unit> </persistence> Koristim MyEclipse6.0, JBoss 5.0.0Beta4 i MySQL Server 5. Prilikom deploy-a je sve u redu: Code: 19:54:02,840 INFO [ServerImpl] Starting JBoss (Microcontainer)... 19:54:02,842 INFO [ServerImpl] Release ID: JBoss [Morpheus] 5.0.0.Beta4 (build: SVNTag=JBoss_5_0_0_Beta4 date=200802091115) 19:54:02,844 INFO [ServerImpl] Home Dir: /home/PeRuN/Desktop/jboss-5.0.0.Beta4 19:54:02,844 INFO [ServerImpl] Home URL: file:/home/PeRuN/Desktop/jboss-5.0.0.Beta4/ 19:54:02,845 INFO [ServerImpl] Library URL: file:/home/PeRuN/Desktop/jboss-5.0.0.Beta4/lib/ 19:54:02,845 INFO [ServerImpl] Patch URL: null 19:54:02,846 INFO [ServerImpl] Server Name: default 19:54:02,846 INFO [ServerImpl] Server Home Dir: /home/PeRuN/Desktop/jboss-5.0.0.Beta4/server/default 19:54:02,846 INFO [ServerImpl] Server Home URL: file:/home/PeRuN/Desktop/jboss-5.0.0.Beta4/server/default/ 19:54:02,846 INFO [ServerImpl] Server Data Dir: /home/PeRuN/Desktop/jboss-5.0.0.Beta4/server/default/data 19:54:02,846 INFO [ServerImpl] Server Temp Dir: /home/PeRuN/Desktop/jboss-5.0.0.Beta4/server/default/tmp 19:54:02,846 INFO [ServerImpl] Server Config URL: file:/home/PeRuN/Desktop/jboss-5.0.0.Beta4/server/default/conf/ 19:54:02,846 INFO [ServerImpl] Server Library URL: file:/home/PeRuN/Desktop/jboss-5.0.0.Beta4/server/default/lib/ 19:54:02,846 INFO [ServerImpl] Root Deployment Filename: jboss-service.xml 19:54:03,470 INFO [ServerImpl] Starting Microcontainer, bootstrapURL=file:/home/PeRuN/Desktop/jboss-5.0.0.Beta4/server/default/conf/bootstrap-beans.xml 19:54:05,134 INFO [ProfileImpl] Using profile root:/home/PeRuN/Desktop/jboss-5.0.0.Beta4/server/default 19:54:05,971 INFO [ServerInfo] Java version: 1.6.0_01,Sun Microsystems Inc. 19:54:05,971 INFO [ServerInfo] Java VM: Java HotSpot(TM) Client VM 1.6.0_01-b06,Sun Microsystems Inc. 19:54:05,972 INFO [ServerInfo] OS-System: Linux 2.6.21.5-smp,i386 19:54:06,050 INFO [JMXKernel] Legacy JMX core initialized 19:54:10,481 INFO [WebService] Using RMI server codebase: http://127.0.0.1:8083/ 19:54:11,772 INFO [TransactionManagerService] JBossTS Transaction Service (JTA version) - JBoss Inc. 19:54:11,772 INFO [TransactionManagerService] Setting up property manager MBean and JMX layer 19:54:12,219 INFO [TransactionManagerService] Starting recovery manager 19:54:12,546 INFO [TransactionManagerService] Recovery manager started 19:54:12,546 INFO [TransactionManagerService] Binding TransactionManager JNDI Reference 19:54:29,751 INFO [PersistenceUnitParsingDeployer] Found persistence units [org.jboss.ejb3.metadata.jpa.spec.PersistenceUnitMetaData@1654982{name=axaPU}] 19:54:30,249 INFO [AspectDeployer] Deploying xml into org.jboss.aop.AspectManager@1c78571 for BaseClassLoader@b4bb65{vfsfile:/home/PeRuN/Desktop/jboss-5.0.0.Beta4/server/default/deploy/ejb3-interceptors-aop.xml} 19:54:32,465 WARN [SecurityMetadataStore] WARNING! POTENTIAL SECURITY RISK. It has been detected that the MessageSucker component which sucks messages from one node to another has not had its password changed from the installation default. Please see the JBoss Messaging user guide for instructions on how to do this. 19:54:33,686 INFO [NativeServerConfig] JBoss Web Services - Native 19:54:33,686 INFO [NativeServerConfig] jbossws-native-2.0.3.GA (build=200801241020) 19:54:36,821 INFO [AprLifecycleListener] The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/lib/jdk1.6.0_01/bin 19:54:36,956 INFO [Http11Protocol] Initializing Coyote HTTP/1.1 on http-127.0.0.1-8080 19:54:36,957 INFO [AjpProtocol] Initializing Coyote AJP/1.3 on ajp-127.0.0.1-8009 19:54:36,958 INFO [Catalina] Initialization processed in 999 ms 19:54:36,958 INFO [StandardService] Starting service jboss.web 19:54:36,962 INFO [StandardEngine] Starting Servlet Engine: JBoss Web/2.1.0.CR12 19:54:37,066 INFO [Catalina] Server startup in 108 ms 19:54:37,110 INFO [TomcatDeployment] deploy, ctxPath=/jbossws, vfsUrl=jbossws.sar/jbossws-context.war 19:54:38,673 INFO [TomcatDeployment] deploy, ctxPath=/invoker, vfsUrl=http-invoker.sar/invoker.war 19:54:38,911 INFO [JMXConnectorServerService] JMX Connector server: service:jmx:rmi://127.0.0.1/jndi/rmi://127.0.0.1:1090/jmxconnector 19:54:39,582 INFO [TomcatDeployment] deploy, ctxPath=/web-console, vfsUrl=management/console-mgr.sar/web-console.war 19:54:40,461 INFO [MCKernelAbstraction] installing bean: persistence.units:jar=tutis.jar,unitName=axaPU with dependencies: 19:54:40,461 INFO [MCKernelAbstraction] and demands: 19:54:40,461 INFO [MCKernelAbstraction] jboss.jca:name=axaDS,service=DataSourceBinding 19:54:40,461 INFO [MCKernelAbstraction] and supplies: 19:54:40,552 INFO [MCKernelAbstraction] installing bean: jboss.j2ee:jar=tutis.jar,name=OsobaTestBean,service=EJB3 with dependencies: 19:54:40,552 INFO [MCKernelAbstraction] and demands: 19:54:40,552 INFO [MCKernelAbstraction] jboss.ejb:service=EJBTimerService 19:54:40,552 INFO [MCKernelAbstraction] persistence.units:jar=tutis.jar,unitName=axaPU 19:54:40,552 INFO [MCKernelAbstraction] and supplies: 19:54:40,553 INFO [MCKernelAbstraction] Class:hajde.OsobaTestBeanLocal 19:54:40,553 INFO [MCKernelAbstraction] Class:hajde.OsobaTestBeanRemote 19:54:40,605 INFO [TomcatDeployment] deploy, ctxPath=/, vfsUrl=ROOT.war 19:54:40,692 INFO [TomcatDeployment] deploy, ctxPath=/jmx-console, vfsUrl=jmx-console.war 19:54:40,790 INFO [RARDeployment] Required license terms exist, view vfsfile:/home/PeRuN/Desktop/jboss-5.0.0.Beta4/server/default/deploy/mail-ra.rar/META-INF/ra.xml 19:54:40,834 INFO [RARDeployment] Required license terms exist, view vfsfile:/home/PeRuN/Desktop/jboss-5.0.0.Beta4/server/default/deploy/quartz-ra.rar/META-INF/ra.xml 19:54:41,407 INFO [SimpleThreadPool] Job execution threads will use class loader of thread: main 19:54:41,448 INFO [QuartzScheduler] Quartz Scheduler v.1.5.2 created. 19:54:41,452 INFO [RAMJobStore] RAMJobStore initialized. 19:54:41,453 INFO [StdSchedulerFactory] Quartz scheduler 'DefaultQuartzScheduler' initialized from default resource file in Quartz package: 'quartz.properties' 19:54:41,453 INFO [StdSchedulerFactory] Quartz scheduler version: 1.5.2 19:54:41,453 INFO [QuartzScheduler] Scheduler DefaultQuartzScheduler_$_NON_CLUSTERED started. 19:54:41,454 INFO [RARDeployment] Required license terms exist, view vfsfile:/home/PeRuN/Desktop/jboss-5.0.0.Beta4/server/default/deploy/jboss-local-jdbc.rar/META-INF/ra.xml 19:54:41,455 INFO [RARDeployment] Required license terms exist, view vfsfile:/home/PeRuN/Desktop/jboss-5.0.0.Beta4/server/default/deploy/jboss-xa-jdbc.rar/META-INF/ra.xml 19:54:41,455 INFO [RARDeployment] Required license terms exist, view vfsfile:/home/PeRuN/Desktop/jboss-5.0.0.Beta4/server/default/deploy/jms-ra.rar/META-INF/ra.xml 19:54:41,577 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=axaDS' to JNDI name 'java:axaDS' 19:54:41,581 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=DefaultDS' to JNDI name 'java:DefaultDS' 19:54:42,263 INFO [ServerPeer] JBoss Messaging 1.4.1.Beta1 server [0] started 19:54:42,429 INFO [QueueService] Queue[/queue/DLQ] started, fullSize=200000, pageSize=2000, downCacheSize=2000 19:54:42,611 INFO [ConnectionFactory] Connector bisocket://127.0.0.1:4457 has leasing enabled, lease period 10000 milliseconds 19:54:42,611 INFO [ConnectionFactory] org.jboss.jms.server.connectionfactory.ConnectionFactory@15e2639 started 19:54:42,612 INFO [ConnectionFactory] Connector bisocket://127.0.0.1:4457 has leasing enabled, lease period 10000 milliseconds 19:54:42,612 INFO [ConnectionFactory] org.jboss.jms.server.connectionfactory.ConnectionFactory@14e7b87 started 19:54:42,613 WARN [ConnectionFactoryJNDIMapper] supportsFailover attribute is true on connection factory: jboss.messaging.connectionfactory:service=ClusteredConnectionFactory but post office is non clustered. So connection factory will *not* support failover 19:54:42,613 WARN [ConnectionFactoryJNDIMapper] supportsLoadBalancing attribute is true on connection factory: jboss.messaging.connectionfactory:service=ClusteredConnectionFactory but post office is non clustered. So connection factory will *not* support load balancing 19:54:42,623 INFO [ConnectionFactory] Connector bisocket://127.0.0.1:4457 has leasing enabled, lease period 10000 milliseconds 19:54:42,623 INFO [ConnectionFactory] org.jboss.jms.server.connectionfactory.ConnectionFactory@19005c4 started 19:54:42,637 INFO [QueueService] Queue[/queue/ExpiryQueue] started, fullSize=200000, pageSize=2000, downCacheSize=2000 19:54:42,643 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=ConnectionFactoryBinding,name=JmsXA' to JNDI name 'java:JmsXA' 19:54:42,755 INFO [PersistenceUnitDeployment] Starting persistence unit persistence.units:jar=tutis.jar,unitName=axaPU 19:54:42,856 INFO [Version] Hibernate Annotations 3.3.1.Beta1 19:54:42,893 INFO [Environment] Hibernate 3.2.4.sp1 19:54:42,903 INFO [Environment] hibernate.properties not found 19:54:42,906 INFO [Environment] Bytecode provider name : javassist 19:54:42,916 INFO [Environment] using JDK 1.4 java.sql.Timestamp handling 19:54:43,080 INFO [Version] Hibernate EntityManager 3.3.2.Beta3 19:54:43,165 WARN [Ejb3Configuration] Persistence provider caller does not implement the EJB3 spec correctly. PersistenceUnitInfo.getNewTempClassLoader() is null. 19:54:43,348 INFO [AnnotationBinder] Binding entity from annotated class: hajde.Osoba 19:54:43,471 INFO [EntityBinder] Bind entity hajde.Osoba on table osoba 19:54:43,583 INFO [Version] Hibernate Validator 3.0.0.GA 19:54:43,852 INFO [ConnectionProviderFactory] Initializing connection provider: org.hibernate.ejb.connection.InjectedDataSourceConnectionProvider 19:54:43,859 INFO [InjectedDataSourceConnectionProvider] Using provided datasource 19:54:44,849 INFO [SettingsFactory] RDBMS: MySQL, version: 5.0.45-log 19:54:44,849 INFO [SettingsFactory] JDBC driver: MySQL-AB JDBC Driver, version: mysql-connector-java-5.1.5 ( Revision: ${svn.Revision} ) 19:54:44,925 INFO [Dialect] Using dialect: org.hibernate.dialect.MySQLInnoDBDialect 19:54:44,940 INFO [TransactionFactoryFactory] Transaction strategy: org.hibernate.ejb.transaction.JoinableCMTTransactionFactory 19:54:44,945 INFO [TransactionManagerLookupFactory] instantiating TransactionManagerLookup: org.hibernate.transaction.JBossTransactionManagerLookup 19:54:44,953 INFO [TransactionManagerLookupFactory] instantiated TransactionManagerLookup 19:54:44,953 INFO [SettingsFactory] Automatic flush during beforeCompletion(): disabled 19:54:44,953 INFO [SettingsFactory] Automatic session close at end of transaction: disabled 19:54:44,953 INFO [SettingsFactory] JDBC batch size: 15 19:54:44,953 INFO [SettingsFactory] JDBC batch updates for versioned data: disabled 19:54:44,955 INFO [SettingsFactory] Scrollable result sets: enabled 19:54:44,955 INFO [SettingsFactory] JDBC3 getGeneratedKeys(): enabled 19:54:44,955 INFO [SettingsFactory] Connection release mode: auto 19:54:44,958 INFO [SettingsFactory] Maximum outer join fetch depth: 2 19:54:44,958 INFO [SettingsFactory] Default batch fetch size: 1 19:54:44,958 INFO [SettingsFactory] Generate SQL with comments: disabled 19:54:44,958 INFO [SettingsFactory] Order SQL updates by primary key: disabled 19:54:44,958 INFO [SettingsFactory] Order SQL inserts for batching: disabled 19:54:44,958 INFO [SettingsFactory] Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory 19:54:44,974 INFO [ASTQueryTranslatorFactory] Using ASTQueryTranslatorFactory 19:54:44,974 INFO [SettingsFactory] Query language substitutions: {} 19:54:44,974 INFO [SettingsFactory] JPA-QL strict compliance: enabled 19:54:44,974 INFO [SettingsFactory] Second-level cache: enabled 19:54:44,974 INFO [SettingsFactory] Query cache: disabled 19:54:44,974 INFO [SettingsFactory] Cache provider: org.hibernate.cache.HashtableCacheProvider 19:54:44,982 INFO [SettingsFactory] Optimize cache for minimal puts: disabled 19:54:44,983 INFO [SettingsFactory] Cache region prefix: tutis_jar,axaPU 19:54:44,983 INFO [SettingsFactory] Structured second-level cache entries: disabled 19:54:45,002 INFO [SettingsFactory] Statistics: disabled 19:54:45,002 INFO [SettingsFactory] Deleted entity synthetic identifier rollback: disabled 19:54:45,004 INFO [SettingsFactory] Default entity-mode: pojo 19:54:45,004 INFO [SettingsFactory] Named query checking : enabled 19:54:45,096 INFO [SessionFactoryImpl] building session factory 19:54:45,555 INFO [SessionFactoryObjectFactory] Factory name: persistence.units:jar=tutis.jar,unitName=axaPU 19:54:45,558 INFO [NamingHelper] JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces} 19:54:45,567 INFO [SessionFactoryObjectFactory] Bound factory to JNDI name: persistence.units:jar=tutis.jar,unitName=axaPU 19:54:45,568 WARN [SessionFactoryObjectFactory] InitialContext did not implement EventContext 19:54:45,580 INFO [SchemaExport] Running hbm2ddl schema export 19:54:45,583 INFO [SchemaExport] exporting generated schema to database 19:54:45,738 INFO [SchemaExport] schema export complete 19:54:45,741 INFO [NamingHelper] JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces} 19:54:46,654 INFO [EJBContainer] STARTED EJB: hajde.OsobaTestBean ejbName: OsobaTestBean 19:54:46,852 WARN [QuartzTimerServiceFactory] sql failed: CREATE TABLE qrtz_job_details(JOB_NAME VARCHAR(80) NOT NULL, JOB_GROUP VARCHAR(80) NOT NULL, DESCRIPTION VARCHAR(120) NULL, JOB_CLASS_NAME VARCHAR(128) NOT NULL, IS_DURABLE VARCHAR(1) NOT NULL, IS_VOLATILE VARCHAR(1) NOT NULL, IS_STATEFUL VARCHAR(1) NOT NULL, REQUESTS_RECOVERY VARCHAR(1) NOT NULL, JOB_DATA BINARY NULL, PRIMARY KEY (JOB_NAME,JOB_GROUP)) 19:54:46,928 INFO [SimpleThreadPool] Job execution threads will use class loader of thread: main 19:54:46,931 INFO [QuartzScheduler] Quartz Scheduler v.1.5.2 created. 19:54:46,932 INFO [JobStoreCMT] Using db table-based data access locking (synchronization). 19:54:46,940 INFO [JobStoreCMT] Removed 0 Volatile Trigger(s). 19:54:46,940 INFO [JobStoreCMT] Removed 0 Volatile Job(s). 19:54:46,941 INFO [JobStoreCMT] JobStoreCMT initialized. 19:54:46,941 INFO [StdSchedulerFactory] Quartz scheduler 'JBossEJB3QuartzScheduler' initialized from an externally provided properties instance. 19:54:46,941 INFO [StdSchedulerFactory] Quartz scheduler version: 1.5.2 19:54:46,943 INFO [JobStoreCMT] Freed 0 triggers from 'acquired' / 'blocked' state. 19:54:46,944 INFO [JobStoreCMT] Recovering 0 jobs that were in-progress at the time of the last shut-down. 19:54:46,944 INFO [JobStoreCMT] Recovery complete. 19:54:46,945 INFO [JobStoreCMT] Removed 0 'complete' triggers. 19:54:46,945 INFO [JobStoreCMT] Removed 0 stale fired job entries. 19:54:46,947 INFO [QuartzScheduler] Scheduler JBossEJB3QuartzScheduler_$_NON_CLUSTERED started. 19:54:47,064 INFO [MailService] Mail Service bound to java:/Mail 19:54:47,116 INFO [Http11Protocol] Starting Coyote HTTP/1.1 on http-127.0.0.1-8080 19:54:47,152 INFO [AjpProtocol] Starting Coyote AJP/1.3 on ajp-127.0.0.1-8009 19:54:47,162 INFO [ServerImpl] JBoss (Microcontainer) [5.0.0.Beta4 (build: SVNTag=JBoss_5_0_0_Beta4 date=200802091115)] Started in 44s:312ms 19:55:22,982 INFO [MCKernelAbstraction] uninstalling bean: jboss.j2ee:jar=tutis.jar,name=OsobaTestBean,service=EJB3 19:55:22,992 INFO [EJBContainer] STOPPED EJB: hajde.OsobaTestBean ejbName: OsobaTestBean 19:55:23,018 INFO [MCKernelAbstraction] uninstalling bean: persistence.units:jar=tutis.jar,unitName=axaPU 19:55:23,019 INFO [PersistenceUnitDeployment] Stopping persistence unit persistence.units:jar=tutis.jar,unitName=axaPU 19:55:23,019 INFO [SessionFactoryImpl] closing 19:55:23,019 INFO [SessionFactoryObjectFactory] Unbinding factory from JNDI name: persistence.units:jar=tutis.jar,unitName=axaPU 19:55:23,020 INFO [NamingHelper] JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces} 19:55:23,023 INFO [SessionFactoryObjectFactory] Unbound factory from JNDI name: persistence.units:jar=tutis.jar,unitName=axaPU 19:55:23,024 INFO [SchemaExport] Running hbm2ddl schema export 19:55:23,024 INFO [SchemaExport] exporting generated schema to database 19:55:23,043 INFO [SchemaExport] schema export complete 19:55:28,068 INFO [PersistenceUnitParsingDeployer] Found persistence units [org.jboss.ejb3.metadata.jpa.spec.PersistenceUnitMetaData@5474b4{name=axaPU}] 19:55:28,114 INFO [MCKernelAbstraction] installing bean: persistence.units:jar=tutis.jar,unitName=axaPU with dependencies: 19:55:28,114 INFO [MCKernelAbstraction] and demands: 19:55:28,114 INFO [MCKernelAbstraction] jboss.jca:name=axaDS,service=DataSourceBinding 19:55:28,114 INFO [MCKernelAbstraction] and supplies: 19:55:28,214 INFO [PersistenceUnitDeployment] Starting persistence unit persistence.units:jar=tutis.jar,unitName=axaPU 19:55:28,224 WARN [Ejb3Configuration] Persistence provider caller does not implement the EJB3 spec correctly. PersistenceUnitInfo.getNewTempClassLoader() is null. 19:55:28,226 INFO [AnnotationBinder] Binding entity from annotated class: hajde.Osoba 19:55:28,227 INFO [EntityBinder] Bind entity hajde.Osoba on table osoba 19:55:28,241 INFO [ConnectionProviderFactory] Initializing connection provider: org.hibernate.ejb.connection.InjectedDataSourceConnectionProvider 19:55:28,242 INFO [InjectedDataSourceConnectionProvider] Using provided datasource 19:55:28,242 INFO [SettingsFactory] RDBMS: MySQL, version: 5.0.45-log 19:55:28,242 INFO [SettingsFactory] JDBC driver: MySQL-AB JDBC Driver, version: mysql-connector-java-5.1.5 ( Revision: ${svn.Revision} ) 19:55:28,242 INFO [Dialect] Using dialect: org.hibernate.dialect.MySQLInnoDBDialect 19:55:28,243 INFO [TransactionFactoryFactory] Transaction strategy: org.hibernate.ejb.transaction.JoinableCMTTransactionFactory 19:55:28,243 INFO [TransactionManagerLookupFactory] instantiating TransactionManagerLookup: org.hibernate.transaction.JBossTransactionManagerLookup 19:55:28,244 INFO [TransactionManagerLookupFactory] instantiated TransactionManagerLookup 19:55:28,244 INFO [SettingsFactory] Automatic flush during beforeCompletion(): disabled 19:55:28,244 INFO [SettingsFactory] Automatic session close at end of transaction: disabled 19:55:28,244 INFO [SettingsFactory] JDBC batch size: 15 19:55:28,244 INFO [SettingsFactory] JDBC batch updates for versioned data: disabled 19:55:28,244 INFO [SettingsFactory] Scrollable result sets: enabled 19:55:28,244 INFO [SettingsFactory] JDBC3 getGeneratedKeys(): enabled 19:55:28,244 INFO [SettingsFactory] Connection release mode: auto 19:55:28,244 INFO [SettingsFactory] Maximum outer join fetch depth: 2 19:55:28,244 INFO [SettingsFactory] Default batch fetch size: 1 19:55:28,244 INFO [SettingsFactory] Generate SQL with comments: disabled 19:55:28,244 INFO [SettingsFactory] Order SQL updates by primary key: disabled 19:55:28,244 INFO [SettingsFactory] Order SQL inserts for batching: disabled 19:55:28,244 INFO [SettingsFactory] Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory 19:55:28,245 INFO [ASTQueryTranslatorFactory] Using ASTQueryTranslatorFactory 19:55:28,245 INFO [SettingsFactory] Query language substitutions: {} 19:55:28,245 INFO [SettingsFactory] JPA-QL strict compliance: enabled 19:55:28,245 INFO [SettingsFactory] Second-level cache: enabled 19:55:28,245 INFO [SettingsFactory] Query cache: disabled 19:55:28,245 INFO [SettingsFactory] Cache provider: org.hibernate.cache.HashtableCacheProvider 19:55:28,245 INFO [SettingsFactory] Optimize cache for minimal puts: disabled 19:55:28,245 INFO [SettingsFactory] Cache region prefix: tutis_jar,axaPU 19:55:28,245 INFO [SettingsFactory] Structured second-level cache entries: disabled 19:55:28,245 INFO [SettingsFactory] Statistics: disabled 19:55:28,245 INFO [SettingsFactory] Deleted entity synthetic identifier rollback: disabled 19:55:28,246 INFO [SettingsFactory] Default entity-mode: pojo 19:55:28,246 INFO [SettingsFactory] Named query checking : enabled 19:55:28,251 INFO [SessionFactoryImpl] building session factory 19:55:28,262 INFO [SessionFactoryObjectFactory] Factory name: persistence.units:jar=tutis.jar,unitName=axaPU 19:55:28,262 INFO [NamingHelper] JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces} 19:55:28,279 INFO [SessionFactoryObjectFactory] Bound factory to JNDI name: persistence.units:jar=tutis.jar,unitName=axaPU 19:55:28,280 WARN [SessionFactoryObjectFactory] InitialContext did not implement EventContext 19:55:28,283 INFO [SchemaExport] Running hbm2ddl schema export 19:55:28,284 INFO [SchemaExport] exporting generated schema to database 19:55:28,307 INFO [SchemaExport] schema export complete 19:55:28,310 INFO [NamingHelper] JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces} 19:55:28,312 INFO [MCKernelAbstraction] installing bean: jboss.j2ee:jar=tutis.jar,name=OsobaTestBean,service=EJB3 with dependencies: 19:55:28,312 INFO [MCKernelAbstraction] and demands: 19:55:28,312 INFO [MCKernelAbstraction] jboss.ejb:service=EJBTimerService 19:55:28,312 INFO [MCKernelAbstraction] persistence.units:jar=tutis.jar,unitName=axaPU 19:55:28,312 INFO [MCKernelAbstraction] and supplies: 19:55:28,312 INFO [MCKernelAbstraction] Class:hajde.OsobaTestBeanLocal 19:55:28,312 INFO [MCKernelAbstraction] Class:hajde.OsobaTestBeanRemote 19:55:29,008 INFO [EJBContainer] STARTED EJB: hajde.OsobaTestBean ejbName: OsobaTestBean 20:04:39,763 INFO [MCKernelAbstraction] uninstalling bean: jboss.j2ee:jar=tutis.jar,name=OsobaTestBean,service=EJB3 20:04:39,768 INFO [EJBContainer] STOPPED EJB: hajde.OsobaTestBean ejbName: OsobaTestBean 20:04:39,772 INFO [MCKernelAbstraction] uninstalling bean: persistence.units:jar=tutis.jar,unitName=axaPU 20:04:39,772 INFO [PersistenceUnitDeployment] Stopping persistence unit persistence.units:jar=tutis.jar,unitName=axaPU 20:04:39,772 INFO [SessionFactoryImpl] closing 20:04:39,772 INFO [SessionFactoryObjectFactory] Unbinding factory from JNDI name: persistence.units:jar=tutis.jar,unitName=axaPU 20:04:39,772 INFO [NamingHelper] JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces} 20:04:39,773 INFO [SessionFactoryObjectFactory] Unbound factory from JNDI name: persistence.units:jar=tutis.jar,unitName=axaPU 20:04:39,773 INFO [SchemaExport] Running hbm2ddl schema export 20:04:39,773 INFO [SchemaExport] exporting generated schema to database 20:04:39,779 INFO [SchemaExport] schema export complete 20:04:44,798 INFO [PersistenceUnitParsingDeployer] Found persistence units [org.jboss.ejb3.metadata.jpa.spec.PersistenceUnitMetaData@1771302{name=axaPU}] 20:04:44,832 INFO [MCKernelAbstraction] installing bean: persistence.units:jar=tutis.jar,unitName=axaPU with dependencies: 20:04:44,832 INFO [MCKernelAbstraction] and demands: 20:04:44,832 INFO [MCKernelAbstraction] jboss.jca:name=axaDS,service=DataSourceBinding 20:04:44,832 INFO [MCKernelAbstraction] and supplies: 20:04:44,933 INFO [PersistenceUnitDeployment] Starting persistence unit persistence.units:jar=tutis.jar,unitName=axaPU 20:04:44,936 WARN [Ejb3Configuration] Persistence provider caller does not implement the EJB3 spec correctly. PersistenceUnitInfo.getNewTempClassLoader() is null. 20:04:44,939 INFO [AnnotationBinder] Binding entity from annotated class: hajde.Osoba 20:04:44,939 INFO [EntityBinder] Bind entity hajde.Osoba on table osoba 20:04:44,963 INFO [ConnectionProviderFactory] Initializing connection provider: org.hibernate.ejb.connection.InjectedDataSourceConnectionProvider 20:04:44,963 INFO [InjectedDataSourceConnectionProvider] Using provided datasource 20:04:44,963 INFO [SettingsFactory] RDBMS: MySQL, version: 5.0.45-log 20:04:44,963 INFO [SettingsFactory] JDBC driver: MySQL-AB JDBC Driver, version: mysql-connector-java-5.1.5 ( Revision: ${svn.Revision} ) 20:04:44,964 INFO [Dialect] Using dialect: org.hibernate.dialect.MySQLInnoDBDialect 20:04:44,964 INFO [TransactionFactoryFactory] Transaction strategy: org.hibernate.ejb.transaction.JoinableCMTTransactionFactory 20:04:44,964 INFO [TransactionManagerLookupFactory] instantiating TransactionManagerLookup: org.hibernate.transaction.JBossTransactionManagerLookup 20:04:44,964 INFO [TransactionManagerLookupFactory] instantiated TransactionManagerLookup 20:04:44,965 INFO [SettingsFactory] Automatic flush during beforeCompletion(): disabled 20:04:44,965 INFO [SettingsFactory] Automatic session close at end of transaction: disabled 20:04:44,965 INFO [SettingsFactory] JDBC batch size: 15 20:04:44,965 INFO [SettingsFactory] JDBC batch updates for versioned data: disabled 20:04:44,965 INFO [SettingsFactory] Scrollable result sets: enabled 20:04:44,965 INFO [SettingsFactory] JDBC3 getGeneratedKeys(): enabled 20:04:44,965 INFO [SettingsFactory] Connection release mode: auto 20:04:44,965 INFO [SettingsFactory] Maximum outer join fetch depth: 2 20:04:44,965 INFO [SettingsFactory] Default batch fetch size: 1 20:04:44,965 INFO [SettingsFactory] Generate SQL with comments: disabled 20:04:44,965 INFO [SettingsFactory] Order SQL updates by primary key: disabled 20:04:44,965 INFO [SettingsFactory] Order SQL inserts for batching: disabled 20:04:44,965 INFO [SettingsFactory] Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory 20:04:44,965 INFO [ASTQueryTranslatorFactory] Using ASTQueryTranslatorFactory 20:04:44,965 INFO [SettingsFactory] Query language substitutions: {} 20:04:44,965 INFO [SettingsFactory] JPA-QL strict compliance: enabled 20:04:44,966 INFO [SettingsFactory] Second-level cache: enabled 20:04:44,966 INFO [SettingsFactory] Query cache: disabled 20:04:44,966 INFO [SettingsFactory] Cache provider: org.hibernate.cache.HashtableCacheProvider 20:04:44,966 INFO [SettingsFactory] Optimize cache for minimal puts: disabled 20:04:44,966 INFO [SettingsFactory] Cache region prefix: tutis_jar,axaPU 20:04:44,966 INFO [SettingsFactory] Structured second-level cache entries: disabled 20:04:44,966 INFO [SettingsFactory] Statistics: disabled 20:04:44,966 INFO [SettingsFactory] Deleted entity synthetic identifier rollback: disabled 20:04:44,966 INFO [SettingsFactory] Default entity-mode: pojo 20:04:44,966 INFO [SettingsFactory] Named query checking : enabled 20:04:44,970 INFO [SessionFactoryImpl] building session factory 20:04:44,977 INFO [SessionFactoryObjectFactory] Factory name: persistence.units:jar=tutis.jar,unitName=axaPU 20:04:44,977 INFO [NamingHelper] JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces} 20:04:44,985 INFO [SessionFactoryObjectFactory] Bound factory to JNDI name: persistence.units:jar=tutis.jar,unitName=axaPU 20:04:44,986 WARN [SessionFactoryObjectFactory] InitialContext did not implement EventContext 20:04:44,990 INFO [SchemaExport] Running hbm2ddl schema export 20:04:44,991 INFO [SchemaExport] exporting generated schema to database 20:04:45,004 INFO [SchemaExport] schema export complete 20:04:45,008 INFO [NamingHelper] JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces} 20:04:45,011 INFO [MCKernelAbstraction] installing bean: jboss.j2ee:jar=tutis.jar,name=OsobaTestBean,service=EJB3 with dependencies: 20:04:45,011 INFO [MCKernelAbstraction] and demands: 20:04:45,011 INFO [MCKernelAbstraction] jboss.ejb:service=EJBTimerService 20:04:45,011 INFO [MCKernelAbstraction] persistence.units:jar=tutis.jar,unitName=axaPU 20:04:45,011 INFO [MCKernelAbstraction] and supplies: 20:04:45,011 INFO [MCKernelAbstraction] Class:hajde.OsobaTestBeanLocal 20:04:45,011 INFO [MCKernelAbstraction] Class:hajde.OsobaTestBeanRemote 20:04:45,705 INFO [EJBContainer] STARTED EJB: hajde.OsobaTestBean ejbName: OsobaTestBean 20:44:58,631 INFO [MCKernelAbstraction] uninstalling bean: jboss.j2ee:jar=tutis.jar,name=OsobaTestBean,service=EJB3 20:44:58,635 INFO [EJBContainer] STOPPED EJB: hajde.OsobaTestBean ejbName: OsobaTestBean 20:44:58,638 INFO [MCKernelAbstraction] uninstalling bean: persistence.units:jar=tutis.jar,unitName=axaPU 20:44:58,638 INFO [PersistenceUnitDeployment] Stopping persistence unit persistence.units:jar=tutis.jar,unitName=axaPU 20:44:58,638 INFO [SessionFactoryImpl] closing 20:44:58,638 INFO [SessionFactoryObjectFactory] Unbinding factory from JNDI name: persistence.units:jar=tutis.jar,unitName=axaPU 20:44:58,638 INFO [NamingHelper] JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces} 20:44:58,639 INFO [SessionFactoryObjectFactory] Unbound factory from JNDI name: persistence.units:jar=tutis.jar,unitName=axaPU 20:44:58,639 INFO [SchemaExport] Running hbm2ddl schema export 20:44:58,639 INFO [SchemaExport] exporting generated schema to database 20:44:58,762 INFO [SchemaExport] schema export complete 20:44:58,773 INFO [PersistenceUnitParsingDeployer] Found persistence units [org.jboss.ejb3.metadata.jpa.spec.PersistenceUnitMetaData@11353a7{name=axaPU}] 20:44:58,832 INFO [MCKernelAbstraction] installing bean: persistence.units:jar=tutis.jar,unitName=axaPU with dependencies: 20:44:58,832 INFO [MCKernelAbstraction] and demands: 20:44:58,832 INFO [MCKernelAbstraction] jboss.jca:name=axaDS,service=DataSourceBinding 20:44:58,832 INFO [MCKernelAbstraction] and supplies: 20:44:58,979 INFO [PersistenceUnitDeployment] Starting persistence unit persistence.units:jar=tutis.jar,unitName=axaPU 20:44:58,982 WARN [Ejb3Configuration] Persistence provider caller does not implement the EJB3 spec correctly. PersistenceUnitInfo.getNewTempClassLoader() is null. 20:44:58,984 INFO [AnnotationBinder] Binding entity from annotated class: hajde.Osoba 20:44:58,984 INFO [EntityBinder] Bind entity hajde.Osoba on table osoba 20:44:59,007 INFO [ConnectionProviderFactory] Initializing connection provider: org.hibernate.ejb.connection.InjectedDataSourceConnectionProvider 20:44:59,008 INFO [InjectedDataSourceConnectionProvider] Using provided datasource 20:44:59,008 INFO [SettingsFactory] RDBMS: MySQL, version: 5.0.45-log 20:44:59,008 INFO [SettingsFactory] JDBC driver: MySQL-AB JDBC Driver, version: mysql-connector-java-5.1.5 ( Revision: ${svn.Revision} ) 20:44:59,009 INFO [Dialect] Using dialect: org.hibernate.dialect.MySQLInnoDBDialect 20:44:59,009 INFO [TransactionFactoryFactory] Transaction strategy: org.hibernate.ejb.transaction.JoinableCMTTransactionFactory 20:44:59,009 INFO [TransactionManagerLookupFactory] instantiating TransactionManagerLookup: org.hibernate.transaction.JBossTransactionManagerLookup 20:44:59,010 INFO [TransactionManagerLookupFactory] instantiated TransactionManagerLookup 20:44:59,010 INFO [SettingsFactory] Automatic flush during beforeCompletion(): disabled 20:44:59,010 INFO [SettingsFactory] Automatic session close at end of transaction: disabled 20:44:59,010 INFO [SettingsFactory] JDBC batch size: 15 20:44:59,010 INFO [SettingsFactory] JDBC batch updates for versioned data: disabled 20:44:59,010 INFO [SettingsFactory] Scrollable result sets: enabled 20:44:59,010 INFO [SettingsFactory] JDBC3 getGeneratedKeys(): enabled 20:44:59,010 INFO [SettingsFactory] Connection release mode: auto 20:44:59,010 INFO [SettingsFactory] Maximum outer join fetch depth: 2 20:44:59,010 INFO [SettingsFactory] Default batch fetch size: 1 20:44:59,010 INFO [SettingsFactory] Generate SQL with comments: disabled 20:44:59,010 INFO [SettingsFactory] Order SQL updates by primary key: disabled 20:44:59,010 INFO [SettingsFactory] Order SQL inserts for batching: disabled 20:44:59,010 INFO [SettingsFactory] Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory 20:44:59,010 INFO [ASTQueryTranslatorFactory] Using ASTQueryTranslatorFactory 20:44:59,010 INFO [SettingsFactory] Query language substitutions: {} 20:44:59,010 INFO [SettingsFactory] JPA-QL strict compliance: enabled 20:44:59,010 INFO [SettingsFactory] Second-level cache: enabled 20:44:59,010 INFO [SettingsFactory] Query cache: disabled 20:44:59,010 INFO [SettingsFactory] Cache provider: org.hibernate.cache.HashtableCacheProvider 20:44:59,011 INFO [SettingsFactory] Optimize cache for minimal puts: disabled 20:44:59,011 INFO [SettingsFactory] Cache region prefix: tutis_jar,axaPU 20:44:59,011 INFO [SettingsFactory] Structured second-level cache entries: disabled 20:44:59,011 INFO [SettingsFactory] Statistics: disabled 20:44:59,011 INFO [SettingsFactory] Deleted entity synthetic identifier rollback: disabled 20:44:59,011 INFO [SettingsFactory] Default entity-mode: pojo 20:44:59,011 INFO [SettingsFactory] Named query checking : enabled 20:44:59,017 INFO [SessionFactoryImpl] building session factory 20:44:59,029 INFO [SessionFactoryObjectFactory] Factory name: persistence.units:jar=tutis.jar,unitName=axaPU 20:44:59,029 INFO [NamingHelper] JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces} 20:44:59,078 INFO [SessionFactoryObjectFactory] Bound factory to JNDI name: persistence.units:jar=tutis.jar,unitName=axaPU 20:44:59,078 WARN [SessionFactoryObjectFactory] InitialContext did not implement EventContext 20:44:59,083 INFO [SchemaExport] Running hbm2ddl schema export 20:44:59,084 INFO [SchemaExport] exporting generated schema to database 20:44:59,110 INFO [SchemaExport] schema export complete 20:44:59,114 INFO [NamingHelper] JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces} 20:44:59,116 INFO [MCKernelAbstraction] installing bean: jboss.j2ee:jar=tutis.jar,name=OsobaTestBean,service=EJB3 with dependencies: 20:44:59,116 INFO [MCKernelAbstraction] and demands: 20:44:59,116 INFO [MCKernelAbstraction] jboss.ejb:service=EJBTimerService 20:44:59,116 INFO [MCKernelAbstraction] persistence.units:jar=tutis.jar,unitName=axaPU 20:44:59,116 INFO [MCKernelAbstraction] and supplies: 20:44:59,116 INFO [MCKernelAbstraction] Class:hajde.OsobaTestBeanLocal 20:44:59,116 INFO [MCKernelAbstraction] Class:hajde.OsobaTestBeanRemote 20:44:59,862 INFO [EJBContainer] STARTED EJB: hajde.OsobaTestBean ejbName: OsobaTestBean medjutim, prilikom pokretanja Clienta dobijam sledecu gresku: Code: javax.naming.CommunicationException [Root exception is java.io.InvalidClassException: org.jboss.ejb3.session.BaseSessionRemoteProxy; local class incompatible: stream classdesc serialVersionUID = 8310915813626447181, local class serialVersionUID = 2609262789016232311] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:725) at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:590) at javax.naming.InitialContext.lookup(Unknown Source) at test.TutisClient.main(TutisClient.java:37) Caused by: java.io.InvalidClassException: org.jboss.ejb3.session.BaseSessionRemoteProxy; local class incompatible: stream classdesc serialVersionUID = 8310915813626447181, local class serialVersionUID = 2609262789016232311 at java.io.ObjectStreamClass.initNonProxy(Unknown Source) at java.io.ObjectInputStream.readNonProxyDesc(Unknown Source) at java.io.ObjectInputStream.readClassDesc(Unknown Source) at java.io.ObjectInputStream.readNonProxyDesc(Unknown Source) at java.io.ObjectInputStream.readClassDesc(Unknown Source) at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source) at java.io.ObjectInputStream.readObject0(Unknown Source) at java.io.ObjectInputStream.defaultReadFields(Unknown Source) at java.io.ObjectInputStream.readSerialData(Unknown Source) at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source) at java.io.ObjectInputStream.readObject0(Unknown Source) at java.io.ObjectInputStream.readObject(Unknown Source) at java.rmi.MarshalledObject.get(Unknown Source) at org.jnp.interfaces.MarshalledValuePair.get(MarshalledValuePair.java:72) at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:655) ... 3 more Trazio sam na netu u cemu je problem i zaista nisam uspeo. Ukoliko neko vidi o cemu se radi, zamolio bih ga da mi pomogne. |