Xalan Templates serialize & de-serialize

i tried to serialize the Templates object to a blob in the database
when i try to deserialize it, i cannot simply cast it to Templates
object - it expects/looks for all classes(translets) contained in the Templates -
is there some way i can reload the Templates object?
thanks
Dee

i tried using the same code to serialize and deserialize
from the filesystem -
but i get the same problem while deserializing templates -
here is the stack
ava.lang.ClassNotFoundException: ReNotification$0
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:297)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:286)
at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:195)
at java.io.ObjectInputStream.resolveClass(ObjectInputStream.java:654)
at java.io.ObjectInputStream.inputClassDescriptor(ObjectInputStream.java:918)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:366)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:350)
at java.io.ObjectInputStream.inputArray(ObjectInputStream.java:1142)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:374)
at java.io.ObjectInputStream.inputClassFields(ObjectInputStream.java:2262)
at java.io.ObjectInputStream.defaultReadObject(ObjectInputStream.java:519)
at org.apache.xalan.xsltc.trax.TemplatesImpl.readObject(TemplatesImpl.java:178)
at java.lang.reflect.Method.invoke(Native Method)
at java.io.ObjectInputStream.invokeObjectReader(ObjectInputStream.java:2213)
at java.io.ObjectInputStream.inputObject(ObjectInputStream.java:1410)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:386)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:236)
at corpact.business.process.notification.format.util.NotifPDFConfigUtil.readXSLTemplatesFromFS(NotifPDFConfigUtil.java:93)
at corpact.business.process.notification.format.util.NotifTransformUtil.getXSLTemplates(NotifTransformUtil.java:181)
at corpact.business.process.notification.format.util.NotifTransformUtil.transform(NotifTransformUtil.java:122)
at corpact.business.process.notification.format.util.NotifTransformUtil.convertToPDF(NotifTransformUtil.java:89)
at corpact.business.process.notification.format.TestReNote.main(TestReNote.java:54)

Similar Messages

  • How to match a fingerprint template from database ?

    i now can save a fingerprint template from database using this code..
    Dim fingerprintData As MemoryStream = New MemoryStream
    Template.Serialize(fingerprintData)
    fingerprintData.Position = 0
    Dim br As BinaryReader = New BinaryReader(fingerprintData)
    Dim bytes() As Byte = br.ReadBytes(CType(fingerprintData.Length, Int32))
    Dim cmd As SqlCommand = New SqlCommand("INSERT INTO fininger_table VALUES(@FIRSTNAME, @LASTNAME, @FINGERPRINT)", conn)
    cmd.Parameters.Add("FIRSTNAME", SqlDbType.VarChar).Value = CaptureForm.tboxFname.Text
    cmd.Parameters.Add("LASTNAME", SqlDbType.VarChar).Value = CaptureForm.tboxLname.Text
    cmd.Parameters.Add("FINGERPRINT", SqlDbType.Image).Value = bytes
    conn.Open()
    cmd.ExecuteNonQuery()
    conn.Close()
    and i fetch the data when the form is load..
    conn.Open()
    Dim cmd As New SqlCommand("SELECT * FROM Fininger_table", conn)
    Dim rdr As SqlDataReader = cmd.ExecuteReader()
    Dim MemStream As IO.MemoryStream
    Dim fpBytes As Byte()
    While rdr.Read()
    fpBytes = rdr("FINGERPRINT")
    MemStream = New IO.MemoryStream(fpBytes)
    Dim template As New DPFP.Template(MemStream)
    OnTemplate(template)
    ' template.DeSerialize(MemStream)
    End While
    rdr.Close()
    conn.Close()
    and now i'm stuck..i dont know how to match the fingerprint from the database to verify the user..
    plz help me out..tnx in advance
    btw im using a DIGITAL PERSONA FINGERPRINT READER..with the OTW SDK

    Hello My dear Brother 
                    I am zaid Ahmad khan would like to help you and this is the working code please see this and you will have the solution 
    Imports System.Data.SqlClient
    Imports DPFP
    Public Class Form1
        Private WithEvents verifyControl As DPFP.Gui.Verification.VerificationControl
        Private matcher As DPFP.Verification.Verification
        Private matchResult As DPFP.Verification.Verification.Result
        Private allReaderSerial As String = "00000000-0000-0000-0000-000000000000"
        Public template As DPFP.Template
        Private userTemplateColumn As String = "Template"
        Private userIDColumn As String = "ID"
        Dim bytes As Byte()
        Private Sub CreateDPControl(ByRef control As DPFP.Gui.Verification.VerificationControl)
            Try
                control = New DPFP.Gui.Verification.VerificationControl()
                control.AutoSizeMode = Windows.Forms.AutoSizeMode.GrowAndShrink
                control.Name = "verifyControl"
                control.Location = New System.Drawing.Point(0, 0)
                control.ReaderSerialNumber = "00000000-0000-0000-0000-000000000000"
                control.Visible = True
                control.Enabled = True
                control.BringToFront()
                Me.Controls.Add(control)
            Catch ex As Exception
                MessageBox.Show("exception")
            End Try
        End Sub
        Private Function ConnectString() As String
            Dim connectionString As String
            connectionString = "Server=localhost;database=bs;User ID=sa;Password=123"
            Return connectionString
        End Function
        Private Sub VerifyBiometric_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
            matcher = New Verification.Verification()
            matchResult = New Verification.Verification.Result
            CreateDPControl(verifyControl)
        End Sub
        Private Sub verifyControl_OnComplete(ByVal Control As Object, ByVal FeatureSet As DPFP.FeatureSet, ByRef EventHandlerStatus As DPFP.Gui.EventHandlerStatus) Handles verifyControl.OnComplete
            Dim dataSet As DataSet = New DataSet()
            Dim adapter As SqlDataAdapter = New SqlDataAdapter()
            Dim sqlCommand As SqlCommand = New SqlCommand()
            Dim ctr = 0
            Try
                Dim max As Integer = 0
                Dim cn As New SqlConnection(ConnectString())
                cn.Open()
                sqlCommand.CommandText = "Select templateBytes7 from userthumbs where id='1029'"
                sqlCommand.CommandType = CommandType.Text
                sqlCommand.Connection = cn
                Dim lrd As SqlDataReader = sqlCommand.ExecuteReader()
                Dim usr
                While lrd.Read()
                    usr = lrd("templateBytes7")
                End While
                bytes = Nothing
                bytes = usr
                template = New DPFP.Template()
                template.DeSerialize(usr)
                'Perform match
                matcher.Verify(FeatureSet, template, matchResult)
                If matchResult.Verified Then
                    EventHandlerStatus = Gui.EventHandlerStatus.Success
                    MsgBox("Verified!")
                    Me.Hide()
                    MessageBox.Show("Done")
                Else
                    EventHandlerStatus = Gui.EventHandlerStatus.Failure
                    MsgBox("Please Try Again!")
                End If
            Finally
            End Try
        End Sub
        Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
        End Sub
    End Class

  • Xalan.jar ----- javax.xml.transform.TransformerException

    Hi,
    I am using Pramati 4.1 Server.
    My application is working fine for a single or few more users. But In Performance Testing when more than 100 users hit the same link at a time, it throws lots of Transformer Exception such as �
    Exception in quicklinks.jsp: javax.xml.transform.TransformerException: java.net.SocketException: Connection reset
    javax.xml.transform.TransformerException: java.lang.ArrayIndexOutOfBoundsException: 8195
         at org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:725)
         at org.apache.xalan.templates.ElemApplyTemplates.transformSelectedNodes(ElemApplyTemplates.java:425)
         at org.apache.xalan.templates.ElemApplyTemplates.execute(ElemApplyTemplates.java:216)
         at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2339)
         at org.apache.xalan.transformer.TransformerImpl.applyTemplateToNode(TransformerImpl.java:2160)
         at org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.java:1213)
         at org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:668)
         at org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:1129)
         at org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:1107)
         at com.niit.cliks.control.web.tagext.viewmenu.doStartTag(Unknown Source)
         at com.pramati.jsp.generated.jsp_p2f_common_p2f_menu._pramati_tag_var_cliks_viewmenu12_method(jsp_p2f_common_p2f_menu.java:315)
         at com.pramati.jsp.generated.jsp_p2f_common_p2f_menu._jspService_delegate(jsp_p2f_common_p2f_menu.java:599)
         at com.pramati.jsp.generated.jsp_p2f_common_p2f_menu._jspService(jsp_p2f_common_p2f_menu.java:623)
         at com.pramati.jsp.runtime.HttpJspSuper.service(HttpJspSuper.java:64) ....
    .....................Can anybody please help me out to resolve this problem?
    Thank you.

    I've found that using the document() function in XSL is the trigger for this bug.
    The Xalan JAXP implementation caches any document() calls. A workaround apparerently is to put in the processing instruction <?xalan-doc-cache-off?>.

  • ClassCastException when using Xalan-j in a servlet

    Hi,
    New to XSLT and Xalan...
    When I run a standalone version of a basic XSL transformation using Xalan-j 2.6.0, it all works as desired. Take a look at the following code snippet :
    ByteArrayOutputStream out;
    Document document;
    DocumentBuilder builder;
    DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
    File stylesheet = new File(context.getRealPath("/xml/duties2Email.xsl"));
    File datafile = new File(context.getRealPath("/xml/hospitals.xml"));
    StreamResult result;
    StreamSource stylesource;
    StreamSource datasource;
    String date = (new SimpleDateFormat("dd/MM")).format(new Date());
    Transformer transformer;
    TransformerFactory tFactory;
    out = new ByteArrayOutputStream(500);
    builder = factory.newDocumentBuilder();
    tFactory = TransformerFactory.newInstance();
    stylesource = new StreamSource(stylesheet);
    transformer = tFactory.newTransformer(stylesource);
    datasource = new StreamSource(datafile);
    result = new StreamResult(out);
    transformer.setParameter("date", date);
    transformer.transform(datasource, result);Unfortunately, when I try to run a servlet with exactly the same code, it throws a ClassCastException, please view the following stack trace:
    java.lang.ClassCastException: org.apache.xml.dtm.ref.DTMManagerDefault
    at org.apache.xml.dtm.DTMManager.newInstance(DTMManager.java:135)
    at org.apache.xpath.XPathContext.<init>(XPathContext.java:87)
    at org.apache.xalan.transformer.TransformerImpl.<init>(TransformerImpl.java:370)
    at org.apache.xalan.templates.StylesheetRoot.newTransformer(StylesheetRoot.java:159)
    at org.apache.xalan.processor.TransformerFactoryImpl.newTransformer(TransformerFactoryImpl.java:674)
    at lu.etat.protex.duties.servlet.DutiesControllerServlet.sendEmails(Unknown Source)
    at lu.etat.protex.duties.servlet.DutiesControllerServlet.doGet(Unknown Source)
    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.doFilter(ApplicationFilterChain.java:193)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
    at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
    at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
    at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2422)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
    at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
    at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
    at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:163)
    at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
    at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
    at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:199)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:828)
    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:700)
    Does anybody know where the mistake could come from ?
    Thanks in advance,
    R&eacute;gis Kuckaertz

    Turned out that I had a version of xsltc.jar in my WEB-INF/lib. When I removed it the problem went away.So I'm sure it had to do with a library mismatch. I am using JBoss 4.1.
    -Rich

  • Error in xalan

    Hello,
    I have a strange problem... I have a XML and a XSL. Sometimes it works, sometime not....
    I'm working with xalan 2.3.4
    here is my XSL:<?xml version="1.0" encoding="utf-8"?>
    <xsl:stylesheet version="1.0"
        xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
      <xsl:output method="xml" omit-xml-declaration="yes"/>
      <xsl:template match="/">
        <xsl:variable name="uDocuments" select="//object[object_name='uDocuments']" />
        <root>
          <UploadRootfolder name="{$uDocuments/object_name}" id="{$uDocuments/@ID}" isUploadFolder="true">
            <xsl:call-template name="createTreeLevel">
              <xsl:with-param name="level" select="0" />
              <xsl:with-param name="node" select="//object[i_folder_id=$uDocuments/@ID]" />
            </xsl:call-template>
          </UploadRootfolder>
          <xsl:call-template name="createTreeLevel">
            <xsl:with-param name="level" select="0" />
            <xsl:with-param name="node" select="//object[i_folder_id=$uDocuments/i_folder_id and object_name != 'uDocuments']" />
          </xsl:call-template>
        </root>
      </xsl:template>
      <xsl:template name="createTreeLevel">
        <xsl:param name="level" />
        <xsl:param name="node" />
        <xsl:for-each select="$node">
          <xsl:sort select="object_name" order="ascending"/>
          <xsl:variable name="LevelId" select="@ID" />
          <xsl:choose>
            <xsl:when test="r_object_type = 'wcm_folder'">
              <xsl:choose>
                <xsl:when test="a_is_upload_doc_folder = 1">
                  <Uploadfolder name="{object_name}" id="{@ID}" isUploadFolder="true">
                    <xsl:call-template name="createTreeLevel">
                      <xsl:with-param name="level" select="$level" />
                      <xsl:with-param name="node" select="//object[i_folder_id=$LevelId]" />
                    </xsl:call-template>
                  </Uploadfolder>
                </xsl:when>
                <xsl:otherwise>
                  <folder name="{object_name}" id="{@ID}">
                    <xsl:call-template name="createTreeLevel">
                      <xsl:with-param name="level" select="$level" />
                      <xsl:with-param name="node" select="//object[i_folder_id=$LevelId]" />
                    </xsl:call-template>
                  </folder>
                </xsl:otherwise>
              </xsl:choose>
            </xsl:when>
            <xsl:otherwise>
              <xsl:choose>
                <xsl:when test="wcm_object_type = 'uploaded'">
                  <Uploaddocument name="{object_name}" id="{@ID}"  currentstate="{r_current_state}" language="{wcm_language}">
                    <xsl:attribute name="isUploaded">
                      <xsl:choose>
                        <xsl:when test="wcm_object_type = 'uploaded'">
                          <xsl:text>true</xsl:text>
                        </xsl:when>
                        <xsl:otherwise>
                          <xsl:text>false</xsl:text>
                        </xsl:otherwise>
                      </xsl:choose>
                    </xsl:attribute>
                    <xsl:attribute name="checkedoutstatus">
                      <xsl:choose>
                        <xsl:when test="r_lock_owner != ''">
                          <xsl:text>true</xsl:text>
                        </xsl:when>
                        <xsl:otherwise>
                          <xsl:text>false</xsl:text>
                        </xsl:otherwise>
                      </xsl:choose>
                    </xsl:attribute>
                  </Uploaddocument>
                </xsl:when>
                <xsl:otherwise>
                  <document name="{object_name}" id="{@ID}" currentstate="{r_current_state}" r_lock_owner="{r_lock_owner}" language="{wcm_language}">
                    <xsl:attribute name="checkedoutstatus">
                      <xsl:choose>
                        <xsl:when test="r_lock_owner != ''">
                          <xsl:text>true</xsl:text>
                        </xsl:when>
                        <xsl:otherwise>
                          <xsl:text>false</xsl:text>
                        </xsl:otherwise>
                      </xsl:choose>
                    </xsl:attribute>
                    <xsl:attribute name="isWorkflowEnabled">
                      <xsl:choose>
                        <xsl:when test="isworkflowenabled = 1">
                          <xsl:text>true</xsl:text>
                        </xsl:when>
                        <xsl:otherwise>
                          <xsl:text>false</xsl:text>
                        </xsl:otherwise>
                      </xsl:choose>
                    </xsl:attribute>
                    <xsl:attribute name="isUploaded">
                      <xsl:choose>
                        <xsl:when test="wcm_object_type = 'uploaded'">
                          <xsl:text>true</xsl:text>
                        </xsl:when>
                        <xsl:otherwise>
                          <xsl:text>false</xsl:text>
                        </xsl:otherwise>
                      </xsl:choose>
                    </xsl:attribute>
                  </document>
                </xsl:otherwise>
              </xsl:choose>
            </xsl:otherwise>
          </xsl:choose>
        </xsl:for-each>
      </xsl:template>
    </xsl:stylesheet>
    with that XML it works<root>
        <object ID="0900348b8003df71">
            <object_name>LogoCountry_fr_FR.gif</object_name>
            <r_object_type>wcm_copy_document</r_object_type>
            <r_object_id>0900348b8003df71</r_object_id>
            <i_folder_id>0b00348b8003df5f</i_folder_id>
            <r_current_state>3</r_current_state>
            <a_is_upload_doc_folder>0</a_is_upload_doc_folder>
            <wcm_object_type>uploaded</wcm_object_type>
            <isworkflowenabled>1</isworkflowenabled>
            <r_lock_owner/>
            <wcm_language/>
        </object>
        <object ID="0900348b8003df72">
            <object_name>LogoCountry_nl_NL.gif</object_name>
            <r_object_type>wcm_copy_document</r_object_type>
            <r_object_id>0900348b8003df72</r_object_id>
            <i_folder_id>0b00348b8003df5f</i_folder_id>
            <r_current_state>3</r_current_state>
            <a_is_upload_doc_folder>0</a_is_upload_doc_folder>
            <wcm_object_type>uploaded</wcm_object_type>
            <isworkflowenabled>1</isworkflowenabled>
            <r_lock_owner/>
            <wcm_language/>
        </object>
        <object ID="0b00348b8003e247">
            <object_name>Parfait</object_name>
            <r_object_type>wcm_folder</r_object_type>
            <r_object_id>0b00348b8003e247</r_object_id>
            <i_folder_id>0b00348b8003df60</i_folder_id>
            <r_current_state>0</r_current_state>
            <a_is_upload_doc_folder>1</a_is_upload_doc_folder>
            <wcm_object_type/>
            <isworkflowenabled>1</isworkflowenabled>
            <r_lock_owner/>
            <wcm_language/>
        </object>
        <object ID="0900348b8003df76">
            <object_name>constantlib.xml</object_name>
            <r_object_type>wcm_document</r_object_type>
            <r_object_id>0900348b8003df76</r_object_id>
            <i_folder_id>0b00348b8003df61</i_folder_id>
            <r_current_state>3</r_current_state>
            <a_is_upload_doc_folder>0</a_is_upload_doc_folder>
            <wcm_object_type/>
            <isworkflowenabled>0</isworkflowenabled>
            <r_lock_owner/>
            <wcm_language/>
        </object>
        <object ID="0900348b8003df70">
            <object_name>site_const.asp</object_name>
            <r_object_type>wcm_document</r_object_type>
            <r_object_id>0900348b8003df70</r_object_id>
            <i_folder_id>0b00348b8003df61</i_folder_id>
            <r_current_state>3</r_current_state>
            <a_is_upload_doc_folder>0</a_is_upload_doc_folder>
            <wcm_object_type/>
            <isworkflowenabled>0</isworkflowenabled>
            <r_lock_owner/>
            <wcm_language/>
        </object>
        <object ID="0900348b8003df6e">
            <object_name>siteinfo.xml</object_name>
            <r_object_type>wcm_document</r_object_type>
            <r_object_id>0900348b8003df6e</r_object_id>
            <i_folder_id>0b00348b8003df64</i_folder_id>
            <r_current_state>3</r_current_state>
            <a_is_upload_doc_folder>0</a_is_upload_doc_folder>
            <wcm_object_type/>
            <isworkflowenabled>0</isworkflowenabled>
            <r_lock_owner/>
            <wcm_language/>
        </object>
        <object ID="0900348b8003df6f">
            <object_name>sitevisual.xml</object_name>
            <r_object_type>wcm_document</r_object_type>
            <r_object_id>0900348b8003df6f</r_object_id>
            <i_folder_id>0b00348b8003df61</i_folder_id>
            <r_current_state>3</r_current_state>
            <a_is_upload_doc_folder>0</a_is_upload_doc_folder>
            <wcm_object_type/>
            <isworkflowenabled>0</isworkflowenabled>
            <r_lock_owner/>
            <wcm_language/>
        </object>
        <object ID="0b00348b8003df60">
            <object_name>uDocuments</object_name>
            <r_object_type>wcm_folder</r_object_type>
            <r_object_id>0b00348b8003df60</r_object_id>
            <i_folder_id>0c00348b8003df5e</i_folder_id>
            <r_current_state>0</r_current_state>
            <a_is_upload_doc_folder>1</a_is_upload_doc_folder>
            <wcm_object_type/>
            <isworkflowenabled>1</isworkflowenabled>
            <r_lock_owner/>
            <wcm_language/>
        </object>
        <object ID="0900348b8003e211">
            <object_name>yo_fr_FR.xml</object_name>
            <r_object_type>wcm_document</r_object_type>
            <r_object_id>0900348b8003e211</r_object_id>
            <i_folder_id>0c00348b8003df5e</i_folder_id>
            <r_current_state>3</r_current_state>
            <a_is_upload_doc_folder>0</a_is_upload_doc_folder>
            <wcm_object_type>page</wcm_object_type>
            <isworkflowenabled>0</isworkflowenabled>
            <r_lock_owner/>
            <wcm_language>fr_FR</wcm_language>
        </object>
        <object ID="0900348b8003df74">
            <object_name>z_20060321a.css</object_name>
            <r_object_type>wcm_document</r_object_type>
            <r_object_id>0900348b8003df74</r_object_id>
            <i_folder_id>0b00348b8003df61</i_folder_id>
            <r_current_state>3</r_current_state>
            <a_is_upload_doc_folder>0</a_is_upload_doc_folder>
            <wcm_object_type/>
            <isworkflowenabled>0</isworkflowenabled>
            <r_lock_owner/>
            <wcm_language/>
        </object>
    </root>
    Result<root>
      <UploadRootfolder isUploadFolder="true" id="0b00348b8003df60" name="uDocuments">
        <Uploadfolder isUploadFolder="true" id="0b00348b8003e247" name="Parfait"/>
      </UploadRootfolder>
      <document language="fr_FR" r_lock_owner="" currentstate="3" id="0900348b8003e211" name="yo_fr_FR.xml" checkedoutstatus="false" isWorkflowEnabled="false" isUploaded="false"/>
    </root>
    with that one it does not<root>
        <object ID="0b00348b8003e248">
            <object_name>FolderVide</object_name>
            <r_object_type>wcm_folder</r_object_type>
            <r_object_id>0b00348b8003e248</r_object_id>
            <i_folder_id>0b00348b8003df60</i_folder_id>
            <r_current_state>0</r_current_state>
            <a_is_upload_doc_folder>1</a_is_upload_doc_folder>
            <wcm_object_type/>
            <isworkflowenabled>1</isworkflowenabled>
            <r_lock_owner/>
            <wcm_language/>
        </object>
        <object ID="0900348b8003df71">
            <object_name>LogoCountry_fr_FR.gif</object_name>
            <r_object_type>wcm_copy_document</r_object_type>
            <r_object_id>0900348b8003df71</r_object_id>
            <i_folder_id>0b00348b8003df5f</i_folder_id>
            <r_current_state>3</r_current_state>
            <a_is_upload_doc_folder>0</a_is_upload_doc_folder>
            <wcm_object_type>uploaded</wcm_object_type>
            <isworkflowenabled>1</isworkflowenabled>
            <r_lock_owner/>
            <wcm_language/>
        </object>
        <object ID="0900348b8003df72">
            <object_name>LogoCountry_nl_NL.gif</object_name>
            <r_object_type>wcm_copy_document</r_object_type>
            <r_object_id>0900348b8003df72</r_object_id>
            <i_folder_id>0b00348b8003df5f</i_folder_id>
            <r_current_state>3</r_current_state>
            <a_is_upload_doc_folder>0</a_is_upload_doc_folder>
            <wcm_object_type>uploaded</wcm_object_type>
            <isworkflowenabled>1</isworkflowenabled>
            <r_lock_owner/>
            <wcm_language/>
        </object>
        <object ID="0900348b8003df76">
            <object_name>constantlib.xml</object_name>
            <r_object_type>wcm_document</r_object_type>
            <r_object_id>0900348b8003df76</r_object_id>
            <i_folder_id>0b00348b8003df61</i_folder_id>
            <r_current_state>3</r_current_state>
            <a_is_upload_doc_folder>0</a_is_upload_doc_folder>
            <wcm_object_type/>
            <isworkflowenabled>0</isworkflowenabled>
            <r_lock_owner/>
            <wcm_language/>
        </object>
        <object ID="0900348b8003df70">
            <object_name>site_const.asp</object_name>
            <r_object_type>wcm_document</r_object_type>
            <r_object_id>0900348b8003df70</r_object_id>
            <i_folder_id>0b00348b8003df61</i_folder_id>
            <r_current_state>3</r_current_state>
            <a_is_upload_doc_folder>0</a_is_upload_doc_folder>
            <wcm_object_type/>
            <isworkflowenabled>0</isworkflowenabled>
            <r_lock_owner/>
            <wcm_language/>
        </object>
        <object ID="0900348b8003df6e">
            <object_name>siteinfo.xml</object_name>
            <r_object_type>wcm_document</r_object_type>
            <r_object_id>0900348b8003df6e</r_object_id>
            <i_folder_id>0b00348b8003df64</i_folder_id>
            <r_current_state>3</r_current_state>
            <a_is_upload_doc_folder>0</a_is_upload_doc_folder>
            <wcm_object_type/>
            <isworkflowenabled>0</isworkflowenabled>
            <r_lock_owner/>
            <wcm_language/>
        </object>
        <object ID="0900348b8003df6f">
            <object_name>sitevisual.xml</object_name>
            <r_object_type>wcm_document</r_object_type>
            <r_object_id>0900348b8003df6f</r_object_id>
            <i_folder_id>0b00348b8003df61</i_folder_id>
            <r_current_state>3</r_current_state>
            <a_is_upload_doc_folder>0</a_is_upload_doc_folder>
            <wcm_object_type/>
            <isworkflowenabled>0</isworkflowenabled>
            <r_lock_owner/>
            <wcm_language/>
        </object>
        <object ID="0b00348b8003df60">
            <object_name>uDocuments</object_name>
            <r_object_type>wcm_folder</r_object_type>
            <r_object_id>0b00348b8003df60</r_object_id>
            <i_folder_id>0c00348b8003df5e</i_folder_id>
            <r_current_state>0</r_current_state>
            <a_is_upload_doc_folder>1</a_is_upload_doc_folder>
            <wcm_object_type/>
            <isworkflowenabled>1</isworkflowenabled>
            <r_lock_owner/>
            <wcm_language/>
        </object>
        <object ID="0900348b8003e211">
            <object_name>yo_fr_FR.xml</object_name>
            <r_object_type>wcm_document</r_object_type>
            <r_object_id>0900348b8003e211</r_object_id>
            <i_folder_id>0c00348b8003df5e</i_folder_id>
            <r_current_state>3</r_current_state>
            <a_is_upload_doc_folder>0</a_is_upload_doc_folder>
            <wcm_object_type>page</wcm_object_type>
            <isworkflowenabled>0</isworkflowenabled>
            <r_lock_owner/>
            <wcm_language>fr_FR</wcm_language>
        </object>
        <object ID="0900348b8003df74">
            <object_name>z_20060321a.css</object_name>
            <r_object_type>wcm_document</r_object_type>
            <r_object_id>0900348b8003df74</r_object_id>
            <i_folder_id>0b00348b8003df61</i_folder_id>
            <r_current_state>3</r_current_state>
            <a_is_upload_doc_folder>0</a_is_upload_doc_folder>
            <wcm_object_type/>
            <isworkflowenabled>0</isworkflowenabled>
            <r_lock_owner/>
            <wcm_language/>
        </object>
    </root>
    Result:0 [main] WARN com.documentum.fc.common.DfLogger  - Failed to load log4j.properties. Using default log4j configuration
    Warning: popContextNodeList when stack is empty!
    2812 [main] ERROR com.aventis.wcm.xmlhandler.Transformation  - javax.xml.transform.TransformerException: java.lang.NullPointerException
    ; Line#: 30; Column#: 34
    javax.xml.transform.TransformerException: java.lang.NullPointerException
         at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2263)
         at org.apache.xalan.templates.ElemTemplate.execute(ElemTemplate.java:432)
         at org.apache.xalan.templates.ElemCallTemplate.execute(ElemCallTemplate.java:273)
         at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2258)
         at org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:710)
         at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2258)
         at org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:710)
         at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2258)
         at org.apache.xalan.transformer.TransformerImpl.applyTemplateToNode(TransformerImpl.java:2081)
         at org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.java:1137)
         at org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:600)
         at org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:1054)
         at org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:1032)
         at com.aventis.wcm.xmlhandler.Transformation.applyStyleSheet(Transformation.java:599)
         at com.sanofiaventis.documentum.CreateNavTree.applyXslFromString(CreateNavTree.java:150)
         at com.sanofiaventis.documentum.CreateNavTree.getFolderContentStructure(CreateNavTree.java:98)
         at com.sanofiaventis.documentum.CreateNavTree.main(CreateNavTree.java:211)
    Caused by: java.lang.NullPointerException
         at org.apache.xpath.axes.DescendantIterator.nextNode(DescendantIterator.java:250)
         at org.apache.xpath.axes.NodeSequence.nextNode(NodeSequence.java:320)
         at org.apache.xpath.axes.FilterExprWalker.getNextNode(FilterExprWalker.java:235)
         at org.apache.xpath.axes.AxesWalker.nextNode(AxesWalker.java:400)
         at org.apache.xpath.axes.WalkingIterator.nextNode(WalkingIterator.java:165)
         at org.apache.xpath.axes.NodeSequence.nextNode(NodeSequence.java:320)
         at org.apache.xpath.objects.XNodeSet.compare(XNodeSet.java:538)
         at org.apache.xpath.objects.XNodeSet.equals(XNodeSet.java:736)
         at org.apache.xpath.operations.Equals.operate(Equals.java:84)
         at org.apache.xpath.operations.Operation.execute(Operation.java:150)
         at org.apache.xpath.axes.PredicatedNodeTest.executePredicates(PredicatedNodeTest.java:326)
         at org.apache.xpath.axes.PredicatedNodeTest.acceptNode(PredicatedNodeTest.java:458)
         at org.apache.xpath.axes.DescendantIterator.nextNode(DescendantIterator.java:264)
         at org.apache.xpath.axes.NodeSequence.nextNode(NodeSequence.java:320)
         at org.apache.xpath.axes.NodeSequence.runTo(NodeSequence.java:474)
         at org.apache.xalan.templates.ElemForEach.sortNodes(ElemForEach.java:340)
         at org.apache.xalan.templates.ElemForEach.transformSelectedNodes(ElemForEach.java:383)
         at org.apache.xalan.templates.ElemForEach.execute(ElemForEach.java:300)
         at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2258)
         ... 16 more
    java.lang.NullPointerException
         at org.apache.xpath.axes.DescendantIterator.nextNode(DescendantIterator.java:250)
         at org.apache.xpath.axes.NodeSequence.nextNode(NodeSequence.java:320)
         at org.apache.xpath.axes.FilterExprWalker.getNextNode(FilterExprWalker.java:235)
         at org.apache.xpath.axes.AxesWalker.nextNode(AxesWalker.java:400)
         at org.apache.xpath.axes.WalkingIterator.nextNode(WalkingIterator.java:165)
         at org.apache.xpath.axes.NodeSequence.nextNode(NodeSequence.java:320)
         at org.apache.xpath.objects.XNodeSet.compare(XNodeSet.java:538)
         at org.apache.xpath.objects.XNodeSet.equals(XNodeSet.java:736)
         at org.apache.xpath.operations.Equals.operate(Equals.java:84)
         at org.apache.xpath.operations.Operation.execute(Operation.java:150)
         at org.apache.xpath.axes.PredicatedNodeTest.executePredicates(PredicatedNodeTest.java:326)
         at org.apache.xpath.axes.PredicatedNodeTest.acceptNode(PredicatedNodeTest.java:458)
         at org.apache.xpath.axes.DescendantIterator.nextNode(DescendantIterator.java:264)
         at org.apache.xpath.axes.NodeSequence.nextNode(NodeSequence.java:320)
         at org.apache.xpath.axes.NodeSequence.runTo(NodeSequence.java:474)
         at org.apache.xalan.templates.ElemForEach.sortNodes(ElemForEach.java:340)
         at org.apache.xalan.templates.ElemForEach.transformSelectedNodes(ElemForEach.java:383)
         at org.apache.xalan.templates.ElemForEach.execute(ElemForEach.java:300)
         at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2258)
         at org.apache.xalan.templates.ElemTemplate.execute(ElemTemplate.java:432)
         at org.apache.xalan.templates.ElemCallTemplate.execute(ElemCallTemplate.java:273)
         at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2258)
         at org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:710)
         at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2258)
         at org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:710)
         at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2258)
         at org.apache.xalan.transformer.TransformerImpl.applyTemplateToNode(TransformerImpl.java:2081)
         at org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.java:1137)
         at org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:600)
         at org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:1054)
         at org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:1032)
         at com.aventis.wcm.xmlhandler.Transformation.applyStyleSheet(Transformation.java:599)
         at com.sanofiaventis.documentum.CreateNavTree.applyXslFromString(CreateNavTree.java:150)
         at com.sanofiaventis.documentum.CreateNavTree.getFolderContentStructure(CreateNavTree.java:98)
         at com.sanofiaventis.documentum.CreateNavTree.main(CreateNavTree.java:211)
    com.aventis.wcm.exception.WcmSystemException: error while applying stylesheet
         at com.aventis.wcm.xmlhandler.Transformation.applyStyleSheet(Transformation.java:605)
         at com.sanofiaventis.documentum.CreateNavTree.applyXslFromString(CreateNavTree.java:150)
         at com.sanofiaventis.documentum.CreateNavTree.getFolderContentStructure(CreateNavTree.java:98)
         at com.sanofiaventis.documentum.CreateNavTree.main(CreateNavTree.java:211)Thanks for your help
    Patrick

    this seems to be a bug in your xalan version - i tried with xalan 2.6.1 - it worked fine.

  • Xalan-j_2_0_1 xerces-1_3_1 and jdom-b6

    I know that people have already posted message regarding xalan, xerces compatability
    with weblogic 6.0sp1 but all the fixes suggested don't work when I use jdom!
    When using JDOM, if i put xerces before the weblogic_sp.jar then Hotspot will
    die with the following error when i start using jdom.
    # HotSpot Virtual Machine Error, EXCEPTION_ACCESS_VIOLATION
    # Please report this error at
    # http://java.sun.com/cgi-bin/bugreport.cgi
    # Error ID: 4F533F57494E13120E43505002D4
    if I put xerces after weblogic_sp.jar and before weblogic.jar then xalan gets
    a method not found error when I try a to execute transform() on a document. Also,
    I tried my transformation outside of weblogic and it worked just fine.
    here is the exception when i try to do the transform in weblogic
    java.lang.NoSuchMethodError
    at org.apache.xpath.patterns.NodeTest.execute(NodeTest.java:403)
    at org.apache.xpath.axes.PredicatedNodeTest.acceptNode(PredicatedNodeTest.java:388)
    at org.apache.xpath.axes.ChildTestIterator.nextNode(ChildTestIterator.java:193)
    at org.apache.xalan.templates.ElemForEach.transformSelectedNodes(ElemForEach.java:428)
    at org.apache.xalan.templates.ElemApplyTemplates.execute(ElemApplyTemplates.java:193)
    at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2202)
    at org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:739)
    at org.apache.xalan.templates.ElemForEach.transformSelectedNodes(ElemForEach.java:498)
    at org.apache.xalan.templates.ElemApplyTemplates.execute(ElemApplyTemplates.java:193)
    at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2202)
    at org.apache.xalan.transformer.TransformerImpl.applyTemplateToNode(TransformerImpl.java:2085)
    at org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.java:1219)
    at org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:2942)
    at java.lang.Thread.run(Thread.java:484)

    I could see how that would fail if Weblogic was using the default registry
    values of:
    DocumentBuilderFactory="weblogic.apache.xerces.jaxp.DocumentBuilderFactoryIm
    pl"
    SAXParserFactory="weblogic.apache.xerces.jaxp.SAXParserFactoryImpl"
    it would find weblogic's internal classes.
    But if Weblogic is using an xml registry such as:
    DocumentBuilderFactory="org.apache.xerces.jaxp.DocumentBuilderFactoryImpl"
    SAXParserFactory="org.apache.xerces.jaxp.SAXParserFactoryImpl"
    and was starting with the system property of:
    ..-Djavax.xml.transform.TransformerFactory=org.apache.xalan.processor.Transf
    ormerFactoryImpl ...
    Wouldn't JDOM correctly find the org.apache factories instead?
    I seem to be having a very similar problem to yours with 6.0 sp2; I'm not
    invoking JDOM directly, but I'm using Syslog from protomatter to handle
    logging; and Syslog DOES invoke the new SAXBuilder() that you cite. I'm
    using xalan 2.1.0 and xerces 1.3.1 placed after the weblogic jars. I also
    get a NoSuchMethodError during the transformer.transform, but the same
    document is successfully transformed at the command line
    TransformerFactory tFactory = TransformerFactory.newInstance();
    String xString = xmlDoc.toString() ;
    StringReader xmlReader = new StringReader( xString );
    StreamSource streamSource = new StreamSource( xmlReader ) ;
    Source stylesheet = tFactory.getAssociatedStylesheet( streamSource,
    media, title, charset);
    Transformer transformer = tFactory.newTransformer(stylesheet);
    StreamResult streamResult = new StreamResult( outWriter ) ;
    transformer.transform( new StreamSource( new StringReader( xString ) ),
    streamResult ) ;
    "Eric Van" <[email protected]> wrote in message
    news:[email protected]...
    >
    FIGURED IT OUT!
    The problem is that JDOM's SAXBuilder, when used with weblogic, loadsweblogic's
    jaxp sax parser, which for some reason doesn't work if the newest xercesis placed
    in the classpath before weblogic_sp.jar.
    So, to get around this all you have to do is tell JDOM's SAXBuilder to useanother
    parser when you create it, preferable one that WORKS!!
    I used the one that comes with xerces
    new SAXBuilder("org.apache.xerces.parsers.SAXParser")
    and it worked fine.
    Hope this helps everyone else out.
    "Steve Liles" <[email protected]> wrote:
    Eric's solution works great if you can get away with always using a
    DOMBuilder.
    >>
    However, I can't always use a DOMBuilder - I need to use the SAXBuilder
    in one particular
    case where I need to specify the SystemId dynamically as in:
    .. SAXBuilder builder = new SAXBuilder(reader, _systemId); ..
    There is no DOMBuilder equivalent. Anyone have any suggestions?
    cheers,
    Steve Liles
    "Eric Van" <[email protected]> wrote:
    Looks like if you avoid using the org.jdom.input.SAXBuilder and usethe
    org.jdom.input.DOMBuilder
    instead that the Hotspot error can be avoided. I have a feeling thatthere
    is
    something else going on here, but OH WELL, NOW IT WORKS.
    "Eric Van" <[email protected]> wrote:
    I know that people have already posted message regarding xalan, xerces
    compatability
    with weblogic 6.0sp1 but all the fixes suggested don't work when I
    use
    jdom!
    When using JDOM, if i put xerces before the weblogic_sp.jar then
    Hotspot
    will
    die with the following error when i start using jdom.
    # HotSpot Virtual Machine Error, EXCEPTION_ACCESS_VIOLATION
    # Please report this error at
    # http://java.sun.com/cgi-bin/bugreport.cgi
    # Error ID: 4F533F57494E13120E43505002D4
    if I put xerces after weblogic_sp.jar and before weblogic.jar thenxalan
    gets
    a method not found error when I try a to execute transform() on a
    document.
    Also,
    I tried my transformation outside of weblogic and it worked just fine.
    here is the exception when i try to do the transform in weblogic
    java.lang.NoSuchMethodError
    atorg.apache.xpath.patterns.NodeTest.execute(NodeTest.java:403)
    atorg.apache.xpath.axes.PredicatedNodeTest.acceptNode(PredicatedNodeTest.java:
    388)
    atorg.apache.xpath.axes.ChildTestIterator.nextNode(ChildTestIterator.java:193)
    atorg.apache.xalan.templates.ElemForEach.transformSelectedNodes(ElemForEach.ja
    va:428)
    atorg.apache.xalan.templates.ElemApplyTemplates.execute(ElemApplyTemplates.jav
    a:193)
    atorg.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Transform
    erImpl.java:2202)
    atorg.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:
    739)
    atorg.apache.xalan.templates.ElemForEach.transformSelectedNodes(ElemForEach.ja
    va:498)
    atorg.apache.xalan.templates.ElemApplyTemplates.execute(ElemApplyTemplates.jav
    a:193)
    atorg.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Transform
    erImpl.java:2202)
    atorg.apache.xalan.transformer.TransformerImpl.applyTemplateToNode(Transformer
    Impl.java:2085)
    atorg.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.j
    ava:1219)
    atorg.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:2942)
    at java.lang.Thread.run(Thread.java:484)

  • Xalan transformer

    Hello,
    the code below is giving me the exception below.
    I would greatly appreciate if anyone cud tell me the solution.
    fin = new FileInputStream("c:/input.xml");
    fout = new FileOutputStream("c:/html/output.html");
                        try
                        fullTransformer.transform(new StreamSource(fin), new
    StreamResult(fout));
                   catch (Exception ex1)
                        System.out.println("Null Pointer exception thrown in Full");
                        ex1.printStackTrace();
    Null Pointer exception thrown in Full
    javax.xml.transform.TransformerException:
    java.lang.NullPointerException
    at org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.java:1212)
    at org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:2894)
    at java.lang.Thread.run(Thread.java:479)
    java.lang.NullPointerException
    at org.apache.xpath.objects.XObject.str(XObject.java:250)
    at org.apache.xalan.templates.AVTPartXPath.evaluate(AVTPartXPath.java:161)
    at org.apache.xalan.templates.AVT.evaluate(AVT.java:523)
    at org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:722)
    at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2154)

    The first thing to try is add a few lines of code to check that fin and fout are not null. Maybe for some reason the file could not be opened.
    How does your stylesheet look? Is it simple or complicated? Which version of Xalan are you using? Try downloading a new version at http://xml.apache.org. I once had a NullPointerException with Xalan which was caused by a bug in Xalan.
    Jesper

  • Apparent Weblogic 6.0 and Xalan 2.0.1 Incompatiblity

    Xalan 2 XSLT Engine does not appear to work with Weblogic 6.0. The reason
    seems to be that Weblogic includes and uses some classes in weblogic.jar
    which shadow the Xalan 2 files. This results in an NoSuchMethodError
    (segment shown below) during the transformation process.
    java.lang.NoSuchMethodError
    at
    org.apache.xalan.templates.ElemValueOf.execute(ElemValueOf.java:269)
    at
    org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Transform
    erImpl.java:2202)
    at
    org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:
    739)
    at
    org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Transform
    erImpl.java:2202)
    If Xalan 2 is placed into JRE/lib/ext, so that it takes precedence over the
    weblogic Xalan classes, weblogic does not start at all because of:
    javax.xml.parsers.FactoryConfigurationError:
    java.lang.ClassNotFoundException: w
    eblogic.xml.jaxp.RegistrySAXParserFactory
    at
    javax.xml.parsers.SAXParserFactory.newInstance(SAXParserFactory.java:
    150)
    at
    weblogic.xml.process.ProcessorDriver.setupSAXParser(ProcessorDriver.j
    ava:246)
    at
    weblogic.xml.process.ProcessorDriver.<init>(ProcessorDriver.java:52)
    at
    weblogic.ejb20.dd.xml.EjbJarLoader_EJB11.<init>(EjbJarLoader_EJB11.ja
    va:491)
    at java.lang.Class.newInstance0(Native Method)
    at java.lang.Class.newInstance(Class.java:237)
    at
    weblogic.xml.process.ProcessorFactory.getProcessor(ProcessorFactory.j
    ava:186)
    at
    weblogic.xml.process.ProcessorFactory.getProcessor(ProcessorFactory.j
    ava:164)
    at
    weblogic.ejb20.dd.xml.DDUtils.loadDeploymentDescriptor(DDUtils.java:6
    5)
    at
    weblogic.ejb20.dd.xml.DDUtils.loadDeploymentDescriptor(DDUtils.java:4
    7)
    at
    weblogic.ejb20.internal.EJBMBeanFactory.parseEjbJar(EJBMBeanFactory.j
    ava:215)
    at
    weblogic.ejb20.internal.EJBMBeanFactory.getMBeans(EJBMBeanFactory.jav
    a:138)
    at
    weblogic.management.mbeans.custom.Application.initializeMBean(Applica
    tion.java:529)
    at
    weblogic.management.mbeans.custom.Application.initializeMBeans(Applic
    ation.java:452)
    at
    weblogic.management.mbeans.custom.Application.adminLoad(Application.j
    ava:252)
    at
    weblogic.management.mbeans.custom.Application.load(Application.java:2
    05)
    at java.lang.reflect.Method.invoke(Native Method)
    at
    weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMB
    eanImpl.java:559)
    at
    weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl
    .java:545)
    at
    weblogic.management.internal.ConfigurationMBeanImpl.invoke(Configurat
    ionMBeanImpl.java:285)
    at
    com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
    55)
    at
    com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
    23)
    at
    weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:431)
    at
    weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:172)
    at $Proxy12.load(Unknown Source)
    at
    weblogic.management.mbeans.custom.ApplicationManager.loadApplications
    (ApplicationManager.java:274)
    at
    weblogic.management.mbeans.custom.ApplicationManager.startConfigManag
    er(ApplicationManager.java:236)
    at
    weblogic.management.mbeans.custom.ApplicationManager.start(Applicatio
    nManager.java:121)
    at java.lang.reflect.Method.invoke(Native Method)
    at
    weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMB
    eanImpl.java:559)
    at
    weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl
    .java:545)
    at
    weblogic.management.internal.ConfigurationMBeanImpl.invoke(Configurat
    ionMBeanImpl.java:285)
    at
    com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
    55)
    at
    com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
    23)
    at
    weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:431)
    at
    weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:172)
    at $Proxy40.start(Unknown Source)
    at
    weblogic.management.configuration.ApplicationManagerMBean_CachingStub
    .start(ApplicationManagerMBean_CachingStub.java:435)
    at weblogic.management.Admin.startApplicationManager(Admin.java:959)
    at weblogic.management.Admin.finish(Admin.java:459)
    at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java:429)
    at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:170)
    at weblogic.Server.main(Server.java:35)
    Regards
    Ben Hutchison
    Finetix UK

    Hi,
    I solved the problem under WL 5.1.0 & WL 6.0 putting xalan.jar &
    xerces.jar before weblogicaux.jar (weblogic.jar in WL 6.0).
    WL include a DOM level 1 API while Xalan requires a DOM level 2.
    But putting xerces.jar before it in the path should fix it.
    set CLASSPATH=.\config\efgweb\wl_cp_lib\xalan.jar
    set CLASSPATH=%CLASSPATH%;.\config\efgweb\wl_cp_lib\xerces.jar
    set CLASSPATH=%CLASSPATH%;.;.\lib\weblogic_sp.jar;.\lib\weblogic.jar
    Regards
    Simone
    Ben Hutchison wrote:
    >
    Xalan 2 XSLT Engine does not appear to work with Weblogic 6.0. The reason
    seems to be that Weblogic includes and uses some classes in weblogic.jar
    which shadow the Xalan 2 files. This results in an NoSuchMethodError
    (segment shown below) during the transformation process.
    java.lang.NoSuchMethodError
    at
    org.apache.xalan.templates.ElemValueOf.execute(ElemValueOf.java:269)
    at
    org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Transform
    erImpl.java:2202)
    at
    org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:
    739)
    at
    org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Transform
    erImpl.java:2202)
    If Xalan 2 is placed into JRE/lib/ext, so that it takes precedence over the
    weblogic Xalan classes, weblogic does not start at all because of:
    javax.xml.parsers.FactoryConfigurationError:
    java.lang.ClassNotFoundException: w
    eblogic.xml.jaxp.RegistrySAXParserFactory
    at
    javax.xml.parsers.SAXParserFactory.newInstance(SAXParserFactory.java:
    150)
    at
    weblogic.xml.process.ProcessorDriver.setupSAXParser(ProcessorDriver.j
    ava:246)
    at
    weblogic.xml.process.ProcessorDriver.<init>(ProcessorDriver.java:52)
    at
    weblogic.ejb20.dd.xml.EjbJarLoader_EJB11.<init>(EjbJarLoader_EJB11.ja
    va:491)
    at java.lang.Class.newInstance0(Native Method)
    at java.lang.Class.newInstance(Class.java:237)
    at
    weblogic.xml.process.ProcessorFactory.getProcessor(ProcessorFactory.j
    ava:186)
    at
    weblogic.xml.process.ProcessorFactory.getProcessor(ProcessorFactory.j
    ava:164)
    at
    weblogic.ejb20.dd.xml.DDUtils.loadDeploymentDescriptor(DDUtils.java:6
    5)
    at
    weblogic.ejb20.dd.xml.DDUtils.loadDeploymentDescriptor(DDUtils.java:4
    7)
    at
    weblogic.ejb20.internal.EJBMBeanFactory.parseEjbJar(EJBMBeanFactory.j
    ava:215)
    at
    weblogic.ejb20.internal.EJBMBeanFactory.getMBeans(EJBMBeanFactory.jav
    a:138)
    at
    weblogic.management.mbeans.custom.Application.initializeMBean(Applica
    tion.java:529)
    at
    weblogic.management.mbeans.custom.Application.initializeMBeans(Applic
    ation.java:452)
    at
    weblogic.management.mbeans.custom.Application.adminLoad(Application.j
    ava:252)
    at
    weblogic.management.mbeans.custom.Application.load(Application.java:2
    05)
    at java.lang.reflect.Method.invoke(Native Method)
    at
    weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMB
    eanImpl.java:559)
    at
    weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl
    .java:545)
    at
    weblogic.management.internal.ConfigurationMBeanImpl.invoke(Configurat
    ionMBeanImpl.java:285)
    at
    com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
    55)
    at
    com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
    23)
    at
    weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:431)
    at
    weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:172)
    at $Proxy12.load(Unknown Source)
    at
    weblogic.management.mbeans.custom.ApplicationManager.loadApplications
    (ApplicationManager.java:274)
    at
    weblogic.management.mbeans.custom.ApplicationManager.startConfigManag
    er(ApplicationManager.java:236)
    at
    weblogic.management.mbeans.custom.ApplicationManager.start(Applicatio
    nManager.java:121)
    at java.lang.reflect.Method.invoke(Native Method)
    at
    weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMB
    eanImpl.java:559)
    at
    weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl
    .java:545)
    at
    weblogic.management.internal.ConfigurationMBeanImpl.invoke(Configurat
    ionMBeanImpl.java:285)
    at
    com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
    55)
    at
    com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
    23)
    at
    weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:431)
    at
    weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:172)
    at $Proxy40.start(Unknown Source)
    at
    weblogic.management.configuration.ApplicationManagerMBean_CachingStub
    .start(ApplicationManagerMBean_CachingStub.java:435)
    at weblogic.management.Admin.startApplicationManager(Admin.java:959)
    at weblogic.management.Admin.finish(Admin.java:459)
    at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java:429)
    at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:170)
    at weblogic.Server.main(Server.java:35)
    Regards
    Ben Hutchison
    Finetix UK

  • Is it possible to use JAXP in Applet? Really urgeng.

    I need to get String output from a DOM Document using JAXP in Applet. I want the entire XML document in one string .I write the code as following,but it doesn't work. Would you help me to point out the mistake I made in it?
    Any help would be appreciated,
    Thanks.
    import java.awt.*;
    import javax.swing.*;
    import javax.xml.parsers.*;
    import javax.xml.transform.*;
    import javax.xml.transform.dom.DOMSource;
    import javax.xml.transform.stream.StreamResult;
    import org.w3c.dom.*;
    import javax.xml.transform.dom.DOMSource;
    import java.io.*;
    import java.io.IOException;
    import javax.xml.transform.Transformer;
    import javax.xml.transform.TransformerFactory;
    import java.util.*;
    public class XMLTest extends JApplet {
         String str;
         public void init()
         str="hello";
    try
    DocumentBuilderFactory factory= DocumentBuilderFactory.newInstance();
    DocumentBuilder db =factory.newDocumentBuilder();
    Document m_dDoc = db.newDocument();
    Element e1=m_dDoc.createElement("first");
    Text tx;
    tx=m_dDoc.createTextNode("hi");
    e1.appendChild(tx);
    m_dDoc.appendChild(e1);
    DOMSource doms = new DOMSource(m_dDoc);
    Writer out = new StringWriter();
    StreamResult result = new StreamResult(out);
    TransformerFactory tf = TransformerFactory.newInstance();
    Transformer transformer = tf.newTransformer();//wrong
    transformer.transform(doms,result);
    str=result.toString();
    catch(Exception e)
    e.printStackTrace();
         public void paint(Graphics g)
              g.drawString(str, 50, 60 );
    }

    The problem is that using the transformer in an applet results in the exception:
    The exception is as following:
    org.apache.xml.utils.WrappedRuntimeException: Output method is xml could not loa
    d output_xml.properties (check CLASSPATH)
    at org.apache.xalan.templates.OutputProperties.getDefaultMethodPropertie
    s(OutputProperties.java:364)
    at org.apache.xalan.templates.OutputProperties.<init>(OutputProperties.j
    ava:130)
    at org.apache.xalan.transformer.TransformerIdentityImpl.<init>(Transform
    erIdentityImpl.java:104)
    at org.apache.xalan.processor.TransformerFactoryImpl.newTransformer(Tran
    sformerFactoryImpl.java:804)
    at XMLTest.init(XMLTest.java:36)
    at sun.applet.AppletPanel.run(AppletPanel.java:341)
    at java.lang.Thread.run(Thread.java:536)
    I am still unclear to the cause, when I create a copy of the output_xml.properties file and put it somewhere in your classpathe (I put mine in a jar that the applet loads) you get:
    java.lang.ExceptionInInitializerError
         at java.lang.Class.forName0(Native Method)
         at java.lang.Class.forName(Class.java:140)
         at org.apache.xalan.serialize.SerializerFactory.getSerializer(SerializerFactory.java:131)
         at org.apache.xalan.transformer.TransformerIdentityImpl.createResultContentHandler(TransformerIdentityImpl.java:232)
         at org.apache.xalan.transformer.TransformerIdentityImpl.transform(TransformerIdentityImpl.java:296)
         at com.thalesgroup.mss.infrastructure.xml.SOAPMessage.domDocToString(SOAPMessage.java:180)
         at com.thalesgroup.mss.applets.filemanager.XmlMessages.getFileList(XmlMessages.java:246)
         at com.thalesgroup.mss.applets.filemanager.FileManagerFrame.getFileList(FileManagerFrame.java:575)
         at com.thalesgroup.mss.applets.filemanager.FileManagerFrame.access$2(FileManagerFrame.java:29)
         at com.thalesgroup.mss.applets.filemanager.FileManagerFrame$fileList.run(FileManagerFrame.java:847)
    Caused by: java.lang.RuntimeException: The resource [ XMLEntities.res ] could not load: java.net.MalformedURLException: no protocol: XMLEntities.res
    XMLEntities.res      java.net.MalformedURLException: no protocol: XMLEntities.res
         at org.apache.xalan.serialize.CharInfo.<init>(CharInfo.java:202)
         at org.apache.xalan.serialize.SerializerToXML.<clinit>(SerializerToXML.java:292)
         ... 10 more
    Which leads me to some questions:
    What is XMLEntities.res, and how do I get one?
    Does anyone know which version of Xalan and JAXP comes with J2SE 1.4.1?
    Why the package "org.apache.xalan.Version" is not in the J2SE 1.4.1 release (and should it be?)

  • XSLT problem -- urgent

    Hi,
    We are porting our application from WLS5.1 to WLS6.0SP2. We
    use Apache's Xerces parser for XSLT processing. After starting the server while
    loading a page, I get the following error:
    javax.xml.transform.TransformerException
    at org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.java:1242)
    at org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:2942)
    at java.lang.Thread.run(Thread.java:484)
    java.lang.ArrayIndexOutOfBoundsException
    at org.apache.xalan.serialize.SerializerToXML.accum(SerializerToXML.java:1321)
    at org.apache.xalan.serialize.SerializerToXML.outputLineSep(SerializerToXML.java:195)
    at org.apache.xalan.serialize.SerializerToXML.indent(SerializerToXML.java:2241)
    at org.apache.xalan.serialize.SerializerToHTML.startElement(SerializerToHTML.java:559)
    at org.apache.xalan.transformer.QueuedStartElement.flush(QueuedStartElement.java:357)
    at org.apache.xalan.transformer.ResultTreeHandler.flushPending(ResultTreeHandler.java:770)
    at org.apache.xalan.transformer.ResultTreeHandler.endElement(ResultTreeHandler.java:279)
    at org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:749)
    at org.apache.xalan.templates.ElemForEach.transformSelectedNodes(ElemForEach.java:498)
    at org.apache.xalan.templates.ElemApplyTemplates.execute(ElemApplyTemplates.java:193)
    at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2202)
    at org.apache.xalan.transformer.TransformerImpl.applyTemplateToNode(TransformerImpl.java:2085)
    at org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.java:1219)
    at org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:2942)
    at java.lang.Thread.run(Thread.java:484)
    Has anyone come across this problem and got the solution ?
    Regards,
    Ramkumar

    This is correct you can use different 3rd party parsers like crimson or xml4j , by
    configuring the xml registry .However using different versions of apache xerces and xalan
    other than those shipped can cause compatibility problems and is not supported.
    Look at the faq url for details.
    http//e-docs.bea.com/wls/docs61/faq/xml.html#740643
    It might be possible however to hack this and get it to work.
    yeshwant
    Simon Spruzen wrote :
    If at all possible, you should limit your versions of Xalan and Xerces to those
    shipped with WLS (in weblogic.jar and xmlx.jar). So your imports look something
    like:
    import org.w3c.dom.*;
    import weblogic.apache.*; // not org.apache.*
    It seems that different versions of Xalan and Xerces ship with different versions
    of the org.w3c.dom classes that can be incompatible. You also must also use compatible
    versions of Xalan and Xerces together, else all sorts of oddness starts.
    (I wish Jakarta would merge the Xalan and Xerces packages into one super-package
    and gave it a single name)
    If you use the stuff shipped with WLS6.0 and nothing else, everything works fine.
    You don't have to use the registry and JAXP if you don't want to, however it's
    a nice clean API, providing you agree on what versions of Xalan and Xerces you're
    on. I found using JAXP with mixed versions of Xalan/Xerces just made things more
    confusing!
    WLS6.1 upgrades Xalan and Xerces and drops xmlx.jar. Here's part of a reply from
    a support case I've raised in a related area that clears things up:
    [Helen - BEA Support - writes:]
    "Here is some information that I hope will clarify things a little more :-
    The packaging was intended to make sure that customers could use newer versions
    of xerces and xalan without causing problems for the built in parser.The org.apache
    classes are packaged in xmlx.jar whereas the weblogic.apache classes are packaged
    in weblogic.jar.
    Originally, we planned to rev the xmlx.jar version of Xerces more often than
    the built-in version in WLS. But it turned out that there were compatibility
    problems involving the Level 2 DOM classes (org.w3c.dom package), so in
    practice people couldn't easily plug in a different version of Xerces than
    the one included in weblogic.jar. This problem generally only affects
    customers desiring to plug in a different version of Xerces;
    Because of the compatibility issue, which is not easily solvable, we have
    decided not to support plugging in a different version of Xerces than the one
    shipped. Therefore, we have decided to axe xmlx.jar.
    Note that for 6.1 it is not possible to use a different version of xerces and
    xalan than what is shipped as per
    http//e-docs.bea.com/wls/docs61/faq/xml.html#740643"
    "Ram Kumar" <[email protected]> wrote:
    Hi Kenneth,
    Yes, it is already in my classpath before weblogic.jar.
    Do I need to use the XML Registry and JAXP API for this to work compulsorily
    Regards,
    Ramkumar
    "Kenneth Chenis" <[email protected]> wrote:
    Try putting your xerces.jar file in the classpath before the weblogic.jar
    .... that resolved some (not all) of the problems we had with the internal
    xerces/parser classes in the weblogic.jar file.
    hope this helps,
    Kenneth Chenis
    ComponenTree Inc.
    Data Code Inc.
    [email protected]
    978-521-5970
    "Ram Kumar" <[email protected]> wrote in message
    news:[email protected]...
    Hi,
    We are porting our application from WLS5.1 to WLS6.0SP2. We
    use Apache's Xerces parser for XSLT processing. After starting theserver
    while
    loading a page, I get the following error:
    javax.xml.transform.TransformerException
    atorg.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.j
    ava:1242)
    atorg.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:2942)
    at java.lang.Thread.run(Thread.java:484)
    java.lang.ArrayIndexOutOfBoundsException
    atorg.apache.xalan.serialize.SerializerToXML.accum(SerializerToXML.java:1321)
    atorg.apache.xalan.serialize.SerializerToXML.outputLineSep(SerializerToXML.jav
    a:195)
    atorg.apache.xalan.serialize.SerializerToXML.indent(SerializerToXML.java:2241)
    atorg.apache.xalan.serialize.SerializerToHTML.startElement(SerializerToHTML.ja
    va:559)
    atorg.apache.xalan.transformer.QueuedStartElement.flush(QueuedStartElement.jav
    a:357)
    atorg.apache.xalan.transformer.ResultTreeHandler.flushPending(ResultTreeHandle
    r.java:770)
    atorg.apache.xalan.transformer.ResultTreeHandler.endElement(ResultTreeHandler.
    java:279)
    atorg.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:
    749)
    atorg.apache.xalan.templates.ElemForEach.transformSelectedNodes(ElemForEach.ja
    va:498)
    atorg.apache.xalan.templates.ElemApplyTemplates.execute(ElemApplyTemplates.jav
    a:193)
    atorg.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Transform
    erImpl.java:2202)
    atorg.apache.xalan.transformer.TransformerImpl.applyTemplateToNode(Transformer
    Impl.java:2085)
    atorg.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.j
    ava:1219)
    atorg.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:2942)
    at java.lang.Thread.run(Thread.java:484)
    Has anyone come across this problem and got the solution ?
    Regards,
    Ramkumar

  • Managing the Derby Network Server remotely by using the servlet interface

    Hi, im not able to deploy derby.war from derby 10.4.1.3, as indicated in the Derby Server and Administration Guide, using Sun Java System Application Server 9.1 Update 2.
    Following is the deployment's errors log:
    STATIC VERIFICATION RESULTS
    NUMBER OF FAILURES/WARNINGS/ERRORS
    # of Failures : 2
    # of Warnings : 0
    # of Errors : 0
    RESULTS FOR WEB-RELATED TESTS
    FAILED TESTS :
    Test Name : tests.web.WelcomeFile
    Test Assertion : welcome-file element contains the file name to use as a default welcome file.
    Test Description : For [ C:\Users\Ramiro\.personalDomain\personalDomain\applications\j2ee-modules\derby ]
    Error: Welcome file URL [ /derbynet ] must be a partial URL with no trailing or leading /.
    Test Name : tests.web.WebArchiveClassesLoadable
    Test Assertion : All classes in this Web Archive are loadable excluding classes used in JSPs. The test AllJSPsMustBeCompilable takes care of reporting non portable errors in JSP classes.
    Test Description : For [ C:\Users\Ramiro\.personalDomain\personalDomain\applications\j2ee-modules\derby ]
    Failed to find following classes:
    org.apache.xalan.serialize.SerializerFactory,
    org.apache.xpath.XPath,
    org.apache.xpath.XPathContext,
    org.apache.xpath.objects.XNodeSet,
    org.apache.xalan.serialize.DOMSerializer,
    org.apache.xalan.serialize.Serializer,
    org.apache.xpath.objects.XObject,
    org.apache.xml.utils.PrefixResolverDefault,
    org.apache.xalan.templates.OutputProperties
    referenced in the following call stack :
    at org.apache.derby.iapi.types.SqlXmlUtil
    at org.apache.derby.iapi.types.XMLDataValue
    at org.apache.derby.iapi.types.DataValueFactory
    at org.apache.derby.iapi.types.SQLDate
    at org.apache.derby.iapi.types.SQLTime
    at org.apache.derby.iapi.types.SQLChar
    at org.apache.derby.iapi.types.SQLVarchar
    at org.apache.derby.iapi.types.SQLLongvarchar
    at org.apache.derby.iapi.types.TypeId
    at org.apache.derby.iapi.types.DataTypeDescriptor
    at org.apache.derby.iapi.sql.ResultColumnDescriptor
    at org.apache.derby.iapi.sql.ResultDescription
    at org.apache.derby.iapi.sql.execute.ExecutionFactory
    at org.apache.derby.iapi.sql.execute.ExecutionContext
    at org.apache.derby.iapi.sql.conn.LanguageConnectionContext
    at org.apache.derby.iapi.db.Database
    at org.apache.derby.impl.drda.DRDAConnThread
    at org.apache.derby.impl.drda.DDMWriter
    at org.apache.derby.impl.drda.NetworkServerControlImpl
    at org.apache.derby.drda.NetworkServerControl
    at org.apache.derby.drda.NetServlet
    Please either bundle the above mentioned classes in the application or use optional packaging support for them.
    END OF STATIC VERIFICATION RESULTS
    -----

    ramiro wrote:
    Hi, im not able to deploy derby.war from derby 10.4.1.3, as indicated in the Derby Server and Administration Guide, using Sun Java System Application Server 9.1 Update 2.Best I can guess is that you are attempting to remotely install derby.
    That is a pretty specific question and I suspect there is a specific derb forum as well.
    As a guess you probably failed to follow the docs on pre-reqs.

  • Problem with old packages

    I am trying to recreate the web-based data mining tool as outlined here (http://www.ibm.com/developerworks/library/wa-wbdm/) way back in 2001.
    I am generating quite a few errors compiling XMLHelper (35 in all), and I've done a bit of research to try to understand these errors and how I might address them.
    It appears that most of the errors are derivative to the following initial errors:
    1) package org.apache.xerces.dom does not exist, import org.apache.xerces.dom
    2) package org.apache.xerces.parsers does not exist, import org.apache.xerces.parsers
    3) package org.apache.xml.serialize does not exist, import org.apache.xml.serialize
    4) package org.apache.xalan.xslt does not exist, import org.apache.xalan.xslt
    5) package org.apache.xpath does not exist, import org.apache.xpath
    6) package org.w3c.tidy does not exist, import org.w3c.tidy
    It also appears that a number of these packages are considerably outdated, and either no longer exist in the form shown, or the functionality being sought from the package now resides in a different package.
    Any insight on how I mgiht resolve these errors would be greatly appreciated. I am not wedded to this particular approach, however, so if there is a better/more up to date approach (with tutorial, of course, as I'm quite new at this) to accomplish the same objective (automatically extract information from a particular web source and prep it for some database friendly format), even better.
    The data I am seeking is very public - restaurant inspection information posted online periodically by a city agency.
    Thank You,
    Ottac

    cotton.m,
    Thank you for clarifying the terminology.
    Actually, I have previously downloaded the current xalan and xerces-j packages from sourceforge, extracted them, and even added the parent directory of the .jar files to my classpath before attempting the compile for XMLHelper.java, but to no avail. I have done the same with tidy (added the unzipped folder to classpath), which only appears to have a .css file (not sure if that is what I need). I still get the same errors indicating the packages cannot be found. I have read in some other forum posts that some of the packages may have been significantly reconfigured, particularly post java 1.5, and may not longer be accessible in the enumerated format.
    I certainly would prefer a clean data (i.e. web service) format rather than attempting to scrape from the web, but unfortunately the relevant bureaucrats are neither helpful nor responsive: "it's on the website" is all I get, no matter how I try.
    I may be able to convince someone to send me a text file, csv or something, but I can already tell it won't be easy, and will probably only turn out to be a one-time quick fix in any event. The particular agency just spent a considerable amount of money getting a system up and running that would present the data in a 'user-friendly' format to the public (it's decent, in any event), so I am not particularly concerned that the page format will change in the near or medium term.
    In any event, back to the errors, then. I've downloaded the xalan and xerces tar.gz files, unzipped them, identified the parent director of the relevant jar files (such as xalan.jar, serializer.jar, etc), added the path to these directories to my classpath, and still get the same errors when I javac -verbose XMLHelper.java...
    Thanks Again...

  • Error running Ant to Test a BPEL process in developer-prompt

    Hi,
    I am trying to start an Ant-script to start a testsuite for a BPEL process. It fails ...
    Im running the defult Ant script (build.xml) from the Developer-prompt. It works fine from within JDeveloper Studio.
    Anyone who can help me??
    Thx
    Norvald
    Error messages:
    [bpeltest] <Line 39, Column 173>: XML-22016: (Error) Extension function namespace should start with 'http://www.oracle.com/XSL/Transform/java/'.
    and
    C:\product\jdevstudio\jdev\mywork\HelloWorld\HelloWorldProcess\build.xml:197: Could not find a valid processor version implementation from oracle.xml.jaxp.JXSAXTransformerFactory
    The complete output from the Ant build (including errors):
    C:\product\jdevstudio\jdev\mywork\HelloWorld\HelloWorldProcess>ant test
    Buildfile: build.xml
    Trying to override old definition of task customize
    prepareTests:
    [echo]
    [echo] --------------------------------------------------------------
    [echo] | Preparing BPEL tests for deployment
    [echo] --------------------------------------------------------------
    [echo]
    [delete] Deleting: C:\product\jdevstudio\jdev\mywork\HelloWorld\HelloWorldPro
    cess\output\bpeltest.zip
    [zip] Building zip: C:\product\jdevstudio\jdev\mywork\HelloWorld\HelloWorl
    dProcess\output\bpeltest.zip
    deployTestSuites:
    [echo]
    [echo] --------------------------------------------------------------
    [echo] | Deploying bpel tests HelloWorldProcess on localhost, port 8888
    [echo] --------------------------------------------------------------
    [echo]
    [deployTestSuites] Deploying C:\product\jdevstudio\jdev\mywork\HelloWorld\HelloW
    orldProcess\output\bpeltest.zip...
    [deployTestSuites] Accesing URL /integration/services/deploy/integration/service
    s/deploy/deployTests.jsp
    [deployTestSuites] status [200] received from server
    [deployTestSuites] wrapped response
    [deployTestSuites] End of the deployment
    [deployTestSuites] bpeltest.zip deployed successfully.
    bpelTest:
    [echo]
    [echo] --------------------------------------------------------------
    [echo] | Executing process HelloWorldProcess(v.1.0): minCoverage=100%, time
    out=90 sec, numWorkers=1
    [echo] --------------------------------------------------------------
    [echo]
    [delete] Deleting directory C:\product\jdevstudio\jdev\mywork\HelloWorld\Hell
    oWorldProcess\test-results\xml\HelloWorldProcess
    [bpeltest] connecting to /integration/services/deploy/xmlRunTests.jsp
    [bpeltest] <Line 39, Column 173>: XML-22016: (Error) Extension function namespa
    ce should start with 'http://www.oracle.com/XSL/Transform/java/'.
    [echo]
    [echo] --------------------------------------------------------------
    [echo] Executed 2 test(s) for HelloWorldProcess (v.1.0) with 0 failure(s)
    [echo] --------------------------------------------------------------
    [echo]
    report:
    [echo]
    [echo] --------------------------------------------------------------
    [echo] Creating BPELTest JUnitReport at C:\product\jdevstudio\jdev\mywork\H
    elloWorld\HelloWorldProcess/test-results\html\index.html
    [echo] --------------------------------------------------------------
    [echo]
    BUILD FAILED
    C:\product\jdevstudio\jdev\mywork\HelloWorld\HelloWorldProcess\build.xml:197: Co
    uld not find a valid processor version implementation from oracle.xml.jaxp.JXSAX
    TransformerFactory
    Total time: 14 seconds

    sorry for the late reply. The problem is that Oracle XDK is not compatible with the junitreport task. I believe there are some post install steps (due to licensing issues) that you need to perform before running the ant task. This is noted in the release notes (copied below):
    1. base site for xalan is http://xml.apache.org/xalan-j/ site. to download, go to: http://www.apache.org/dyn/closer.cgi/xml/xalan-j. then from the recommended mirror site download xalan-j_2_7_0-bin.zip.
    2. unzip this file.
    3. copy unzip_dir\xalan-j_2_7_0\serializer.jar to Oracle_Home\bpel\lib\serializer_2.7.0.jar. copy unzip_dir\xalan-j_2_7_0\xalan.jar to Oracle_Home\bpel\lib\xalan_2.7.0.jar. Note the filename change
    4. no change to obsetenv is needed.

  • Word to XML conversion

    Hi,
    I need a Java API to convert a word document to XML format. I don't want to use the Word Document "Save As" feature for converting the document to XML file.
    Please give me suggestions.
    Thanks in advance,
    Sapna

    Open Office has such a feature. To what extent it is documented and source is available, I am not sure. http://www.openoffice.org. If not, you will need to use Jakarta POI to read the Word document. Serializing to XML can be done by custom string concatenation routines you write, or use a combination of Jakarta Xerces to create DOM for the XML and Jakarta Xalan to serialize it to a XML string.
    - Saish

  • Java.lang.NoClassDefFoundError: org/w3c/dom/xpath/XPathEvaluator

    here is the tiresome problem, which has puzzled me for 5 days.
    2008-7-11 15:58:03 org.apache.catalina.core.StandardWrapperValve invoke
    ����: Servlet.service() for servlet MapRequest threw exception
    java.lang.NoClassDefFoundError: org/w3c/dom/xpath/XPathEvaluator
         at java.lang.ClassLoader.defineClass1(Native Method)
         at java.lang.ClassLoader.defineClass(Unknown Source)
         at java.security.SecureClassLoader.defineClass(Unknown Source)
         at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1812)
         at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:866)
         at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1319)
         at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1198)
         at java.lang.ClassLoader.loadClassInternal(Unknown Source)
         at java.lang.ClassLoader.defineClass1(Native Method)
         at java.lang.ClassLoader.defineClass(Unknown Source)
         at java.security.SecureClassLoader.defineClass(Unknown Source)
         at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1812)
         at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:866)
         at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1319)
         at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1198)
         at java.lang.ClassLoader.loadClassInternal(Unknown Source)
         at java.lang.ClassLoader.defineClass1(Native Method)
         at java.lang.ClassLoader.defineClass(Unknown Source)
         at java.security.SecureClassLoader.defineClass(Unknown Source)
         at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1812)
         at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:866)
         at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1319)
         at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1198)
         at java.lang.ClassLoader.loadClassInternal(Unknown Source)
         at org.apache.batik.dom.svg.SVGDOMImplementation.createDocument(Unknown Source)
         at org.apache.batik.dom.util.SAXDocumentFactory.startElement(Unknown Source)
         at org.apache.xerces.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:434)
         at org.apache.xerces.impl.XMLNamespaceBinder.handleStartElement(XMLNamespaceBinder.java:832)
         at org.apache.xerces.impl.XMLNamespaceBinder.startElement(XMLNamespaceBinder.java:568)
         at org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(XMLDTDValidator.java:796)
         at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDocumentFragmentScannerImpl.java:752)
         at org.apache.xerces.impl.XMLDocumentScannerImpl$ContentDispatcher.scanRootElementHook(XMLDocumentScannerImpl.java:927)
         at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1519)
         at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:333)
         at org.apache.xerces.parsers.StandardParserConfiguration.parse(StandardParserConfiguration.java:529)
         at org.apache.xerces.parsers.StandardParserConfiguration.parse(StandardParserConfiguration.java:585)
         at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:147)
         at org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1148)
         at org.apache.batik.dom.util.SAXDocumentFactory.createDocument(Unknown Source)
         at org.apache.batik.dom.util.SAXDocumentFactory.createDocument(Unknown Source)
         at org.apache.batik.dom.svg.SAXSVGDocumentFactory.createDocument(Unknown Source)
         at cn.edu.tongji.hpcc.tigcn.webgis.SVGMapGenerator.<clinit>(SVGMapGenerator.java:51)
         at cn.edu.tongji.hpcc.tigcn.webgis.servlet.MapRequestServlet.doGet(MapRequestServlet.java:70)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
         at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
         at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
         at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
         at java.lang.Thread.run(Unknown Source)
    2008-7-11 15:58:03 org.apache.catalina.core.StandardWrapperValve invoke
    ����: Servlet.service() for servlet MapRequest threw exception
    java.lang.NoClassDefFoundError
         at cn.edu.tongji.hpcc.tigcn.webgis.servlet.MapRequestServlet.doGet(MapRequestServlet.java:70)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
         at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
         at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
         at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
         at java.lang.Thread.run(Unknown Source)
    help me! thank you very much :)

    First,download xalan-j_2_7_0-bin.zip, unpack it.
    Then, place the xalan.jar, serializer.jar, xercesImpl.jar and xml-apis.jar in the
    <catalina-home>\common\endorsed directory.
    At last, reboot your TOMCAT.

Maybe you are looking for

  • MB5B Report..!!1

    MB5B Stock showing Minus on Particular date ( issue is more than receipt) we are having the practice of posting consumption entry (201) post dated..whether system is  checking Current stock OR Stock on that date.

  • Requirment Urgent: How to format standard text in Script like two columns.

    Hi, I want to format the text in two columns like this. 1. This is the note. 5. This is the note. 2. This is the note. 6. This is the note. 3. This is the note. 7. This is the note. 4. This is the note. 8. This is the note. I have to include a standa

  • Line item deletion in the PO once GR & IR is done

    Hi experts,           I have a scenario that once the GR & IR is created for the PO it should not allow us to delete the line items of the PO for which GR & IR is created. I came to know that we want to activate the Badi(ME_PROCESS_PO_CUST) for this

  • What is the max song limit for wifi media sync? Getting spinning clock and device acts locked up...

    Okay, So my device has been working fine for quite a while and I moved over OS6 when it was made available to the beta testing group about a month ago. So I decided to try out the wifi media sync last night and it took Desktop Manager about an hour t

  • Proposal run error detail

    our F110 proposal run has below error: Log for proposal run for payment on 10.07.2010, identification JC006 Due items with currency SGD, pmt method-items total is > 0 ....none of the payment methods defined can be used for these items Information re.