[jboss-user] [JBoss Seam] - Re: Base is null Error.

2006-11-12 Thread xterm
Thank you sir.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3985319#3985319

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3985319
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Base is null Error.

2006-11-12 Thread xterm
Dear petemuir,

Adding seam.properties to the root of the ejb archive has fixed my problem. 
Thank you.

I left this file out of the archive since i saw the content was commented out 
(When i generated the seam application using Hibernate Tools).

I still however, dont understand why seam would check for this file even if 
there's no content to be parsed.

Regards,

x

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3985313#3985313

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3985313
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Base is null Error.

2006-11-10 Thread xterm
Thank you petemuir,

I'll try to fix what i missed.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3984965#3984965

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3984965
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Base is null Error.

2006-11-10 Thread xterm
Just noticed the following:


  | 18:15:57,763 INFO  [Ejb3Configuration] found EJB3 Entity bean: Contact
  | 18:15:57,764 WARN  [Ejb3Configuration] Persistence provider caller does not 
implements the EJB3 spec correctly. PersistenceUnitInfo.getNewTempClassLoader() 
is null.
  | 

Would this be affecting anything?

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3984962#3984962

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3984962
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Base is null Error.

2006-11-10 Thread xterm
Dear Mr. petemuir,

I've changed the .ejb3 file back to .jar

Here's an exerpt upon loading Jboss, which includes the Seam initialization:


  | 18:07:40,393 INFO  [Initialization] initializing Seam
  | 18:07:40,443 INFO  [Component] Component: org.jboss.seam.core.init, scope: 
APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.Init
  | 18:07:40,489 INFO  [Component] Component: expressions, scope: APPLICATION, 
type: JAVA_BEAN, class: org.jboss.seam.core.Expressions
  | 18:07:40,495 INFO  [Component] Component: org.jboss.seam.core.pages, scope: 
APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.Pages
  | 18:07:40,510 INFO  [Component] Component: events, scope: APPLICATION, type: 
JAVA_BEAN, class: org.jboss.seam.core.Events
  | 18:07:40,513 INFO  [Component] Component: 
org.jboss.seam.core.conversationEntries, scope: SESSION, type: JAVA_BEAN, 
class: org.jboss.seam.core.ConversationEntries
  | 18:07:40,532 INFO  [Component] Component: org.jboss.seam.core.manager, 
scope: EVENT, type: JAVA_BEAN, class: org.jboss.seam.core.Manager
  | 18:07:40,548 INFO  [Component] Component: switcher, scope: PAGE, type: 
JAVA_BEAN, class: org.jboss.seam.core.Switcher
  | 18:07:40,554 INFO  [Component] Component: redirect, scope: CONVERSATION, 
type: JAVA_BEAN, class: org.jboss.seam.core.Redirect
  | 18:07:40,558 INFO  [Component] Component: httpError, scope: APPLICATION, 
type: JAVA_BEAN, class: org.jboss.seam.core.HttpError
  | 18:07:40,562 INFO  [Component] Component: userPrincipal, scope: 
APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.UserPrincipal
  | 18:07:40,588 INFO  [Component] Component: isUserInRole, scope: APPLICATION, 
type: JAVA_BEAN, class: org.jboss.seam.core.IsUserInRole
  | 18:07:40,591 INFO  [Component] Component: conversation, scope: 
CONVERSATION, type: JAVA_BEAN, class: org.jboss.seam.core.Conversation
  | 18:07:40,599 INFO  [Component] Component: conversationList, scope: PAGE, 
type: JAVA_BEAN, class: org.jboss.seam.core.ConversationList
  | 18:07:40,604 INFO  [Component] Component: conversationStack, scope: PAGE, 
type: JAVA_BEAN, class: org.jboss.seam.core.ConversationStack
  | 18:07:40,613 INFO  [Component] Component: facesContext, scope: APPLICATION, 
type: JAVA_BEAN, class: org.jboss.seam.core.FacesContext
  | 18:07:40,617 INFO  [Component] Component: pageContext, scope: APPLICATION, 
type: JAVA_BEAN, class: org.jboss.seam.core.PageContext
  | 18:07:40,621 INFO  [Component] Component: eventContext, scope: APPLICATION, 
type: JAVA_BEAN, class: org.jboss.seam.core.EventContext
  | 18:07:40,637 INFO  [Component] Component: sessionContext, scope: 
APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.SessionContext
  | 18:07:40,641 INFO  [Component] Component: applicationContext, scope: 
APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.ApplicationContext
  | 18:07:40,645 INFO  [Component] Component: conversationContext, scope: 
APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.ConversationContext
  | 18:07:40,652 INFO  [Component] Component: businessProcessContext, scope: 
APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.BusinessProcessContext
  | 18:07:40,656 INFO  [Component] Component: locale, scope: STATELESS, type: 
JAVA_BEAN, class: org.jboss.seam.core.Locale
  | 18:07:40,660 INFO  [Component] Component: messages, scope: SESSION, type: 
JAVA_BEAN, class: org.jboss.seam.core.Messages
  | 18:07:40,664 INFO  [Component] Component: theme, scope: SESSION, type: 
JAVA_BEAN, class: org.jboss.seam.theme.Theme
  | 18:07:40,668 INFO  [Component] Component: themeSelector, scope: SESSION, 
type: JAVA_BEAN, class: org.jboss.seam.theme.ThemeSelector
  | 18:07:40,691 INFO  [Component] Component: interpolator, scope: STATELESS, 
type: JAVA_BEAN, class: org.jboss.seam.core.Interpolator
  | 18:07:40,696 INFO  [Component] Component: facesMessages, scope: 
CONVERSATION, type: JAVA_BEAN, class: org.jboss.seam.core.FacesMessages
  | 18:07:40,727 INFO  [Component] Component: resourceBundle, scope: SESSION, 
type: JAVA_BEAN, class: org.jboss.seam.core.ResourceBundle
  | 18:07:40,735 INFO  [Component] Component: localeSelector, scope: SESSION, 
type: JAVA_BEAN, class: org.jboss.seam.core.LocaleSelector
  | 18:07:40,739 INFO  [Component] Component: uiComponent, scope: STATELESS, 
type: JAVA_BEAN, class: org.jboss.seam.core.UiComponent
  | 18:07:40,744 INFO  [Component] Component: param, scope: EVENT, type: 
JAVA_BEAN, class: org.jboss.seam.core.RenderParameters
  | 18:07:40,747 INFO  [Component] Component: org.jboss.seam.core.safeActions, 
scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.SafeActions
  | 18:07:40,752 INFO  [Component] Component: 
org.jboss.seam.remoting.messaging.subscriptionRegistry, scope: APPLICATION, 
type: JAVA_BEAN, class: org.jboss.seam.remoting.messaging.SubscriptionRegistry
  | 18:07:40,758 INFO  [Component] Component: 
org.jboss.seam.remoting.remotingConfig, scope: APPLICATION, type: JAVA_BEAN, 
class: org.jboss.seam.remoting.Remot

[jboss-user] [JBoss Seam] - Re: Base is null Error.

2006-11-10 Thread xterm
Thank you John,

If you happen to have any idea i might try, please dont hesistate to reply.



View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3984938#3984938

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3984938
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Base is null Error.

2006-11-10 Thread xterm
Forgot to add that i'm using JBoss Seam 1.1.0 BETA1

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3984897#3984897

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3984897
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Base is null Error.

2006-11-10 Thread xterm
Greetings,

I'm building a simple Seam application from scratch. However i've ran into an 
error when trying to access a method in a session bean. Sadly i was unable to 
debug the error granted i'm fairly new to JBoss Seam.

The application merely retrieves data from the database and lists them using 
jsf DataTable.

Here's a detailed list of the data i currently have:

application.xml

  | Phone Directory
  | 
  | 
  | phonedir.war
  | /phonedir
  | 
  | 
  | 
  | phonedir.ejb3
  | 
  | 
  | jboss-seam.jar
  | 
  | 
  | 

components.xml

  | 
  | 
  | 
  | phonedir/#{ejbName}/local
  | 
  | 
  | 

ejb-jar.xml

  | 
  |
  |   
  |  *
  |  
org.jboss.seam.ejb.SeamInterceptor
  |   
  |
  | 
  | 

faces-config.xml

  | 
  | 
  | 
org.jboss.seam.jsf.SeamExtendedManagedPersistencePhaseListener
  | 
  | 
  | 

persistence.xml

  | 
  | 
  |   org.hibernate.ejb.HibernatePersistence
  |   java:/PhonedirDS
  |   
  |  
  |   
  | 
  | 
  | 

web.xml

  | http://java.sun.com/xml/ns/j2ee";
  | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
  | xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
  | http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd";>
  | 
  | 
  | org.jboss.seam.servlet.SeamListener
  | 
  | 
  | 
  | 
  | org.apache.myfaces.webapp.StartupServletContextListener
  | 
  | 
  | 
  | 
  | javax.faces.STATE_SAVING_METHOD
  | client
  | 
  | 
  | 
  | Faces Servlet
  | javax.faces.webapp.FacesServlet
  | 1
  | 
  | 
  | 
  | 
  | Faces Servlet
  | *.seam
  | 
  | 
  | 
  | 

Contact entity bean

  | @Entity
  | @Name("contact")
  | @Table(name="phonedir")
  | public class Contact implements Serializable {
  | private int id;
  | private String fullName;
  | private String telephone;
  | private String extension;
  | private String company;
  | private String switchBoard;
  | 
  | @Id @GeneratedValue
  | public int getId(){
  | return id;
  | }
  | 
  | public void setId(int id){
  | this.id = id;
  | }
  | 
  | public String getFullName(){
  | return fullName;
  | }
  | 
  | public void setFullName(String fullName){
  | this.fullName = fullName;
  | }
  | 
  | public String getTelephone(){
  | return telephone;
  | }
  | 
  | public void setTelephone(String telephone){
  | this.telephone = telephone;
  | }
  | 
  | public String getExtension(){
  | return extension;
  | }
  | 
  | public void setExtension(String extension){
  | this.extension = extension;
  | }
  | 
  | public String getCompany(){
  | return company;
  | }
  | 
  | public void setCompany(String company){
  | this.company = company;
  | }
  | 
  | public String getSwitchboard(){
  | return switchBoard;
  | }
  | 
  | public void setSwitchboard(String switchboard){
  | this.switchBoard = switchboard;
  | }
  | }
  | 

Local interface ContactManager

  | @Local
  | public interface ContactManager {
  | public String getAllContacts();
  | }
  | 

Stateless bean

  | @Stateless
  | @Name("contactManager")
  | @Interceptors(SeamInterceptor.class)
  | public class ContactManagerBean implements ContactManager{
  | @Out
  | private List  allContacts;
  | 
  | @PersistenceContext
  | private EntityManager em;
  | 
  | public String getAllContacts(){
  | System.out.println("Inside method");
  | allContacts = em.createQuery("from Contact 
c").getResultList();
  | return null;
  | }
  | }
  | 

jsf page (omitted headers)

  | 
  |  
  |   
  |   
  |  
  |  
  | 
  | 
  | 
  | 
  | 
  | List of Contacts:
  | 
  | --- 1
  | 
  | 
  | 
  | 
  | 
  | --- 2
  | 
  | 
  |  
  | 
  | 

-

Packaging and deploying the application generates no header. Loading the 
initial page as well generates no errors. However upon clicking the button. The 
following error is generated: (Note that the debug statement does not print 
hence the method was not invoked to begin with.)

anonymous wrote : 
  | 12:05:37,605 ERROR [[Faces Servlet]] S

[jboss-user] [JBoss Seam] - Re: Base is null Error.

2006-11-10 Thread xterm
Additional Information: 
[Server] Release ID: JBoss [Zion] 4.0.5.GA (build: CVSTag=Branch_4_0 
date=200610162339)

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3984843#3984843

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3984843
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user