• Post Reply Bookmark Topic Watch Topic
  • New Topic

CORBA exception running pet store ???  RSS feed

Kathy Shkarlet
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm trying to run j2ee sample pet store on win98 machine. The j2ee bundle seemed to install without problems - I'm accessing the welcome screen. The cloudscape is running and has data. The first screen of pet store is showing, BUT - when i'm trying to do something - pick an animal or log in - I'm getting CORBA exception similar to
Internal Servlet Error:
com.sun.j2ee.blueprints.petstore.control.GeneralFailureException: CORBA OBJ_ADAPTER 1398079592 No; nested exception is:
org.omg.CORBA.OBJ_ADAPTER: minor code: 1398079592 completed: No
at com.sun.j2ee.blueprints.petstore.control.web.ShoppingClientControllerWebImpl.getCustomerEJB(ShoppingClientControllerWebImpl.java:77)
at com.sun.j2ee.blueprints.petstore.control.web.ModelManager.getCustomerEJB(ModelManager.java:154)
at com.sun.j2ee.blueprints.petstore.control.web.AccountWebImpl.performUpdate(AccountWebImpl.java:41)
at com.sun.j2ee.blueprints.petstore.control.web.ModelUpdateNotifier.notifyListeners(ModelUpdateNotifier.java:37)
at com.sun.j2ee.blueprints.petstore.control.web.RequestProcessor.checkForWebServerLogin(RequestProcessor.java:144)
at com.sun.j2ee.blueprints.petstore.control.web.RequestProcessor.processRequest(RequestProcessor.java:100)
at com.sun.j2ee.blueprints.petstore.control.web.MainServlet.doGet(MainServlet.java:61)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
at org.apache.tomcat.core.ServiceInvocationHandler.method(ServletWrapper.java:626)
at org.apache.tomcat.core.ServletWrapper.handleInvocation(ServletWrapper.java:534)
at org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:378)
at org.apache.tomcat.core.Context.handleRequest(Context.java:644)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:440)
at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:144)
at org.apache.tomcat.service.TcpConnectionThread.run(TcpEndpoint.java:310)
at java.lang.Thread.run(Thread.java:484)
If anybody has ideas on how to fix this - I'll be happy to try them out!
Rahul Mahindrakar
Ranch Hand
Posts: 1869
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think you are making a mistake here given in the installation documentation I quote.
Configure the J2EE SDK to use the Java TM Pet Store database.
Edit the file %J2EE_HOME%\config\default.properties, and append to the jdbc.datasources property the following text:
|jdbc/EstoreDB|jdbc:cloudscape:rmi:CloudscapeDB;create=true| jdbc/InventoryDB|jdbc:cloudscape:rmi:CloudscapeDB;create=true.
Be sure the variable and its value appear on a single line, not broken in two pieces as shown here

Now what you have to do is not open the default.properties in any editor but go to the dos prompt and use edit default.properties and make the changes from edit. I think it will work from then.
I will send you the file by mail. place it in the required folder and check it .


IBM Application Server Forum Moderator
Peter Gragert
Ranch Hand
Posts: 424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hallo Kathy,
I am struggeling with the petstore too.
I did what Rahul suggests to you.
Where I have problems is the last step,
after collecting 'pets' in my cart the confirmation of
sending gives 'nonsense'. I have to try to find out
what goes wrong.
Succes with overcomming your first problem, if there are more,
maybe you go on on this thread?
Have a nice weekend
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!