[JBoss Seam] - Problem with running Seam Web Project using eclipse plugin
by slaug
Hi,
I get the following problem:
anonymous wrote : [NamingHelper] JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces}
| 11:39:02,250 FATAL [DatasourceConnectionProvider] Could not find datasource: java:/StorageWebDatasource
| javax.naming.NameNotFoundException: StorageWebDatasource not bound
My hibernate-console.properties looks like this:
anonymous wrote : #File used by hibernate tools to override and other container specific settings in persistence.xml
| hibernate.connection.password=test
| hibernate.connection.username=test
| hibernate.connection.driver_class=com.mysql.jdbc.Driver
| hibernate.dialect=org.hibernate.dialect.MySQLDialect
| hibernate.connection.url=jdbc:mysql://localhost:3306/test
|
| hibernate.connection.provider_class org.hibernate.connection.DriverManagerConnectionProvider
| hibernate.datasource=
| hibernate.transaction.factory_class=
| hibernate.transaction.manager_lookup_class=
I'm using:
jboss-4.2.0.GA server,
Eclipse 3.3.1.1
JBossTools Core 2.0.0.beta4 plugin
SeamTools Feature 2.0.0.beta4 plugin
What am I missing. Can anyone help?
Thanks in advance.
P.S. Is there any web which tells how Seam project should be created using Eclipse SeamTools? What configuration, etc.
Regards,
Daniel
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4103466#4103466
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4103466
18 years, 8 months
[JBoss Seam] - Re: Error using Eclipse Hibernate Tools for JPA after greati
by shivdeepk
This is my environment:
Environment:
Seam 2.0.0.GA
| JBoss Tools 2.0.0.beta4
| JBoss 4.2.1.GA
| Eclipse Platform Version: 3.3.0 Build id: M20070921-1145
| Linux (Ubuntu Gutsy)
| Postgresql 8.2
Exception:
org.hibernate.console.HibernateConsoleRuntimeException: Could not load JPA Configuration
| at org.hibernate.console.ConsoleConfiguration.buildConfiguration(ConsoleConfiguration.java:499)
| at org.hibernate.console.ConsoleConfiguration.access$0(ConsoleConfiguration.java:484)
| at org.hibernate.console.ConsoleConfiguration$2.execute(ConsoleConfiguration.java:203)
| at org.hibernate.console.execution.DefaultExecutionContext.execute(DefaultExecutionContext.java:65)
| at org.hibernate.console.ConsoleConfiguration.buildWith(ConsoleConfiguration.java:185)
| at org.hibernate.console.ConsoleConfiguration.build(ConsoleConfiguration.java:106)
| at org.hibernate.eclipse.console.workbench.ConsoleConfigurationWorkbenchAdapter.getChildren(ConsoleConfigurationWorkbenchAdapter.java:38)
| at org.hibernate.eclipse.console.workbench.BasicWorkbenchAdapter.getChildren(BasicWorkbenchAdapter.java:89)
| at org.hibernate.eclipse.console.workbench.BasicWorkbenchAdapter.fetchDeferredChildren(BasicWorkbenchAdapter.java:95)
| at org.eclipse.ui.progress.DeferredTreeContentManager$1.run(DeferredTreeContentManager.java:196)
| at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
| Caused by: org.hibernate.console.HibernateConsoleRuntimeException: Could not create JPA based Configuration
| at org.hibernate.console.ConsoleConfiguration.buildJPAConfiguration(ConsoleConfiguration.java:142)
| at org.hibernate.console.ConsoleConfiguration.buildConfiguration(ConsoleConfiguration.java:496)
| ... 10 more
| Caused by: org.hibernate.console.HibernateConsoleRuntimeException: Persistence unit not found: 'null'.
| at org.hibernate.console.ConsoleConfiguration.buildJPAConfiguration(ConsoleConfiguration.java:134)
| ... 11 more
hibernate-console.properties:
#File used by hibernate tools to override <datasource> and other container specific settings in persistence.xml
| hibernate.connection.password=test123
| hibernate.connection.username=testuser
| hibernate.connection.driver_class=org.postgresql.Driver
| hibernate.dialect=org.hibernate.dialect.PostgreSQLDialect
| hibernate.connection.url=jdbc:postgresql:testdb
| hibernate.hbm2ddl.auto=update
| hibernate.connection.provider_class=org.hibernate.connection.DriverManagerConnectionProvider
| hibernate.datasource=
| hibernate.transaction.manager_lookup_class=
testapp.launch:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
| <launchConfiguration type="org.hibernate.eclipse.launch.ConsoleConfigurationLaunchConfigurationType">
| <stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="testapp"/>
| <stringAttribute key="org.hibernate.eclipse.launch.CONFIGURATION_FACTORY" value="JPA"/>
| <listAttribute key="org.hibernate.eclipse.launch.FILE_MAPPINGS"/>
| <stringAttribute key="org.hibernate.eclipse.launch.PROPERTY_FILE" value="/testapp/hibernate-console.properties"/>
| </launchConfiguration>
I observed there is no persistence.xml and orm.xml in resources->META-INF. There are 3 other persistence-*.xml. However the build.xml creates one when building & deploying the application. I could get a normal "JPA Project" working in eclipse.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4103463#4103463
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4103463
18 years, 8 months
[JBossCache] - Re: JBoss cache newbie question about using regions with POJ
by yair.zaslavsky
Here is the XML configuration, sorry for not posing it before
| <server>
|
| <classpath codebase="./lib" archives="jboss-cache.jar, jgroups.jar"/>
|
|
| <!-- ==================================================================== -->
| <!-- Defines TreeCache configuration -->
| <!-- ==================================================================== -->
|
| <mbean code="org.jboss.cache.TreeCache"
| name="jboss.cache:service=TreeCache">
|
| <depends>jboss:service=Naming</depends>
| <depends>jboss:service=TransactionManager</depends>
|
|
| <!-- Configure the TransactionManager -->
| <attribute name="TransactionManagerLookupClass">org.jboss.cache.BatchModeTransactionManagerLookup</attribute>
|
|
| <!--
| Node locking level : SERIALIZABLE
| REPEATABLE_READ (default)
| READ_COMMITTED
| READ_UNCOMMITTED
| NONE
| -->
| <attribute name="IsolationLevel">REPEATABLE_READ</attribute>
|
| <!--
| Valid modes are LOCAL
| REPL_ASYNC
| REPL_SYNC
| INVALIDATION_ASYNC
| INVALIDATION_SYNC
| -->
| <attribute name="CacheMode">LOCAL</attribute>
|
| <!-- Name of cluster. Needs to be the same for all clusters, in order
| to find each other
| -->
| <attribute name="ClusterName">TreeCache-Cluster</attribute>
|
| <!-- JGroups protocol stack properties. Can also be a URL,
| e.g. file:/home/bela/default.xml
| <attribute name="ClusterProperties"></attribute>
| -->
|
| <attribute name="ClusterConfig">
| <config>
| <!-- UDP: if you have a multihomed machine,
| set the bind_addr attribute to the appropriate NIC IP address -->
| <!-- UDP: On Windows machines, because of the media sense feature
| being broken with multicast (even after disabling media sense)
| set the loopback attribute to true -->
| <UDP mcast_addr="228.1.2.3" mcast_port="48866"
| ip_ttl="64" ip_mcast="true"
| mcast_send_buf_size="150000" mcast_recv_buf_size="80000"
| ucast_send_buf_size="150000" ucast_recv_buf_size="80000"
| loopback="false"/>
| <PING timeout="2000" num_initial_members="3"
| up_thread="false" down_thread="false"/>
| <MERGE2 min_interval="10000" max_interval="20000"/>
| <FD shun="true" up_thread="true" down_thread="true"/>
| <VERIFY_SUSPECT timeout="1500"
| up_thread="false" down_thread="false"/>
| <pbcast.NAKACK gc_lag="50" retransmit_timeout="600,1200,2400,4800"
| max_xmit_size="8192" up_thread="false" down_thread="false"/>
| <UNICAST timeout="600,1200,2400" window_size="100" min_threshold="10"
| down_thread="false"/>
| <pbcast.STABLE desired_avg_gossip="20000"
| up_thread="false" down_thread="false"/>
| <FRAG frag_size="8192"
| down_thread="false" up_thread="false"/>
| <pbcast.GMS join_timeout="5000" join_retry_timeout="2000"
| shun="true" print_local_addr="true"/>
| <pbcast.STATE_TRANSFER up_thread="false" down_thread="false"/>
| </config>
| </attribute>
|
|
| <!--
| The max amount of time (in milliseconds) we wait until the
| initial state (ie. the contents of the cache) are retrieved from
| existing members in a clustered environment
| -->
| <attribute name="InitialStateRetrievalTimeout">20000</attribute>
|
| <!--
| Number of milliseconds to wait until all responses for a
| synchronous call have been received.
| -->
| <attribute name="SyncReplTimeout">20000</attribute>
|
| <!-- Max number of milliseconds to wait for a lock acquisition -->
| <attribute name="LockAcquisitionTimeout">15000</attribute>
|
|
| <!-- Name of the eviction policy class. -->
| <attribute name="EvictionPolicyClass"></attribute>
| <!--
| <attribute name="EvictionPolicyClass">org.jboss.cache.aop.eviction.AopLRUPolicy</attribute>
| -->
| <!-- Specific eviction policy configurations. This is LRU -->
| <attribute name="EvictionPolicyConfig">
| <config>
| <attribute name="wakeUpIntervalSeconds">5</attribute>
| <!-- Cache wide default -->
| <!--
| <region name="/_default_">
| <attribute name="maxNodes">5000</attribute>
| <attribute name="timeToLiveSeconds">1000</attribute>
| </region>
| -->
| <region name="/org/jboss/data">
| <attribute name="maxNodes">5000</attribute>
| <attribute name="timeToLiveSeconds">1000</attribute>
| </region>
| <region name="/people/friends">
| <attribute name="maxNodes">2</attribute>
| <attribute name="timeToLiveSeconds">4</attribute>
| </region>
| <region name="/org/jboss/test/data">
| <attribute name="maxNodes">5</attribute>
| <attribute name="timeToLiveSeconds">4</attribute>
| </region>
| </config>
| </attribute>
|
| <!--
| Indicate whether to use region based marshalling or not. Set this to true if you are running under a scoped
| class loader, e.g., inside an application server. Default is "false".
| -->
| <attribute name="UseRegionBasedMarshalling">true</attribute>
| </mbean>
|
|
| </server>
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4103459#4103459
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4103459
18 years, 8 months
[JBossCache] - JBoss cache newbie question about using regions with POJO ca
by yair.zaslavsky
Hi all,
I started to use JBossCache several days ago, and succeeded to run the examples.
I want to use POJO cache, and to set a region for FQN "/people/friends"
Here is the configuration file I used:
<!-- ==================================================================== -->
<!-- Defines TreeCache configuration -->
<!-- ==================================================================== -->
jboss:service=Naming
jboss:service=TransactionManager
<!-- Configure the TransactionManager -->
org.jboss.cache.BatchModeTransactionManagerLookup
<!--
Node locking level : SERIALIZABLE
REPEATABLE_READ (default)
READ_COMMITTED
READ_UNCOMMITTED
NONE
-->
REPEATABLE_READ
<!--
Valid modes are LOCAL
REPL_ASYNC
REPL_SYNC
INVALIDATION_ASYNC
INVALIDATION_SYNC
-->
LOCAL
<!-- Name of cluster. Needs to be the same for all clusters, in order
to find each other
-->
TreeCache-Cluster
<!-- JGroups protocol stack properties. Can also be a URL,
e.g. file:/home/bela/default.xml
-->
<!-- UDP: if you have a multihomed machine,
set the bind_addr attribute to the appropriate NIC IP address -->
<!-- UDP: On Windows machines, because of the media sense feature
being broken with multicast (even after disabling media sense)
set the loopback attribute to true -->
<UDP mcast_addr="228.1.2.3" mcast_port="48866"
ip_ttl="64" ip_mcast="true"
mcast_send_buf_size="150000" mcast_recv_buf_size="80000"
ucast_send_buf_size="150000" ucast_recv_buf_size="80000"
loopback="false"/>
<PING timeout="2000" num_initial_members="3"
up_thread="false" down_thread="false"/>
<MERGE2 min_interval="10000" max_interval="20000"/>
<FD shun="true" up_thread="true" down_thread="true"/>
<VERIFY_SUSPECT timeout="1500"
up_thread="false" down_thread="false"/>
<pbcast.NAKACK gc_lag="50" retransmit_timeout="600,1200,2400,4800"
max_xmit_size="8192" up_thread="false" down_thread="false"/>
<UNICAST timeout="600,1200,2400" window_size="100" min_threshold="10"
down_thread="false"/>
<pbcast.STABLE desired_avg_gossip="20000"
up_thread="false" down_thread="false"/>
<FRAG frag_size="8192"
down_thread="false" up_thread="false"/>
<pbcast.GMS join_timeout="5000" join_retry_timeout="2000"
shun="true" print_local_addr="true"/>
<pbcast.STATE_TRANSFER up_thread="false" down_thread="false"/>
<!--
The max amount of time (in milliseconds) we wait until the
initial state (ie. the contents of the cache) are retrieved from
existing members in a clustered environment
-->
20000
<!--
Number of milliseconds to wait until all responses for a
synchronous call have been received.
-->
20000
<!-- Max number of milliseconds to wait for a lock acquisition -->
15000
<!-- Name of the eviction policy class. -->
<!--
org.jboss.cache.aop.eviction.AopLRUPolicy
-->
<!-- Specific eviction policy configurations. This is LRU -->
5
<!-- Cache wide default -->
<!--
5000
1000
-->
5000
1000
2
4
5
4
<!--
Indicate whether to use region based marshalling or not. Set this to true if you are running under a scoped
class loader, e.g., inside an application server. Default is "false".
-->
true
I am using it as standalone application (not inside JBOSS AS or any other cotainer).
I placed different objects in cache under
/people/friends/A
/people/friends/B
/people/friends/C
/people/friends/D
/people/friends/E
/people/friends/F
I implemented my own TreeCacheListener and set it in the cache,so I can see if there is an eviction (I simply printed out messages for all handlers defined in the class implementing TreeCacheListener).
I did not see any eviction of nodes (although I set in the configuration that the max nodes for the regions in 2).
Can you please tell me what I'm doing wrong?
(I'm JBossCache 1.4.1.SP6)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4103458#4103458
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4103458
18 years, 8 months
[EJB 3.0] - Re: Could not deploy EJB3.0 entities
by saasira
Hi!
I'm able clear this hurdle, in sense that I am able to assign the JBosstransactionManager to the toplink TransactionController by specifying a Session Customizer class in the persistence.xml , and then in the customize method the the SessionCustomizer Class I added a listener class in which prelogin method I 've forced toplink to use ExternaltransactionController...
All this below:
|
| <property name="toplink.session.customizer" value="com.prapansol.demos.service.JBossTransactionConfigurator"/>
|
| And In the "customize" method of that class I added a SessionEventListener as below :
|
| public class JBossTransactionConfigurator implements SessionCustomizer{
| public void customize(Session session) {
|
|
| session.getActiveSession().getEventManager().addListener(new
| JBossSessionPreLoginListener());
|
| }
| }
|
|
|
And in the "prelogin" method of My SessionEvent Listener class , I added the Server platform, and JTATransactionController as shown below:
| public class JBossSessionPreLoginListener extends SessionEventAdapter{
| public void preLogin(SessionEvent event) {
|
| Session session = event.getSession();
| session.logMessage("Initializing JBossPlatform ......");
| session.getLogin().setPlatformClassName("oracle.toplink.essentials.platform.server.jboss.JBossPlatform");
| //session.getLogin().setUsesExternalTransactionController(true);
| session.getLogin().useExternalTransactionController();
| session.getActiveSession().logMessage("Initializing JBossTransaction Controller ......");
| session.setExternalTransactionController(new JBossTransactionController());
| session.getActiveSession().logMessage("Successfully Configured JBossTransactionController ....");
|
| }
| }
|
|
But , I'm getting the error when the bean is requested from a JSP or a backing bean of JSF page:
| UnitOfWork(8650745)--Thread(Thread[http-127.0.0.1-8080-1,5,jboss])--TX binding to tx mgr, status=STATUS_ACTIVE
| 11:23:14,923 ERROR [STDERR] java.lang.IllegalArgumentException: Object: com.prapansol.demos.model.Emp@a3aaf5 is not a known entity type.
| 11:23:14,924 ERROR [STDERR] at oracle.toplink.essentials.internal.sessions.UnitOfWorkImpl.registerNewObjectForPersist(UnitOfWorkImpl.java:3198)
| 11:23:14,924 ERROR [STDERR] at oracle.toplink.essentials.internal.ejb.cmp3.base.EntityManagerImpl.persist(EntityManagerImpl.java:190)
| 11:23:14,924 ERROR [STDERR] at org.jboss.ejb3.entity.TransactionScopedEntityManager.persist(TransactionScopedEntityManager.java:182)
| 11:23:14,924 ERROR [STDERR] at com.prapansol.demos.service.SRServiceBean.persistEntity(SRServiceBean.java:76)
| 11:23:14,924 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| 11:23:14,924 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| 11:23:14,924 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| 11:23:14,924 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
| 11:23:14,924 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:112)
| 11:23:14,924 ERROR [STDERR] at org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:166)
| 11:23:14,924 ERROR [STDERR] at org.jboss.ejb3.interceptor.EJB3InterceptorsInterceptor.invoke(EJB3InterceptorsInterceptor.java:63)
| 11:23:14,924 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| 11:23:14,924 ERROR [STDERR] at org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor.invoke(TransactionScopedEntityManagerInterceptor.java:54)
| 11:23:14,925 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| 11:23:14,925 ERROR [STDERR] at org.jboss.ejb3.AllowedOperationsInterceptor.invoke(AllowedOperationsInterceptor.java:47)
| 11:23:14,925 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| 11:23:14,925 ERROR [STDERR] at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:79)
| 11:23:14,925 ERROR [STDERR] at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:191)
| 11:23:14,925 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| 11:23:14,925 ERROR [STDERR] at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:76)
| 11:23:14,925 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| 11:23:14,925 ERROR [STDERR] at org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(StatelessInstanceInterceptor.java:62)
| 11:23:14,925 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| 11:23:14,925 ERROR [STDERR] at org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:77)
| 11:23:14,925 ERROR [STDERR] at org.jboss.ejb3.security.Ejb3AuthenticationInterceptor.invoke(Ejb3AuthenticationInterceptor.java:106)
| 11:23:14,925 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| 11:23:14,925 ERROR [STDERR] at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:46)
| 11:23:14,925 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| 11:23:14,925 ERROR [STDERR] at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)
| 11:23:14,925 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| 11:23:14,926 ERROR [STDERR] at org.jboss.ejb3.stateless.StatelessContainer.localInvoke(StatelessContainer.java:214)
| 11:23:14,926 ERROR [STDERR] at org.jboss.ejb3.stateless.StatelessContainer.localInvoke(StatelessContainer.java:184)
| 11:23:14,926 ERROR [STDERR] at org.jboss.ejb3.stateless.StatelessLocalProxy.invoke(StatelessLocalProxy.java:81)
| 11:23:14,926 ERROR [STDERR] at $Proxy96.persistEntity(Unknown Source)
| 11:23:14,926 ERROR [STDERR] at org.apache.jsp.oracleTest_jsp._jspService(oracleTest_jsp.java:142)
| 11:23:14,926 ERROR [STDERR] at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
| 11:23:14,926 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
| 11:23:14,926 ERROR [STDERR] at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:387)
| 11:23:14,926 ERROR [STDERR] at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
| 11:23:14,926 ERROR [STDERR] at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
| 11:23:14,926 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
| 11:23:14,927 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
| 11:23:14,927 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
| 11:23:14,927 ERROR [STDERR] at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
| 11:23:14,927 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
| 11:23:14,927 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
| 11:23:14,927 ERROR [STDERR] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
| 11:23:14,927 ERROR [STDERR] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
| 11:23:14,927 ERROR [STDERR] at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
| 11:23:14,927 ERROR [STDERR] at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
| 11:23:14,927 ERROR [STDERR] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
| 11:23:14,927 ERROR [STDERR] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
| 11:23:14,927 ERROR [STDERR] at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
| 11:23:14,927 ERROR [STDERR] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
| 11:23:14,927 ERROR [STDERR] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241)
| 11:23:14,927 ERROR [STDERR] at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
| 11:23:14,927 ERROR [STDERR] at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:580)
| 11:23:14,928 ERROR [STDERR] at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
| 11:23:14,928 ERROR [STDERR] at java.lang.Thread.run(Thread.java:595)
| 11:23:14,930 INFO [STDOUT] [TopLink Finer]: 2007.11.11 11:23:14.929--UnitOfWork(8650745)--Thread(Thread[http-127.0.0.1-8080-1,5,jboss])--TX afterCompletion callback, status=ROLLEDBACK
| 11:23:14,930 INFO [STDOUT] [TopLink Finer]: 2007.11.11 11:23:14.930--UnitOfWork(8650745)--Thread(Thread[http-127.0.0.1-8080-1,5,jboss])--release unit of work
| 11:23:14,930 INFO [STDOUT] [TopLink Finer]: 2007.11.11 11:23:14.930--UnitOfWork(8650745)--Thread(Thread[http-127.0.0.1-8080-1,5,jboss])--initialize identitymaps
| 11:23:14,931 INFO [STDOUT] [TopLink Finer]: 2007.11.11 11:23:14.931--ClientSession(21410136)--Thread(Thread[http-127.0.0.1-8080-1,5,jboss])--client released
|
|
It seems the toplink entitiyManager is still not recognizing the entities created ... or may be they were not created as the Warning Messages displayed at the deployment time indicate :
| ServerSession(26489568)--Thread(Thread[main,5,jboss])--property=toplink.orm.throw.exceptions; default value=true
| 11:22:56,899 INFO [STDOUT] [TopLink Finer]: 2007.11.11 11:22:56.899--ServerSession(26489568)--Thread(Thread[main,5,jboss])--Searching for default mapping file in file:/u01/home/developer/jboss-4.2.1.GA/server/default/tmp/deploy/tmp51731TestModel.ear-contents/TestModel.jar
| 11:22:56,909 INFO [STDOUT] [TopLink Warning]: 2007.11.11 11:22:56.909--Thread(Thread[main,5,jboss])--java.lang.NullPointerException: null was thrown on attempt of PersistenceLoadProcessor to load class com.prapansol.demos.model.Emp. The class is ignored.
| 11:22:56,911 INFO [STDOUT] [TopLink Warning]: 2007.11.11 11:22:56.910--Thread(Thread[main,5,jboss])--java.lang.NullPointerException: null was thrown on attempt of PersistenceLoadProcessor to load class com.prapansol.demos.model.Dept. The class is ignored.
| 11:22:56,913 INFO [STDOUT] [TopLink Warning]: 2007.11.11 11:22:56.912--Thread(Thread[main,5,jboss])--java.lang.NullPointerException: null was thrown on attempt of PersistenceLoadProcessor to load class com.prapansol.demos.model.Dept. The class is ignored.
| 11:22:56,914 INFO [STDOUT] [TopLink Warning]: 2007.11.11 11:22:56.913--Thread(Thread[main,5,jboss])--java.lang.NullPointerException: null was thrown on attempt of PersistenceLoadProcessor to load class com.prapansol.demos.model.Emp. The class is ignored.
| 11:22:56,915 INFO [STDOUT] [TopLink Warning]: 2007.11.11 11:22:56.914--Thread(Thread[main,5,jboss])--java.lang.NullPointerException: null was thrown on attempt of PersistenceLoadProcessor to load class com.prapansol.demos.service.SRServiceBean. The class is ignored.
| 11:22:56,916 INFO [STDOUT] [TopLink Warning]: 2007.11.11 11:22:56.915--Thread(Thread[main,5,jboss])--java.lang.NullPointerException: null was thrown on attempt of PersistenceLoadProcessor to load class com.prapansol.demos.service.JBossTransactionConfigurator. The class is ignored.
| 11:22:56,917 INFO [STDOUT] [TopLink Warning]: 2007.11.11 11:22:56.916--Thread(Thread[main,5,jboss])--java.lang.NullPointerException: null was thrown on attempt of PersistenceLoadProcessor to load class com.prapansol.demos.service.SRService. The class is ignored.
| 11:22:56,918 INFO [STDOUT] [TopLink Warning]: 2007.11.11 11:22:56.918--Thread(Thread[main,5,jboss])--java.lang.NullPointerException: null was thrown on attempt of PersistenceLoadProcessor to load class com.prapansol.demos.service.SRServiceLocal. The class is ignored.
| 11:22:56,919 INFO [STDOUT] [TopLink Warning]: 2007.11.11 11:22:56.919--Thread(Thread[main,5,jboss])--java.lang.NullPointerException: null was thrown on attempt of PersistenceLoadProcessor to load class com.prapansol.demos.service.JBossSessionPreLoginListener. The class is ignored.
| 11:22:56,925 INFO [STDOUT] [TopLink Finest]: 2007.11.11 11:22:56.925--ServerSession(26489568)--Thread(Thread[main,5,jboss])--end predeploying Persistence Unit Model; state Predeployed; factoryCount 1
| creating wrapper delegate for: org.jboss.ejb3.stateless.StatelessContainer
| 11:22:56,950 INFO [JmxKernelAbstraction] installing MBean: jboss.j2ee:ear=TestModel.ear,jar=TestModel.jar,name=SRService,service=EJB3 with dependencies:
| 11:22:56,950 INFO [JmxKernelAbstraction] persistence.units:ear=TestModel.ear,jar=TestModel.jar,unitName=Model
| 11:22:56,984 INFO [EJBContainer] STARTED EJB: com.prapansol.demos.service.SRServiceBean ejbName: SRService
| 11:22:57,005 INFO [EJB3Deployer] Deployed: file:/u01/home/developer/jboss-4.2.1.GA/server/default/tmp/deploy/tmp51731TestModel.ear-contents/TestModel.jar
| 11:22:57,010 INFO [EARDeployer] Started J2EE application: file:/u01/home/developer/jboss-4.2.1.GA/server/default/deploy/TestModel.ear
| 11:22:58,179 INFO [EARDeployer] Init J2EE application: file:/u01/home/developer/jboss-4.2.1.GA/server/default/deploy/UserInterface.ear
| 11:22:59,054 INFO [TomcatDeployer] deploy, ctxPath=/UI, warUrl=.../tmp/deploy/tmp51732UserInterface.ear-contents/UserInterface-exp.war/
| 11:23:03,302 INFO [EARDeployer] Started J2EE application: file:/u01/home/developer/jboss-4.2.1.GA/server/default/deploy/UserInterface.ear
| 11:23:03,509 INFO [EARDeployer] Init J2EE application: file:/u01/home/developer/jboss-4.2.1.GA/server/default/deploy/bc4j.ear
| 11:23:04,266 WARN [DeployerInterceptorJSE] Cannot load servlet class: oracle.jbo.server.emd.EMDServlet
| deploy, ctxPath=/webapp, warUrl=.../tmp/deploy/tmp51733bc4j.ear-contents/webapp-exp.war/
| 11:23:04,459 WARN [TomcatDeployer] Failed to setup clustering, clustering disabled. NoClassDefFoundError: org/jgroups/blocks/MethodCall
| 11:23:04,478 INFO [EARDeployer] Started J2EE application: file:/u01/home/developer/jboss-4.2.1.GA/server/default/deploy/bc4j.ear
| 11:23:04,635 INFO [Http11Protocol] Starting Coyote HTTP/1.1 on http-127.0.0.1-8080
| 11:23:04,795 INFO [AjpProtocol] Starting Coyote AJP/1.3 on ajp-127.0.0.1-8009
|
|
Why does the entitymanager not create the entities?
Any hint as to what is causing this, or How to proceed further?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4103456#4103456
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4103456
18 years, 8 months