[EJB 3.0] - Re: Deploy Problem
by jokim1979
the output is the next one:
************** System Properties ****************
-- listing properties --
java.runtime.name=Java(TM) SE Runtime Environment
sun.boot.library.path=C:\Program Files\Java\jdk1.6.0\jre\bin
java.vm.version=1.6.0-b105
java.vm.vendor=Sun Microsystems Inc.
java.vendor.url=http://java.sun.com/
path.separator=;
java.vm.name=Java HotSpot(TM) Client VM
file.encoding.pkg=sun.io
user.country=ES
sun.java.launcher=SUN_STANDARD
sun.os.patch.level=Service Pack 2
java.vm.specification.name=Java Virtual Machine Specification
user.dir=C:\CS
java.runtime.version=1.6.0-b105
java.awt.graphicsenv=sun.awt.Win32GraphicsEnvironment
java.endorsed.dirs=C:\Program Files\Java\jdk1.6.0\jre\li...
os.arch=x86
java.io.tmpdir=C:\DOCUME~1\JOAQUN~1\LOCALS~1\Temp\
line.separator=
java.vm.specification.vendor=Sun Microsystems Inc.
user.variant=
java.naming.factory.url.pkgs=org.jboss.naming.client
os.name=Windows XP
sun.jnu.encoding=Cp1252
java.library.path=C:\Program Files\Java\jdk1.6.0\jre\bi...
java.specification.name=Java Platform API Specification
java.class.version=50.0
java.naming.provider.url=jnp://localhost:1099
sun.management.compiler=HotSpot Client Compiler
os.version=5.1
user.home=C:\Documents and Settings\JoaquÃn de ...
user.timezone=
java.awt.printerjob=sun.awt.windows.WPrinterJob
file.encoding=Cp1252
java.specification.version=1.6
user.name=JoaquÃn de Vicente
java.class.path=C:\CS\CS-ejb\dist\CS-ejb.jar;C:\CS\CS...
java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
java.vm.specification.version=1.0
sun.arch.data.model=32
java.home=C:\Program Files\Java\jdk1.6.0\jre
java.specification.vendor=Sun Microsystems Inc.
user.language=es
awt.toolkit=sun.awt.windows.WToolkit
java.vm.info=mixed mode, sharing
java.version=1.6.0
java.ext.dirs=C:\Program Files\Java\jdk1.6.0\jre\li...
j2ee.clientName=CS-app-client
sun.boot.class.path=C:\Program Files\Java\jdk1.6.0\jre\li...
java.vendor=Sun Microsystems Inc.
file.separator=\
java.vendor.url.bug=http://java.sun.com/cgi-bin/bugreport...
sun.cpu.endian=little
sun.io.unicode.encoding=UnicodeLittle
sun.desktop=windows
sun.cpu.isalist=pentium_pro+mmx pentium_pro pentium+m...
************** System Properties ****************
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4127749#4127749
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4127749
18 years, 2 months
[EJB 3.0] - TopLink with Jboss 4.2.1 not working?
by tsirel84
I'm stuck with the problem described in this forum thread:
http://www.jboss.com/index.html?module=bb&op=viewtopic&t=128533
and decided to try toplink instead of hibernate to see whether it is hibernate problem.
But when I'm using toplink
1) if I'm not specifying toplink.target-server property like this:
<?xml version="1.0" encoding="UTF-8"?>
| <persistence xmlns="http://java.sun.com/xml/ns/persistence">
| <persistence-unit name="first">
| <provider>oracle.toplink.essentials.PersistenceProvider</provider>
| <jta-data-source>java:/TestEJB3DS</jta-data-source>
| <properties>
| <!--<property name="toplink.target-server" value="oracle.toplink.essentials.platform.server.jboss.JBossPlatform"/>-->
| <property name="toplink.ddl-generation" value="drop-and-create-tables"/>
| </properties>
| </persistence-unit>
| </persistence>
all entities fails to deploy with such messages:
13:14:14,143 INFO [STDOUT] [TopLink Warning]: 2008.02.08 01:14:14.143--java.lang.NullPointerException: null was thrown on attempt of PersistenceLoadProcessor to load class com.gemini.test.ejb.entity.relationship.Course. The class is ignored.
2) and if I'm adding this property:
<?xml version="1.0" encoding="UTF-8"?>
| <persistence xmlns="http://java.sun.com/xml/ns/persistence">
| <persistence-unit name="first">
| <provider>oracle.toplink.essentials.PersistenceProvider</provider>
| <jta-data-source>java:/TestEJB3DS</jta-data-source>
| <properties>
| <property name="toplink.target-server" value="oracle.toplink.essentials.platform.server.jboss.JBossPlatform"/>
| <property name="toplink.ddl-generation" value="drop-and-create-tables"/>
| </properties>
| </persistence-unit>
| </persistence>
deployment fails with:
|
| 13:25:08,617 WARN [ServiceController] Problem starting service persistence.units:ear=javaEEApplication.ear,jar=EJB.jar,unitName=first
| javax.persistence.PersistenceException: Exception [TOPLINK-28018] (Oracle TopLink Essentials - 2.0 (Build b41-beta2 (03/30/2007))): oracle.toplink.essentials.exceptions.EntityManagerSetupException
| Exception Description: predeploy for PersistenceUnit [first] failed.
| Internal Exception: java.lang.NullPointerException
| at oracle.toplink.essentials.internal.ejb.cmp3.EntityManagerSetupImpl.predeploy(EntityManagerSetupImpl.java:615)
| at oracle.toplink.essentials.ejb.cmp3.EntityManagerFactoryProvider.createContainerEntityManagerFactory(EntityManagerFactoryProvider.java:178)
| at org.jboss.ejb3.entity.PersistenceUnitDeployment.start(PersistenceUnitDeployment.java:247)
Any ideas?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4127742#4127742
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4127742
18 years, 2 months
[JBoss Seam] - Re: Problem stateful beans sharing properties
by markauro
Thanks dexjam,
yes, i just tried renaming the @Datamodel variable, and it works, seam create a different instance, but i have to rename all the bean variables so each bean has different properties names... what is supposed i need to do if i've so many pages that make searchs of different things, i would rename all the properties in each action-bean... but they do the same action, this doesn't seems to be a pretty way.
I think nobody has this problem because all the posts i have seen talk about the opposite problem, people trying to share a variable between stateful/stateles beans, like if you put it directly into the session and then you retrieve form another action-bean...
ok, i have the answer !! its inside my application :-)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4127736#4127736
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4127736
18 years, 2 months