Problem About J2EE RI and PetStore Demo

Hello ^^
I have a problem about j2ee & petstore.
I trird to set up sun j2ee RI 1.3.1 + pet store on win2000 or redhat.
Everything run ok. But when I changed web port 8000 to any port (included
80),
j2ee ri server showed the error message below :
java.net.ConnectException: Connection refused: connect
java.security.PrivilegedActionException: javax.servlet.ServletException:
An error occurred while evaluating custom action attribute "items" with
value "${catalog.categories.list}": An error occurred while getting
property "categories" from an instance of class
com.sun.j2ee.blueprints.catalog.client.CatalogHelper
I used root to start j2ee & cloudscape on linux,
and changed database to postgresql, too.
but the error is the same.
How to solve this problem ??
Thank you ~~
Jovi

Hi,
I dont know how useful my reply would be since the question was posted about 2 yrs back, but just wanted to reply in case somebody faces the same problem.
If you change the web port to some other port (other than 8000) then please check the sun-j2ee-ri.xml files. Actually the CatalogDAOSQL.xml is read using a url which includes the port you are running the server on. So, you need to change the port even in the sun-j2ee-ri.xml file.
One of the sun-j2ee-ri.xml files, where you need to make the change is in the $PETSTORE_HOME/src/apps/petstore/src/sun-j2ee-ri.xml file.
Other one is in $PETSTORE_HOME/src/apps/supplier/src/sun-j2ee-ri.xml file.
Look for other sun-j2ee-ri.xml files where the url is hardcoded. (I think the two sun-j2ee-ri.xml files mentioned above, are the only places you need to make the change, but still look for other files in case i have missed)
Change those urls and redeploy the ears.
Hope this solves the problem.
Regards,
Archit

Similar Messages

  • The problem about  integrate  Portal and R/3

    Hi everyone :
       We want to achieve that our vendor can query R/3 report via our Portal. I had done SSO configuration.
       But we had about 500 vendors, it is impossible that we create 500 R/3 users for our vendors,  because the cost is too much .
       And there is another problem, vendor who had the authorization to query report can query the other vendor's data at same time. But we expect that certain vendor can query his data only.
       I think this is a general problem when integrate Portal and R/3, BW .
       Is there somebody had solved this problem or give any advice?
       Any discuss is welcome.
    Best Regards,
    Jianguo Chen

    Hi,
    I would say: get in contact with your SAP account manager anc check which options SAP can offer you...
    Normally every user using a R/3 system has to have a valid user license in that system. Expecially when you want to access control to data on user (vendor) level you nedd to identifiy the user clearly and uniquely which by standard means you need a user for every vendor.
    Hth,
    Michael

  • The problem about  integrate  Portal and R/3 : vendor query report problem

    Hi everyone :
       We want to achieve that our vendor can query R/3 report via our Portal. I had done SSO configuration.
       But we had about 500 vendors, it is impossible that we create 500 R/3 users for our vendors,  because the cost is too much .
       And there is another problem, vendor who had the authorization to query report can query the other vendor's data at same time. But we expect that certain vendor can query his data only.
       I think this is a general problem when integrate Portal and R/3, BW .
       Is there somebody had solved this problem or give any advice?
       Any discuss is welcome.
    Best Regards,
    Jianguo Chen

    Hi,
    I would say: get in contact with your SAP account manager anc check which options SAP can offer you...
    Normally every user using a R/3 system has to have a valid user license in that system. Expecially when you want to access control to data on user (vendor) level you nedd to identifiy the user clearly and uniquely which by standard means you need a user for every vendor.
    Hth,
    Michael

  • Facing Many Problems About Creating Directory and an External Table

    Question:
    The weird thing is if you look at question 10-b in page 3-41, it says:
    (page 3-41 "Oracle Database 10g SQL Fund. II Vol.1")
    Merge the data in the EMP_DATA table created in the last lab into the data in the emp_hist table. Assume
    that the data in external EMP_DATA table matches the EMP_HIST table, update the email column
    of the EMP_HIST table to match the EMP_DATA table row. If a row in the EMP_DATA table does not
    match, insert into the EMP_HIST tables. Rows are considered matching when the employee's first and
    last name are identical.
    To me, this question is constructed wrongly. First of all in the last lab we have not been asked to create EMP_DATA. Secondly, EMP_DATA is empty.
    Thirdly, this question asks us to merge into EMP_HIST table while EMP_DATA is empty.
    EMP_HIST table currently has copied data from employees table. EMP_HIST structure:
    FIRST_NAME VARCHAR2(20)
    LAST_NAME NOT NULL VARCHAR2(25)
    EMAIL NOT NULL VARCHAR2(45)
    Anway, i did the merge as following:
    merge into emp_hist e
    using emp_data d
    on (e.first_name = d.first_name)
    when matched then
    update set
    e.last_name = d.last_name,
    e.email = d.email
    when not matched then
    insert values (d.first_name, d.last_name, d.email);
    I get this error:
    Error report:
    SQL Error: ORA-29913: error in executing ODCIEXTTABLEOPEN callout
    ORA-29400: data cartridge error
    KUP-04040: file emp.dat in EMP_DIR not found
    ORA-06512: at "SYS.ORACLE_LOADER", line 19
    29913. 00000 - "error in executing %s callout"
    *Cause:    The execution of the specified callout caused an error.
    *Action:   Examine the error messages take appropriate action.
    On the other hand, i said let me try this:
    merge into emp_data d
    using emp_hist e
    on (d.first_name = e.first_name)
    when matched then
    update set
    d.last_name = e.last_name,
    d.email = e.email
    when not matched then
    insert values (e.first_name, e.last_name, e.email);
    I get this error because external table is final once its created as far as i know:
    Error report:
    SQL Error: ORA-30657: operation not supported on external organized table
    30657.0000 - "operation not supported on external organized table"
    *Cause:    User attempted on operation on an external table which is
    not supported.
    *Action:   Don't do that!
    I do not know what to do. I did my best, please help.
    Edited by: user11164565 on Jul 27, 2009 2:43 AM

    user11164565 wrote:
    NOTE: I did my best, i did all what i can do, but the problem persists. Please help
    I will mention all the steps i did clearly....
    I gave scott the following grants:
    grant create any directory to scott;
    grant read on directory emp_dir to scott;
    1. Created a directory and its been created successfully:
    create or replace directory emp_dir
    as 'F:\emp_dir';
    Then i did the following just to make sure my directory is recognized:
    SELECT *
    FROM dba_directories;
    I found the drive amongst the results...
    OWNER DIRECTORY_NAME
    DIRECTORY_PATH
    SYS EMP_DIR
    F:\emp_dir
    SYS SUBDIR
    D:\oracle\product\10.2.0\db_1\demo\schema\order_entry\/2002/Sep
    SYS XMLDIR
    D:\oracle\product\10.2.0\db_1\demo\schema\order_entry\
    2. I created an external table emp_data (the script is given by the text book): done successfully
    drop table emp_data;
    CREATE TABLE emp_data
    (first_name VARCHAR2(20)
    ,last_name VARCHAR2(20)
    , email VARCHAR2(30)
    ORGANIZATION EXTERNAL
    TYPE oracle_loader
    DEFAULT DIRECTORY emp_dir
    ACCESS PARAMETERS
    RECORDS DELIMITED BY NEWLINE CHARACTERSET US7ASCII
    NOBADFILE
    NOLOGFILE
    FIELDS
    ( first_name POSITION ( 1:20) CHAR
    , last_name POSITION (22:41) CHAR
    , email POSITION (43:72) CHAR )
    LOCATION ('emp.dat') ) ;
    3. I went to F:\ drive to see if emp_dir folder exist or not! I did not see it. I checked hidden files, nothing there. Anyway, i ignored it and did step 4.
    <snip>
    "Anyway, I ignored it . . . "
    and hence the rest of your problems. I did not see in the steps you recounted that you acually created a directory ("folder") named "\emp_dir" on your f: drive. Nothing you create within the database will actually create that directory on the OS. Createing a directory in Oracle, createing an external table in Oracle, will only create pointers to objects that Oracle will simply assume actually exists.

  • Problem about Triggering BPM and Process monitor

    Hi all,
    I am new on the BPM domain. Now i got some problem working on it.
    First, i want to execute a FM or Program in ECC, and then trigger the process of BPM, how to do this?
    or maybe i can say like this, i want to start a BPM from ECC screen, how could i do?
    Second, the requester could find the completed tasks in UWL with some simple text only,
    if he wants to see the whole process status, is that possible?
    Regards,
    Fisher

    Hi Harsha,
    Thx for your reply.
    For First, is the URL which in Process Repository, after clicking "start process", something like "http://www.example.org/bpem/..... "?
    but seems i cannot open the URL for detail XML data. Could you give some more details?
    For Second, go to UWL page, in Tasks tab, choose "completed tasks" in first dropdown box, you can get the task list then.
    And it returns only "priority, completion date, status".
    If the task is in progress, yes, process visualization will picture the state of the process.
    But my customers (requesters), not admin, want to see the diagram after they submit, with status better. Any suggestion?
    Regards,
    Fisher

  • Problems about reading Japanese and writing Chinese

    Hi all experts,
    Now I have a encoding problem.
    My task is, read some Japanese in a text-based file, and then replace that Japanese with a Chinese string.
    That means, the program must be able to understand both the Japanese encoding and the Chinese encoidng. But the dilemma is that, in the OS I am using (Windows), you can only have one locale at a time. If you set your OS locale to Chinese, the program is able to write Chinese, but it cannot properly detect the Japanese. On the othe hand, if you set your OS locale to Japanese, the program is able to detect Japanese, but it cannot properly write Chinese.
    So can any one help me get around this problem (for instance, there is some special API dealing with encodings and so on)?
    Thanks a lot!

    InputStreamReader and OutputStreamWriter constructors both accept parameters to specify the encoding of the data stream.
    The New IO (NIO) classes have these and additional capabilities, including converting from one encoding to another using code like this:
    Charset charset = Charset.forName("ISO-8859-1");
    CharsetDecoder decoder = charset.newDecoder();
    CharBuffer charBuffer = decoder.decode(buffer);Look at the java.nio.charset package.

  • Several Problems about setting tabs and MMS

    Hello,
    I have recently started using my Unlocked Iphone 4 with T-mobile and have encountered a few problems.
    1.) I am missing a few settings such as network, MMS, cellular editting, ect.
    2.) My phone perfers Edge over 3g and only picks up 3g when I am on the road.
    3.) my Phone drops connection a lot and goes into "searching..."
    4.) I can not group chat BUT I am still able to text
    How would I be able to fix the problems at hand?
    Would I be able to go to the genius bar even if I bought my iphone on craigslist? I still have the original SIM from the owner.

    brianhasazoo wrote:
     2.) My phone perfers Edge over 3g and only picks up 3g when I am on the road.
    NO, not entirely correct.  TMO has a very limited 3G network that is compatible with the iPhone.  This is one of the downsides of using an iPhone on TMO.  Until TMO upgrades their network to provide more 3G coverage that is compatible with the iPhone, users with iPhones will be restricted to the EDGE network.

  • I made an in app purchase, it said purchase successful but it never showed up. I was charged for it too and so far I've reported a problem about 3 times and I waited a full day and still no response.Happened before but i got an email that time.HELP

    Made an in app purchase and it never showed up. Reported  it and waited a full day and no response. What do i do from here?

    How long ago did you last contact Support, and how ? If it's been longer than 48 hours, and only tried one method of contact, then you could try the other :
    -  the 'report a problem' page : http://reportaproblem.apple.com
    - contacting iTunes Support via this page : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page, then Purchases, Billing & Redemption

  • I have problems with j2ee standalone and de crm server

    Hello guys,
    I have installed a crm server and a j2ee standalone,
    the j2ee intance have been intalled sacesfully but when the java application was deployed, it had ocurred the following error.
    WARNING    2009-03-03 11:21:51
               CJSlibModule::writeWarning_impl()
    Found profile of Java instance JC01 in supposed system based on AS-ABAP C18. Setting hasABAP status to undefined.
    TRACE      [iaxxejsexp.cpp:199]
               EJS_Installer::writeTraceToLogBook()
    2009-03-03 11:21:51.808 NW._setHasABAP(undefined)
    TRACE      [iaxxejsexp.cpp:199]
               EJS_Installer::writeTraceToLogBook()
    NWException thrown: nw.hasABAPswitchABAP:
    SAP system C18 is a ABAP or double stack system. Cannot switch this to a Java standalone system.
    TRACE      [iaxxejsexp.cpp:199]
               EJS_Installer::writeTraceToLogBook()
    t_NW_Options.updateRow(, WHERE name='collected'), updating
    ERROR      2009-03-03 11:21:51
               CJSlibModule::writeError_impl()
    CJS-30036  SAP system C18 is a ABAP or double stack system. Cannot switch this to a Java standalone system.
    And now this error show when i want to do something.
    Now I want to uninstall the j2ee but the result is the same.
    Thank you.

    Hi,
    >SAP system C18 is a ABAP or double stack system. Cannot switch this to a Java standalone system
    It seems that your CRM server was installed as a dual stack system.
    Did you change your mind and want now a separate java stack ?
    You have to find how to tell the abap stack to not use its integrated java stack.
    If you find, I will be interested because I intend to do exactly that : separate the abap and java stacks from a CRM 2007 system because this is a mess to manage.
    Regards,
    Olivier

  • A problem about event-driven and multi-thread ( maybe?)

    I am thinking of doing a piece of small software. I am going to write a server, storing some dynamic information. and each client (surely in different threads) has a JList, which is supposed to update itself with server, such as adding an item, etc.
    a straightforward example is an IM software, each client stores a list of online buddies, and if a new client logs in, many other clients have to update the buddies list.
    What is a good approach of doing that? I am thinking of adding a public method, addItem() into the thread handler, which adds a new item into the JList. but is it a good design to have a public method other than "run()" in the thread handler?
    Or do I have to define a new event of new item needed to be added?
    Thanks.

    Actually I am just asking for how to design a good communication between the server and the client...
    so just as a client A logging in, the server knows that the client A has logged in, and A,B are friends, B's friend lists should be updated, which means adding A to that list. so I am thinking have a addItem() method in the thread handler of B, so I can call ThreadHandlerB.addItem( A ) in the code of the server, since server knows that A has logged in.
    or is there any good approach? And most importantly, is it a safe way to have a public method in the thread handler?
    Thanks so much!

  • Problem about Organization Unit and Role in BPM

    Hi,
    I am developing BPM project which have some roles and will be deployed for many organization. In JDev, I want to assign users to each role and organization and when the project is deployed to WorkSpace, each user in specify org can only manipulate with his task (other user can not visible). I tried configure in Jdev and WorkSpace but it is working incorrecttly
    I used BPM, Jdev 11g.
    Some body help ?
    Thanks.

    Hi
    1. When you add new Roles, Users to Roles etc from JDev and Deploy it, ONLY for the first time deployment, all these information is added to the Workspace and you can see it in Admin tab of workspace. You should see them in one of the tables of soainfra like BPM_CUBE_ROLE like that. The point is, after first deployment, when you add more users to the same Role, they will not be reflected in Workspace. I guess this was Designed intentionally to avoid overwriting of users with every redeployment. The only way to add more Users or Edit Users for Each Role is from the bpm/workspace application with adminstrator Role.
    This makes sense also. Beacause when we develop any BPM Application, all we consider is the Roles names called as Studio Roles (or Swimlanes etc). They are just dummy and virutal Roles. We add all Tasks for each Role. Thats it. Then you Deploy them. And only in Workpace, we map these dummy studio Roles to the real Users from the Security Providers of that SOA/BPM Domain like from default seucrity provider or any external configured AD LDAP etc.
    Unless there is a very strong reason, I would not recommend to add Users/Groups etc to the Studio Roles in the JDeveloper itself. Worst case, after you deploy it, if you see any discrepencies, just delete the Roles from workspace admin. Redeploy your bpm app and it will create the new Roles.
    Thanks
    Ravi Jegga

  • 5220 express music problem about my mms and gprs

    i have olready open my mms and gprs but its not working it always say's that u have invalid web setting
    or no setting found wat should i do so i can receive and send mms and browse the internet tooo
    plz help me

    I do not fully understand how the iClould redownloads work. That is what you are doing. When I go to my iTunes account, I see a list o dvices accociated with my account for automatic download and to dowload previous purchased items. It says that a device can be associated with a dfferent account one every 90 days.

  • Problem about Asset Deletion and Blocking

    Hi Gurus:
    I want to know what difference is between deletion and blocking of fixed asset? Please give me some more information, thanks!

    Hi,
    Please refer to the following explanation:
    Asset blocking: Set the blocking indicator in the asset master record. Once the blocking indicator is set, you can no longer post acquisitions to this asset. The idea behind this, for example, is to prevent future postings to an asset under construction once the project is complete. After approval, the asset can be unblocked and reuse it again.
    Asset deletion: You can delete an asset master record to which no postings have been made, directly online, without archiving. In addition, it is also possible to manually delete old assets (legacy assets from your previous system) during the asset data transfer process.
    Hope can help you!
    Regards
    Tao

  • A problem about UWL substitution and GP

    Hi, Guys.
         Can UWL substitution mechanism also include gp task? I have some gp tasks in my uwl. When I set someone as my substitution, all of my tasks can be seen by my substitution(besides gp tasks). Is it a system restriction or just I need to do some configuration?
    Thx.

    Hi Louis,
    Please check this thread: Re: Can I forward o define substitution rules for Guided Prodedure tasks?
    Regards,
    Deepti

  • A problem about calling Labview vi in VB

    Hi all:
    I meeting a problem about data transfer and parallel operation between VB and Labview.
    Actually, I want develop a VB program, in which, the Labview VI can be called and corresponding parameters can be transferred to Labview. and then, I also can operate my system by VB program at same time. something like parallel operation (VB and Labview program).
     But the question is :
    1.   If I use "Call" method of ActiveX in VB,  and the LabVIEW subvi is not stopped (for example, a loop structure), I can not do  parallel operation on VB program. The error message is "other application is busy" which is attached below. The sample codes is also attached.
    2.   I tried to use other methods like "OpenFrontPanel" and "Run", but I am not sure how to transfer the parameter??
    3.  Then I tried to use "SetControlValue" to set the parameters, but there is a error " := expected", which is very strange, because the statement  I wrote is followed with the help documents [ eg: VI.SetControlValue ("string", value)], why it is still need a "=" ??
    Does anybody know something about it? Thanks a lot
    Message Edited by hanwei on 11-07-2008 03:18 PM
    Attachments:
    vb_labview_error_message_1.JPG ‏14 KB
    VB_to_LV.zip ‏10 KB

    I sure hope OP has solved it by now.
    /Y
    LabVIEW 8.2 - 2014
    "Only dead fish swim downstream" - "My life for Kudos!" - "Dumb people repeat old mistakes - smart ones create new ones."
    G# - Free award winning reference based OOP for LV

Maybe you are looking for

  • Calendar in iCloud deleted - need help to get the data back

    Hi, I just deleted one of my calendars in iCloud. Is there any chance to get this calendar (with all the data) back into iCloud? Thanks for your help. Pierre

  • Using EveryNCallback function with a C++ class (not VB)

    Hello all, I am trying to incorporate one of the ANSI C examples into my code which contains C++ classes. I receive errors because of having to declare the EveryNCallback and DoneCallback functions as static to keep their C function signature. This o

  • Presenter add-in error - stumped...

    Hi, has anyone ever come across an error with the cisco presenter add-in when trying to share a screen in meeting place? One user is getting this error and we are not able to find a solution anywhere.  His is running XP SP2. The add-in installs fine,

  • SAP CRM Consultants Needed

    SAP CRM skilled contractors for a project to start in Derby. Mandatory Implementation experience on at least one implementation of SAP CRM version 3.1 or higher. Configuration and Implementation of the CIC within CRM (frameworks, transaction etc.) Co

  • HR Benefits Best Practice

    Is there an HR Benefits Best Practice document floating around out there?