CAS单点登录集成 直接报错

不好意思,问一下

finereport不部署web.xml都正常,单独部署cas项目也没问题,但是集成之后,我向webinfo的lib里添加了tools.jar、casclient.jar、cas-client-core-3.2.1.jar,web.xml使用的是帮助文档提供的,除了把两处susie改成了localhost,其他的没动,完全按照网页上走得,但是tomcat启动直接就报错了


09:44:43 localhost-startStop-1 INFO [standard] Module FineLoggerActivator starting...

SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".

SLF4J: Defaulting to no-operation (NOP) logger implementation

SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.

java.util.ServiceConfigurationError: com.sun.tools.attach.spi.AttachProvider: Provider sun.tools.attach.WindowsAttachProvider could not be instantiated

十月 30, 2019 9:44:57 上午 com.fr.third.org.hibernate.type.descriptor.java.JavaTypeDescriptorRegistry getDescriptor

WARN: Could not find matching type descriptor for requested Java class [java.util.List]; using fallback

十月 30, 2019 9:44:57 上午 com.fr.third.org.hibernate.type.descriptor.java.JavaTypeDescriptorRegistry getDescriptor

WARN: Could not find matching type descriptor for requested Java class [com.fr.swift.source.alloter.AllotRule]; using fallback

十月 30, 2019 9:45:08 上午 com.fr.third.org.hibernate.type.descriptor.java.JavaTypeDescriptorRegistry getDescriptor

WARN: Could not find matching type descriptor for requested Java class [java.util.List]; using fallback

十月 30, 2019 9:45:08 上午 com.fr.third.org.hibernate.type.descriptor.java.JavaTypeDescriptorRegistry getDescriptor

WARN: Could not find matching type descriptor for requested Java class [java.util.List]; using fallback

十月 30, 2019 9:45:08 上午 com.fr.third.org.hibernate.type.descriptor.java.JavaTypeDescriptorRegistry getDescriptor

WARN: Could not find matching type descriptor for requested Java class [java.util.List]; using fallback

十月 30, 2019 9:45:08 上午 com.fr.third.org.hibernate.type.descriptor.java.JavaTypeDescriptorRegistry getDescriptor

WARN: Could not find matching type descriptor for requested Java class [java.util.List]; using fallback

十月 30, 2019 9:45:08 上午 com.fr.third.org.hibernate.type.descriptor.java.JavaTypeDescriptorRegistry getDescriptor

WARN: Could not find matching type descriptor for requested Java class [java.util.List]; using fallback

09:45:14 localhost-startStop-1 ERROR [standard]  Lifecycle error.null

java.lang.NullPointerException

        at com.fr.report.ReportActivator.initReportServlet(Unknown Source)

        at com.fr.report.ReportActivator.start(Unknown Source)

        at com.fr.module.engine.FineModule.executeStart(Unknown Source)

        at com.fr.stable.lifecycle.AbstractLifecycle.start(Unknown Source)

        at com.fr.module.engine.FineModule.start(Unknown Source)

        at com.fr.module.engine.FineModule.startChildren(Unknown Source)

        at com.fr.module.engine.FineModule.executeStart(Unknown Source)

        at com.fr.stable.lifecycle.AbstractLifecycle.start(Unknown Source)

        at com.fr.module.engine.FineModule.start(Unknown Source)

        at com.fr.module.engine.FineModule.startChildren(Unknown Source)

        at com.fr.module.engine.FineModule.executeStart(Unknown Source)

        at com.fr.stable.lifecycle.AbstractLifecycle.start(Unknown Source)

        at com.fr.module.engine.FineModule.start(Unknown Source)

        at com.fr.startup.FineWebApplicationStartup.executeStart(Unknown Source)

        at com.fr.stable.lifecycle.AbstractLifecycle.start(Unknown Source)

        at com.fr.startup.FineWebApplicationInitializer.onStartup(Unknown Source)

        at com.fr.third.springframework.web.SpringServletContainerInitializer.onStartup(SpringServletContainerInitializer.java:175)

        at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5156)

        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)

        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:725)

        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:701)

        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:717)

        at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1101)

        at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1786)

        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)

        at java.util.concurrent.FutureTask.run(FutureTask.java:266)

        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)

        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)

        at java.lang.Thread.run(Thread.java:748)

30-Oct-2019 09:45:16.831 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory D:\soft\apache-tomcat-8.0.24\webapps\webroot has finished in 55,891 ms

30-Oct-2019 09:45:16.838 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-apr-8080"]

30-Oct-2019 09:45:16.846 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-8443"]

30-Oct-2019 09:45:16.849 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["ajp-apr-8009"]

30-Oct-2019 09:45:16.850 INFO [main] org.apache.catalina.startup.Catalina.start Server startup in 63604 ms

2019-10-30 09:46:19,554 INFO [org.jasig.cas.services.DefaultServicesManagerImpl] -

2019-10-30 09:46:19,556 INFO [org.jasig.cas.services.DefaultServicesManagerImpl] -

2019-10-30 09:47:23,898 INFO [org.jasig.cas.web.flow.InitialFlowSetupAction] -

2019-10-30 09:48:06,970 INFO [org.jasig.cas.authentication.AuthenticationManagerImpl] -

2019-10-30 09:48:06,971 INFO [org.jasig.cas.authentication.AuthenticationManagerImpl] -

2019-10-30 09:48:06,972 INFO [org.jasig.cas.authentication.AuthenticationManagerImpl] -

2019-10-30 09:48:06,977 INFO [com.github.inspektr.audit.support.Slf4jLoggingAuditTrailManager] -<Audit trail record BEGIN

====================================================


此时访问 https://localhost:8443/cas/login  都是正常的

fr10的class文件是自带的  我对过代码 是完全一样的

然后cas的集成就一直没成功过  https://localhost:8443/webroot/decision/login 直接进入了登录页  没有cas的主页

这个咋搞啊 ?

原生的项目部署  我什么都没有添加呢  感觉 是不是 fr本身的问题啊

FineReport 半夜鬼哭 发布于 2019-10-30 10:02 (编辑于 2019-10-30 10:18)
1min目标场景问卷 立即参与
回答问题
悬赏:4 F币 + 添加悬赏
提示:增加悬赏、完善问题、追问等操作,可使您的问题被置顶,并向所有关注者发送通知
共2回答
最佳回答
0
半夜鬼哭Lv0见习互助
发布于2019-10-31 13:12

web.xml文件提供的有问题,等待官方更新文档吧


<?xml version="1.0" encoding="UTF-8"?>

<web-app

   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"

   version="2.4"> 

  <display-name>Template WebApp</display-name>

  <mime-mapping>

  <extension>msi</extension>

  <mime-type>application/x-msi</mime-type>

  </mime-mapping>

 

 

  <!--以下“https://casurl:8443”是变量,根据实际配置修改--> 

  <filter> 

        <filter-name>CASFilter</filter-name> 

        <filter-class>edu.yale.its.tp.cas.client.filter.CASFilter</filter-class> 

        <init-param> 

            <param-name>edu.yale.its.tp.cas.client.filter.loginUrl</param-name> 

            <param-value>https://lyj:8443/cas/login</param-value>        <!--cas提供登陆页面的url--> 

        </init-param> 

        <init-param> 

            <param-name>edu.yale.its.tp.cas.client.filter.validateUrl</param-name> 

            <param-value>https://lyj:8443/cas/proxyValidate</param-value>    <!--cas提供service ticker或者proxy ticket验证服务的url--> 

        </init-param> 

        <init-param> 

            <param-name>edu.yale.its.tp.cas.client.filter.serverName</param-name> 

            <param-value>lyj:8443</param-value>  <!--客户端应用的域名和端口,不需要加上http或者https--> 

        </init-param> 

   </filter> 

   <filter-mapping> 

        <filter-name>CASFilter</filter-name> 

        <url-pattern>/decision/*</url-pattern> 

   </filter-mapping>

 

  <filter>   

    <filter-name>FrFilter</filter-name>   

    <filter-class>com.fr.FrLoginFilter</filter-class>   

  </filter>   

  <filter-mapping>   

    <filter-name>FrFilter</filter-name>   

    <url-pattern>/decision/*</url-pattern>   

  </filter-mapping> 

 

</web-app>


这是修改之后可以运行的 和原来的差别好大   ReportServer也没了,等着官方文档更新吧

最佳回答
0
lxjLv3见习互助
发布于2019-10-30 11:05

生成的密钥文件里面域名写的什么,web.xml里面localhost最好改成域名试试,hosts文件里面域名映射关系也要确认加了

  • 半夜鬼哭 半夜鬼哭(提问者) 我试一下 host文件的域名都配置了 谢谢
    2019-10-30 11:31 
  • 半夜鬼哭 半夜鬼哭(提问者) 还是不行,配置xml之后,就一直报Lifecycle error.null,我在linux和windows下都部署了一次,结果是一样的 xml: Template WebApp msi application/x-msi CASFilter edu.yale.its.tp.cas.client.filter.CASFilter edu.yale.its.tp.cas.client.filter.loginUrl https://cslo:8443/cas/login edu.yale.its.tp.cas.client.filter.validateUrl https://cslo:8443/cas/proxyValidate edu.yale.its.tp.cas.client.filter.serverName cslo:8443 CASFilter /ReportServer FrFilter com.fr.FrFilter FrFilter /ReportServer ReportServer com.fr.web.ReportServlet 0 ReportServer /ReportServer linux下报错: 十月 30, 2019 1:52:57 下午 com.fr.third.org.hibernate.type.descriptor.java.JavaTypeDescriptorRegistry getDescriptor WARN: Could not find matching type descriptor for requested Java class [java.util.List]; using fallback 13:52:58 localhost-startStop-1 ERROR [standard] Lifecycle error.null java.lang.NullPointerException at com.fr.report.ReportActivator.initReportServlet(Unknown Source) at com.fr.report.ReportActivator.start(Unknown Source) at com.fr.module.engine.FineModule.executeStart(Unknown Source) at com.fr.stable.lifecycle.AbstractLifecycle.start(Unknown Source) at com.fr.module.engine.FineModule.start(Unknown Source) at com.fr.module.engine.FineModule.startChildren(Unknown Source) at com.fr.module.engine.FineModule.executeStart(Unknown Source) at com.fr.stable.lifecycle.AbstractLifecycle.start(Unknown Source) at com.fr.module.engine.FineModule.start(Unknown Source) at com.fr.module.engine.FineModule.startChildren(Unknown Source) at com.fr.module.engine.FineModule.executeStart(Unknown Source) at com.fr.stable.lifecycle.AbstractLifecycle.start(Unknown Source) at com.fr.module.engine.FineModule.start(Unknown Source) at com.fr.startup.FineWebApplicationStartup.executeStart(Unknown Source) at com.fr.stable.lifecycle.AbstractLifecycle.start(Unknown Source) at com.fr.startup.FineWebApplicationInitializer.onStartup(FineWebApplicationInitializer.java:32) at com.fr.third.springframework.web.SpringServletContainerInitializer.onStartup(SpringServletContainerInitializer.java:175) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5196) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:752) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:728) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:734) at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1141) at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1875) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748) 30-Oct-2019 13:52:59.939 信息 [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [/home/dip/lyj/tomcat/webapps/webroot] has finished in [26,948] ms windows下: 2019-10-30 14:00:14,610 INFO [org.jasig.cas.ticket.registry.support.DefaultTicketRegistryCleaner] - 14:00:14 pool-5-thread-1 INFO [com.fr.third.alibaba.druid.pool.DruidDataSource] {dataSource-1} inited 十月 30, 2019 2:00:15 下午 com.fr.third.org.hibernate.type.descriptor.java.JavaTypeDescriptorRegistry getDescriptor WARN: Could not find matching type descriptor for requested Java class [java.util.List]; using fallback 十月 30, 2019 2:00:15 下午 com.fr.third.org.hibernate.type.descriptor.java.JavaTypeDescriptorRegistry getDescriptor WARN: Could not find matching type descriptor for requested Java class [com.fr.swift.source.alloter.AllotRule]; using fallback 14:00:17 localhost-startStop-1 INFO [standard] Module BaseDBActivator started.Time used 3289 ms. 14:00:17 localhost-startStop-1 INFO [standard] Module ConfigurationActivator starting... 14:00:18 localhost-startStop-1 INFO [standard] Module ConfigurationActivator started.Time used 378 ms. 14:00:18 localhost-startStop-1 INFO [standard] Module VirtualActivator starting... 14:00:18 localhost-startStop-1 INFO [standard] Module FineLoggerActivator starting... 14:00:18 localhost-startStop-1 ERROR [standard] GlobalMCastAddress is not matched: [224.0.1.80] from database, but [224.0.1.179] from this node! 14:00:18 localhost-startStop-1 ERROR [standard] LocalMCastAddress is not matched: [231.45.244.7] from database, but [224.124.170.215] from this node! SLF4J: Failed to load class \"org.slf4j.impl.StaticLoggerBinder\". SLF4J: Defaulting to no-operation (NOP) logger implementation SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details. java.util.ServiceConfigurationError: com.sun.tools.attach.spi.AttachProvider: Provider sun.tools.attach.WindowsAttachProvider could not be instantiated 十月 30, 2019 2:00:32 下午 com.fr.third.org.hibernate.type.descriptor.java.JavaTypeDescriptorRegistry getDescriptor WARN: Could not find matching type descriptor for requested Java class [java.util.List]; using fallback 十月 30, 2019 2:00:32 下午 com.fr.third.org.hibernate.type.descriptor.java.JavaTypeDescriptorRegistry getDescriptor WARN: Could not find matching type descriptor for requested Java class [com.fr.swift.source.alloter.AllotRule]; using fallback 14:00:38 localhost-startStop-1 ERROR [standard] Lifecycle error.null java.lang.ExceptionInInitializerError at com.fr.web.core.B.wA.(Unknown Source) at com.fr.view.module.ViewModule.service4Register(Unknown Source) at com.fr.module.ServerModule.registerServices(Unknown Source) at com.fr.module.ServerModule.start(Unknown Source) at com.fr.module.BaseModule.start(Unknown Source) at com.fr.view.module.ViewModule.start(Unknown Source) at com.fr.general.ModuleContext.startModule(Unknown Source) at com.fr.report.module.EngineModule.start(Unknown Source) at com.fr.general.ModuleContext.startModule(Unknown Source) at com.fr.report.module.ReportBaseActivator.start(Unknown Source) at com.fr.module.engine.FineModule.executeStart(Unknown Source) at com.fr.stable.lifecycle.AbstractLifecycle.start(Unknown Source) at com.fr.module.engine.FineModule.start(Unknown Source) at com.fr.module.engine.FineModule.startChildren(Unknown Source) at com.fr.module.engine.FineModule.executeStart(Unknown Source) at com.fr.stable.lifecycle.AbstractLifecycle.start(Unknown Source) at com.fr.module.engine.FineModule.start(Unknown Source) at com.fr.module.engine.FineModule.startChildren(Unknown Source) at com.fr.module.engine.FineModule.executeStart(Unknown Source) at com.fr.stable.lifecycle.AbstractLifecycle.start(Unknown Source) at com.fr.module.engine.FineModule.start(Unknown Source) at com.fr.module.engine.FineModule.startChildren(Unknown Source) at com.fr.module.engine.FineModule.executeStart(Unknown Source) at com.fr.stable.lifecycle.AbstractLifecycle.start(Unknown Source) at com.fr.module.engine.FineModule.start(Unknown Source) at com.fr.startup.FineWebApplicationStartup.executeStart(Unknown Source) at com.fr.stable.lifecycle.AbstractLifecycle.start(Unknown Source) at com.fr.startup.FineWebApplicationInitializer.onStartup(Unknown Source) at com.fr.third.springframework.web.SpringServletContainerInitializer.onStartup(SpringServletContainerInitializer.java:175) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5156) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:725) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:701) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:717) at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1101) at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1786) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748) Caused by: java.lang.RuntimeException: Illegal license class signature:{code=12415237,signature=9906390}. at com.fr.web.core.B.AB.T(Unknown Source) at com.fr.web.core.B.AB.(Unknown Source) ... 41 more 十月 30, 2019 2:00:40 下午 com.fr.third.org.hibernate.type.descriptor.java.JavaTypeDescriptorRegistry getDescriptor WARN: Could not find matching type descriptor for requested Java class [java.util.List]; using fallback hosts的配置: cat /etc/hosts 127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4 cslo ::1 localhost localhost.localdomain localhost6 localhost6.localdomain6 是不是fr10和cas的集成,发生变化了?
    2019-10-30 14:10 
  • 1关注人数
  • 722浏览人数
  • 最后回答于:2019-10-31 13:12
    请选择关闭问题的原因
    确定 取消
    返回顶部