Com.sapportals.portal.pcd.* not found!

I am new to SAP Portals Development. I have SAP Netweaver 7.0.08 installed on my machine. While trying to create a sample portal project i tried to create a JSPDyn component. The .java and .jsp files are auto-created.
The problem is that the code doesnt compile. Any package starting with com.sapportals is not found by the tool. This is strange as the code itself is auto generated and the packages missing are the basic requirement for any portal application. Can ne1 tell me where can i find the jar files for these packages?
PS:
Not found :
com.sapportals.portal.pcd.*; com.sapportals.portal.prt.service.pcdmanager.IPCDManager;
com.sapportals.htmlb.*;
com.sapportals.htmlb.enum.*;
com.sapportals.htmlb.event.*;
com.sapportals.htmlb.page.*;
com.sapportals.portal.htmlb.page.*;

Hi,
You can find here
C:\usr\sap\J2E\JC00\j2ee\cluster\server0\apps\sap.com\irj\servlet_jsp\irj\root\WEB-INF\portal
or
You can download JAR from this link and install it.
<a href="http://www.alphaworks.ibm.com/tech/jarclassfinder/download">JAR files</a>
https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/2951
Regards,
Senthil K.

Similar Messages

  • Com.sapportals.portal.pcd.IPcdUMEventHandler

    Hi All,
    Can anyone tell me the exact jar file for
    com.sapportals.portal.pcd.IPcdUMEventHandler class.
    Regards,
    Karthick

    I think you need the JAR Class finder for NetWeaver Developer Studio:
    JAR Class Finder
    and:
    Using JAR Class Finder
    This will help you find the class you're looking for within a directory. If you've got the jar files in one directory, point the JAR class finder to that folder and search
    I haven't found it yet on my home PC installation of the Portal SP15 (preview edition). If I find it at work, I'll post it here for you.

  • Uploading BI role in EP:com.sap.portal.pcd.rolemigration.RoleMigrationExcep

    i am getting follwing error while uploading BI role in portal.can anybody suggest us.
    com.sap.portal.pcd.rolemigration.RoleMigrationException: Access denied (Object(s): portal_content/com.sap.portal.migrated/SAPComponentSystems/roles/BIDCLNT900) - save(aibw03). Access denied (Object(s): portal_content/com.sap.portal.migrated/SAPComponentSystems/roles/BIDCLNT900) at com.sap.portal.pcd.rolemigration.RoleMigrationObject.save(RoleMigrationObject.java:5715) at com.sap.portal.pcd.rolemigration.RoleMigrationObject.save(RoleMigrationObject.java:5179) at com.sap.portal.pcd.rolemigration.RoleMigrationObject.migrate(RoleMigrationObject.java:1857) at com.sap.portal.pcd.rolemigration.RoleMigrationObject.migrate(RoleMigrationObject.java:782) at com.sap.portal.pcd.rolemigration.RoleMigrationThread.run(RoleMigrationThread.java:523) Original exception: com.sapportals.portal.pcd.gl.PermissionControlException: Access denied (Object(s): portal_content/com.sap.portal.migrated/SAPComponentSystems/roles/BIDCLNT900) at com.sapportals.portal.pcd.gl.PcdFilterContext.filterCreateSubcontext(PcdFilterContext.java:242) at com.sapportals.portal.pcd.gl.PcdProxyContext.createSubcontext(PcdProxyContext.java:147) at com.sapportals.portal.pcd.gl.PcdGlContext.createSubcontext(PcdGlContext.java:440) at com.sapportals.portal.pcd.gl.PcdGlContext.bind(PcdGlContext.java:369) at com.sapportals.portal.pcd.gl.PcdProxyContext.bind(PcdProxyContext.java:524) at com.sap.portal.pcd.rolemigration.RoleMigrationObject.createContexts(RoleMigrationObject.java:171) at com.sap.portal.pcd.rolemigration.RoleMigrationObject.save(RoleMigrationObject.java:5612) at com.sap.portal.pcd.rolemigration.RoleMigrationObject.save(RoleMigrationObject.java:5179) at com.sap.portal.pcd.rolemigration.RoleMigrationObject.migrate(RoleMigrationObject.java:1857) at com.sap.portal.pcd.rolemigration.RoleMigrationObject.migrate(RoleMigrationObject.java:782) at com.sap.portal.pcd.rolemigration.RoleMigrationThread.run(RoleMigrationThread.java:523)

    Hi,
    It seems you don't have the necessary rights to create content in the portal_content/com.sap.portal.migrated/SAPComponentSystems/roles/ directory.
    You should check the permissions on the Portal Content > Migrated Content > SAPComponentSystems > roles directory (right click on the folder then Open > Permissions). With the default permissiosns, I think you need the super_admin_role or content_admin_role to import roles in the portal.
    Regards,
    Pierre

  • Com.sapportals.portal.htmlb.* path not found.

    Hi friEnds,
    i have added the path of htmlb.jar file in the project properties using eclipse. I downloaded this htmlb.jar file from server only. But when i am trying to import
    com.sapportals.portal.htmlb.page.* it is giving me error.
    The code on which i am working is the old one which was running in EP6. But now i need to do some changes and i am facing this error.
    rgds,
    Nilz

    Hi Nilz,
         Can you post your portalapp.xml and the stack trace of your error.
    Prakash

  • Com.sapportals.portal.htmlb.page.PageProcessorComponent is not allowing

    Hi all
    when i import the following one in the portal component then it is not allowing to me giving error seems in red color.but i added all jar files to the java build path.
    <b>import com.sapportals.portal.htmlb.page.PageProcessorComponent</b> (error)
    <b>public class testapp extends PageProcessorComponent</b>
    can u tell me what r the things required to add to allow the above 2 lines.
    Regards
    Sunil

    Hi,
    Just use the Class Locator.
    Checkout this blog:
    <a href="https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/4051">https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/4051</a>
    or download from here: http://classlocator.sourceforge.net/
    Best Regards,
    Avishai Zamir

  • Com.sapportals.portal.ivs.cg.ConnectionProperties jar file location ?

    Hi ,
    Could anyone let me know the exact jar location for com.sapportals.portal.ivs.cg.ConnectionProperties class for NW04s SP11 . Thanks.
    Regards
    Vasudevan

    Hi,
    The class mentioned is in com.sap.portal.appintegrator_api.jar. It can be found on the server under location \j2ee\cluster\server0\apps\sap.com\irj\servlet_jsp\irj\root\WEB-INF\portal\portalapps\com.sap.portal.appintegrator\lib.
    Do reward points if the information is helpful.
    Regards,
    Donald

  • Com.sapportals.portal.prt.registry.PortalRegistry

    Hi all,
    Please send me this Jar file (com.sapportals.portal.prt.registry.PortalRegistry)
    Thanks ,
    Rama,
    email:[email protected]

    Dear Matthias,
    Can you please try following path:
    From the server
    The path to download the PAR File from the server
    Usr/sap/GPS/JC00/j2ee/cluster/server0/apps/sap.com/irj/servelet_jsp/irj/root/WEB-INF/deployment/pcd/
    From the Portal
    Login to the portal http://xxx/irj/portal  using Enterprise Portal Administrator user id and password.
    Go to System administrationà Support à Portal Runtime à Browse Deployment.
    The path is ROOT/WEB-INF/deployment/ pcd.
    Find any .par.bak. file & download where com.sapportals.portal.prt.registry.PortalRegistry jar file is used.
    Copy the jar file and use.
    Thanks & Regards,
    Patralekha

  • Com.sapportals.portal.prt.service.soap.SOAPRuntimeContext

    Is there any class like com.sapportals.portal.prt.service.soap.SOAPRuntimeContext
    (which only works in the context of the portal) that can be used from an EJB environment?
    Basically, from inside an EJB, I want to get the authenticated IUser object that represents the user who called a secure web service.
    Of course, I can use code like this:
    String username = myContext.getCallerPrincipal().getName();
    IUser user = WPUMFactory.getUserFactory().getUser(username);
    The problem is the returned IUser object is not authenticated.  The call user.isAuthenticated() returns false.
    If I use the SOAPRuntimeContext object, I get an IUser object that is authenticated.  That means I can pass the IUser object to the knowledge managament APIs and preform functions as the user who logged into the web service.

    Dharmi,
    Please try this,
    Check the jar here
    New Reference for Portal APIs
    Or you can extract the parfile into your local computer and navigate to PORTAL-INF
    -> lib folder there you will find the required jar.
    Ramganesan Karuppaiyah

  • Portal Runtime Error - com.sapportals.portal.appintegrator.ApplicationIntegratorException: Unknown system alias.

    Hi Experts,
    Can anyone please help me on the below Portal Runtime Exception.
    10:59_26/08/14_0043_3937250
    [EXCEPTION]
    com.sapportals.portal.appintegrator.ApplicationIntegratorException: Unknown system alias.
    System Alias:  'SAP_BW',
    User:          'Test',
    Reason:        System Alias is not defined or permission denied for this user
    at com.sapportals.portal.appintegrator.accessor.system.LocalSystemAccessor.<init>(LocalSystemAccessor.java:60)
    at com.sapportals.portal.appintegrator.accessor.system.SystemAccessorFactory$Decider.getAccessor(SystemAccessorFactory.java:178)
    at com.sapportals.portal.appintegrator.accessor.system.SystemAccessorFactory$Decider.getSystemAccessor(SystemAccessorFactory.java:123)
    at com.sapportals.portal.appintegrator.accessor.system.SystemAccessorFactory.getSystemAccessor(SystemAccessorFactory.java:52)
    at com.sapportals.portal.appintegrator.layer.AbstractIntegrationLayer.getLocalOrRemote(AbstractIntegrationLayer.java:624)
    at com.sapportals.portal.appintegrator.layer.TopLayerSwitch.mustRedirectToProducer(TopLayerSwitch.java:105)
    at com.sapportals.portal.appintegrator.layer.TopLayerSwitch.getNextLayer(TopLayerSwitch.java:75)
    at com.sapportals.portal.appintegrator.LayerProcessor.getNextLayer(LayerProcessor.java:293)
    at com.sapportals.portal.appintegrator.LayerProcessor.processActionPass(LayerProcessor.java:183)
    at com.sapportals.portal.appintegrator.AbstractIntegratorComponent.doActionPass(AbstractIntegratorComponent.java:111)
    at com.sapportals.portal.appintegrator.AbstractIntegratorComponent.doOnPOMReady(AbstractIntegratorComponent.java:70)
    at com.sapportals.portal.prt.component.AbstractPortalComponent.handleEvent(AbstractPortalComponent.java:398)
    at com.sap.portal.prt.core.RequestDispatcherFactory$PortalComponentRequestDispatcher$1.service(RequestDispatcherFactory.java:168)
    at com.sap.engine.services.servlets_jsp.server.deploy.impl.module.IRequestDispatcherImpl.dispatch(IRequestDispatcherImpl.java:270)
    at com.sap.portal.prt.core.RequestDispatcherFactory$PortalComponentRequestDispatcher.handleEvent(RequestDispatcherFactory.java:158)
    at com.sap.portal.prt.pom.ComponentNode.handleEvent(ComponentNode.java:242)
    at com.sap.portal.prt.pom.PortalNode.fireEventOnNode(PortalNode.java:342)
    at com.sap.portal.prt.pom.PortalNode.processEventQueue(PortalNode.java:732)
    at com.sap.portal.prt.core.PortalRequestManager.runRequestCycle(PortalRequestManager.java:473)
    at com.sapportals.portal.prt.connection.ServletConnection.handleRequest(ServletConnection.java:202)
    at com.sap.portal.prt.dispatcher.DispatcherServlet.service(DispatcherServlet.java:132)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
    at com.sap.engine.services.servlets_jsp.server.runtime.FilterChainImpl.runServlet(FilterChainImpl.java:202)
    at com.sap.engine.services.servlets_jsp.server.runtime.FilterChainImpl.doFilter(FilterChainImpl.java:103)
    at com.sap.portal.http.EnrichNavRequestFilter.doFilter(EnrichNavRequestFilter.java:49)
    at com.sap.engine.services.servlets_jsp.server.runtime.FilterChainImpl.doFilter(FilterChainImpl.java:79)
    at com.sap.portal.prt.dispatcher.CustomHeaderFilter.doFilter(CustomHeaderFilter.java:58)
    at com.sap.engine.services.servlets_jsp.server.runtime.FilterChainImpl.doFilter(FilterChainImpl.java:79)
    at com.sap.portal.http.EnrichNavRequestFilter.doFilter(EnrichNavRequestFilter.java:49)
    at com.sap.engine.services.servlets_jsp.server.runtime.FilterChainImpl.doFilter(FilterChainImpl.java:79)
    at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:432)
    at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:210)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:441)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:430)
    at com.sap.engine.services.servlets_jsp.filters.DSRWebContainerFilter.process(DSRWebContainerFilter.java:38)
    at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
    at com.sap.engine.services.servlets_jsp.filters.ServletSelector.process(ServletSelector.java:81)
    at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
    at com.sap.engine.services.servlets_jsp.filters.ApplicationSelector.process(ApplicationSelector.java:278)
    at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
    at com.sap.engine.services.httpserver.filters.WebContainerInvoker.process(WebContainerInvoker.java:81)
    at com.sap.engine.services.httpserver.chain.HostFilter.process(HostFilter.java:9)
    at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
    at com.sap.engine.services.httpserver.filters.ResponseLogWriter.process(ResponseLogWriter.java:60)
    at com.sap.engine.services.httpserver.chain.HostFilter.process(HostFilter.java:9)
    at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
    at com.sap.engine.services.httpserver.filters.DefineHostFilter.process(DefineHostFilter.java:27)
    at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
    at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
    at com.sap.engine.services.httpserver.filters.MonitoringFilter.process(MonitoringFilter.java:29)
    at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
    at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
    at com.sap.engine.services.httpserver.filters.SessionSizeFilter.process(SessionSizeFilter.java:26)
    at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
    at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
    at com.sap.engine.services.httpserver.filters.MemoryStatisticFilter.process(MemoryStatisticFilter.java:57)
    at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
    at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
    at com.sap.engine.services.httpserver.filters.DSRHttpFilter.process(DSRHttpFilter.java:43)
    at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
    at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
    at com.sap.engine.services.httpserver.server.Processor.chainedRequest(Processor.java:475)
    at com.sap.engine.services.httpserver.server.Processor$FCAProcessorThread.process(Processor.java:269)
    at com.sap.engine.services.httpserver.server.rcm.RequestProcessorThread.run(RequestProcessorThread.java:56)
    at com.sap.engine.core.thread.execution.Executable.run(Executable.java:122)
    at com.sap.engine.core.thread.execution.Executable.run(Executable.java:101)
    at com.sap.engine.core.thread.execution.CentralExecutor$SingleThread.run(CentralExecutor.java:328)

    Hi Jelbin,
    Following is the solution of this error,
    Step 1: Check the system alias in application which you are opening and maintain same in system object also, or take system object default system alias and maintain it in iView property named as "System", either of above is valid.
    Step 2: Add every One group to the system object with end user ticked.
    Step 3: Logoff and login again it should work,
    Kindly reply if this works.
    Regards,
    Bhavin Anajwala

  • IUser problem with com.sapportals.portal.security.usermanagement

    I am trying to get the current user so I have written
    IUser user = request.getUser();
    I have imported com.sap.security.api.*;
    The compiler insists I need com.sapportals.portal.security.usermanagement.IUser
    I thought that version was deprecated or at least not the preferred method?
    It keeps saying my classpath is incomplete. Why can't it use the IUser from the com.sap.security.api?
    Any help would be greatly appreciated.
    Thanks
    Paul

    Update
    The offending line appears to be IResourceContext myContext = new ResourceContext(user);
    when this line is added it causes the above error which I can only assume is because ResourceContext(user) accepts a different kind of user object. does anyone know if there is another way to do this? Here is the rest of the code to see where i am headed:
    IUser user = req.getUser();
    RID rid = RID.getRID("/temp");
    IResourceFactory factory = ResourceFactory.getInstance();
    IUserFactory uf = UMFactory.getUserFactory();
    IResourceContext myContext = new ResourceContext(user); //this is the line causing the problems.
    IResource resource = factory.getResource(rid, myContext);
    if(resource.isCollection())
    ICollection collection = (ICollection)resource;
    IResourceList children = collection.getChildren();
    Iterator i = children.listIterator();
    the point is i am trying to get the ACL permissions on the children of the rid

  • Package com.sapportals.portal.security.usermanagement : No javadoc ?

    Dear all,
    I tried to find the javadoc concernig this package "com.sapportals.portal.security.usermanagement" but I did not find it.
    Does anyone have any clue where to find it please ?
    Thank you advance.
    Best Regards.
    Greg.

    Hi Greg,
    I think the reason you're not able to find is because com.sapportals.portal.security.usermanagement is now deprecated. For EP 6.0, the old classes have been re-written to map to the new UME 4.0 classes and methods contained in com.sap.security.api.
    please see the document below for details...
    USING THE NEW USER MANAGEMENT API IN EP 6.0
    https://www.sdn.sap.com/irj/sevlet/prt/portal/prtroot/docs/library/uuid/91f0cd90-0201-0010-a190-c4d7cbd5b463
    hope this helps,
    harman

  • EP 6.0 User Export Parameter com.sapportals.portal.navigation:uipmode=2

    When exporting users from EP 6.0  under "User Administration > Export/Import" , I have noticed that the following parameter is being generated in the text file  :
    com.sapportals.portal.navigation:uipmode=2
    I've not been able to find any documentation to what this parameter actually is.
    This only occurs on some users not all users.
    Sometimes the value is =1 and =0.
    This is a sample text file generated :
    User]
    uid=BLOGGJ
    role=
    group=MY_USER_GROUP1;Everyone;GUEST_USERS_COMPANY;Authenticated Users;
    email_address=[email protected]
    first_name=Joe
    last_name=Blogg
    country=GB
    language=en
    time_zone=Etc/GMT
    department=DEMO USET
    com.sapportals.portal.navigation:uipmode=2
    end
    Any help appreciated.

    Hi there
    The import works without problems.
    However, we have Global Work Protect switched on so that it prompts for you to "save" data or "discard" it.
    The "personalize" option to set "work protect" has been disabled so that users cannot set their own own Work Protect Feature.
    It seems that users that were created with uipmode=2, have a personalized Work Protect which over writes the default global settings and does not prompt you to save data.
    When I switched the "personalize" work protect feature back on, this did seem to be the case to check for those users.
    I'm looking for some proper documentation to confirm my findings.
    Any assistance appreciated.

  • Error in parsing: SAX2 driver class com.sun.xml.parser not found

    Hi I have this exception
    Error in parsing: SAX2 driver class com.sun.xml.parser not found
    when I try to run the examples from the book xml and java
    I have added the following jar files to the class path that i have download form java.sun.com
    xml.jar
    xalan.jar
    jaxp.jar
    crimson.jar
    Please can anyone tell me what is missing or wrong..the code must be right since written by oreilly... please have u any ideA
    XMLReaderFactory.createXMLReader(
    // "org.apache.xerces.parsers.SAXParser");
                        "com.sun.xml.parser");//
    I HAVE ONLY CHANGED THIS LINE FROM THE apache parser..to com.sun.xml.parser
    THIS IS THE ALL CODE
    import java.io.IOException;
    import org.xml.sax.Attributes;
    import org.xml.sax.ContentHandler;
    import org.xml.sax.ErrorHandler;
    import org.xml.sax.Locator;
    import org.xml.sax.SAXException;
    import org.xml.sax.SAXParseException;
    import org.xml.sax.XMLReader;
    import org.xml.sax.helpers.XMLReaderFactory;
    import org.xml.sax.*;
    * <b><code>SAXParserDemo</code></b> will take an XML file and parse it using SAX,
    * displaying the callbacks in the parsing lifecycle.
    * @author Brett McLaughlin
    * @version 1.0
    public class SAXParserDemo {
    * <p>
    * This parses the file, using registered SAX handlers, and output
    * the events in the parsing process cycle.
    * </p>
    * @param uri <code>String</code> URI of file to parse.
    public void performDemo(String uri) {
    System.out.println("Parsing XML File: " + uri + "\n\n");
    // Get instances of our handlers
    ContentHandler contentHandler = new MyContentHandler();
    ErrorHandler errorHandler = new MyErrorHandler();
    try {
    // Instantiate a parser
    XMLReader parser =
    XMLReaderFactory.createXMLReader(
    // "org.apache.xerces.parsers.SAXParser");
                        "com.sun.xml.parser");// I HAVE ONLY CHANGED THIS LINE FROM THE apache parser..
    // Register the content handler
    parser.setContentHandler(contentHandler);
    // Register the error handler
    parser.setErrorHandler(errorHandler);
    // Parse the document
    parser.parse(uri);
    } catch (IOException e) {
    System.out.println("Error reading URI: " + e.getMessage());
    } catch (SAXException e) {
    System.out.println("Error in parsing: " + e.getMessage());
    * <p>
    * This provides a command line entry point for this demo.
    * </p>
    public static void main(String[] args) {
    // if (args.length != 1) {
    // System.out.println("Usage: java SAXParserDemo [XML URI]");
    // System.exit(0);
    //String uri = args[0];
    SAXParserDemo parserDemo = new SAXParserDemo();
    parserDemo.performDemo("content.xml");
    * <b><code>MyContentHandler</code></b> implements the SAX
    * <code>ContentHandler</code> interface and defines callback
    * behavior for the SAX callbacks associated with an XML
    * document's content.
    class MyContentHandler implements ContentHandler {
    /** Hold onto the locator for location information */
    private Locator locator;
    * <p>
    * Provide reference to <code>Locator</code> which provides
    * information about where in a document callbacks occur.
    * </p>
    * @param locator <code>Locator</code> object tied to callback
    * process
    public void setDocumentLocator(Locator locator) {
    System.out.println(" * setDocumentLocator() called");
    // We save this for later use if desired.
    this.locator = locator;
    * <p>
    * This indicates the start of a Document parse - this precedes
    * all callbacks in all SAX Handlers with the sole exception
    * of <code>{@link #setDocumentLocator}</code>.
    * </p>
    * @throws <code>SAXException</code> when things go wrong
    public void startDocument() throws SAXException {
    System.out.println("Parsing begins...");
    * <p>
    * This indicates the end of a Document parse - this occurs after
    * all callbacks in all SAX Handlers.</code>.
    * </p>
    * @throws <code>SAXException</code> when things go wrong
    public void endDocument() throws SAXException {
    System.out.println("...Parsing ends.");
    * <p>
    * This will indicate that a processing instruction (other than
    * the XML declaration) has been encountered.
    * </p>
    * @param target <code>String</code> target of PI
    * @param data <code>String</code containing all data sent to the PI.
    * This typically looks like one or more attribute value
    * pairs.
    * @throws <code>SAXException</code> when things go wrong
    public void processingInstruction(String target, String data)
    throws SAXException {
    System.out.println("PI: Target:" + target + " and Data:" + data);
    * <p>
    * This will indicate the beginning of an XML Namespace prefix
    * mapping. Although this typically occur within the root element
    * of an XML document, it can occur at any point within the
    * document. Note that a prefix mapping on an element triggers
    * this callback <i>before</i> the callback for the actual element
    * itself (<code>{@link #startElement}</code>) occurs.
    * </p>
    * @param prefix <code>String</code> prefix used for the namespace
    * being reported
    * @param uri <code>String</code> URI for the namespace
    * being reported
    * @throws <code>SAXException</code> when things go wrong
    public void startPrefixMapping(String prefix, String uri) {
    System.out.println("Mapping starts for prefix " + prefix +
    " mapped to URI " + uri);
    * <p>
    * This indicates the end of a prefix mapping, when the namespace
    * reported in a <code>{@link #startPrefixMapping}</code> callback
    * is no longer available.
    * </p>
    * @param prefix <code>String</code> of namespace being reported
    * @throws <code>SAXException</code> when things go wrong
    public void endPrefixMapping(String prefix) {
    System.out.println("Mapping ends for prefix " + prefix);
    * <p>
    * This reports the occurrence of an actual element. It will include
    * the element's attributes, with the exception of XML vocabulary
    * specific attributes, such as
    * <code>xmlns:[namespace prefix]</code> and
    * <code>xsi:schemaLocation</code>.
    * </p>
    * @param namespaceURI <code>String</code> namespace URI this element
    * is associated with, or an empty
    * <code>String</code>
    * @param localName <code>String</code> name of element (with no
    * namespace prefix, if one is present)
    * @param rawName <code>String</code> XML 1.0 version of element name:
    * [namespace prefix]:[localName]
    * @param atts <code>Attributes</code> list for this element
    * @throws <code>SAXException</code> when things go wrong
    public void startElement(String namespaceURI, String localName,
    String rawName, Attributes atts)
    throws SAXException {
    System.out.print("startElement: " + localName);
    if (!namespaceURI.equals("")) {
    System.out.println(" in namespace " + namespaceURI +
    " (" + rawName + ")");
    } else {
    System.out.println(" has no associated namespace");
    for (int i=0; i<atts.getLength(); i++)
    System.out.println(" Attribute: " + atts.getLocalName(i) +
    "=" + atts.getValue(i));
    * <p>
    * Indicates the end of an element
    * (<code></[element name]></code>) is reached. Note that
    * the parser does not distinguish between empty
    * elements and non-empty elements, so this will occur uniformly.
    * </p>
    * @param namespaceURI <code>String</code> URI of namespace this
    * element is associated with
    * @param localName <code>String</code> name of element without prefix
    * @param rawName <code>String</code> name of element in XML 1.0 form
    * @throws <code>SAXException</code> when things go wrong
    public void endElement(String namespaceURI, String localName,
    String rawName)
    throws SAXException {
    System.out.println("endElement: " + localName + "\n");
    * <p>
    * This will report character data (within an element).
    * </p>
    * @param ch <code>char[]</code> character array with character data
    * @param start <code>int</code> index in array where data starts.
    * @param end <code>int</code> index in array where data ends.
    * @throws <code>SAXException</code> when things go wrong
    public void characters(char[] ch, int start, int end)
    throws SAXException {
    String s = new String(ch, start, end);
    System.out.println("characters: " + s);
    * <p>
    * This will report whitespace that can be ignored in the
    * originating document. This is typically only invoked when
    * validation is ocurring in the parsing process.
    * </p>
    * @param ch <code>char[]</code> character array with character data
    * @param start <code>int</code> index in array where data starts.
    * @param end <code>int</code> index in array where data ends.
    * @throws <code>SAXException</code> when things go wrong
    public void ignorableWhitespace(char[] ch, int start, int end)
    throws SAXException {
    String s = new String(ch, start, end);
    System.out.println("ignorableWhitespace: [" + s + "]");
    * <p>
    * This will report an entity that is skipped by the parser. This
    * should only occur for non-validating parsers, and then is still
    * implementation-dependent behavior.
    * </p>
    * @param name <code>String</code> name of entity being skipped
    * @throws <code>SAXException</code> when things go wrong
    public void skippedEntity(String name) throws SAXException {
    System.out.println("Skipping entity " + name);
    * <b><code>MyErrorHandler</code></b> implements the SAX
    * <code>ErrorHandler</code> interface and defines callback
    * behavior for the SAX callbacks associated with an XML
    * document's errors.
    class MyErrorHandler implements ErrorHandler {
    * <p>
    * This will report a warning that has occurred; this indicates
    * that while no XML rules were "broken", something appears
    * to be incorrect or missing.
    * </p>
    * @param exception <code>SAXParseException</code> that occurred.
    * @throws <code>SAXException</code> when things go wrong
    public void warning(SAXParseException exception)
    throws SAXException {
    System.out.println("**Parsing Warning**\n" +
    " Line: " +
    exception.getLineNumber() + "\n" +
    " URI: " +
    exception.getSystemId() + "\n" +
    " Message: " +
    exception.getMessage());
    throw new SAXException("Warning encountered");
    * <p>
    * This will report an error that has occurred; this indicates
    * that a rule was broken, typically in validation, but that
    * parsing can reasonably continue.
    * </p>
    * @param exception <code>SAXParseException</code> that occurred.
    * @throws <code>SAXException</code> when things go wrong
    public void error(SAXParseException exception)
    throws SAXException {
    System.out.println("**Parsing Error**\n" +
    " Line: " +
    exception.getLineNumber() + "\n" +
    " URI: " +
    exception.getSystemId() + "\n" +
    " Message: " +
    exception.getMessage());
    throw new SAXException("Error encountered");
    * <p>
    * This will report a fatal error that has occurred; this indicates
    * that a rule has been broken that makes continued parsing either
    * impossible or an almost certain waste of time.
    * </p>
    * @param exception <code>SAXParseException</code> that occurred.
    * @throws <code>SAXException</code> when things go wrong
    public void fatalError(SAXParseException exception)
    throws SAXException {
    System.out.println("**Parsing Fatal Error**\n" +
    " Line: " +
    exception.getLineNumber() + "\n" +
    " URI: " +
    exception.getSystemId() + "\n" +
    " Message: " +
    exception.getMessage());
    throw new SAXException("Fatal Error encountered");

    I have seen this error when I'm executing inside one of the (j2ee sun reference implementation) server containers (either web or ejb). I believe its caused by "something" having previously loaded the "sax 1 driver class". In my case, I think the container or server is loading the sax parser from a jar that contains a sax 1 version. If you can, ensure that nothing is loading the sax 1 parser from another jar on your system. Verify that you are loading the sax parser from a jar containing the latest version so that you get the sax 2 compliant parser. Good luck!

  • Creation of new Portal Apps!!portal.wf not found !!!

    Hi ,
    In EBCC I am creating a new portal web application in the existing Portal
    Application. I am assigning default portal webflow to my new Portal.
    After synchronization , if I access the portal by its context root it
    says, portal.wf not found..
    What is the significance of portal-project directory ?
    regards
    vedant.

    We found the problem,
    We had to add a numeric and /or a special charachter in the password

  • Package com.sun.java.swing not found in import

    I'm trying to show graphic information but the swing package does not load up don't know what is going on Any help is welcome
    THIS IS THE LINE I GET WHEN I TRY TO IMPORT SWING
    Package com.sun.java.swing not found in import

    I'm trying to show graphic information but the swing
    package does not load up don't know what is going on
    Any help is welcome
    THIS IS THE LINE I GET WHEN I TRY TO IMPORT SWING
    Package com.sun.java.swing not found in importThat's an old package reference. Try javax.swing

Maybe you are looking for

  • MDM and SRM installation on 1 Server??

    Hi, I have a question for a new SAP SRM implementation with MDM. Is it possible to put them both on one server or is this not recommendable? And what are the (dis)advantages? Thanks for your replies! Regards, Roel van Loon

  • Unattended  Solaris 10 installation with jumpstart server issue

    Hello, I have setup a jumpstart server and am finding it difficult to get a fully unattended solaris 10 sparc 10/09 install on a t1000 client. The console connection to the client goes into interactive mode at the point in system identification when

  • Font sizing best practice in 2014

    Decided to obtain a better working knowledge of font sizing best practice, read until my eyes bled, and find I continue to have questions. So much posted is old (older than few years) and change happens fast. To the point; Since use of em units (or p

  • Characters in Photoshop 8 too small

    After installing Photoshop 8 successfully in my new computer equipped with Win 8.1, the characters are too small (size 6 and 8), so are the tool icons. In my old computer equipped with Win XP, the characters were normal (size 10 and 11) nd icons larg

  • How can i create table which in use

    Dear all, How can i create a index on table which have much dml any time?