[JBoss-user] petstore 1.1.2

2001-07-15 Thread jBoss Monkey

After following these instructions step by step I was able to deploy petstore
successfully, but when I access the application in web browser, I get the following
error:

All Rights Reserved.
[InstantDB] Started
[DefaultDS] Starting
[DefaultDS] XA Connection pool DefaultDS bound to java:/DefaultDS
[DefaultDS] Started
[Service Control] Started 27 services
[Default] JBoss 2.2.2 Started in 0m:16s
2001-07-15 01:05:54 - Ctx( /estore ): Exception in: R( /estore + /control + /lan
guage) - com.sun.j2ee.blueprints.petstore.control.exceptions.GeneralFailureExcep
tion: CatalogDAOFactory.getDAO:  NamingException while getting DAO type :
catalog not bound
at com.sun.j2ee.blueprints.petstore.control.web.CatalogWebImpl.init(Ca
talogWebImpl.java:36)
at com.sun.j2ee.blueprints.petstore.control.web.ModelManager.getCatalogM
odel(ModelManager.java:84)
at com.sun.j2ee.blueprints.petstore.control.web.ModelManager.init(ModelM
anager.java:61)
at com.sun.j2ee.blueprints.petstore.control.web.MainServlet.doGet(MainSe
rvlet.java:83)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:4
05)
at org.apache.tomcat.core.Handler.service(Handler.java:287)
at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372
)
at org.apache.tomcat.core.ContextManager.internalService(ContextManager.
java:797)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743
)
at org.apache.tomcat.service.http.HttpConnectionHandler.processConnectio
n(HttpConnectionHandler.java:213)
at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:
416)
at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java
:501)
at java.lang.Thread.run(Unknown Source)

Any ideas ??

JM

===

Cuong Tran wrote:

  Ok, I finally got around to do it.  The attached zip file contains all
 files that I changed/added to make petstore work.  Since I wanted to use
 Hypersonic, I had to replace CatalogDAOImpl and OrderDAOImpl with slightly
 modified version (CatalogDAOHypersonic and OrderDAOHypersonic).

 The instructions are similar to the 1.1.1 version so you can refer to jboss
 documention for more info.

 --- Jonah Peskin [EMAIL PROTECTED] wrote:
  Hell yeah!  I've been trying to do this (with Cloudscape) all week.  Please
  fill us in on the details! (any and all config files would be great too!)
 
  Thanks!
 
  Jonah
 
I have managed to successfully deploy petstore 1.1.2
  on jboss 2.2.1-tomcat 3.2.1, using Hypersonic as the database.
  If anyone is interested, I'm willing to share what I've done.
 
 

 =
 Cuong Q. Tran [EMAIL PROTECTED]

 __
 Do You Yahoo!?
 Yahoo! Auctions - buy the things you want at great prices
 http://auctions.yahoo.com/

   
  Name: jps1.1.2-change.zip
jps1.1.2-change.zip   Type: Zip Compressed Data (application/x-zip-compressed)
  Encoding: base64
   Description: jps1.1.2-change.zip


___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] Tomcat authentication problem

2001-04-19 Thread jBoss Monkey

This problen is most probably caused by  the inability of tomcat services to pass on 
the credential properly to the jBoss. The
solution is to update your  tomcat-services.jar with the latest code in contrib module.

good luck

~jm

Hein Saris wrote:

 Hi,

 I have successfully installed jBoss2.2+Tomcat and have deployed an
 application.
 I have secured my EJB beans with JAAS.
 When I access my beans with a Java client, I can use my ejb beans without any
 problem after logging in.
 If I try to access my beans from within a jsp (through a bean), I get the
 following error:

 [PersonBean] javax.security.auth.login.LoginException:
 java.lang.NullPointerException
 at
 
org.jboss.security.auth.SecurityAssociationHandler.getPassword(SecurityAssociationHandler.java:125)
 at
 
org.jboss.security.auth.SecurityAssociationHandler.handle(SecurityAssociationHandler.java:83)
 at
 javax.security.auth.login.LoginContext$4.run(LoginContext.java:731)
 at java.security.AccessController.doPrivileged(Native Method)
 at
 
javax.security.auth.login.LoginContext$SecureCallbackHandler.handle(LoginContext.java:727)
 at
 
org.jboss.security.plugins.samples.UsernamePasswordLoginModule.getUsernameAndPassword(UsernamePasswordLoginModule.java:133)
 at
 
org.jboss.security.plugins.samples.UsernamePasswordLoginModule.login(UsernamePasswordLoginModule.java:76)
 at
 
org.jboss.security.plugins.samples.JaasServerLoginModule.login(JaasServerLoginModule.java:105)
 at java.lang.reflect.Method.invoke(Native Method)
 at
 javax.security.auth.login.LoginContext.invoke(LoginContext.java:595)
 at javax.security.auth.login.LoginContext.access$000(LoginContext.java:125)
 at
 javax.security.auth.login.LoginContext$3.run(LoginContext.java:531)
 at java.security.AccessController.doPrivileged(Native Method)
 at
 javax.security.auth.login.LoginContext.invokeModule(LoginContext.java:528)
 at
 javax.security.auth.login.LoginContext.login(LoginContext.java:449)
 at
 
org.jboss.security.plugins.JaasSecurityManager.defaultLogin(JaasSecurityManager.java:332)
 at
 
org.jboss.security.plugins.JaasSecurityManager.authenticate(JaasSecurityManager.java:301)
 at
 org.jboss.security.plugins.JaasSecurityManager.isValid(JaasSecurityManager.java:193)
 at
 
org.jboss.ejb.plugins.SecurityInterceptor.checkSecurityAssociation(SecurityInterceptor.java:209)
 at
 org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityInterceptor.java:144)
 at
 org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:106)
 at org.jboss.ejb.EntityContainer.invokeHome(EntityContainer.java:316)
 at
 
org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.invokeHome(JRMPContainerInvoker.java:436)
 at
 org.jboss.ejb.plugins.jrmp.interfaces.HomeProxy.invoke(HomeProxy.java:212)
 at $Proxy62.findByPrimaryKey(Unknown Source)
 at
 be.idewe.planning.bean.PersonBean.processRequest(PersonBean.java:68)
 at
 
planning._0002fplanning_0002fperson_0002ejspperson_jsp_1._jspService(_0002fplanning_0002fperson_0002ejspperson_jsp_1.java:102)
 at
 org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
 org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:177)
 at
 org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318)
 at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
 org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
 at org.apache.tomcat.core.Handler.service(Handler.java:286)
 at
 org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
 at
 org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797)
 at
 org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
 at
 
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:210)
 at
 org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
 at
 org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
 at java.lang.Thread.run(Thread.java:484)

 [PersonBean]at
 javax.security.auth.login.LoginContext.invoke(LoginContext.java:650)
 [PersonBean]at
 javax.security.auth.login.LoginContext.access$000(LoginContext.java:125)
 [PersonBean]at
 javax.security.auth.login.LoginContext$3.run(LoginContext.java:531)
 [PersonBean]at java.security.AccessController.doPrivileged(Native Method)
 [PersonBean]at
 javax.security.auth.login.LoginContext.invokeModule(LoginContext.java:528)
 [PersonBean]at
 javax.security.auth.login.LoginContext.login(LoginContext.java:449)
 [PersonBean]at
 

Re: [JBoss-user] BindException when starting Jboss-tomcat2.2

2001-04-19 Thread jBoss Monkey

Are you sure you do not have any other instance runing at the same time using
the same address. ??

~jm



Arun wrote:

 when i start jboss using run.sh
 im getting this error

 [EmbeddedTomcat] Starting
 [EmbeddedTomcat] Starting EmbeddedTomcat
 2001-04-18 01:14:47 - ContextManager: Adding context Ctx( /examples )
 2001-04-18 01:14:47 - ContextManager: Adding context Ctx( /admin )
 [EmbeddedTomcat] Starting tomcat. Check logs/tomcat.log for error messages
 2001-04-18 01:14:47 - ContextManager: Adding context Ctx(  )
 2001-04-18 01:14:47 - ContextManager: Adding context Ctx( /test )
 [EmbeddedTomcat] java.net.BindException: Address already in use
 
 
 

 finally JBoss is started...
 Is there any problem

 thanx
 Arun

 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]
 http://lists.sourceforge.net/lists/listinfo/jboss-user


___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] Illegal Access Exception

2001-04-01 Thread jBoss Monkey

That will be great. Looking forwardfor  this fix. Thanks, ~jm

From: Dan Christopherson <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED] 
To: [EMAIL PROTECTED] 
Subject: Re: [JBoss-user] Illegal Access Exception 
Date: Fri, 30 Mar 2001 16:19:53 -0600 (CST) 
 
On Fri, 30 Mar 2001, jBoss Monkey wrote: 
 
  
  I had this project running for a while on the previous version of jBoss. 
  Today I did the build with the latest bits from cvs. I have used the same 
  old user and role properties files, callback handler etc... Here is the 
  exception I got. 
  
  Could some one figure out, what is going on in here. As there is illegal 
  access on org.jboss.ejb.MethodInvocation@f1a31 and not on the method on 
  my Bean. 
Oops. That should give you the name of the method. I'll fix this and 
update CVS tonight. 
 
  
  Thanks, 
  
  ~jm 
  
   
  
  [Mail Service] Mail Service 'Mail' bound to java:/Mail 
  [Mail Service] Started 
  [Service Control] Started 25 services 
  [Default] JBoss 2.1-BETA-Mar-26-2001 Started in 0m:24s 
  [JAASSecurity] User 'guest' authenticated. 
  [LocatorBean] Illegal access, principal=guest 
  method=org.jboss.ejb.MethodI 
  nvocation@f1a31 
 
-- 
Dan Christopherson (danch) 
nVisia Technical Architect (www.nvisia.com) 
 
Opinions expressed are mine and do not neccessarily reflect any 
position or opinion of nVISIA. 
 
--- 
If you're a capitalist and you have the best goods and they're 
free, you don't have to proselytize, you just have to wait. 
-Eben Moglen 
 
 
 
___ 
JBoss-user mailing list 
[EMAIL PROTECTED] 
http://lists.sourceforge.net/lists/listinfo/jboss-user 
Get your FREE download of MSN Explorer at http://explorer.msn.com

___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Tomcat + Apache using mod_jk

2001-03-29 Thread jBoss Monkey

Eventually, I was able to integrate Apache with jBoss/Tomcat(embeded), with manually created mod_jk conf file. The only thing i wondered, that I had to use JkMount directive even for j_security_check, which was supposed to be understood by apache by default  to access secure application. 
Thanks everyone for sharing the views, they were very useful.
~jm

From: "Scott M Stark" <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED] 
To: <[EMAIL PROTECTED]>
Subject: Re: [JBoss-user] Tomcat + Apache using mod_jk 
Date: Thu, 29 Mar 2001 13:47:51 -0800 
 
I read the question as "when I use tomcat embeded in JBoss I don't see 
the mod_jk.conf-auto created ..." with a subsequent question as to how to 
use Apache. I was just commenting on why there would not be a 
mod_jk.conf-auto created. 
 
- Original Message - 
From: "Dan Christopherson" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, March 29, 2001 12:49 PM 
Subject: Re: [JBoss-user] Tomcat + Apache using mod_jk 
 
 
  The question was on using Apache to front end Tomcat+JBoss 
  
  On Thu, 29 Mar 2001, Scott M Stark wrote: 
  
   If your not using Apache why would it be used? 
Get your FREE download of MSN Explorer at http://explorer.msn.com

___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user