You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by Eduardo Simioni <ed...@simioni.net> on 2004/12/27 16:02:55 UTC

[Digester] Problems parsing a file

Hi,

I have a code that works inside Eclipse but outside it isn't working.
Probably it's a problem with classpath, but I don't know where and why.

I've been searching the web for a solution but //I couldn't find.
The logs are much different from each other, I don't have any idea why 
this happens.

Thanks in advance.

Eduardo.

Here are the logs:

********** INSIDE ECLIPSE **********
2004-12-27 16:49:09,312 DEBUG sax - 
setDocumentLocator(org.apache.xerces.parsers.AbstractSAXParser$LocatorProxy@15e83f9)
2004-12-27 16:49:09,312 DEBUG sax - startDocument()
2004-12-27 16:49:09,328 DEBUG sax - 
startPrefixMapping(xml,http://www.w3.org/XML/1998/namespace)
2004-12-27 16:49:09,328 DEBUG sax - 
startPrefixMapping(xmlns,http://www.w3.org/2000/xmlns/)
2004-12-27 16:49:09,328 DEBUG sax - startElement(,,script)
2004-12-27 16:49:09,328 DEBUG Digester -   Pushing body text ''
2004-12-27 16:49:09,328 DEBUG Digester -   New match='script'
2004-12-27 16:49:09,328 DEBUG Digester -   Fire begin() for 
ObjectCreateRule[className=gov.utrafe.test.xml.command.CommandSet, 
attributeName=null]
2004-12-27 16:49:09,328 DEBUG Digester - [ObjectCreateRule]{script}New 
gov.utrafe.test.xml.command.CommandSet
2004-12-27 16:49:09,328 DEBUG Digester -   Fire begin() for 
SetPropertiesRule[]
2004-12-27 16:49:09,328 DEBUG Digester - [SetPropertiesRule]{script} 
Setting property 'name' to 'loginEsistafe'
2004-12-27 16:49:09,343 DEBUG Digester - [SetPropertiesRule]{script} 
Setting property 'description' to 'Executa login no e-SISTAFE'
2004-12-27 16:49:09,343 DEBUG Digester - [SetPropertiesRule]{script} Set 
gov.utrafe.test.xml.command.CommandSet properties


********** OUTSIDE ECLIPSE **********
2004-12-27 16:36:05,375 DEBUG sax - 
setDocumentLocator(org.apache.xerces.parsers.AbstractSAXParser$LocatorProxy@1c6f579)

2004-12-27 16:36:05,375 DEBUG sax - startDocument()
2004-12-27 16:36:05,375 DEBUG sax - 
processingInstruction('xml','version="1.0" encoding="ISO-8859-1" ')
2004-12-27 16:36:05,390 DEBUG sax - startElement(,,HTML)
2004-12-27 16:36:05,390 DEBUG Digester -   Pushing body text ''
2004-12-27 16:36:05,390 DEBUG Digester -   New match='HTML'
2004-12-27 16:36:05,390 DEBUG Digester -   No rules found matching 'HTML'.
2004-12-27 16:36:05,390 DEBUG sax - startElement(,,HEAD)
2004-12-27 16:36:05,390 DEBUG Digester -   Pushing body text ''
2004-12-27 16:36:05,390 DEBUG Digester -   New match='HTML/HEAD'
2004-12-27 16:36:05,390 DEBUG Digester -   No rules found matching 
'HTML/HEAD'.
2004-12-27 16:36:05,390 DEBUG sax - startElement(,,SCRIPT)
2004-12-27 16:36:05,390 DEBUG Digester -   Pushing body text ''
2004-12-27 16:36:05,390 DEBUG Digester -   New match='HTML/HEAD/SCRIPT'
2004-12-27 16:36:05,390 DEBUG Digester -   No rules found matching 
'HTML/HEAD/SCRIPT'.
2004-12-27 16:36:05,390 DEBUG sax - characters(        )
2004-12-27 16:36:05,390 DEBUG sax - characters(<assertPresent 
text="Senha" />        )
2004-12-27 16:36:05,390 DEBUG sax - characters(<assertNotPresent 
text="erro" />        )
2004-12-27 16:36:05,390 DEBUG sax - characters(<setText field="username" 
value="${user.default}" />        )
2004-12-27 16:36:05,390 DEBUG sax - characters(<setText field="password" 
value="${password.default}" />        )
2004-12-27 16:36:05,390 DEBUG sax - characters(<clickButton 
label="Entrar" />        )
2004-12-27 16:36:05,406 DEBUG sax - characters(<assertNotPresent 
text="erro" />        )
2004-12-27 16:36:05,406 DEBUG sax - characters(<selectOption 
field="applicationCode" value="${application}" />        )
2004-12-27 16:36:05,406 DEBUG sax - characters(<clickButton 
label="${button.select}" />)
2004-12-27 16:36:05,406 DEBUG sax - endElement(,,SCRIPT)
2004-12-27 16:36:05,406 DEBUG Digester -   match='HTML/HEAD/SCRIPT'
2004-12-27 16:36:05,406 DEBUG Digester -   bodyText='

        <assertPresent text="Senha" />
        <assertNotPresent text="erro" />
        <setText field="username" value="${user.default}" />
        <setText field="password" value="${password.default}" />
        <clickButton label="Entrar" />

        <assertNotPresent text="erro" />
        <selectOption field="applicationCode" value="${application}" />
        <clickButton label="${button.select}" />

'
2004-12-27 16:36:05,406 DEBUG Digester -   No rules found matching 
'HTML/HEAD/SCRIPT'.
2004-12-27 16:36:05,406 DEBUG Digester -   Popping body text ''
2004-12-27 16:36:05,406 DEBUG sax - characters()
2004-12-27 16:36:05,406 DEBUG sax - endElement(,,HEAD)
2004-12-27 16:36:05,406 DEBUG Digester -   match='HTML/HEAD'
2004-12-27 16:36:05,406 DEBUG Digester -   bodyText=''
2004-12-27 16:36:05,406 DEBUG Digester -   No rules found matching 
'HTML/HEAD'.
2004-12-27 16:36:05,406 DEBUG Digester -   Popping body text ''
2004-12-27 16:36:05,406 DEBUG sax - endElement(,,HTML)
2004-12-27 16:36:05,406 DEBUG Digester -   match='HTML'
2004-12-27 16:36:05,406 DEBUG Digester -   bodyText=''
2004-12-27 16:36:05,421 DEBUG Digester -   No rules found matching 'HTML'.
2004-12-27 16:36:05,421 DEBUG Digester -   Popping body text ''
2004-12-27 16:36:05,421 DEBUG sax - endDocument()

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Re: [Digester] Problems parsing a file

Posted by Reid Pinchback <re...@yahoo.com>.
Are you really sure that both logs
are from an attempt to process the
same file?  They don't look like they
correspond at all.  Sounds silly, but
is one of these the wrong log?  Was
wondering if maybe one was actually 
an old log, not one created as a result 
of whatever you were trying to test.
That could happen if your log4 properties
weren't found, so no log file was opened.
If you had one already laying around you
might not notice that a new one was
not created.


--- Eduardo Simioni <ed...@simioni.net> wrote:

> Hi,
> 
> I have a code that works inside Eclipse but outside
> it isn't working.


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org