Problems using XMLBeans (xsi:type missing)
Hello, I created a webservice (from wsdl) using XMLBeans binding. Short before finishing the project I run into a problem with the XML binding. The wsdl describes some abstract complex_types and specific elements in a different namespace. When using XMLBeans the xsi:type is suppressed. E.g. when creating a query like this QueryDocument query = QueryDocument.Factory.newInstance(); QueryParameter par = query.addNewQuery(); ExplicitItemQuery start = ExplicitItemQuery.Factory.newInstance(); start.setName( test ); par.setQuery( start ); the resulting xml is query xmlns=urn:space.eads.net/ssrm/services/parameter xmlns:spec=urn:space.eads.net/ssrm/services/specificQuery query spec:nametest/spec:name /query /query Using the equivalent ADB code results in ns4:query xmlns:ns4=urn:space.eads.net/ssrm/services/parameter ns4:query xmlns:ns6=urn:space.eads.net/ssrm/services/specificQuery xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:type=ns6:Explicit_item_query ns6:nametest/ns6:name /ns4:query /ns4:query where the xsi:type contains the right type. Is there a way to persuade XMLBeans to use the xsi:type ? A change from XMLBeans to ADB would take some time ... Bye, Carsten ___ Dr.-Ing. Carsten Zerbst PROSTEP ITS GmbH Hein-Saß-Weg 19, D-21129 Hamburg Tel: +49 40 209 1608 12 Mobil: +49 178 950 9468 E-Mail: [EMAIL PROTECTED] http://www.prostep.com PROSTEP ITS GmbH, Dolivostr.11, D-64293 Darmstadt HR: Amtsgericht Darmstadt, HRB 8805 Geschäftsführung: Dr. Markus Sachers, Reinhard Betz - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: Using Graphics2D in Axis2 Handler
Hello, perhaps your problem is completly different. If you run java.awt.* things with a headless server context, you need to tell awt that there is no display to attach to. Try setting the java system environment java.awt.headless to true on the server side, e.g. by modifiying the start script to contain java -cp ... -Djava.awt.headless=true Bye, Carsten PROSTEP ITS GmbH, Dolivostr.11, D-64293 Darmstadt HR: Amtsgericht Darmstadt, HRB 8805 Geschäftsführung: Dr. Markus Sachers, Reinhard Betz - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Access my server url with skeleton
Hello, how on earth ( especially within Axis2) could I access the url of the server within the skeleton code ? Thanks, Carsten ___ Dr.-Ing. Carsten Zerbst PROSTEP ITS GmbH Hein-Saß-Weg 19, D-21129 Hamburg Tel: +49 40 209 1608 12 Mobil: +49 178 950 9468 E-Mail: [EMAIL PROTECTED] http://www.prostep.com PROSTEP ITS GmbH, Dolivostr.11, D-64293 Darmstadt HR: Amtsgericht Darmstadt, HRB 8805 Geschäftsführung: Dr. Markus Sachers, Reinhard Betz - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
axis / hibernate woes
Hello, I'm trying to persist some objects using hibernate in an axis2 context but fail terribly. The setup using the config.xml works outside of axis2, I load hibernate.cfg.xml from the jar (this seems to work) and loading of the mapping files works as well. But in the initialisation of the SessionFactory I get an java.lang.ExceptionInInitializerError error Could someone give me hint what is going wrong here ? Thanks, Carsten LOG: 03.08.2007 17:36:34 org.hibernate.cfg.Environment clinit INFO: Hibernate 3.2.5 03.08.2007 17:36:34 org.hibernate.cfg.Environment clinit INFO: hibernate.properties not found 03.08.2007 17:36:34 org.hibernate.cfg.Environment buildBytecodeProvider INFO: Bytecode provider name : cglib 03.08.2007 17:36:34 org.hibernate.cfg.Environment clinit INFO: using JDK 1.4 java.sql.Timestamp handling 03.08.2007 17:36:34 org.hibernate.cfg.Configuration configure INFO: configuring from url: jar:file:/C:/Dokumente und Einstellungen/zerbst.PSAD/.netbeans/5.5/apache-tomcat-5.5.17_base/work/Catalina/localhost/axis2/axis212941SSRMServices2.aar!/net/eads/space/ssrm/model/persistence/hibernate.cfg.xml 03.08.2007 17:36:35 org.hibernate.cfg.Configuration addResource INFO: Reading mappings from resource : net/eads/space/ssrm/model/persistence/ElementDefinitionDB.hbm.xml 03.08.2007 17:36:35 org.hibernate.cfg.HbmBinder bindRootPersistentClassCommonValues INFO: Mapping class: net.eads.space.ssrm.model.persistence.ElementDefinitionDB - ElementDefinition 03.08.2007 17:36:35 org.hibernate.cfg.HbmBinder bindCollection INFO: Mapping collection: net.eads.space.ssrm.model.persistence.ElementDefinitionDB.listContainedElements - ElementDefinitionContainedElements 03.08.2007 17:36:35 org.hibernate.cfg.Configuration addResource INFO: Reading mappings from resource : net/eads/space/ssrm/model/persistence/ElementOccurenceDB.hbm.xml 03.08.2007 17:36:35 org.hibernate.cfg.HbmBinder bindRootPersistentClassCommonValues INFO: Mapping class: net.eads.space.ssrm.model.persistence.ElementOccurenceDB - ElementOccurence 03.08.2007 17:36:35 org.hibernate.cfg.Configuration addResource INFO: Reading mappings from resource : net/eads/space/ssrm/model/persistence/ElementUsageDB.hbm.xml 03.08.2007 17:36:35 org.hibernate.cfg.HbmBinder bindRootPersistentClassCommonValues INFO: Mapping class: net.eads.space.ssrm.model.persistence.ElementUsageDB - ElementUsage 03.08.2007 17:36:35 org.hibernate.cfg.Configuration doConfigure INFO: Configured SessionFactory: null ... displaying many default settings INFO: Deleted entity synthetic identifier rollback: disabled 03.08.2007 17:36:36 org.hibernate.cfg.SettingsFactory buildSettings INFO: Default entity-mode: pojo 03.08.2007 17:36:36 org.hibernate.cfg.SettingsFactory buildSettings INFO: Named query checking : enabled 03.08.2007 17:36:36 org.hibernate.impl.SessionFactoryImpl init INFO: building session factory Initial SessionFactory creation failed.java.lang.ExceptionInInitializerError 03.08.2007 17:36:36 org.apache.axis2.transport.http.AxisServlet doPost SCHWERWIEGEND: java.lang.ExceptionInInitializerError ___ Dr.-Ing. Carsten Zerbst PROSTEP ITS GmbH Hein-Saß-Weg 19, D-21129 Hamburg Tel: +49 40 209 1608 12 Mobil: +49 178 950 9468 E-Mail: [EMAIL PROTECTED] http://www.prostep.com PROSTEP ITS GmbH, Dolivostr.11, D-64293 Darmstadt HR: Amtsgericht Darmstadt, HRB 8805 Geschäftsführung: Dr. Markus Sachers, Reinhard Betz - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: AW: axis / hibernate woes
Hello Tammy, when I put the complete set of hibernate jars into the Axis2/WEB-INF/lib, then hibernate is not able to access my mapping descriptions located in the aar. This could be resolved by putting my application itself into Axis2/WEB-INF/lib and then everything works (alas). But IHMO there must be a sane solution to have hibernate and my application and my mappings files in the aar and not distributed around the Axis2/WEB-INF/lib and Axis2/WEB-INF/classes ? Thanks so far, Carsten PROSTEP ITS GmbH, Dolivostr.11, D-64293 Darmstadt HR: Amtsgericht Darmstadt, HRB 8805 Geschäftsführung: Dr. Markus Sachers, Reinhard Betz - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: axis / hibernate woes
Hello, I enhanced the error report, the real cause is 2007-08-03 17:59:08,455 ERROR net.eads.space.ssrm.model.persistence.HibernateUtil - Initial SessionFactory creation failed. java.lang.ExceptionInInitializerError at org.hibernate.proxy.pojo.cglib.CGLIBLazyInitializer.getProxyFactory(CGLIBLazyInitializer.java:117) at org.hibernate.proxy.pojo.cglib.CGLIBProxyFactory.postInstantiate(CGLIBProxyFactory.java:43) at org.hibernate.tuple.entity.PojoEntityTuplizer.buildProxyFactory(PojoEntityTuplizer.java:162) at org.hibernate.tuple.entity.AbstractEntityTuplizer.init(AbstractEntityTuplizer.java:135) at org.hibernate.tuple.entity.PojoEntityTuplizer.init(PojoEntityTuplizer.java:55) at org.hibernate.tuple.entity.EntityEntityModeToTuplizerMapping.init(EntityEntityModeToTuplizerMapping.java:56) at org.hibernate.tuple.entity.EntityMetamodel.init(EntityMetamodel.java:295) at org.hibernate.persister.entity.AbstractEntityPersister.init(AbstractEntityPersister.java:434) at org.hibernate.persister.entity.SingleTableEntityPersister.init(SingleTableEntityPersister.java:109) at org.hibernate.persister.PersisterFactory.createClassPersister(PersisterFactory.java:55) at org.hibernate.impl.SessionFactoryImpl.init(SessionFactoryImpl.java:226) at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1294) at net.eads.space.ssrm.model.persistence.HibernateUtil.clinit(HibernateUtil.java:24) Caused by: java.lang.RuntimeException: java.lang.ClassNotFoundException: Class Not found : net.sf.cglib.proxy.Enhancer$EnhancerKey$$KeyFactoryByCGLIB$$7fb24d72 at org.apache.axis2.deployment.DeploymentClassLoader.findClass(DeploymentClassLoader.java:88) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at net.sf.cglib.core.AbstractClassGenerator.create(AbstractClassGenerator.java:210) at net.sf.cglib.core.KeyFactory$Generator.create(KeyFactory.java:145) at net.sf.cglib.core.KeyFactory.create(KeyFactory.java:117) at net.sf.cglib.core.KeyFactory.create(KeyFactory.java:108) at net.sf.cglib.core.KeyFactory.create(KeyFactory.java:104) at net.sf.cglib.proxy.Enhancer.clinit(Enhancer.java:69) ... 38 more Caused by: java.lang.ClassNotFoundException: Class Not found : net.sf.cglib.proxy.Enhancer$EnhancerKey$$KeyFactoryByCGLIB$$7fb24d72 The cglib is in the /lib directory of my aar, alongside the hibernate and other libraries. What is going wrong in the axis2 environment ? Thanks, Carsten PROSTEP ITS GmbH, Dolivostr.11, D-64293 Darmstadt HR: Amtsgericht Darmstadt, HRB 8805 Geschäftsführung: Dr. Markus Sachers, Reinhard Betz - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]