[EJB 3.0] - Persistence Problem after upgrading to 4.0.5GA
by SchlauFuchs
Hi there,
I have switched today from 4.0.4GA to 4.0.5GA and now my persistence classes produce a problem I can't fix for myself.
These three classes are involved:
| @Entity
| public class ConsumeSchema implements Serializable {
|
| private static final long serialVersionUID = 369451547383041185L;
|
| private String name;
|
| private String comment;
|
| private int id;
|
| @OneToMany(mappedBy = "schema")
| private Set<ArticleConsumeSchema> articleSchemas;
| ...
|
| @Entity
| public class ArticleConsumeSchema extends ArticleConsumeSchemaTemplate {
|
| private static final long serialVersionUID = -5703518518625567286L;
|
| }
|
|
| @Entity
| public class ArticleConsumeSchemaTemplate implements Serializable, Comparable<ArticleConsumeSchemaTemplate> {
|
| private static final long serialVersionUID = 1L;
|
| private long UTFtime;
|
| private long interval;
|
| private int id;
|
| @ManyToOne
| private Article article;
|
| /**
| * Zeigt auf die allgemeine Beschreibung des Schemas.
| */
| @ManyToOne
| private ConsumeSchema schema;
|
| ...
|
This construct worked well till my upgrade today. (Fresh install of 4.0.5GA in EJB3 config). Now I get:
ObjectName: persistence.units:jar=core-ejb3.ejb3.jar,unitName=core
| State: FAILED
| Reason: javax.persistence.PersistenceException: org.hibernate.MappingException: Could not determine type for: java.util.Set, for columns: [org.hibernate.mapping.Column(articleSchemas)]
|
What could be wrong?
Kind regards,
Kai
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3981641#3981641
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3981641
19 years, 6 months
[JBoss Seam] - Re: Scheduling in Seam?
by modoc
What I meant when I said chapter 7 is wrong, is that chapter 7 says that IntervalDuration is a Date not a long. Chapter 13 is the only place where the IntervalDuration is referred to as a long.
Chapter 7 also clearly says:
(For JavaBean components we can annotate the component implementation class if we like.)
And since this component is a POJO, I put the annotations on the implementation class.
Is this wrong? Do Ansyncronous annotated methods HAVE to be ejbs? If so, that's fine, I'll make an ejb interface/impl pair just to handle this, but the documentation led me to believe I could annotate a javabean component.
Because it felt to me that your reply was a little defensive or sarcastic, I want to assure you that I am in no way implying any failings of Seam, its documentation, examples, or your work on it. I've worked on plenty of projects to know that keeping docs, examples, javadoc, etc... all in sync with a changing product is hard to do without a dedicated doc team. Seam seems like a pretty amazing project, and thus far I'm really impressed by it. All I'm trying to do it figure out how to get my project working, and at the moment my lack of familiarity with Seam and the ejb3 spec, combined with a couple doc issues and the fact that since Seam is so new, there aren't a ton of other sites with information other developers have uncovered, I come here to ask my questions.
Regards,
Modoc
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3981638#3981638
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3981638
19 years, 6 months
[Installation, Configuration & Deployment] - MBeans waiting for other MBeans
by sonoerin
I am seeing this error when I start up my application (JBoss 4.0.2, OS 10.4.8, mySQL):
ObjectName: jboss:service=Scheduler
State: FAILED
Reason: org.jboss.deployment.DeploymentException: Exception setting attribute javax.management.Attribute@594bee on mbean jboss:service=Scheduler; - nested throwable: (java.security.InvalidParameterException: Given class com.xxx.cyb.boot.PolicyNotificationScheduler is not not found)
The class in question (PolicyNotificationScheduler) is loaded in a cyb.jar, bundled in the EAR. In my EAR/META-INF/application.xml:
<applicatio n>
<display-name>Project Description</display-name>
<!-- java module -->
<modul e>
cyb.jar
</modul e>
...
</applicatio n>
I have this service defined in /jboss/server/default/deploy/scheduler-service.xml:
<m bean code="org.jboss.varia.scheduler.Scheduler"
name=":service=Scheduler">
<a ttribute name="StartAtStartup">true
<a ttribute name="SchedulableClass">com.xxx.cyb.boot.PolicyNotificationScheduler
<a ttribute name="SchedulableArguments">Policy Notication,60
<a ttribute name="SchedulableArgumentTypes">java.lang.String,int
<a ttribute name="InitialStartDate">1/1/70 5:00 PM MST
<a ttribute name="SchedulePeriod">86400000
<a ttribute name="InitialRepetitions">-1
<d epends>jboss.j2ee:service=EJB,jndiName=PolicyManager
<d epends>jboss.j2ee:service=EJB,jndiName=PlanManager
<d epends>jboss.j2ee:service=EJB,jndiName=CRMManager
</m bean>
Does anyone know what is wrong with this configuration?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3981632#3981632
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3981632
19 years, 6 months
[Tomcat, HTTPD, Servlets & JSP] - Error NamingNofFoundException
by limajefferson2006
javax.naming.NameNotFoundException: Name CursoJ2EE is not bound in this Context
at org.apache.naming.NamingContext.lookup(NamingContext.java:76
at org.apache.naming.NamingContext.lookup(NamingContext.java:151)
at br.com.biblioteca.daos.ConexaoDAO.getConnection(ConexaoDAO.java:19)
at br.com.biblioteca.daos.UsuarioDAO.inserirUsuario(UsuarioDAO.java:22)
at br.com.biblioteca.actions.SalvarUsuarioAction.execute(SalvarUsuarioAction.java:54)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:19
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:11
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
at java.lang.Thread.run(Thread.java:595)
Erro na insercao!
Motivo: null
init OK!
Contexto OK!
my Context .xml
I 'm using mysql dataBase
<?xml version="1.0" encoding="UTF-8"?>
WEB-INF/web.xml
thank you
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3981630#3981630
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3981630
19 years, 6 months