CDATA error.  Is it me or Sun?

I have a sample xml below and Sun's java source code. When use jdk1.3.1 or 1.4 and jaxp as the parser, I got error when turn on validation. Also, the CDATA section does not show properly when turn of validation (only show: Diagram:). Why "Text" still show for empty spaces when validation turns on? What a mess!!!
XML sample:
<?xml version='1.0' encoding='utf-8'?>
<!DOCTYPE slideshow[
<!ELEMENT slideshow (item)*>
<!ELEMENT item (CDATA)>
]>
<slideshow>
<item><![CDATA[Diagram:
frobmorten <------------ fuznaten
| <3> ^
| <1> | <1> = fozzle
V | <2> = framboze
staten--------------------+ <3> = frenzle
<2>
]]></item>
</slideshow>
Java Source code from Sun:
* @(#)DomEcho01.java     1.9 98/11/10
* Copyright (c) 1998 Sun Microsystems, Inc. All Rights Reserved.
* Sun grants you ("Licensee") a non-exclusive, royalty free, license to use,
* modify and redistribute this software in source and binary code form,
* provided that i) this copyright notice and license appear on all copies of
* the software; and ii) Licensee does not utilize the software in a manner
* which is disparaging to Sun.
* This software is provided "AS IS," without a warranty of any kind. ALL
* EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND WARRANTIES, INCLUDING ANY
* IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR
* NON-INFRINGEMENT, ARE HEREBY EXCLUDED. SUN AND ITS LICENSORS SHALL NOT BE
* LIABLE FOR ANY DAMAGES SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING
* OR DISTRIBUTING THE SOFTWARE OR ITS DERIVATIVES. IN NO EVENT WILL SUN OR ITS
* LICENSORS BE LIABLE FOR ANY LOST REVENUE, PROFIT OR DATA, OR FOR DIRECT,
* INDIRECT, SPECIAL, CONSEQUENTIAL, INCIDENTAL OR PUNITIVE DAMAGES, HOWEVER
* CAUSED AND REGARDLESS OF THE THEORY OF LIABILITY, ARISING OUT OF THE USE OF
* OR INABILITY TO USE SOFTWARE, EVEN IF SUN HAS BEEN ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGES.
* This software is not designed or intended for use in on-line control of
* aircraft, air traffic, aircraft navigation or aircraft communications; or in
* the design, construction, operation or maintenance of any nuclear
* facility. Licensee represents and warrants that it will not use or
* redistribute the Software for such purposes.
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.parsers.FactoryConfigurationError;
import javax.xml.parsers.ParserConfigurationException;
import org.xml.sax.SAXException;
import org.xml.sax.SAXParseException;
import java.io.File;
import java.io.IOException;
import org.w3c.dom.Document;
import org.w3c.dom.DOMException;
public class DomEcho01{
// Global value so it can be ref'd by the tree-adapter
static Document document;
public static void main(String argv[])
if (argv.length != 1) {
System.err.println("Usage: java DomEcho filename");
System.exit(1);
DocumentBuilderFactory factory =
DocumentBuilderFactory.newInstance();
factory.setValidating(true);
//factory.setNamespaceAware(true);
try {
DocumentBuilder builder = factory.newDocumentBuilder();
document = builder.parse( new File(argv[0]) );
} catch (SAXException sxe) {
// Error generated during parsing)
Exception x = sxe;
if (sxe.getException() != null)
x = sxe.getException();
x.printStackTrace();
} catch (ParserConfigurationException pce) {
// Parser with specified options can't be built
pce.printStackTrace();
} catch (IOException ioe) {
// I/O error
ioe.printStackTrace();
} // main

For SAX, it appears that nonvalidating parser would
ignore white space if DTD is there (I state this based
on the example from Sun's tutorial site). I am not
sure about DOM.Well, SAX would not use the characters method to report ignorable whitespace, when validating is true it must go through the ignorableWhitespace() callback. Non-validating parsers have a choice of using ignorableWhitespace() or characters callback. Still, stuff inside a CDATA section will always be reported as is, no whitespace will be ignored. For DOM you have to check the supported features if it allows you to change its behaviour regarding whitespace. Take also a look at the Node.normalize() method and there's always trim().
About CDATA, I wonder if I still can use it if my data
has something like:
]]> in the middle of it.
That'll be a problem. In that case, you'd have to escape the '<' character.

Similar Messages

  • Error while running Application on Sun One Web Server 6.1

    Can some one please explain me how can I run application on sun one web server 6.1 ?
    It is deployed .war file successfully. It only loads default.jsp and then fives following error:
    1) Package netscape.ldap not found in import.
    I imported this package to my java file.
    Thanks,

    We need to deploy the application by next week end. any suggestions please

  • PCC-S-02014 error while compiling with in Sun Solaris

    We are porting our application from HP-UX to Sun Solaris and as part of that I am trying the compile a Pro*C program in Sun Solaris using SUNWspro C++ compiler. Precompiling is failing with following error.
    PRECOMP set: /u01/app/oracle/product/10.2.0/bin/proc dbms=native code=cpp mode=ansi include=/u01/app/oracle/product/10.2.0/precomp
    ireclen=255 oreclen=255
    define=__sparc define=__SUNPRO_C include=/usr/include include=. include=/u01/app/SUNWspro/prod/include/CC/stlport4 include=/u01/app/oracle/product/10.2.0/rdbms/public/ include=/u01/app/oracle/product/10.2.0/network/public/ include=/u01/app/oracle/product/10.2.0/rdbms/demo/ errors=yes select_error=no
    sqlcheck=limited ltype=NONE
    release_cursor=no hold_cursor=no
    Pro*C/C++: Release 10.2.0.3.0 - Production on Thu Dec 18 03:09:59 2008
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    System default option values taken from: /u01/app/oracle/product/10.2.0/precomp/admin/pcscfg.cfg
    Syntax error at line 44, column 30, file /u01/app/SUNWspro/prod/include/CC/stlport4/algorithm:
    Error at line 44, column 30 in file /u01/app/SUNWspro/prod/include/CC/stlport4/a
    lgorithm
    # include STLPNATIVE_HEADER(algorithm)
    .............................1
    PCC-S-02014, Encountered the symbol "(" when expecting one of the following:
    : [ ] + / . .. an identifier, a numeric constant, newline,
    define, elif, else, endif, error, if, ifdef, ifndef, include,
    line, pragma, undef, exec, sql, begin, end, var, type,
    oracle, an immediate preprocessor command, a C token, create,
    function, package, procedure, trigger, or, replace,
    Normal C++ files are getting compiled with out eny issues. This particular file is having functions written in C fashion. Any idea what is missing in the compiler option.
    regards
    Vinu

    Hi Vinu,
    I'm not sure if this is still an issue for you. When I have encountered issues like this with Pro*C I have ended up specifying parse=none to the proc command and then putting all declarations between "EXEC SQL BEGIN DECLARE SECTION" and "EXEC SQL END DECLARE SECTION" markers. I have also moved any "special" declarations into a specific header file and then placed the "#include <special header file>" inside the declare section as well.
    Perhaps that will help a bit,
    Regards,
    Mark

  • Error in LDAP Authentication for Sun One App Server 8..pls help

    I need to authenticate my sun java system application server 8 with openldap server.....
    i have added ldap realm as given in the administrators guide http://docs.sun.com/source/817-6088/security.html
    My settings in the sun app server were like this:
    Realm: ldap
    Class Name: com.sun.enterprise.security.auth.realm.ldap.LDAPRealm
    directory ldap://10.1.1.79:389
    base-dn o=stooges
    jaas-context ldapRealm
    search-bind-dn cn=StoogeAdmin,o=stooges
    search-bind-password secret1
    My openldap schema is as follows
    file : /etc/openldap/slapd.conf
    include /etc/openldap/schema/core.schema
    include /etc/openldap/schema/cosine.schema
    include /etc/openldap/schema/inetorgperson.schema
    include /etc/openldap/schema/nis.schema
    database ldbm
    suffix "o=stooges"
    rootdn "cn=StoogeAdmin,o=stooges"
    rootpw secret1
    directory /var/lib/ldap/stooges
    defaultaccess read
    schemacheck off
    lastmod on
    index cn,sn,st pres,eq,sub
    index uid,userPassword eq
    file : /var/lib/ldap/stooges/stooges.ldif
    dn: o=stooges
    objectClass: top
    objectClass: organization
    o: stooges
    description: The Three Stooges
    dn: cn=StoogeAdmin,o=stooges
    objectClass: organizationalRole
    cn: StoogeAdmin
    description: LDAP Directory Administrator
    dn: ou=MemberGroupA,o=stooges
    ou: MemberGroupA
    objectClass: top
    objectClass: organizationalUnit
    description: Members of MemberGroupA
    dn: ou=MemberGroupB,o=stooges
    ou: MemberGroupB
    objectClass: top
    objectClass: organizationalUnit
    description: Members of MemberGroupB
    dn: uid=vikram,ou=MemberGroupA,o=stooges
    uid:vikram
    givenName:vicky
    objectClass:top
    objectClass:person
    objectClass:organizationalPerson
    objectClass:inetorgperson
    sn:kone
    cn:Kone Vikram
    userPassword:glamsham
    When i start ldap server and sun server,
    the login page for sun server asks for username and password ....
    when i give
    username : vikram
    password : glamsham
    Error page comes.....
    HTTP Status 403 - Access to the requested resource has been denied
    type Status report
    message Access to the requested resource has been denied
    description Access to the specified resource (Access to the requested resource has been denied) has been forbidden.
    Sun-Java-System/Application-Server-PE-8.0
    Subsequent attempts to login gives another error page
    HTTP Status 500 -
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    com.sun.enterprise.tools.guiframework.exception.FrameworkException: Unabled to handle pre-compiled JSP '/jsp/j_security_check'. Expected pre-compiled classname: 'org.apache.jsp.jsp.j_005fsecurity_005fcheck'.
    com.sun.enterprise.tools.admingui.servlet.HandlePrecompiledJsp.doPost(HandlePrecompiledJsp.java:59)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:768)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:861)
    sun.reflect.GeneratedMethodAccessor55.invoke(Unknown Source)
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    java.lang.reflect.Method.invoke(Method.java:324)
    org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:289)
    java.security.AccessController.doPrivileged(Native Method)
    javax.security.auth.Subject.doAsPrivileged(Subject.java:500)
    org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:311)
    org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:205)
    note The full stack trace of the root cause is available in the Sun-Java-System/Application-Server-PE-8.0 logs.
    Sun-Java-System/Application-Server-PE-8.0
    So pls... help as to how to go about this..
    P.S. My ldap server runs as "ldap" user not as root

    Try with "vikram" as a member of "cn=asadmin" group in your LDAP directory...

  • Unzip error while deploying war using Sun One WS6.1_SP2 wdeploy

    Hi,
    We are unable to deploy using wdeploy
    [wdeploy] java.util.zip.ZipException: Error in unzipping the WAR file.
    [wdeploy] at com.sun.web.admin.util.UnZips.unzipit(UnZips.java:128)
    [wdeploy] at com.sun.web.admin.cmds.Deploy.process(Deploy.java:811)
    [wdeploy] at com.sun.web.admin.cmds.Deploy.main(Deploy.java:618)
    [wdeploy] Failed to deploy the web application: /wam
    Thanks
    Daniel

    Try to fragment the 'ear' in less than 64k blocks or don't transmit as long raw.
    Please let me know if this works.

  • Time Out error in deploying EJB in Sun's application server

    I am facing the problem of time out error in sun's application server when deploy tool and application server is running in the same system. can any one solve my problem

    Hi,
    How big is your EJB application? i.e. how many EJBs do you have?
    Would you please try to deploy your application using the command line tool "asadmin" and see if it is also hanging? This will help us to tell if the deployment process that is hanging or the deploytool itself that is hanging. The "asadmin" tool is located under $INSTALL_HOME/bin.
    Thanks,
    Q^2

  • Error deploying JSF app on Sun 8.1 (Works fine on 9.0)

    Hello All,
    I have a simple JSF app which works fine on Sun App server 9.0 but throws the error below on 8.1. Please help!!!
    exception
    javax.servlet.ServletException: java.lang.Boolean
         javax.faces.webapp.FacesServlet.service(FacesServlet.java:209)
         sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         java.lang.reflect.Method.invoke(Method.java:585)
         org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:249)
         java.security.AccessController.doPrivileged(Native Method)
         javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
         org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:282)
         org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:165)
    root cause
    java.lang.ClassCastException: java.lang.Boolean
         com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:72)
         javax.faces.component.UICommand.broadcast(UICommand.java:312)
         javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:267)
         javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:381)
         com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:75)
         com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:221)
         com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:90)
         javax.faces.webapp.FacesServlet.service(FacesServlet.java:197)
         sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         java.lang.reflect.Method.invoke(Method.java:585)
         org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:249)
         java.security.AccessController.doPrivileged(Native Method)
         javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
         org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:282)
         org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:165)Thanks.
    Message was edited by:
    ndnguy

    Make sure you don't include any JSF implementation jars in your web application.

  • Urgent : Cannot Compile :Error :java.lang.NoClassDefFoundError: com/sun/too

    I reinstalled win2k and since then I cant get my javac prompt to work
    The error is :
    Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/tools/javac/Main
    But I can find the java.exe
    jar tools, etc.
    Is there some version problems associated with this;
    I am actually tring to run a compile script
    as below:
    COMPILE SCRIPT
    rmdir/s/q K:\MyProjects\class\com
    pause
    javac -classpath K:\MyProjects\class;%JAVAC_CLASSPATH%%J2EE_CLASSPATH% -d K:\MyProjects\class @Compiler.txt
    pause
    This script was working normally before I reinstalled Win2k.
    My CLASSPATH , PATH are below and my jdk is installed in K:\jdk1.3.0_02
    SystemRoot = K:\WINNT
    JAVAC_CLASSPATH:
    %JAVA_HOME%\bin;%JAVA_HOME%\lib;%JAVA_HOME%\lib\tools.jar;%JAVA_HOME%\lib\dt.jar;
    CLASSPATH
    %SystemRoot%;%SystemRoot%\system32;%SystemRoot%\system32\cmd.exe;JAVAC_CLASSPATH% %J2EE_CLASSPATH%%JRE_HOME%; %MY_PROJECT%\SQLConstant.txt;
    PATH
    %SystemRoot%\system32;%SystemRoot%\system32\WBEM;%JAVAC_CLASSPATH%;%J2EE_CLASSPATH%;K:\Oracle\bin;K:\Program Files\Oracle\jre\1.1.7\bin;C:\Inprise\AppServer\bin;K:\Program Files\Sybase\SQL Anywhere 7\win32;K:\Program Files\Sybase\Shared\win32;K:\Program Files\Sybase\Shared\Sybase Central 4.0\java;K:\Program Files\Microsoft SQL Server\80\Tools\BINN;K:\Program Files\Sybase\EAServer4.0\java\lib\easclient.jar;K:\Program Files\Sybase\EAServer4.0\java\lib\easserver.jar;K:\Program Files\Sybase\EAServer4.0\java\lib\easj2ee.jar;K:\BorlandEnterpriseServer\bin;K:\WebSphere\AppServer\bin;K:\Program Files\IBM\MQSeries\bin;K:\Program Files\IBM\MQSeries\Java\Lib;K:\Program Files\IBM\WebSphere MQ Publish and Subscribe\bin
    I cant notice any difference between the old classpath settings.
    Could somebody help me out in this issue
    Thanks
    manoj

    Hi Manoj,
    I had the same problem.
    This is what worked for me:
    I'm running Win2k.
    So, in C:\WINNT\system32 I found the following files
    javac.exe
    javaw.exe
    java.exe
    I removed them all, since I have the jdk pointed in the right classpath in my environment variables.
    Once this was deleted. It worked fine!
    I hope this helps.

  • Error in establishing connection from Sun Java Sys APp Server to databse

    HI there !!
    i m using Sun Java System Application Serever P.E 9.1 for my java ee application and the databse base is SQL Server 2000 desktop edition.
    Now i m getting the following error when i try to get a connection .
    RAR7099: The mcf being used to allocate the connection and the MCF in the pool are not equal.
    RAR5038:Unexpected exception while creating resource
    RAR5117 : Failed to obtain/create connection. Reason : No PasswordCredential found
    RAR5114 : Error allocating connection : [Error in allocating a connection. Cause: No PasswordCredential found]
    Error in allocating a connection. Cause: No PasswordCredential found
    StandardWrapperValve[jsp]: PWC1406: Servlet.service() for servlet jsp threw exception
    java.lang.NullPointerException
    i found something related to this thing at :
    http://docs.sun.com/app/docs/doc/819-3678/6n5sopvvi?q=TBD&a=view
    but was unable to handle that ...
    any help regarding this will be highly appreciated !!!
    i m using the code provided at NetBeans Tutorial for web aplications at
    http://www.netbeans.org/kb/55/mysql-webapp.html

    Why are you resurrecting an over 1 year old thread with such a nonsensicial reply? Please don't do that. Just respond to active topics in the listing.

  • Recurent error with amserver.war on Sun AS 9.1

    I found 2 main problems installing with amconfig script :
    This first one i'm going to post if anyone else runs against this problem
    1. java.lang.UnsatisfiedLinkError: no jss4 in java.library.path
    (Stack trace ignored )
    i solved this error adding the jss4.jar and libjss4.so to the java.library.path variable ( JVM Configuration on Sun AS 9 )
    The second one however seems to require a bit more work :
    [#|2007-12-19T15:41:07.056+0200|SEVERE|sun-appserver9.1|javax.enterprise.system.container.web|_ThreadID=10;_ThreadName=main;_RequestID=53bc39bc-e0e3-40d4-aa2c-64006e6bfe16;|WebModule[/amserver]StandardWrapper.Throwable
    java.lang.StackOverflowError
    at sun.nio.cs.UTF_8$Encoder.encodeArrayLoop(UTF_8.java:446)
    at sun.nio.cs.UTF_8$Encoder.encodeLoop(UTF_8.java:517)
    at java.nio.charset.CharsetEncoder.encode(CharsetEncoder.java:544)
    at sun.nio.cs.StreamEncoder.implWrite(StreamEncoder.java:252)
    at sun.nio.cs.StreamEncoder.write(StreamEncoder.java:106)
    at sun.nio.cs.StreamEncoder.write(StreamEncoder.java:116)
    at java.io.OutputStreamWriter.write(OutputStreamWriter.java:203)
    at java.io.Writer.write(Writer.java:140)
    at java.io.PrintWriter.newLine(PrintWriter.java:436)
    at java.io.PrintWriter.println(PrintWriter.java:585)
    at java.io.PrintWriter.println(PrintWriter.java:696)
    at com.sun.identity.util.impl.DebugImpl.writeIt(DebugImpl.java:240)
    at com.sun.identity.util.impl.DebugImpl.writeIt(DebugImpl.java:220)
    at com.sun.identity.util.impl.DebugImpl.record(DebugImpl.java:208)
    at com.sun.identity.util.impl.DebugImpl.message(DebugImpl.java:189)
    at com.iplanet.am.util.Debug.message(Debug.java:394)
    at com.iplanet.services.naming.WebtopNaming.updateSiteIdMappings(WebtopNaming.java:790)
    at com.iplanet.services.naming.WebtopNaming.updateNamingTable(WebtopNaming.java:703)
    at com.iplanet.services.naming.WebtopNaming.getNamingProfile(WebtopNaming.java:603)
    at com.iplanet.services.naming.WebtopNaming.getServerID(WebtopNaming.java:405)
    at com.iplanet.services.naming.WebtopNaming.getServerID(WebtopNaming.java:381)
    at com.iplanet.services.naming.WebtopNaming.updateNamingTable(WebtopNaming.java:724)
    at com.iplanet.services.naming.WebtopNaming.getNamingProfile(WebtopNaming.java:603)
    at com.iplanet.services.naming.WebtopNaming.getServerID(WebtopNaming.java:405)
    at com.iplanet.services.naming.WebtopNaming.getServerID(WebtopNaming.java:381)
    at com.iplanet.services.naming.WebtopNaming.updateNamingTable(WebtopNaming.java:724)
    at com.iplanet.services.naming.WebtopNaming.getNamingProfile(WebtopNaming.java:603)
    at com.iplanet.services.naming.WebtopNaming.getServerID(WebtopNaming.java:405)
    at com.iplanet.services.naming.WebtopNaming.getServerID(WebtopNaming.java:381)
    (about 200 more lines like those )
    end
    If anyone has any sugestions of what config files should i post , please ask .
    Thank you .

    seems you runned the conf script many times and the script added the site id lots of times in the service. You can avoid this issue by editing the entry in LDAP, under the service.

  • Preverification error: Cannot find class com/sun/perseus/model/Viewport

    Hi all,
    I have a (previously) working Midlet to which I have added one line as follows:
    SVGImage image = (SVGImage)SVGImage.createEmptyImage(null);
    - and imported the necessary from javax.microedition.m2g. (I am using the library that comes with the WTK, jsr226.jar).
    This builds, jars, obfuscates fine. But when I try to preverify (using Antenna's wtkpreverify) on the jar, it gives up in disgust very swiftly as follows:
    [wtkpreverify] Error preverifying class javax.microedition.m2g.ScalableGraphics
    [wtkpreverify] VERIFIER ERROR javax/microedition/m2g/ScalableGraphics.render(IILjavax/microedition/m2g/ScalableImage;)V:
    [wtkpreverify] Cannot find class com/sun/perseus/model/Viewport
    I'm using the WTK2.5.1ea and antenna 0.9.14, CLDC1.1, MIDP2.0...
    Many thanks for any ideas.

    Problem resolved simply by replacing jsr226.jar (as distributed with WTK2.5.1ea) with m2g.jar (as distributed with J2MEPolish).

  • Error while Starting portal On Sun Webserver.

    HI All,
    I have installed Sun portal server 7.1. on Sun Webserve 7.1 and while starting Webserver is throwing Errrors.
    Every thing is fine before but after change of IP Address I am getting these kind of errors.
    Below is the error log.
    Sun Java System Web Server 7.0 B12/04/2006 10:15
    info: WEB0100: Loading web module in virtual server [sso.example.com] at [/portal]
    info: JAXRPCSERVLET12: JAX-RPC context listener initializing
    failure: WebModule[/portal]StandardWrapper.Throwable
    com.sun.portal.desktop.context.ContextError: DSAMEConnection.getGlobalAttributes(): SunPortalportal1DesktopService       
    *Caused by: Message:Service does not exist : SunPortalportal1DesktopService*      
    *failure: WebModule[/portal]PWC1396: Servlet /portal threw load() exception*
    com.sun.portal.desktop.context.ContextError: DSAMEConnection.getGlobalAttributes(): SunPortalportal1DesktopService
            at com.sun.portal.desktop.context.DSAMEConnection.getGlobalAttributes(DSAMEConnection.java:956)
            at com.sun.portal.desktop.context.DSAMEConnection.getGlobalAttributeMultiValueFromROC(DSAMEConnection.java:1465)
            at com.sun.portal.desktop.context.DSAMEConnection.getGlobalAttributeFromROC(DSAMEConnection.java:1449)
            at com.sun.portal.desktop.context.DSAMEServiceAppContext.getTemplateContextClassName(DSAMEServiceAppContext.java:108)
            at com.sun.portal.desktop.context.PSDesktopAppContext.getTemplateContextClassName(PSDesktopAppContext.java:387)
            at com.sun.portal.desktop.context.PSDesktopAppContext.initTemplateContext(PSDesktopAppContext.java:320)
            at com.sun.portal.desktop.context.PSDesktopAppContext.init(PSDesktopAppContext.java:87)
            at com.sun.portal.desktop.context.PSDesktopContextFactory.initDesktopAppContext(PSDesktopContextFactory.java:141)
            at com.sun.portal.desktop.context.PSDesktopContextFactory.init(PSDesktopContextFactory.java:105)
            at com.sun.portal.desktop.context.PSDesktopContextFactoryManager.getFactory(PSDesktopContextFactoryManager.java:21)
            at com.sun.portal.desktop.DesktopServlet.getDesktopContextFactory(DesktopServlet.java:195)
            at com.sun.portal.desktop.DesktopServlet.init(DesktopServlet.java:237)
            at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1150)
            at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:979)
            at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4352)
            at org.apache.catalina.core.StandardContext.start(StandardContext.java:4709)
            at com.sun.webserver.connector.nsapi.WebModule.start(WebModule.java:170)
            at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1089)
            at org.apache.catalina.core.StandardHost.start(StandardHost.java:838)
            at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1089)
            at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:514)
            at org.apache.catalina.startup.Embedded.start(Embedded.java:917)
            at com.sun.enterprise.web.PwcWebContainer.onStartup(PwcWebContainer.java:47)
            at com.sun.webserver.connector.nsapi.WebContainer.start(WebContainer.java:464)
            at com.sun.webserver.init.J2EERunner.confPostInit(J2EERunner.java:292)
    Caused by: Message:Service does not exist : SunPortalportal1DesktopService
            at com.sun.identity.sm.ServiceManager.getVersions(ServiceManager.java:752)
            at com.sun.identity.sm.ServiceManager.checkServiceNameAndVersion(ServiceManager.java:783)
            at com.sun.identity.sm.ServiceSchemaManagerImpl.<init>(ServiceSchemaManagerImpl.java:97)
            at com.sun.identity.sm.ServiceSchemaManagerImpl.getInstance(ServiceSchemaManagerImpl.java:480)
            at com.sun.identity.sm.ServiceSchemaManager.<init>(ServiceSchemaManager.java:107)
            at com.sun.identity.sm.ServiceManager.getSchemaManager(ServiceManager.java:170)
            at com.sun.portal.desktop.context.DSAMEConnection.getGlobalAttributes(DSAMEConnection.java:952)
            ... 24 more
    info: url: jar:file:/opt/SUNWmfwk/lib/mfwk_instrum_tk.jar!/com/sun/mfwk/config/MfConfig.class
    info: url: jar:file:/opt/SUNWmfwk/lib/mfwk_instrum_tk.jar!/com/sun/mfwk/config/MfConfig.class
    info: LogFile is: //var/opt/SUNWmfwk/logs/instrum.%g
    info: HTTP3072: http-listener-1: http://sso.example.com:80 ready to accept requests
    info: CORE3274: successful server startup
    From log, I removed exceptions thown by java classes  for posting in this forum
    Thanks in Advance
    Madhu

    the application works fine when I try with webservice code that was built on worshop 8 ..but when i changed the code to workshop 10 it is getting build properly only during startup its giving issue....All Jar are same as the old one...only the new that I have created from wsdl for xjava is the new jar..
    I have included the same in the set environment and use it from from my ant build.

  • Getting Error IDM8.1patch11WebLogic Server com/sun/idm/idmx/txn/Transaction

    I installed IDM 8.1 Patch 11 on WebLogic server. When I start the server I am getting following error. The Login page never shows up. I will appreciate if you can give me the pointer.
    ] Root cause of ServletException.
    java.lang.NoClassDefFoundError: com/sun/idm/idmx/txn/TransactionManager
         at com.waveset.ui.LoginHelper.csrfGuardTokenEnabled(LoginHelper.java:2471)
         at com.waveset.ui.LoginHelper.handleCSRFGuardToken(LoginHelper.java:2186)
         at jsp_servlet.__login._jspService(__login.java:251)
         at weblogic.servlet.jsp.JspBase.service(JspBase.java:34)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at com.sun.idm.profiler.instrumentation.RequestTimingFilter.doFilter(RequestTimingFilter.java:76)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.doIt(WebAppServletContext.java:3684)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3650)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2268)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2174)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1446)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    Edited by: 842717 on Mar 8, 2011 12:16 PM

    You are receiving this error because one of the fields being pulled from IdM, exceeds he column limit defined in the GLOBALUSERS database table.
    I received this error before because the PRIMARYEMAIL column in the GLOBALUSERS table was defined as [PRIMARYEMAIL] [nvarchar](50).
    I went into Microsoft SQL Server Management Studio and updated the field to [PRIMARYEMAIL] [nvarchar](100), and then the import worked.
    Hope this helps,
    Larry L. Viars | Senior Consultant
    Logic Trends, Identity & Access Management Specialists

  • Error when calling powershell from Sun IDM

    Hello Experts,
    In our environment we have a powershell script which takes command-line arguments as input and creates mailbox. To create a mailbox for newly on-boarded user we just need to call this script and pass the args. When i run the script from Gateway server (by physically logging into the server) it works as expected but when i call the same script from Sun IDM (using resource actions) I'm getting the following error,
    The type initializer for 'InstanceContext' threw an exception
    any idea to fix or troubleshoot this?
    We are using Sun IDM 6.0 SP1 and exchange 2007.

    Which version of the Gateway?
    Are you calling the script with afterAction scriptcalls?
    Adapter or connector?
    I do know that the powershellcalls are supposed to have two restrictions which are truly hampering...
    1.0 (which means not remote calls?) and 32 bits.
    If you have any insights, please share :D
    I will start coding agains this next week I think, so I guess I will see all problems then :D

  • Error with library build for Sun Solaris 10

    I'm getting an error when trying to build the BDB library on Sun Solaris 10, bdb 4.5.20. I download the .tar.gz file, untar it to /usr/local/BerkeleyDB.4.5 directory. Then I cd to /build_unix directory and enter in command: ../dist/configure --enable-cxx  (im using a c++ application for bdb).  Then after this build process, I enter make and I get an error of:
    Libtool: link: 'usr/sfw/lib/gcc/sparc-sun-solaris2.10/3.4.3/../../..//libstdc++.la' is not a valid libtool archive
    Make: *** [libdb_cxx-4.5.la] Error 1
    Why does the link have 2 slashes in it (//libstdc++.la) ? Is this throwing off the build process? How do I fix this?
    Anything I'm doing wrong?

    Thanks that solved the problem. I did this for the 32 bit version and also the 64 bit version. This link has the code for both versions of libstdc++.la (32 bit: usr/sfw/lib/libstdc++.la and also 64 bit: /usr/sfw/lib/64/libstdc++.la):
    http://whocares.de/2006/05/26/solaris-10-fixup-for-libstdcla-is-not-a-valid-libtool-archive/
    thanks again!!!

Maybe you are looking for

  • Macbook Pro 15" won't boot from ANYTHING :( Can't mount internal drive

    Hi there, I'm new to these forums so please bear with me if I make a faux pas. A few days ago while watching a movie on my MBP Intel Core 2 Duo 2.5 the beach ball of death appeared and the computer became unresponsive. I restarted to the flashing fol

  • Libraries from dependent projects

    Hi there, I have created an application in Jdeveloper 10g comprising of 2 projects. Project 1 is a web app containing all the UI related content and a few java classes used for navigation related concerns. Project 2 is a core java app comprising all

  • Flex2.0 embedded in jsp page 

    Hi, I'm developping a web application using jsp nad I want to include a flex2.0 datagrid inside my jsp page. is that possible? and how? In flex1.5 I know how to do ,but in flex 2.0,I can't! Thank s

  • Why does my nano 6th gen repeat songs on shuffle?

    My Nano tends to repeat songs when i play via Music/Shuffle.  It doesn't just occasionally repeat, it plays each song twice.  I've checked all the settings and can't seem to figure it out.  If anyone has had the same issue, have you found a way to fi

  • How to specify ASCII code in the delimeter of concat function

    Hi, all.   In a graphical mapping in XI, how do we specify ASCII code (hexadecimal) in the delimiter of concat standard function?   i'd like to use spaces with ASCII code(0x20) as a delimiter because if we just enter spaces it would be very difficult