Finereport项目部暑成域名访问方式无法登录

1.tomcat 的文件夹conf下的server.xml内容如下
<?xml version='1.0' encoding='utf-8'?>
<Server port="8005" shutdown="SHUTDOWN">
  <Listener className="org.apache.catalina.startup.VersionLoggerListener" />
  
  <Listener className="org.apache.catalina.core.AprLifecycleListener" SSLEngine="on" />
  
  <Listener className="org.apache.catalina.core.JasperListener" />
  
  <Listener className="org.apache.catalina.core.JreMemoryLeakPreventionListener" />
  <Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" />
  <Listener className="org.apache.catalina.core.ThreadLocalLeakPreventionListener" />
  
  <GlobalNamingResources>
   
    <Resource name="UserDatabase" auth="Container"
              type="org.apache.catalina.UserDatabase"
              description="User database that can be updated and saved"
              factory="org.apache.catalina.users.MemoryUserDatabaseFactory"
              pathname="conf/tomcat-users.xml" />
  </GlobalNamingResources>
  
  <Service name="Catalina">

    <Connector port="80" protocol="HTTP/1.1"
               connectionTimeout="20000"
               redirectPort="8443" />
   
   
    <Connector port="8009" protocol="AJP/1.3" redirectPort="8443" />
   
    <Engine name="Catalina" defaultHost="bi.XXX.com">
      
      <Realm className="org.apache.catalina.realm.LockOutRealm">
      
        <Realm className="org.apache.catalina.realm.UserDatabaseRealm"
               resourceName="UserDatabase"/>
      </Realm>
      <Host name="bi.XXX.com"  appBase="webapps"
            unpackWARs="true" autoDeploy="true" xmlValidation="false" xmlNamespaceAware="false">
     
        <Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs"
               prefix="localhost_access_log." suffix=".txt"
               pattern="%h %l %u %t &quot;%r&quot; %s %b" />
        <Context path="" docBase="E:\BAS" reloadable="true">
         
        </Context>
                  
   
      </Host>
    </Engine>
  </Service>
</Server>
2.webapps下没有部暑BAS

3.BAS项目文件夹WEB-INF下的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>
  <servlet>
    <servlet-name>ReportServer</servlet-name>
    <servlet-class>com.fr.web.ReportServlet</servlet-class>
    <load-on-startup>0</load-on-startup>
  </servlet>
  <servlet-mapping>
    <servlet-name>ReportServer</servlet-name>
    <url-pattern>/ReportServer</url-pattern>
  </servlet-mapping>
  
  <welcome-file-list>
<welcome-file>index.html</welcome-file>
<welcome-file>index.htm</welcome-file>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
</web-app>

4.BAS项目文件夹下index.jsp内容如下:
<html>  
    <head>  
        <title>BAS决策分析系统</title>
        <meta http-equiv="X-UA-Compatible" content="chrome=1,IE=edge"/>
<style type="text/css">
         html, body
  {
   margin: 0px 0px;
   width: 100%;
   height: 100%;
  }
         iframe
  {
   margin: 0px 0px;
   width: 100%;
   height: 100%;
  }
</style>
    </head>  
    <body>  
        <iframe id="reportFrame" src="ReportServer?op=fs" name="itemslist" frameborder="0"></iframe>
    </body>  
</html>
5.访问界面无背景,登录按钮也无登录字样,输入用户名admin,密码admin,无任何反应


FineReportcxs4808@163.com 发布于 2017-1-11 18:29
悬赏:2 F币 + 添加悬赏
提示:增加悬赏、完善问题、追问等操作,可使您的问题被置顶,并向所有关注者发送通知
共13回答
最佳回答
0
macro_hard发布于2017-1-11 18:29(编辑于 2023-9-6 09:34)
555
最佳回答
0
macro_hard发布于2017-1-12 00:23(编辑于 2023-9-6 09:34)
555
  • cxs4808@163.com cxs4808@163.com(提问者)

    这样不行吧,因为Host节点设置reload=true,你这样,初始加载一次,然后读host设置后又会加载一次,finereport用的数据库是hsql是单线程的,这样会报错的
    回复
    2017-01-12 19:41 
最佳回答
0
静听禅鸣发布于2017-1-12 05:22(编辑于 2023-9-6 09:34)
555
最佳回答
0
Poseidon发布于2017-1-12 08:50(编辑于 2023-9-6 09:34)
555
最佳回答
0
cxs4808@163.com发布于2017-1-12 19:41(编辑于 2023-9-6 09:34)
555
  • macro_hard macro_hard

    bas下的web-inf不配置servlet。
    你原来的配置我觉得有问题,/已经改成了E:\\bas了,放在ROOT下的帆软还能用么。
    如果有重加载的问题,把WebReport放到Tomcat外面就好了
    回复
    2017-01-12 20:43 
最佳回答
0
macro_hard发布于2017-1-12 20:43(编辑于 2023-9-6 09:34)
555
最佳回答
0
cxs4808@163.com发布于2017-1-14 17:53(编辑于 2023-9-6 09:34)
555
  • macro_hard macro_hard

    和这个是类似的http://help.finereport.com/doc-view-806.html
    要不你试试bas目录下只放一个index.jsp,不要web-inf目录。整个webreport目录放到webapps下,然后index.jsp里面src=\"WebReport/ReportServer?op=fs\"
    回复
    2017-01-14 17:58 
最佳回答
0
macro_hard发布于2017-1-14 17:58(编辑于 2023-9-6 09:34)
555
最佳回答
0
cxs4808@163.com发布于2017-1-14 18:23(编辑于 2023-9-6 09:34)
555
  • macro_hard macro_hard

    你是改服务器的hosts来测试域名的么
    回复
    2017-01-14 18:25 
最佳回答
0
macro_hard发布于2017-1-14 18:25(编辑于 2023-9-6 09:34)
555
  • 0关注人数
  • 841浏览人数
  • 最后回答于:2017-1-15 10:08
    活动推荐 更多
    热门课程 更多
    返回顶部