[JBoss-user] [Beginners Corner] - help with ClassCastException

2005-11-29 Thread jim.owen
Hi,

  I'm getting a class cast exception when attempting to create an instance of 
my LocalHome object that I have not been able to figure out.  It's probably 
something pretty simple, but I just haven't been able to see it.  I'm using 
JBoss 4.0.3.

  Here's the code that is being executed in my servlet:

  Object obj = null;
  try
  {
obj = ctx.lookup("java:comp/env/FSCApplicantLocal");
FSCApplicantLocalHome fsc_applicant_home = 
(FSCApplicantLocalHome)PortableRemoteObject.narrow(obj, 
FSCApplicantLocalHome.class);
applicant = fsc_applicant_home.findByPrimaryKey(new Long(quoteNo));
  }
  catch(Exception _e)
  {
_e.printStackTrace();
throw _e;
  }


  Here's the jboss.xml:
  
 FSCApplicantBean
 ejb/local/FSCApplicantLocal
 
FSCApplicantLocal
ejb/FSCApplicantLocal
 
  


  Here's the ejb-jar.xml:
   
 
 FSCApplicantBean
 FSCApplicantBean
 
com.InsureSuite.FSCExport.FSCApplicantLocalHome
 com.InsureSuite.FSCExport.FSCApplicantLocal
 com.InsureSuite.FSCExport.impl.FSCApplicantBean
 Container
 java.lang.Long
 False
 2.x
 FSCApplicant

/**  CUT ALL THE CMP DEFS FROM HERE  */

 quote_no
 
FSCApplicantLocal
Entity

com.InsureSuite.FSCExport.FSCApplicantLocalHome
com.InsureSuite.FSCExport.FSCApplicantLocal
FSCApplicantBean
 
 


   findAll
   
   


 


Here's the web.xml:
   
  FSCApplicantLocal
  Entity
  com.InsureSuite.FSCExport.FSCApplicantLocalHome
  com.InsureSuite.FSCExport.FSCApplicantLocal
  FSCApplicantBean
   


Here's the jboss-web.xml:
   
  FSCApplicantLocal
  Entity
  com.InsureSuite.FSCExport.FSCApplicantLocalHome
  com.InsureSuite.FSCExport.FSCApplicantLocal
  FSCApplicantBean
   


  And finally, here's the stack trace:

10:47:39,776 INFO  [STDOUT] java.lang.ClassCastException
10:47:39,776 INFO  [STDOUT] at 
com.sun.corba.se.impl.javax.rmi.PortableRemoteObject.narrow(PortableRemoteObject.java:229)
10:47:39,776 INFO  [STDOUT] at 
javax.rmi.PortableRemoteObject.narrow(PortableRemoteObject.java:137)
10:47:39,776 INFO  [STDOUT] at 
com.InsureSuite.FSCExport.FSCQuote.init(FSCQuote.java:163)
10:47:39,776 INFO  [STDOUT] at 
com.InsureSuite.FSCExport.FSCQuote.(FSCQuote.java:68)
10:47:39,776 INFO  [STDOUT] at 
org.apache.jsp.test_jsp._jspService(org.apache.jsp.test_jsp:58)
10:47:39,776 INFO  [STDOUT] at 
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
10:47:39,776 INFO  [STDOUT] at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
10:47:39,776 INFO  [STDOUT] at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
10:47:39,776 INFO  [STDOUT] at 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
10:47:39,776 INFO  [STDOUT] at 
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
10:47:39,776 INFO  [STDOUT] at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
10:47:39,776 INFO  [STDOUT] at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
10:47:39,776 INFO  [STDOUT] at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
10:47:39,776 INFO  [STDOUT] at 
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)
10:47:39,776 INFO  [STDOUT] at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
10:47:39,776 INFO  [STDOUT] at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
10:47:39,776 INFO  [STDOUT] at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
10:47:39,776 INFO  [STDOUT] at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
10:47:39,776 INFO  [STDOUT] at 
org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39)
10:47:39,776 INFO  [STDOUT] at 
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:159)
10:47:39,776 INFO  [STDOUT] at 
org.jboss.web.tomcat.tc5.session.ClusteredSessionValve.invoke(ClusteredSessionValve.java:81)
10:47:39,776 INFO  [STDOUT] at 
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59)
10:47:39,776 INFO  [STDOUT] at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
10:47:39,776 INFO  [STDOUT] at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
10:47:39,776 INFO  [STDOUT] at 
org.ap

[JBoss-user] [Beginners Corner] - Re: Newbie Help with CMP

2005-08-29 Thread jim.owen
Thanks Roger.  I've been going through it already - it's quite a read.

- jim 

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

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3892122


---
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Beginners Corner] - Newbie Help with CMP

2005-08-26 Thread jim.owen
Hi All,
Can someone direct me to the best source of documentation or information 
regarding understanding what the contents of the various deployment and 
configuration files should contain to support CMP under JBoss?  I'm converting 
an application from an Oracle App Server over to JBoss and am sure I don't have 
a bunch of stuff right.

Thanks for any help!

- Jim

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

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3891882


---
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Beginners Corner] - Verifier Warning

2005-08-09 Thread jim.owen
Hi,

As one of the first projects I'm taking on under JBoss and EJBs is porting 
a small system from Oracle AS over to JBoss.  During this, I've run up against 
this error (warning) that I have not been able to find anything about and need 
some help.  

  This class is a primary key class that is used by an Entity Bean.  I have 
tried putting in a hashCode method that simply calls the super.hashCode() 
method, but this does not seem to help.

  Can anyone help on this?

  TIA,

  Jim 

Error:

2005-08-08 18:34:29,756 WARN  [org.jboss.verifier.strategy.EJBVerifier20] 
Default instances of primary key: class com.Company.FSCExport.FSCViolationPK do 
not have the same hash, check your hashCode method

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

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3889100


---
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user