Dear, Harrison
    Thank you very much  my warmhearted friend.
    I am very happy to see JPS1.1 is sucessfully installed on Orion after I followed 
you instruction step by step.

     Thanks again.

    yoursUrey  <www.easipath.com><[EMAIL PROTECTED]>

Ps.
      The message you sent to me is very helpful. I think somebody on J2EE forum would 
be very happy to see your message too. I sugest that you post the message on J2EE 
forum Enterprise Java BeansTM.


*********************************************************
----- Original Message -----
From: "Ray Harrison" <[EMAIL PROTECTED]>
To: "Orion-Interest" <[EMAIL PROTECTED]>
Sent: Tuesday, October 31, 2000 8:24 PM
Subject: Re: PetStore run in Orion error,Help Me


Hi Urey -
Here is what Sun says about your immediate problem.....
--------------------------------------------------------------------------------
Workaround #1:
--------------
If you are only interested in the English version of the Petstore
then please use following steps.  Please note this option will not allow
you to view the Japanese version of the Petstore.

1. change directory to
        jps1.1/src/petstore/src/docroot/xml
2. open the file named "requestmappings.xml".
3. delete the following line:

   <screen-definition url="/xml/ja/screendefinitions.xml" language="ja_JP"/>

4. save the file with the line now deleted.
5. build and deploy the petstore.ear
----------------------------------------------------------------------------

There are a number of other issues associated with this particular release of the pet 
store.


You aren't finished yet!

Go to the main source directory - on my machine it is c:\jps1.1\src\petstore\src\
and open estore-ejb.xml:

Find the line securityAdapterClassName and replace the value for the j2ee security 
adapter
with

<env-entry-value>OrionSecurityAdapter</env-entry-value>....

The whole entry should look like this:

      <env-entry>
        <env-entry-name>securityAdapterClassName</env-entry-name>
        <env-entry-type>java.lang.String</env-entry-type>
        <env-entry-value>OrionSecurityAdapter</env-entry-value>
        <env-entry-value>true</env-entry-value>
      </env-entry>

Next:

Do the above in the ..src/docroot/WEB-INF/web.xml (i.e. replace the j2eesecurity 
adapter
w/ OrionSecurityAdapter.

Also in that same file look for the lines that look like:
    <form-login-config>
      <form-login-page>formbasedloginscreen</form-login-page>
      <form-error-page>formbasedloginerrorscreen</form-error-page>
    </form-login-config>

and replace the page names as follows:

   <form-login-config>
      <form-login-page>/login.jsp</form-login-page>
      <form-error-page>/error.jsp</form-error-page>
    </form-login-config>


build the application and deploy the new ear file.....

NEXT:

The old estore-orionadapter.jar file will no longer work with the petstore (works only 
with
version 1.0.x). Do this:

1.) Extract all of the files from the estore-orionadapter.jar and open
OrionSecurityAdapter.java
2.) Replace:
.
.
.
import com.sun.estore.account.ejb.DuplicateAccountException;
import java.security.*;

public class OrionSecurityAdapter implements com.sun.estore.util.SecurityAdapter
.
.
.
With:
.
.
.
import com.sun.j2ee.blueprints.petstore.control.DuplicateAccountException;
import java.security.*;

public class OrionSecurityAdapter implements 
com.sun.j2ee.blueprints.petstore.util.SecurityAdapter
.
.
.
and then compile this file - then jar it up into the customerEjb.jar file that is 
created when you
deploy the application: for instance in the directory
orion\applications\petstore -






I probably missed a step or so - but these are at least most of the major issues.

Have fun!

Ray Harrison
Senior Managing Partner
TSG Interntational, LLC
Denver, CO








--- ureyurey <[EMAIL PROTECTED]> wrote:
>
> Hi,ALL
> I am hardly installed the petStore into Orion, But When I run it at
> url:"http://localhost:8080/petstore/control/language? language=English"
> Then got errors of that,
>
> java.lang.NullPointerException
> at
> com.sun.j2ee.blueprints.petstore.control.web.ScreenFlowXmlDAO.get
> ScreenDefinitions(ScreenFlowXmlDAO.java:131)
> at
> com.sun.j2ee.blueprints.petstore.control.web.ScreenFlowXmlDAO.loa
> dScreenDefinitionMappings(ScreenFlowXmlDAO.java:106)
>
> at
> com.sun.j2ee.blueprints.petstore.control.web.ScreenFlowManager.in 
>it(ScreenFlowManager.java:40)
> at
> com.sun.j2ee.blueprints.petstore.control.web.MainServlet.getScree
> nFlowManager(MainServlet.java:96)
> at
> com.sun.j2ee.blueprints.petstore.control.web.MainServlet.init (MainServlet.java:37)
> at javax.servlet.GenericServlet.init
> (GenericServlet.java)
> at com.evermind.server.http.HttpApplication.wt(JAX)
> at com.evermind.server.http.HttpApplication.wb(JAX)
> at com.evermind.server.http.e9.um(JAX)
> at com.evermind.server.http.ef.su(JAX)
> at com.evermind.server.http.ef.dn(JAX)
> at com.evermind.util.f.run(JAX)
>
> Who can tell me,
> How to do it? and why?
> Thanks a lot
> yoursUrey
>
>
> ______________________________________
>
> 
>==================================================================&ETH;&Acirc;&Agrave;&Euml;&Atilde;&acirc;·&Ntilde;&micro;&ccedil;×&Oacute;&Oacute;&Ecirc;&Iuml;&auml;
> http://mail.sina.com.cn
> 
>&ETH;&Acirc;&Agrave;&Euml;&Iacute;&AElig;&sup3;&ouml;°&Acirc;&Ocirc;&Euml;&para;&Igrave;&ETH;&Aring;&Iuml;&cent;&Ecirc;&Ouml;&raquo;ú&micro;&atilde;&sup2;&yen;·&thorn;&Icirc;&ntilde;
> http://sms.sina.com.cn/
>


__________________________________________________
Do You Yahoo!?
Yahoo! Messenger - Talk while you surf!  It's FREE.
http://im.yahoo.com/



______________________________________

==================================================================新浪免费电子邮箱 
http://mail.sina.com.cn
新浪推出奥运短信息手机点播服务
http://sms.sina.com.cn/

Reply via email to