[JNDI/Naming/Network] - Re: configuring db2 data source
by amitabhprasad
To add some more info at the end I do see some messages like
2006-10-19 00:43:29,140 DEBUG [org.jboss.resource.adapter.jdbc.remote.WrapperDataSourceService] Started jboss.jca:name=jdbc/abrakadabra,service=DataSourceBinding
2006-10-19 00:43:29,140 DEBUG [org.jboss.system.ServiceController] Starting dependent components for: jboss.jca:name=jdbc/abrakadabra,service=DataSourceBinding dependent components: []
2006-10-19 00:43:29,140 DEBUG [org.jboss.system.ServiceController] starting service jboss.jca:name=jdbc/abrakadabra,service=DataSourceBinding
2006-10-19 00:43:29,140 DEBUG [org.jboss.system.ServiceController] Ignoring start request for service: jboss.jca:name=jdbc/abrakadabra,service=DataSourceBinding
2006-10-19 00:43:45,531 DEBUG [org.jboss.ejb.StatelessSessionContainer] Binding resource manager: jdbc/abrakadabra to JDNI ENC as: java:/DefaultDS
2006-10-19 00:43:45,531 DEBUG [org.jboss.ejb.StatelessSessionContainer] Binding resource manager: jdbc/abrakadabra to JDNI ENC as: java:/DefaultDS
2006-10-19 00:43:45,531 DEBUG [org.jboss.ejb.StatelessSessionContainer] Binding resource manager: jdbc/abrakadabra to JDNI ENC as: java:/DefaultDS
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3979370#3979370
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3979370
19 years, 8 months
[EJB 3.0] - Sharing EJB3 classes in a .jar creates "Unknown entity:" Exc
by niclas.lindberg
Hello all!
Packaging problem... We have different subsystems each one packaged in a .jar file and all of the subsystems packaged together in an .ear.
Well.. The public part (classes used by other subsystems) of each subsystem is excluded from the subsystem.jar and packed together into a subsystems-shared.jar. Subsystems-shared.jar is referenced to from subsystemA.jar .. subsystemX.jar with manifest Class-Path attribute.
The problem is that when I move any EJB3 entity beans out into the subsystems-shared.jar the subsystem using that entitybean finds the class (Class loading is ok). But the EntityManager throws an Exception saying "Unknown Entity: ". When I move the EJB3 entity beans back into the subsystem.jar it works.
Is there anything I'm missing?
Any best practices. This is how you do it - guide! available or am I missing something trivial?
Thanks for any reply!
Take care,
Niclas
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3979369#3979369
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3979369
19 years, 8 months
[EJB 3.0] - Re: Foreign key reference with cascading delete
by jbr
Hi Wolfgang,
thanks for your help. I tried your suggestion. You are right as far as the user would survive the remove of a listEntry. But with this configuration i can't delete a user before all referencing listEntries are removed.
In terms of ER-Modelling it creates something like this:
| table user(String id, String name, ...)
|
| table listEntry(String id,
| String userId references user.id,
| String listId references list.id on delete cascade)
|
| table list(String id, String name)
|
|
But what I need is:
| table user(String id, String name, ...)
|
| table listEntry(String id,
| String userId references user.id on delete cascade,
| String listId references list.id on delete cascade)
|
| table list(String id, String name)
|
|
That's not exactly what i wanted, as i still need to cleanup the listentries manually before i can delete the user.
Have u successfully implemented something like that before?
Best Regards
Juergen
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3979367#3979367
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3979367
19 years, 8 months
[JBoss Portal] - Re: isolating portal from others ear application
by cpage
up
a jsf ear app with jsf.facelets,jbseam, jbpm, ajax doesn't deploy if the portal is in the AS :p
17:10:25,318 ERROR [StartupServletContextListener] Error initializing ServletContext
| java.lang.ClassCastException: com.sun.facelets.component.RepeatRenderer
| at org.apache.myfaces.config.FacesConfigurator.configureRenderKits(FacesConfigurator.java:610)
| at org.apache.myfaces.config.FacesConfigurator.configure(FacesConfigurator.java:145)
| at org.apache.myfaces.webapp.StartupServletContextListener.initFaces(StartupServletContextListener.
| java:66)
| at org.apache.myfaces.webapp.StartupServletContextListener.contextInitialized(StartupServletContext
| Listener.java:49)
| at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3729)
| at org.apache.catalina.core.StandardContext.start(StandardContext.java:4187)
help wanted ^^
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3979364#3979364
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3979364
19 years, 8 months