Petstore
Hi,
I am reading through the petstore source code.I cannot figure out how the first screen (main screen)initialized.When MainServlet is called,it suppose call init method in MainServlet,so i assume the main screen should be initialized in init method.But I didn't find where is it.Can someone help me on that?The MainServlet is copied bellow:/*
* $Id: MainServlet.java,v 1.14.4.8 2001/03/15 00:40:02 brydon Exp $
* Copyright 2001 Sun Microsystems, Inc. All rights reserved.
* Copyright 2001 Sun Microsystems, Inc. Tous droits r?erv?.
package com.sun.j2ee.blueprints.petstore.control.web;
import javax.servlet.ServletException;
import javax.servlet.ServletContext;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpSession;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.PrintWriter;
import java.io.OutputStreamWriter;
import java.beans.Beans;
import java.io.IOException;
import java.util.HashMap;
import java.util.Locale;
import javax.naming.NamingException;
import javax.naming.InitialContext;
import com.sun.j2ee.blueprints.petstore.util.JNDINames;
import com.sun.j2ee.blueprints.petstore.control.exceptions.SigninFailedException;
import com.sun.j2ee.blueprints.petstore.control.exceptions.GeneralFailureException;
import com.sun.j2ee.blueprints.util.tracer.Debug;
import com.sun.j2ee.blueprints.petstore.control.web.ModelManager;
import com.sun.j2ee.blueprints.petstore.control.web.CustomerWebImpl;
import com.sun.j2ee.blueprints.petstore.control.web.ScreenFlowXmlDAO;
import com.sun.j2ee.blueprints.petstore.control.web.RequestProcessor;
import com.sun.j2ee.blueprints.petstore.util.WebKeys;
import com.sun.j2ee.blueprints.petstore.util.JSPUtil;
public class MainServlet extends HttpServlet {
private HashMap urlMappings;
public void init() {
Debug.println("MainServlet: Initializing");
String requestMappingsURL = null;
try {
requestMappingsURL = getServletContext().getResource("/WEB-INF/xml/requestmappings.xml").toString();
} catch (java.net.MalformedURLException ex) {
Debug.println("ScreenFlowManager: initializing ScreenFlowManager malformed URL exception: " + ex);
urlMappings = ScreenFlowXmlDAO.loadRequestMappings(requestMappingsURL);
getServletContext().setAttribute(WebKeys.URLMappingsKey, urlMappings);
Debug.println("MainServlet: loaded urlMappings");
String serverType = null;
try {
InitialContext ic = new InitialContext();
serverType = (String)ic.lookup(JNDINames.SERVER_TYPE);
getServletContext().setAttribute(WebKeys.ServerTypeKey, serverType);
} catch (NamingException ex) {
Debug.println("Server Type not specified in deployment descriptor: using default J2ee Security Adapter");
getScreenFlowManager();
getRequestProcessor();
Debug.println("MainServlet: Initialization complete");
public void doPost(HttpServletRequest request, HttpServletResponse response)
throws IOException, ServletException {
doGet(request, response);
public void doGet(HttpServletRequest request, HttpServletResponse response)
throws IOException, ServletException {
String selectedURL = request.getPathInfo();
// the current tomcat is resetting the outputstream so this is a workaround
if ((selectedURL != null) && selectedURL.equals("/white")) return;
HttpSession session = request.getSession();
ScreenFlowManager screenManager = null;
ModelManager modelManager= (ModelManager)request.getSession().getAttribute(WebKeys.ModelManagerKey);
if ( modelManager == null ) {
try {
modelManager = (ModelManager) Beans.instantiate(this.getClass().getClassLoader(), "com.sun.j2ee.blueprints.petstore.control.web.ModelManager");
} catch (Exception exc) {
throw new ServletException ("Cannot create bean of class ModelManager");
session.setAttribute(WebKeys.ModelManagerKey, modelManager);
modelManager.init(getServletContext(), session);
Debug.println("MainServlet: url " + selectedURL);
// check if url is protected before processing request
URLMapping current = getURLMapping(selectedURL);
if ((current != null) && current.requiresSignin()) {
CustomerWebImpl customer = modelManager.getCustomerWebImpl();
if (customer.isLoggedIn()) {
doProcess(request);
} else {
String signinScreen = getScreenFlowManager().getSigninScreen();
session.setAttribute(WebKeys.CurrentScreen, signinScreen);
session.setAttribute(WebKeys.SigninTargetURL, selectedURL);
} else {
doProcess(request);
Default to the base language or the site.
If a language is found in the session use that template.
Locale locale = JSPUtil.getLocale(request.getSession());
getServletConfig().getServletContext().getRequestDispatcher(getScreenFlowManager().getTemplate(locale)).forward(request, response);
private void doProcess(HttpServletRequest request) throws ServletException {
try {
getRequestProcessor().processRequest(request);
getScreenFlowManager().getNextScreen(request);
} catch (Throwable ex) {
String className = ex.getClass().getName();
String exceptionScreen = getScreenFlowManager().getExceptionScreen(className);
Debug.println("MainServlet: target screen is: " + exceptionScreen);
// put the exception in the request
request.setAttribute("javax.servlet.jsp.jspException", ex);
if (exceptionScreen != null) {
request.getSession().setAttribute(WebKeys.CurrentScreen, exceptionScreen);
} else {
// send to general error screen
Debug.println("MainServlet: unknown exception: " + className);
throw new ServletException("MainServlet: unknown exception: " + className);
private RequestProcessor getRequestProcessor() {
RequestProcessor rp = (RequestProcessor)getServletContext().getAttribute(WebKeys.RequestProcessorKey);
if ( rp == null ) {
Debug.println("MainServlet: initializing request processor");
rp = new RequestProcessor();
rp.init(getServletContext());
getServletContext().setAttribute(WebKeys.RequestProcessorKey, rp);
return rp;
private ScreenFlowManager getScreenFlowManager() {
ScreenFlowManager screenManager = (ScreenFlowManager)getServletContext().getAttribute(WebKeys.ScreenManagerKey);
if (screenManager == null ) {
Debug.println("MainServlet: Loading screen flow definitions");
screenManager = new ScreenFlowManager();
screenManager.init(getServletContext());
getServletContext().setAttribute(WebKeys.ScreenManagerKey, screenManager);
return screenManager;
* The UrlMapping object contains information that will match
* a url to a mapping object that contains information about
* the current screen, the RequestHandler that is needed to
* process a request, and the RequestHandler that is needed
* to insure that the propper screen is displayed.
private URLMapping getURLMapping(String urlPattern) {
if ((urlMappings != null) && urlMappings.containsKey(urlPattern)) {
return (URLMapping)urlMappings.get(urlPattern);
} else {
return null;
If you look at the lifecycle of a servlet, after init either doGet or doPost gets called (depends on the HTTP method you used.) If you just enter the URL on the browser address bar and hit enter, a HTTP GET method is actually issued which is translated to doGet.
In doGet, the last line says getRequestDispatcher(...).forward(...)
This is where the servlet redirects to a new page. The argument to getRequestDispatcher is the URL which is gotten from getScreenFlowManager based on the locale.
Similar Messages
-
Hi all,
I am currently trying to get Petstore 1.3.1 going on WLS 7.0.0.1 an got
into quite som trouble (btw, does anyone have expereince with this
cofiguration?). After successful deployment in /application I tried the
"populate database" link on ~/petstore/index.jsp and got:
java.sql.SQLException: The transaction is no longer active (status = Committed). No further JDBC access is allowed within this transaction.
at weblogic.jdbc.jts.Connection.checkIfRolledBack(Connection.java:541)
at weblogic.jdbc.jts.ResultSet.close(ResultSet.java:293)
at weblogic.jdbc.rmi.internal.ResultSetImpl.close(ResultSetImpl.java:144)
at weblogic.jdbc.rmi.SerialResultSet.close(SerialResultSet.java:96)
at weblogic.jdbc.rmi.SerialResultSet.close(SerialResultSet.java:87)
at weblogic.ejb20.cmp.rdbms.RDBMSPersistenceManager.releaseResultSet(RDBMSPersistenceManager.java:1797)
at weblogic.ejb20.cmp.rdbms.RDBMSPersistenceManager.releaseResources(RDBMSPersistenceManager.java:1679)
at weblogic.ejb20.cmp.rdbms.RDBMSPersistenceManager.execGenKeyNamedSequenceTableUpdateAndQuery(RDBMSPersistenceManager.java:1489)
at weblogic.ejb20.cmp.rdbms.RDBMSPersistenceManager.getNextGenKeyNamedSequenceTable(RDBMSPersistenceManager.java:1307)
at com.sun.j2ee.blueprints.address.ejb.AddressEJB_fvu9sn__WebLogic_CMP_RDBMS.ejbCreate(AddressEJB_fvu9sn__WebLogic_CMP_RDBMS.java:1723)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.ejb20.manager.DBManager.create(DBManager.java:737)
at weblogic.ejb20.manager.DBManager.localCreate(DBManager.java:716)
at weblogic.ejb20.internal.EntityEJBLocalHome.create(EntityEJBLocalHome.java:182)
at com.sun.j2ee.blueprints.address.ejb.AddressEJB_fvu9sn_LocalHomeImpl.create(AddressEJB_fvu9sn_LocalHomeImpl.java:155)
at com.sun.j2ee.blueprints.petstore.tools.populate.AddressPopulator.createAddress(AddressPopulator.java:94) at com.sun.j2ee.blueprints.petstore.tools.populate.AddressPopulator.access$7(AddressPopulator.java)
at com.sun.j2ee.blueprints.petstore.tools.populate.AddressPopulator$1.create(AddressPopulator.java:73)
at com.sun.j2ee.blueprints.petstore.tools.populate.XMLDBHandler.endElement(XMLDBHandler.java:145)
at org.xml.sax.helpers.XMLFilterImpl.endElement(XMLFilterImpl.java:595)
at com.sun.j2ee.blueprints.petstore.tools.populate.XMLDBHandler.endElement(XMLDBHandler.java:158)
at weblogic.apache.xerces.parsers.SAXParser.endElement(SAXParser.java:1411)
at weblogic.apache.xerces.validators.common.XMLValidator.callEndElement(XMLValidator.java:1613)
at weblogic.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(XMLDocumentScanner.java:1219)
at weblogic.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.java:396)
at weblogic.apache.xerces.framework.XMLParser.parse(XMLParser.java:1119)
at weblogic.xml.jaxp.WebLogicXMLReader.parse(WebLogicXMLReader.java:135)
at weblogic.xml.jaxp.RegistryXMLReader.parse(RegistryXMLReader.java:133)
at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:371)
at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:371)
at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:371)
at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:371)
at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:371)
at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:371)
at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:371)
at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:371)
at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:371)
at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:371)
at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:371)
at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:371)
at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:371)
at com.sun.j2ee.blueprints.petstore.tools.populate.PopulateServlet.populate(PopulateServlet.java:162)
at com.sun.j2ee.blueprints.petstore.tools.populate.PopulateServlet.doPost(PopulateServlet.java:118)
at com.sun.j2ee.blueprints.petstore.tools.populate.PopulateServlet.doGet(PopulateServlet.java:106)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:945)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:332)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:20)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
at com.sun.j2ee.blueprints.signon.web.SignOnFilter.doFilter(SignOnFilter.java:151)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
at com.sun.j2ee.blueprints.encodingfilter.web.EncodingFilter.doFilter(EncodingFilter.java:77)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:5366)
at weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManager.java:721)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3043)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2468)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:152)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:133)
and similar traces for ContactInfo, CreditCard, Account, Profile, ...
I nevertheless get to the main screen of the Petstore as if everything
worked well. In fact, it seems like the DB got populated somewhat
correctly; only tbe named sequence tables are unchanged (btw: are the
named sequences expected to be auto-created with
create-default-dbms-tables enabled ?). The strange thing is that every
correct row (in my case having the even IDs) is followd by an all (except the
odd numbered ID field) "NULL" row. This does not happen in all
...EJBTABLEs --- Address and ContactInfo for example are affected, but Profile
is not.
It seems as if ordering a rattlesnake would work well, even though more
of the same type of Execptions appear in the jdbc log. I suspect that the
trouble will start when the 10 cached ID are exhausted.
Any ideas?
KaiI just tried the Petstore 1.3 example provided with WLS 7.0.0.1 and found
petty much the same exception after enabling the jdbc log:
java.sql.SQLException: The transaction is no longer active (status = Committed). No further JDBC access is allowed within this transaction.
at weblogic.jdbc.jts.Connection.checkIfRolledBack(Connection.java:541)
at weblogic.jdbc.jts.ResultSet.close(ResultSet.java:293)
at weblogic.jdbc.rmi.internal.ResultSetImpl.close(ResultSetImpl.java:144)
at weblogic.jdbc.rmi.SerialResultSet.close(SerialResultSet.java:96)
at weblogic.jdbc.rmi.SerialResultSet.close(SerialResultSet.java:87)
at weblogic.ejb20.cmp.rdbms.RDBMSPersistenceManager.releaseResultSet(RDBMSPersistenceManager.java:1797)
at weblogic.ejb20.cmp.rdbms.RDBMSPersistenceManager.releaseResources(RDBMSPersistenceManager.java:1679)
at weblogic.ejb20.cmp.rdbms.RDBMSPersistenceManager.execGenKeyNamedSequenceTableUpdateAndQuery(RDBMSPersistenceManager.java:1489)
at weblogic.ejb20.cmp.rdbms.RDBMSPersistenceManager.getNextGenKeyNamedSequenceTable(RDBMSPersistenceManager.java:1307)
at com.sun.j2ee.blueprints.po.address.ejb.AddressEJB_fvu9sn__WebLogic_CMP_RDBMS.ejbCreate(AddressEJB_fvu9sn__WebLogic_CMP_RDBMS.java:1755)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.ejb20.manager.DBManager.create(DBManager.java:737)
at weblogic.ejb20.manager.DBManager.localCreate(DBManager.java:716)
at weblogic.ejb20.internal.EntityEJBLocalHome.create(EntityEJBLocalHome.java:182)
at com.sun.j2ee.blueprints.po.address.ejb.AddressEJB_fvu9sn_LocalHomeImpl.create(AddressEJB_fvu9sn_LocalHomeImpl.java:86)
at com.sun.j2ee.blueprints.po.purchaseorder.ejb.PurchaseOrderHelper.persistPoCMRInfo(PurchaseOrderHelper.java:116)
at com.sun.j2ee.blueprints.po.purchaseorder.ejb.PurchaseOrderHelper.persistPO(PurchaseOrderHelper.java:164) at com.sun.j2ee.blueprints.opc.ejb.MsgBean.doWork(MsgBean.java:103)
at com.sun.j2ee.blueprints.opc.ejb.MsgBean.onMessage(MsgBean.java:72)
at weblogic.ejb20.internal.MDListener.execute(MDListener.java:348)
at weblogic.ejb20.internal.MDListener.transactionalOnMessage(MDListener.java:282)
at weblogic.ejb20.internal.MDListener.onMessage(MDListener.java:263)
at weblogic.jms.client.JMSSession.onMessage(JMSSession.java:2309)
at weblogic.jms.client.JMSSession.execute(JMSSession.java:2232)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:152)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:133)
Is there a problem with my general setup maybe, or is this exception to
be ignored?
Kai -
Petstore 1.3 on Weblogic 7.0 with Oracle 8.1.7
Hi, I am trying to get petstore 1.3 working on Weblogic7.0
with Oracle 8.1.7 database on HPUX. I made some modifications
to the source files and regenerated the EAR files. When I copied
the four EAR files to the applications sub-directory, two .ear
files (petstoreadmin.ear & petstore.ear) deployed successfully
but not the supplier.ear and opc.ear. I got the following messages from deploying
supplier.ear:
Any help would be greatly appreciated,
Min-Shih
=====================================================
####<Nov 7, 2002 5:09:30 PM PST> <Warning> <EJB> <cutst058.cup.hp.com> <examplesServer>
<ExecuteThread: '9' for
queue: 'default'> <kernel identity> <> <010061> <The Message-Driven EJB: supplier_OPC_MDB_QUEUE
is unable to connect to the
JMS destination: jms/opcApplication/SUPPLIER_PO_MDB_QUEUE. The EJB container will
automatically attempt to re-establish the connection with the JMS server. This
warning may occur during WebLogic Cluster start-up if the JMS destination is located
on another WebLogic Server instance. When the JMS server connection is re-established,
the Message-Driven EJB will again receive JMS messages.
The Error was:
The JMS destination with the JNDI name: jms/opcApplication/SUPPLIER_PO_MDB_QUEUE
could not be found. Please ensure that the JNDI name in the weblogic-ejb-jar.xml
is correct, and the JMS destination has been deployed.>
####<Nov 7, 2002 5:09:30 PM PST> <Error> <EJB> <cutst058.cup.hp.com> <examplesServer>
<ExecuteThread: '9' for queue: 'default'> <kernel identity> <> <010072> <Error
starting EJB Module : supplierEjb.jar
Exception is :
Unable to deploy EJB: supplierEjb.jar from supplierEjb.jar:
weblogic.ejb20.WLDeploymentException: nulljava.lang.reflect.InvocationTargetException:
javax.ejb.EJBException: Supp
lier.MsgBean.ejbCreate: naming exceptionjavax.naming.LinkException: [Root exception
is javax.naming.NameNotFoundEx
ception: Unable to resolve 'jms.TopicConnectionFactory' Resolved: 'jms' Unresolved:'TopicConnectionFactory'
; remai
ning name 'TopicConnectionFactory']; Link Remaining Name: 'jms/TopicConnectionFactory'Hi, I am trying to get petstore 1.3 working on Weblogic7.0
with Oracle 8.1.7 database on HPUX. I made some modifications
to the source files and regenerated the EAR files. When I copied
the four EAR files to the applications sub-directory, two .ear
files (petstoreadmin.ear & petstore.ear) deployed successfully
but not the supplier.ear and opc.ear. I got the following messages from deploying
supplier.ear:
Any help would be greatly appreciated,
Min-Shih
=====================================================
####<Nov 7, 2002 5:09:30 PM PST> <Warning> <EJB> <cutst058.cup.hp.com> <examplesServer>
<ExecuteThread: '9' for
queue: 'default'> <kernel identity> <> <010061> <The Message-Driven EJB: supplier_OPC_MDB_QUEUE
is unable to connect to the
JMS destination: jms/opcApplication/SUPPLIER_PO_MDB_QUEUE. The EJB container will
automatically attempt to re-establish the connection with the JMS server. This
warning may occur during WebLogic Cluster start-up if the JMS destination is located
on another WebLogic Server instance. When the JMS server connection is re-established,
the Message-Driven EJB will again receive JMS messages.
The Error was:
The JMS destination with the JNDI name: jms/opcApplication/SUPPLIER_PO_MDB_QUEUE
could not be found. Please ensure that the JNDI name in the weblogic-ejb-jar.xml
is correct, and the JMS destination has been deployed.>
####<Nov 7, 2002 5:09:30 PM PST> <Error> <EJB> <cutst058.cup.hp.com> <examplesServer>
<ExecuteThread: '9' for queue: 'default'> <kernel identity> <> <010072> <Error
starting EJB Module : supplierEjb.jar
Exception is :
Unable to deploy EJB: supplierEjb.jar from supplierEjb.jar:
weblogic.ejb20.WLDeploymentException: nulljava.lang.reflect.InvocationTargetException:
javax.ejb.EJBException: Supp
lier.MsgBean.ejbCreate: naming exceptionjavax.naming.LinkException: [Root exception
is javax.naming.NameNotFoundEx
ception: Unable to resolve 'jms.TopicConnectionFactory' Resolved: 'jms' Unresolved:'TopicConnectionFactory'
; remai
ning name 'TopicConnectionFactory']; Link Remaining Name: 'jms/TopicConnectionFactory' -
Petstore 1.3 with Oracle 8.1.7 on Solaris 9 - deployment error
Hello,
I'm trying to get Petstore 1.3 shipped with WebLogic Server 7.0 to work with Oracle
8.1.7 on Solaris 9 with a third-party (Oracle) jdbc driver (classes12). I did
the following:
1) created a new connection pool with the correct Oracle database URL and driver
class name (oracle.jdbc.driver.OracleDriver), also user/password properties for
the Oracle db, and the WL server selected in targets;
2) created a database schema for Oracle based on the data in Pointbase and the
weblogic-cmp-rdbms-jar file as well as petstore_catalog_utf8.sql;
3) created a new tx datasource pointing to the Oracle conn pool;
4) modified the catalog component's ejb-jar.xml file's env-entry to contain CatalogOracleDAOImpl;
5) put weblogic.jar in the classpath;
6) used Java's dbping utility to check connection to the database via the Oracle
driver (works fine--no network adapter error or anything related).
I then rebuilt the ear files (build is successful), but when deploying get the
following error:
"Cannot deploy EJB AccountEJB from customerEjb.jar. Cannot find datasource for
JNDI datasource-petstorePool" and says to make sure the JNDI name and deployment
descriptors are correct (I checked the customer component's deployment descriptors
against the tx datasources' JNDI and they match).
What step(s) am I missing? Any suggestions on what else I need to modify would
be very much appreciated.
Thanks,
Beverly ClaireBeverly:
If you have 8.1, then you should be able to simply and easily create a
connection pool to petstore via the console.
The current error you encountering: "petstorePool does not exist" is
because either:
petstorePool is not defined or there was a failure when the pool was first
created trying to connect to the DBMS.
The full errror should be in the log file prior to the TXDatasource error.
Cheers
mbg
"Beverly Claire" <[email protected]> wrote in message
news:[email protected]...
>
Hello Rob,
Thanks for your reply. Yes, the tx datasource's JNDI name isdatasource-petstorePool.
The server log says that "petstorePool does not exist".
My conn pool contents:
Name: petstorePool
URL: jdbc:oracle:thin:@<replaced with db address>:<replaced with dbport>:<replaced
with db SID>
Driver Class Name: oracle.jdbc.driver.OracleDriver
Properties: user=<replaced with username*>
password=<replaced with password*>
*same username and password used to set up the Petstore tables in Oracledb.
>
My tx datasource contents:
Name: PetstoreDataSource
JNDI: datasource-petstorePool
Pool Name: petstorePool
No, actually we're not evaluating in the sense of just-trying-things-out.One
of our clients is considering an application server. They're relying on usfor
help in choosing which would be best. As of now, we are comparing BEA WLServer
7 and 8.1, Sun ONE Application Server 7 EE, Oracle 9i Application Server,and
Fujitsu Interstage v5 Application Server. For cluster testing andperformance
comparison purposes, we'd like to use the same J2EE Application across allservers,
and the obvious choice is Petstore 1.3. One aim is to smoothly connect toan Oracle
database. The other app servers provide setup scripts and databaseschemas for
Petstore-with-Oracle, so db conn and deployment are not a problem at all.As for
WL, we've been trying to get Petstore (both the version downloaded fromSun's
Java Blueprints and the version that shipped with WL 7) to work withOracle, but
no luck so far. It's getting a bit frustrating, given the ease with whichthings
worked out with the other app servers.
Yes, I've tried out Avitek MedRec for WL 8.1, and this time BEA has kindlymade
provisions for Oracle db, so connection to Oracle is not a problem. I'mhoping
BEA will come around to doing the same thing for Petstore, although I'mguessing
that won't be in the near future.
Any other suggestions would be much appreciated.
Thanks,
Bevery Claire -
Petstore not working in J2EE1.4.1 beta2(with sunone application server)
Hi,
I have downloaded an installed J2EE1.4_beta2 , which has J2EE SDK, JRE , Sunone application server, and J2ee blueprints sample apps. I have installed properly as per the installation instruction. I am able to run Quickstart application. But when I try to run petstore the following error occurs..
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
javax.servlet.ServletException: Populate exception occured :null
at com.sun.j2ee.blueprints.petstore.tools.populate.PopulateServlet.doPost(Unknown Source)
at com.sun.j2ee.blueprints.petstore.tools.populate.PopulateServlet.doGet(Unknown Source)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAsPrivileged(Subject.java:499)
at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:212)
at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:149)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:282)
at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:99)
at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:189)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:185)
at com.sun.j2ee.blueprints.signon.web.SignOnFilter.doFilter(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAsPrivileged(Subject.java:499)
at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:212)
at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:178)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:232)
at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:99)
at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:189)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:185)
at com.sun.j2ee.blueprints.encodingfilter.web.EncodingFilter.doFilter(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAsPrivileged(Subject.java:499)
at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:212)
at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:178)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:232)
at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:99)
at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:189)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:185)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:561)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1018)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:206)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:561)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1018)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2748)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:186)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:512)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149)
at com.sun.enterprise.webservice.EjbWebServiceValve.invoke(EjbWebServiceValve.java:134)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149)
at org.apache.catalina.authenticator.SingleSignOn.invoke(SingleSignOn.java:383)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:561)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1018)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:163)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:561)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1018)
at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:199)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:630)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:463)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:568)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:631)
at java.lang.Thread.run(Thread.java:536)
root cause
javax.ejb.EJBException: Transaction aborted (possibly due to transaction time out).; nested exception is: javax.transaction.RollbackException: Transaction marked for rollback
at com.sun.j2ee.blueprints.petstore.tools.populate.XMLDBHandler.endElement(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.endElement(AbstractSAXParser.java:546)
at org.apache.xerces.impl.dtd.XMLNSDTDValidator.endNamespaceScope(XMLNSDTDValidator.java:257)
at org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(XMLDTDValidator.java:1992)
at org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(XMLDTDValidator.java:902)
at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(XMLNSDocumentScannerImpl.java:533)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1535)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:348)
at org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:539)
at org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:595)
at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152)
at org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1125)
at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:371)
at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:371)
at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:371)
at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:371)
at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:371)
at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:371)
at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:371)
at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:371)
at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:371)
at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:371)
at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:371)
at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:371)
at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:371)
at com.sun.j2ee.blueprints.petstore.tools.populate.PopulateServlet.populate(Unknown Source)
at com.sun.j2ee.blueprints.petstore.tools.populate.PopulateServlet.doPost(Unknown Source)
at com.sun.j2ee.blueprints.petstore.tools.populate.PopulateServlet.doGet(Unknown Source)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAsPrivileged(Subject.java:499)
at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:212)
at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:149)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:282)
at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:99)
at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:189)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:185)
at com.sun.j2ee.blueprints.signon.web.SignOnFilter.doFilter(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAsPrivileged(Subject.java:499)
at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:212)
at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:178)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:232)
at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:99)
at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:189)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:185)
at com.sun.j2ee.blueprints.encodingfilter.web.EncodingFilter.doFilter(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAsPrivileged(Subject.java:499)
at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:212)
at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:178)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:232)
at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:99)
at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:189)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:185)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:561)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1018)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:206)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:561)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1018)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2748)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:186)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:512)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149)
at com.sun.enterprise.webservice.EjbWebServiceValve.invoke(EjbWebServiceValve.java:134)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149)
at org.apache.catalina.authenticator.SingleSignOn.invoke(SingleSignOn.java:383)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:561)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1018)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:163)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:561)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1018)
at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:199)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:630)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:463)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:568)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:631)
at java.lang.Thread.run(Thread.java:536)Hello,
I have the exact same problem, but i am using JDK1.4.2 and JDKEE1.3.1
have you figured out how to solve the problem ?
By the way, which database server are you using ?
Thanks -
Error: File does not exist (while trying to get Petstore and demos to run)
Hi all,
I have been trying in vain to get the Petstore demo and other servlet demo HelloWorld to run. It seems to install okay cause it creates the directories and extracts the .ear or .war files. My problem is connecting to the application. When I run http://my.host:7778/estore or http://my.host/7778/HelloWorld/HelloWorld I get and error in the Apache error_log that says: File does not exist: c:/oracle/components/apache/apache/htdocs/helloworld/helloworld and File does not exist: c:/oracle/components/apache/apache/htdocs/estore
I have looked and searched everywhere for help but to no avail. Under the WebModule the URL Binding is /HelloWorld and /estore.
Please help me!!! I am going crazy with this.
Thanks,
Grant
PS. I am running 9iAS 9.0.2.0.1 and everything is on 1 Windows 2000 (sp1) machine. Infrastructure and Components in separate dirs with port 7777 and 7778 for each.I'm having the same problem under a solaris system did anyone ever find the solution to this problem. For some reason the server just wants to use the document root instead of the deployed application directory.
-
500 Internal Server Error in Petstore - how to resolve?
Hello,
after the installation of Petstore 1.1.2, OC4J 1.0.2.2.0,
J2SDKSE 1.3.1, J2SDKEE 1.3.0, Oracle 8.1.7.0 i get a
500 Internal Server Error
Error parsing JSP page /productcategory.jsp line 13
Property 'numItems' of
bean/tag 'com.sun.j2ee.blueprints.petstore.taglib.list.ProductLis
tTag' is read only
Does anybody know a solution to resolve this error?
Kind regards
MatthiasSLD is not down its in active , I checked SLD url and Technical system also
Its in active , but when the problem is happend they done restart
but many times its happening every time restart is not preferrable ,upto that one is production system.
SLD is in active , but why the JCO'S ARE DISABLE under content Admin
where we can search the SLD user , we checked in SU01 but the user didn't exist there
If user is lock in the sense after the restart again it's working fine
I want to know the Root cause , why bcz it's simultaniously happend.
Regards,
SONY -
Exception while running Petstore
I installed the Petstore according to the following:
Win XP ( I tried Win2000 as well )
J2EE 1.3.1
JDK 1.4.2_10
I did everything as the Petstore installing.html told me but I have the exception as follows.
I browsed the web and found these links but have no correct solution.
http://supportforum.sun.com/sjes/index.php?t=msg&th=451&start=0&rid=0
http://forum.java.sun.com/thread.jspa?threadID=371678&tstart=1
And the exception (I get it for example when I select a cat ( for example: persion: http://localhost:8000/petstore/product.screen?product_id=FL-DLH-02 ) ):
java.security.PrivilegedActionException: javax.servlet.ServletException: An error occurred while evaluating custom action attribute "value" with value "${item.attribute}": Unable to find a
alue for "attribute" in object of class "com.sun.j2ee.blueprints.catalog.model.Item" using operator "."
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:488)
at com.sun.j2ee.blueprints.waf.view.template.tags.InsertTag.doEndTag(InsertTag.java:99)
at org.apache.jsp.template$jsp._jspService(template$jsp.java:159)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:202)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:683)
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:431)
at org.apache.catalina.core.ApplicationDispatcher.access$0(ApplicationDispatcher.java:359)
at org.apache.catalina.core.ApplicationDispatcher$PrivilegedForward.run(ApplicationDispatcher.java:130)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:347)
at com.sun.j2ee.blueprints.waf.view.template.TemplateServlet.insertTemplate(TemplateServlet.java:288)
at com.sun.j2ee.blueprints.waf.view.template.TemplateServlet.process(TemplateServlet.java:246)
at com.sun.j2ee.blueprints.waf.view.template.TemplateServlet.doGet(TemplateServlet.java:143)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at org.apache.catalina.core.ApplicationFilterChain.access$0(ApplicationFilterChain.java:197)
at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:176)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:172)
at com.sun.j2ee.blueprints.signon.web.SignOnFilter.doFilter(SignOnFilter.java:154)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:213)
at org.apache.catalina.core.ApplicationFilterChain.access$0(ApplicationFilterChain.java:197)
at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:176)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:172)
at com.sun.j2ee.blueprints.encodingfilter.web.EncodingFilter.doFilter(EncodingFilter.java:77)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:213)
at org.apache.catalina.core.ApplicationFilterChain.access$0(ApplicationFilterChain.java:197)
at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:176)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:172)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:201)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.authenticator.SingleSignOn.invoke(SingleSignOn.java:368)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1012)
at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1107)
at java.lang.Thread.run(Thread.java:534)
Caused by: javax.servlet.ServletException: An error occurred while evaluating custom action attribute "value" with value "${item.attribute}": Unable to find a value for "attribute" in objec
of class "com.sun.j2ee.blueprints.catalog.model.Item" using operator "."
at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:463)
at org.apache.jsp.product$jsp._jspService(product$jsp.java:1357)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:202)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:683)
at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:574)
at org.apache.catalina.core.ApplicationDispatcher.access$1(ApplicationDispatcher.java:501)
at org.apache.catalina.core.ApplicationDispatcher$PrivilegedInclude.run(ApplicationDispatcher.java:146)
... 66 more
InsertTag:doEndTag caught: javax.servlet.ServletException: An error occurred while evaluating custom action attribute "value" with value "${item.attribute}": Unable to find a value for "att
ibute" in object of class "com.sun.j2ee.blueprints.catalog.model.Item" using operator "."
javax.servlet.ServletException: An error occurred while evaluating custom action attribute "value" with value "${item.attribute}": Unable to find a value for "attribute" in object of class
com.sun.j2ee.blueprints.catalog.model.Item" using operator "."
at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:463)
at org.apache.jsp.product$jsp._jspService(product$jsp.java:1357)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:202)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:683)
at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:574)
at org.apache.catalina.core.ApplicationDispatcher.access$1(ApplicationDispatcher.java:501)
at org.apache.catalina.core.ApplicationDispatcher$PrivilegedInclude.run(ApplicationDispatcher.java:146)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:488)
at com.sun.j2ee.blueprints.waf.view.template.tags.InsertTag.doEndTag(InsertTag.java:99)
at org.apache.jsp.template$jsp._jspService(template$jsp.java:159)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:202)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:683)
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:431)
at org.apache.catalina.core.ApplicationDispatcher.access$0(ApplicationDispatcher.java:359)
at org.apache.catalina.core.ApplicationDispatcher$PrivilegedForward.run(ApplicationDispatcher.java:130)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:347)
at com.sun.j2ee.blueprints.waf.view.template.TemplateServlet.insertTemplate(TemplateServlet.java:288)
at com.sun.j2ee.blueprints.waf.view.template.TemplateServlet.process(TemplateServlet.java:246)
at com.sun.j2ee.blueprints.waf.view.template.TemplateServlet.doGet(TemplateServlet.java:143)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at org.apache.catalina.core.ApplicationFilterChain.access$0(ApplicationFilterChain.java:197)
at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:176)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:172)
at com.sun.j2ee.blueprints.signon.web.SignOnFilter.doFilter(SignOnFilter.java:154)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:213)
at org.apache.catalina.core.ApplicationFilterChain.access$0(ApplicationFilterChain.java:197)
at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:176)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:172)
at com.sun.j2ee.blueprints.encodingfilter.web.EncodingFilter.doFilter(EncodingFilter.java:77)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:213)
at org.apache.catalina.core.ApplicationFilterChain.access$0(ApplicationFilterChain.java:197)
at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:176)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:172)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:201)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.authenticator.SingleSignOn.invoke(SingleSignOn.java:368)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1012)
at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1107)
at java.lang.Thread.run(Thread.java:534)Hi,
first of all you need set java into classpath along with it set weblogic.jar and jython-modules.jar from %BEA_Home% / common / wlst / modules.
this will sort your probs.
Regards,
Kal -
Org.xml.sax.SAXParseException while executing petstore application
Hi all,
I get the following error message when I start the examples server after
deploying the petstore application:
org.xml.sax.SAXParseException: The encoding "ISO8859_1" is not supported.
I have followed the steps listed on the bea webiste exactly.
I am using WLS 6.1SP2 and petstore application 1.2.2.
Thanks in advance.
SantoshHi.
Hmm, not sure. Try posting your question on
weblogic.developer.interest.examples. Perhaps someone there might be
familiar with this problem.
Regards,
Michael
Santosh Mani wrote:
Hi all,
I get the following error message when I start the examples server after
deploying the petstore application:
org.xml.sax.SAXParseException: The encoding "ISO8859_1" is not supported.
I have followed the steps listed on the bea webiste exactly.
I am using WLS 6.1SP2 and petstore application 1.2.2.
Thanks in advance.
Santosh--
Michael Young
Developer Relations Engineer
BEA Support -
PetStore 1.3.1 Install on Win98
I am trying to install Java PetStore 1.3.1 on a Windows 98 (unfortunately) platform.
maybe I need to run this on Win2000 or XP Pro? I couldn't find any info in the Blueprints area of the site that states that it will or will not run on Win98. Assuming 98 is ok, here is the background for problem.
My j2dk and j2dkee were a version or two behind so I upgraded those as well.
As part of the install process it is necessary to get cloudscape and the j2ee server running. both of these executables call the setenv.bat in the %J2EE_HOME%\bin directory. I have encountered a number of syntax errors when running the setenv.bat as follows:
1.
not sure if this is an error...
the script looks to see if %JMS_HOME% is set, if not it sets it to %J2EE_HOME%. In my environment, %JMS_HOME% had not been set up to this point. I assume this is ok, but since I have subsequent problems (#3 below), wondered if anyone has a definite idea here. Maybe I should set %JMS_HOME% to something else before running setenv.bat?
2.
set CLASSESDIR=%LIBDIR%\classes
%LIBDIR% is the %J2EE_HOME%\lib directory. There was no classes directory under it, but there are *.jar files. I added classes directory here but of course its empty and probably will eventually have a no class def found problem?
3.
set JMS_CLASSESDIR=%JMS_HOME%\classes
same as #2 -- there was no classes directory in the %JMS_HOME% path. I added a classes directory manually, but assume there are some classes that it will need here! As mentioned in #1 for my environment, %JMS_HOME% is same as %J2ee_HOME%.
4.
set JAAS_OPTIONS=-Djava.security.auth.policy=%J2EE_HOME%\lib\security\jaas.policy
for this line, I get a syntax error. In fact there is no jaas.policy file in the %J2EE_HOME%\lib\security\ directory. Anyone know why or what belongs in this file?
5.
set SSL_OPTIONS=-Djavax.net.ssl.trustStore=%J2EE_HOME%\lib\security\cacerts.jks
get syntax error. not sure why, did make sure the file cacerts.jks actually exists in this directory.
6.
set LISTEN_OPTIONS=-Dcom.sun.CORBA.connection.ORBListenSocket=SSL:0,SSL_MUTUALAUTH:0,PERSISTENT_SSL:1060
get syntax error. not sure why, and I don't know much about SSL.
thanks in advance for any helpDid you ever get an answer??
I'm in the same boat as you. I have Windows 98 and want to start learning J2EE. My old crummy Compaq computer won't handle Win 2000 so I guess I'm going to buy a new computer (with xp pro).
Were you able to get it working.
Jeez, you'd think it would be a little more flexible with a language that is "platform independent". -
Petstore 1.3 Problem in Websphere 4.0 - DeploymentDescriptorLoadException:
Hi,
I am getting error like "DeploymentDescriptorLoadException:" when I try to install petstore 1.3_10 application .ear file in Websphere 4.0. Following is the full error details which i have received in the message box.
---------------------------------Error Message Begin----------------------------------------------------
Exception:
java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
java.rmi.RemoteException: ; nested exception is:
java.rmi.RemoteException: ; nested exception is:
com.ibm.etools.archive.exception.DeploymentDescriptorLoadException: META-INF/application.xmljava.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
java.rmi.RemoteException: ; nested exception is:
java.rmi.RemoteException: ; nested exception is:
com.ibm.etools.archive.exception.DeploymentDescriptorLoadException: META-INF/application.xmljava.rmi.RemoteException: ; nested exception is:
java.rmi.RemoteException: ; nested exception is:
com.ibm.etools.archive.exception.DeploymentDescriptorLoadException: META-INF/application.xmljava.rmi.RemoteException: ; nested exception is:
com.ibm.etools.archive.exception.DeploymentDescriptorLoadException: META-INF/application.xmlcom.ibm.etools.archive.exception.DeploymentDescriptorLoadException: META-INF/application.xmlStack trace of nested exception:com.ibm.etools.archive.exception.ResourceLoadException: Could not load resource: META-INF/application.xml in archive E:\testarea\petstore1.3_01\petstore.earStack trace of nested exception:com.ibm.etools.archive.exception.ArchiveRuntimeException: Failed to invoke the method named: parseStack trace of nested exception:com.ibm.etools.archive.exception.NotSupportedException: Type is unrecognized or not yet supported: PUBLIC_ID=-//Sun Microsystems, Inc.//DTD J2EE Application 1.3//EN;SYSTEM_ID=http://java.sun.com/dtd/application_1_3.dtd
---------------------------------Error Message End----------------------------------------------------
Please help me if any any one come across such error message.
Thanks in advance.
VenkatHi,
I had the same problem deploying an application on the websphere 4.
I solved it by changing the application to a j2ee 1.2 application instead of 1.3.
Probably setting up websphere 5.0 will solve it.
Hope it helps.
Cheers,
Raymond -
Getting PetStore to run in WLS 6.1sp3 on Mac OS X 10.2.6?
Hi all!
I've read with great interest all the articles relating to WLS running on OS X.
It's great to read this as I am pretty much the only guy in the entire organisation
here trying to keep using his Mac.
I was able to get WLS admin server to run on my PowerBook running OS X 10.2.6.
However, after stopping the admin server and trying to start the PetStore demo
server, I've got a few exceptions that prevent the server from starting.
So, I was wondering how you people, running WLS 6.1 on OS X have configured your
start scripts. When trying to use the standard jdk that comes with WLS, I'm getting
an exception. When using the Apple 1.3.1 jdk, I'm getting another exception about
a missing 'libmuxer' library. Basically, what set of libraries are you using?
Thanks in advance!
-Laurent.Thanks for the reply, Mark. I finally figured it out by replacing all references
to the WebLogic provided 1.3.1 jdk by the one provided by Apple and all is well
now!
Thanks!
-Laurent.
"Mark Griffith" <[email protected]> wrote:
All you should need (with 7.0 and 8.1) to start WLS is
"java weblogic.Server"
As long as your have your classpath set.
export CLASSPATH=$WLHOME:$WLHOME/server/lib/weblogic.jar
On my windoze box WLHOME=C:/bea/wls81/weblogic81
Libmuxer is our native socket muxing code, you don't need it to run you'll
just use java muxing.
Sam just posted the libs on another thread.
Any other exceptions?
cheers
mbg
"Laurent Daudelin" <[email protected]> wrote in message
news:3eccefbe$[email protected]..
Hi all!
I've read with great interest all the articles relating to WLS runningon
OS X.
It's great to read this as I am pretty much the only guy in the entireorganisation
here trying to keep using his Mac.
I was able to get WLS admin server to run on my PowerBook running OSX
10.2.6.
However, after stopping the admin server and trying to start the PetStoredemo
server, I've got a few exceptions that prevent the server from starting.
So, I was wondering how you people, running WLS 6.1 on OS X haveconfigured your
start scripts. When trying to use the standard jdk that comes withWLS,
I'm getting
an exception. When using the Apple 1.3.1 jdk, I'm getting anotherexception about
a missing 'libmuxer' library. Basically, what set of libraries areyou
using?
Thanks in advance!
-Laurent. -
Hi,
I am deploying the J2EE petstore on 9ias (9.0.3).But I seem to get the following error.Whereas it get deployed
perfectly on stand alone oc4j container.I suspect we have hit a bug as I have seen another issue posted by Shawn M Laubach .Can anybody share their inputs ont his problem.
Refer the link
500 Internal Server Error: java.lang.NullPointerException
java.lang.NullPointerException
at com.sun.j2ee.blueprints.waf.view.taglibs.smart.ExtractPropertyTag.addParameter(ExtractPropertyTag.java:189)
at com.sun.j2ee.blueprints.waf.view.taglibs.smart.ExtractPropertyParameterTag.doStartTag(ExtractPropertyParameterTag.java:113)
at sidebar.jspService(_sidebar.java:72)
[SRC:/sidebar.jsp:57]
Thanks
Sameertfahlman,
It appears that in the past few days you have not received a response to your
posting. That concerns us, and has triggered this automated reply.
Has your problem been resolved? If not, you might try one of the following options:
- Visit http://support.novell.com and search the knowledgebase and/or check all
the other self support options and support programs available.
- You could also try posting your message again. Make sure it is posted in the
correct newsgroup. (http://forums.novell.com)
Be sure to read the forum FAQ about what to expect in the way of responses:
http://forums.novell.com/faq.php
If this is a reply to a duplicate posting, please ignore and accept our apologies
and rest assured we will issue a stern reprimand to our posting bot.
Good luck!
Your Novell Product Support Forums Team
http://support.novell.com/forums/ -
How to compile the BEA's petstore in JBuilder 7?
Hi:
I want to unpack the BEA's petstore in JBuilder 7 and then deploy it to weblogic
7. What steps do I need to do? Have any advise?
Thanks!
John LeeWhen you compile the generated classes, be sure to put jaxb-rt-1.0-ea.jar in your classpath!
-
Bc4j/oc4j/petstore problem
After installing BC4J runtime on top of OC4J running on Win2k and Sun JDK1.3.1, bc4j demo is OK. the Sun's J2EE demo petstore stops working. Any idea?
Thx.
Request URI:/apps/petstore/template.jsp
Exception:
oracle.jsp.parse.JspParseException: Line # 8,
Error: oracle.xml.parser.v2.XMLParseException: Invalid element 'servlet' in content of 'web-app', expected elements '[servlet-mapping, session-config, mime-mapping, welcome-file-list, error-page, taglib, resource-ref, security-constraint, login-config, security-role, env-entry, ejb-ref]'.
at oracle.jsp.parse.JspDirectiveTaglib.validateAttributes(JspDirectiveTaglib.java:80)
at oracle.jsp.parse.JspParseTagDirective.validateTagAttributes(JspParseTagDirective.java:107)
at oracle.jsp.parse.JspParseTag.parse(JspParseTag.java:672)
at oracle.jsp.parse.JspParseTagDirective.parse(JspParseTagDirective.java:174)
at oracle.jsp.parse.JspParseTag.parseNextTag(JspParseTag.java:548)
at oracle.jsp.parse.JspParseTagFile.parse(JspParseTagFile.java:100)
at oracle.jsp.parse.OracleJsp2Java.transform(OracleJsp2Java.java:40)
at oracle.jsp.app.JspAppLoader.translatePage(JspAppLoader.java:1513)
at oracle.jsp.app.JspAppLoader.reloadPage(JspAppLoader.java:1146)
at oracle.jsp.app.JspAppLoader.loadPage(JspAppLoader.java:1005)
at oracle.jsp.app.JspAppLoader.getPage(JspAppLoader.java:671)
at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:337)
at oracle.jsp.JspServlet.doDispatch(JspServlet.java:259)
at oracle.jsp.JspServlet.internalService(JspServlet.java:178)
at oracle.jsp.JspServlet.service(JspServlet.java:148)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:339)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:501)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:170)
at com.evermind.server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:141)
at com.sun.j2ee.blueprints.petstore.control.web.MainServlet.doGet(MainServlet.java:105)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:198)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:312)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:339)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:501)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:170)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:549)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:189)
at com.evermind.util.ThreadPoolThread.run(ThreadPoolThread.java:62)
nullYes - this was a bug in the first version of the bc4j-oc4j installer. We have a new version of the installer that contains the correct version of orion.jar, and should fix the bug that you found. You can download it from http://otn.oracle.com/products/jdev/howtos/bc4jdeployment.html
My apologies - and please let us know if you continue to have problems.
Blaise -
Can someone tell me what tools were used to develop PetStore?? I know J2EE, and JSP, and all that other Java fluff, but I'm talking about what actual application tools were used to put it all together. Was Forte Enterprise Edition used or something? Or maybe SunOne Studio? Can the same thing be done using Community Edition? I know those snazzy JSP pages weren't made from scratch. Did they use Dreamweaver to do them? You know what I'm saying. Petstore is cool, but there no clue on how to recreate it if you wanted to.
Hi,
We used a combo of tools while developing petstore, including forte IDE, emacs, notepad, etc. So there was no standard tool. In future versions of blueprints we are intending to address tools more. Building a J2EE app is a bit different on each tool, but you could ask some other users at
http://archives.java.sun.com/archives/j2eeblueprints-interest.html
That might help if you have more specific questions.
As part of the petstore download it describes how to build the petstore in case you want to tinker with the code, but there is no tool instructions
http://java.sun.com/blueprints/code/jps131/docs/building.html
hope that helps,
Sean
Maybe you are looking for
-
App Store rejects buy of Mountain Lion
I tried to buy Mountain Lion in the App Store, but I got following error message: In English: Your buy could not be proceeded The products distribution file could not be checked. Maybe it is dammaged or not proper signed.
-
How to make a alphabetical list of names
How to create an alphabetical list of names
-
Printer Care Pack Next Business Day
I purchased the "Printer Care Pack Next Business Day" for the LaserJet 500dn about 1 month ago and when I attempt to register it online it will not allow me to pass the stage of entering the serial and product number. Any help would be appreciated. T
-
I am doing vendor evaluation cube and i have the datasource replication , infosource and cube with update rules in place.I ran the init and then the delta. I got this error when i ran the delta. Can some one tell me what could be the cause. Error whe
-
How to delete the data loaded into MySQL target table using Scripts
Hi Experts I created a Job with a validation transformation. If the Validation was failed the data passed the validation will be loaded into Pass table and the data failed will be loaded into failed table. My requirement was if the data was loaded in