I forgot to attach web.xml file
On Tue, Mar 29, 2011 at 3:04 PM, mala s <[email protected]> wrote:
> scott,
>
> I run in to SAXParserException. I tried to solve it in many ways. But i
> couldn't.
>
> I attached my complete web.xml. we are authenticating user on restful api
> and using spring security also for autherization.
>
> Could you please tell me is there any problem in my xml file.
>
> Tomcat Log file has exception:
>
>
> 2011-03-29 12:33:43,719 ERROR [org.apache.commons.digester.Digester] -
> <Parse Fatal Error at line 87 column 101: The reference to entity "locale"
> must end with the ';' delimiter.>
> org.xml.sax.SAXParseException: The reference to entity "locale" must end
> with the ';' delimiter.
> at
> com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(Unknown
> Source)
> at
> com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(Unknown
> Source)
> at
> com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(Unknown
> Source)
> at
> com.sun.org.apache.xerces.internal.impl.XMLScanner.reportFatalError(Unknown
> Source)
> at
> com.sun.org.apache.xerces.internal.impl.XMLScanner.scanAttributeValue(Unknown
> Source)
> at
> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanAttribute(Unknown
> Source)
> at
> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown
> Source)
> at
> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown
> Source)
> at
> com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown
> Source)
> at
> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
> Source)
> at
> com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown
> Source)
> at
> com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown
> Source)
> at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown
> Source)
> at
> com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown
> Source)
> at
> com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown
> Source)
> at org.apache.commons.digester.Digester.parse(Digester.java:1887)
> at
>
> Thanks.
>
> On Sat, Mar 26, 2011 at 10:45 PM, Scott Battaglia <
> [email protected]> wrote:
>
>> First you should not be adding your code to our jars. You should be
>> maintaining it separately.
>>
>> Second, can you post any of your code? (removing any private/secret
>> stuff). The auditing is failing because the resource is null.
>>
>> Cheers,
>> Scott
>>
>>
>> On Wed, Mar 23, 2011 at 4:50 PM, mala <[email protected]> wrote:
>>
>>> i implemented custom handle in cas-server-core module. i deploy that
>>> cas-server-core.jar file in tomcat/cas-server-webapp.
>>>
>>> when i used my credintials to login at cas-login page then it thows
>>> exception.
>>>
>>> "CAS is Unavailable
>>>
>>> There was an error trying to complete your request. Please notify your
>>> support desk or try again."
>>>
>>> I attached tomcat.logs.
>>> log file has this exception:
>>>
>>> java.lang.IllegalArgumentException: resourceOperatedUpon cannot be null
>>> at
>>> com.github.inspektr.audit.AuditActionContext.assertNotNull(AuditActionContext.java:81)
>>> at
>>> com.github.inspektr.audit.AuditActionContext.<init>(AuditActionContext.java:64)
>>> at
>>>
>>> can anybody tell me what i m doing wrong here.
>>>
>>>
>>> --
>>> You are currently subscribed to [email protected] as:
>>> [email protected]
>>>
>>> To unsubscribe, change settings or access archives, see
>>> http://www.ja-sig.org/wiki/display/JSG/cas-user
>>>
>>
>> --
>> You are currently subscribed to [email protected] as:
>> [email protected]
>> To unsubscribe, change settings or access archives, see
>> http://www.ja-sig.org/wiki/display/JSG/cas-user
>>
>>
>
--
You are currently subscribed to [email protected] as:
[email protected]
To unsubscribe, change settings or access archives, see
http://www.ja-sig.org/wiki/display/JSG/cas-user
<?xml version="1.0" encoding="UTF-8"?>
<web-app id="WebApp_ID" version="2.4"
xmlns="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">
<display-name>LoginSystem</display-name>
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>/WEB-INF/myapp-service.xml /WEB-INF/myapp-data.xml /WEB-INF/myapp-security.xml /WEB-INF/myapp-server.xml</param-value>
</context-param>
<filter>
<filter-name>PrepopulationFilter</filter-name> <filter-class>com.myapp.webapps.login.filters.PrepopulationFilter</filter-class>
</filter>
<filter>
<filter-name>springSecurityFilterChain</filter-name> <filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class>
</filter>
<filter>
<filter-name>CAS Filter</filter-name>
<filter-class>org.jasig.cas.client.authentication.AuthenticationFilter</filter-class>
<init-param>
<param-name>casServerLoginUrl</param-name>
<param-value>http://localhost:8080/cas/login</param-value>
</init-param>
<init-param>
<param-name>ValidateUrl</param-name>
<param-value>http://localhost:8080/cas/serviceValidate</param-value>
</init-param>
<init-param>
<param-name>service</param-name>
<param-value>http://localhost/myapp/login.html</param-value>
</init-param>
</filter>
<filter>
<filter-name>CAS Validation Filter</filter-name> <filter-class>org.jasig.cas.client.validation.Cas10TicketValidationFilter</filter-class>
<init-param>
<param-name>casServerUrlPrefix</param-name>
<param-value>http://localhost:8080/cas</param-value>
</init-param>
<init-param>
<param-name>service</param-name>
<param-value>http://localhost/portal/login.html</param-value>
</init-param>
<init-param>
<param-name>redirectAfterValidation</param-name>
<param-value>true</param-value>
</init-param>
<init-param>
<param-name>acceptAnyProxy</param-name>
<param-value>true</param-value>
</init-param>
</filter>
<filter>
<filter-name>CAS HttpServletRequest Wrapper Filter</filter-name> <filter-class>org.jasig.cas.client.util.HttpServletRequestWrapperFilter</filter-class>
</filter>
<filter>
<filter-name>CAS Assertion Thread Local Filter</filter-name>
<filter-class>org.jasig.cas.client.util.AssertionThreadLocalFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>PrepopulationFilter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>springSecurityFilterChain</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>CAS Filter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>CAS Validation Filter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>CAS HttpServletRequest Wrapper Filter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>CAS Assertion Thread Local Filter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>
<servlet>
<servlet-name>Myapp</servlet-name>
<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>Myapp</servlet-name>
<url-pattern>*.html</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>Myapp</servlet-name>
<url-pattern>/REST/*</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>Myapp</servlet-name>
<url-pattern>/User/*</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>Myapp</servlet-name>
<url-pattern>/Admin/*</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>Myapp</servlet-name>
<url-pattern>/utilities/*</url-pattern>
</servlet-mapping>
<welcome-file-list>
<welcome-file>index.html</welcome-file>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
</web-app>