specifying shale-tiger parsing classpath?

2007-01-29 Thread amjad Shahrour

hi,

Can I instruct shale-tiger to parse only what i want, or maybe exclude paths
form being parsed.

regards,
amjad


Exceptions at startup

2007-01-26 Thread amjad Shahrour

Hi,

I am using shale-tiger along with ADF faces on tomcat 5.5.8. and i am having
several exceptions thrown at the startup of the server (but this seems not
affecting the working of shale, i.e. callbacks are being called)

Class = org.apache.commons.digester.Digester
Parse Error at line 83 column 19: The content of element type "attribute"
must match "(description*,display-name*,icon*,attribute-name,at
tribute-class,default-value?,suggested-value?,attribute-extension*)".
org.xml.sax.SAXParseException: The content of element type
"attribute" must match "(description*,display-name*,icon*,attribut
e-name,attribute-class,default-value?,suggested-value?,attribute-extension*)".
   at
org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown
Source)
   at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown Source)
   at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown
Source)
   at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown
Source)
   at org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(Unknown
Source)
   at org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(Unknown
Source)
   at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown
Source)
   at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
Source)
   at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
Source)
   at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
Source)
   at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
Source)
   at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
   at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
   at org.apache.commons.digester.Digester.parse(Digester.java:1647)
   at org.apache.shale.tiger.config.FacesConfigParser.parse(
FacesConfigParser.java:157)
   at
org.apache.shale.tiger.view.faces.LifecycleListener2.parseResource(
LifecycleListener2.java:1282)
   at
org.apache.shale.tiger.view.faces.LifecycleListener2.contextInitialized(
LifecycleListener2.java:290)
   at org.apache.shale.view.faces.LifecycleListener.contextInitialized(
LifecycleListener.java:138)
   at org.apache.catalina.core.StandardContext.listenerStart(
StandardContext.java:3659)
   at org.apache.catalina.core.StandardContext.start(
StandardContext.java:4097)
   at org.apache.catalina.core.ContainerBase.start(ContainerBase.java
:1012)
   at org.apache.catalina.core.StandardHost.start(StandardHost.java
:718)
   at org.apache.catalina.core.ContainerBase.start(ContainerBase.java
:1012)
   at org.apache.catalina.core.StandardEngine.start(StandardEngine.java
:442)
   at org.apache.catalina.core.StandardService.start(
StandardService.java:450)
   at org.apache.catalina.core.StandardServer.start(StandardServer.java
:683)
   at org.apache.catalina.startup.Catalina.start(Catalina.java:537)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(
NativeMethodAccessorImpl.java:39)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(
DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:585)
   at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:271)
   at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:409)

regards,
Amjad Shahrour


Re: ADF faces with shale tiger

2007-01-26 Thread amjad Shahrour

You are right Gary, that was the cause. Thanks.

I am interested to learn more about the mapper configuration. can you point
me to a document about it.

regards,
amjad

On 1/26/07, Gary VanMatre <[EMAIL PROTECTED]> wrote:


>From: "amjad Shahrour" <[EMAIL PROTECTED]>
>
> Hi there,
>
> I am trying to utilize only shale-tiger with ADF faces.
>
> I am interested only in using only the view controller services
(callbacks).
> i created a simple (adf) jsf page and used the @View @Preprocess @Init
> @Prerender @Destroy on the page's backing bean. but nothing seems to
take
> effect (no callbacks are being called).
>

It sounds like you are missing the binding between a JSF view and a
managed bean.  This is handled by a naming convention.  The JSF viewId is
normalized into a value that must have a corresponding managed.

So if your target page was "/something.jsf", the ViewController should be
registered as a managed bean by the name of "something".  The default
mapper, removes the suffix of the viewId and replaces the "/" with "$".  You
can override the default mapper if you want to create your own rules.


Since your are using the tiger annotations (you also need shale-tiger
besides shale-view and shale-core), you could register your ViewControllers
as managed beans with the following annotation:

@Bean(name = "something", scope = Scope.REQUEST)


>
> following is the web.xml file content
>
>
>
> thanks in advance


Gary



ADF faces with shale tiger

2007-01-26 Thread amjad Shahrour

Hi there,

I am trying to utilize only shale-tiger with ADF faces.

I am interested only in using only the view controller services (callbacks).
i created a simple (adf) jsf page and used the @View @Preprocess @Init
@Prerender @Destroy on the page's backing bean. but nothing seems to take
effect (no callbacks are being called).


following is the web.xml file content



http://java.sun.com/xml/ns/j2ee";
 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
 xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd";
 version="2.4">
Empty web.xml file for Web Application




javax.faces.STATE_SAVING_METHOD
server


oracle.adf.view.faces.USE_APPLICATION_VIEW_CACHE

false


CpxFileName
systemsettings.DataBindings



  


adfFaces
oracle.adf.view.faces.webapp.AdfFacesFilter



adfBindings
oracle.adf.model.servlet.ADFBindingFilter



CustomSecurityFilter
com.openaspects.comms.commons.CustomSecurityFilter





shale

org.apache.shale.application.faces.ShaleApplicationFilter

  





  




adfFaces
faces


adfBindings
*.jsp


adfBindings
*.jspx


CustomSecurityFilter
faces


  
shale
/*
  



faces
javax.faces.webapp.FacesServlet
1


resources
oracle.adf.view.faces.webapp.ResourceServlet



faces
/faces/*


resources
/adf/*


35


html
text/html


txt
text/plain




  org.apache.commons.chain.web.ChainListener

  



/index.jsp
   


java.lang.Exception
/Error.jsp



 Oracle Datasource example
 jdbc/myoracle
 javax.sql.DataSource
 Container








Am I missing something ?


thanks in advance