我想使用apex 4.2.2或v5以PDF格式打印报告。我已经读过,即使在apex admin下的实例设置中启用PDF,ORDS v3也需要工作。
但在安装过程中,它会暂停该过程
当我检查网址时,它显示以下ouptut:
调试跟踪
mapped request using: /* to: PLSQL:apex Could not find any dispatcher to handle request: --Attributes-- nanoStart = 1447556222844 apex.diagnostic.context = Attempting to process as a Dispatchable Service ECID-Principal = ECIDPrincipal [ecid=qKmpkwa3M59vpxfWvdonuA..] oracle.dbtools.http.ecid = co0K1af4SoL_vfSvpOewLA.. oracle.dbtools.common.di.Services = Request Scope --Attributes-- GET /ords/ HTTP/1.1 Host: 127.0.0.1 Cookie: WWV_CUSTOM-F_4876305575366759_100=A232DDB1270CE7EC; WWV_CUSTOM-F_4876305575366759_101=CDDDBA5608605CD8; WWV_CUSTOM-F_10_4950=E5A43E72CA2546A0 Cache-Control: max-age=0 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8 Upgrade-Insecure-Requests: 1 Connection: keep-alive User-Agent: Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.86 Safari/537.36 Host: 127.0.0.1:8090 Accept-Encoding: gzip, deflate, sdch Accept-Language: en-US,en;q=0.8 HttpInputOverHTTP@b9a27
堆栈跟踪
NotFoundException [statusCode=404, reasons=[]] at oracle.dbtools.http.entrypoint.Dispatcher.choose(Dispatcher.java:82) at oracle.dbtools.http.entrypoint.Dispatcher.dispatch(Dispatcher.java:92) at oracle.dbtools.http.entrypoint.EntryPoint$FilteredServlet.service(EntryPoint.java:123) at oracle.dbtools.http.filters.FilterChainImpl.doFilter(FilterChainImpl.java:73) at oracle.dbtools.http.forwarding.QueryFilteringRewrite.doFilter(QueryFilteringRewrite.java:82) at oracle.dbtools.http.filters.HttpFilter.doFilter(HttpFilter.java:45) at oracle.dbtools.http.filters.FilterChainImpl.doFilter(FilterChainImpl.java:64) at oracle.dbtools.http.forwarding.ForwardingFilter.doFilter(ForwardingFilter.java:59) at oracle.dbtools.http.filters.HttpFilter.doFilter(HttpFilter.java:45) at oracle.dbtools.http.filters.FilterChainImpl.doFilter(FilterChainImpl.java:64) at oracle.dbtools.http.cors.CORSPreflightFilter.doFilter(CORSPreflightFilter.java:67) at oracle.dbtools.http.filters.HttpFilter.doFilter(HttpFilter.java:45) at oracle.dbtools.http.filters.FilterChainImpl.doFilter(FilterChainImpl.java:64) at oracle.dbtools.http.cookies.auth.CookieSessionCSRFFilter.doFilter(CookieSessionCSRFFilter.java:61) at oracle.dbtools.http.filters.HttpFilter.doFilter(HttpFilter.java:45) at oracle.dbtools.http.filters.FilterChainImpl.doFilter(FilterChainImpl.java:64) at oracle.dbtools.http.auth.AuthenticationFilter.authenticate(AuthenticationFilter.java:89) at oracle.dbtools.http.auth.AuthenticationFilter.doFilter(AuthenticationFilter.java:62) at oracle.dbtools.http.filters.HttpFilter.doFilter(HttpFilter.java:45) at oracle.dbtools.http.filters.FilterChainImpl.doFilter(FilterChainImpl.java:64) at oracle.dbtools.url.mapping.db.PLSQLMapper.doFilter(PLSQLMapper.java:37) at oracle.dbtools.url.mapping.URLMapping.doFilter(URLMapping.java:78) at oracle.dbtools.url.mapping.filter.URLMappingFilter.doFilter(URLMappingFilter.java:63) at oracle.dbtools.http.filters.FilterChainImpl.doFilter(FilterChainImpl.java:64) at oracle.dbtools.http.locale.LocaleFilter.doFilter(LocaleFilter.java:60) at oracle.dbtools.http.filters.HttpFilter.doFilter(HttpFilter.java:45) at oracle.dbtools.http.filters.FilterChainImpl.doFilter(FilterChainImpl.java:64) at oracle.dbtools.http.cors.CORSResponseFilter.doFilter(CORSResponseFilter.java:71) at oracle.dbtools.http.filters.HttpResponseFilter.doFilter(HttpResponseFilter.java:45) at oracle.dbtools.http.filters.FilterChainImpl.doFilter(FilterChainImpl.java:64) at oracle.dbtools.http.errors.ErrorPageFilter.doFilter(ErrorPageFilter.java:75) at oracle.dbtools.http.filters.HttpFilter.doFilter(HttpFilter.java:45) at oracle.dbtools.http.filters.FilterChainImpl.doFilter(FilterChainImpl.java:64) at oracle.dbtools.http.ecid.ECIDFilter.doFilter(ECIDFilter.java:35) at oracle.dbtools.http.filters.HttpFilter.doFilter(HttpFilter.java:45) at oracle.dbtools.http.filters.FilterChainImpl.doFilter(FilterChainImpl.java:64) at oracle.dbtools.http.auth.ForceAuthFilter.doFilter(ForceAuthFilter.java:44) at oracle.dbtools.http.filters.HttpFilter.doFilter(HttpFilter.java:45) at oracle.dbtools.http.filters.FilterChainImpl.doFilter(FilterChainImpl.java:64) at oracle.dbtools.http.filters.Filters.filter(Filters.java:47) at oracle.dbtools.http.entrypoint.EntryPoint.service(EntryPoint.java:80) at oracle.dbtools.http.entrypoint.EntryPointServlet.service(EntryPointServlet.java:46) at javax.servlet.http.HttpServlet.service(HttpServlet.java:790) at oracle.dbtools.rt.web.HttpEndpointBase.dispatchableServices(HttpEndpointBase.java:166) at oracle.dbtools.rt.web.HttpEndpointBase.service(HttpEndpointBase.java:88) at javax.servlet.http.HttpServlet.service(HttpServlet.java:790) at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:751) at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:566) at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:219) at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1111) at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:498) at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:183) at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1045) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141) at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:199) at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:109) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:98) at org.eclipse.jetty.server.Server.handle(Server.java:461) at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:284) at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:244) at org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:534) at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:607) at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:536) at java.lang.Thread.run(Unknown Source)
答案 0 :(得分:8)
如果您使用的是apex 5.0,那么您不需要ords用户。 不做
也是如此java -jar ords.war install
由于这将引导您完成创建 ords_metadata 和 ords_public_user 的过程,而Apex不需要这样做。而是使用
第一步,定义位置:
java -jar ords.war configdir c:\ords\
(它将在指定目录下创建另一个ords目录)
下一步,定义APEX服务器+密码(如果使用休息服务,则为apex_public_user和apex_listener + apex_rest_public_user),
java -jar ords.war setup
这将引导您完成设置过程。
接下来,您可以选择运行apex,1)独立2)Java服务器(Glassfish,Tomcat,weblogic)
Standalone非常直接:
java -jar ords.war standalone --port 8080 --apex-images c:\ords\i\
您需要Apex 5.0 zip中的 images 文件夹为c:\ ords \ i \(或更改位置)
在Tomcat上设置非常简单。解压缩Tomcat后,只需将ords.war复制到webapps文件夹,然后将apex 5.0 images文件夹复制到webapps \ i \
请注意,您需要在与tomcat服务器相同的计算机上运行java -jar ords.war configdir,并且tomcat需要访问该文件夹。
如果搞砸了设置,只需删除** c:\ ords \ ords **文件夹并重新运行设置过程。您还可以定义一个新的configdir,并在保留旧的configdir的同时再次尝试,请注意,运行configdir将始终创建一个子文件夹并将设置文件放在那里。
还要确保apex_public_user已解锁并且您拥有正确的密码,即
sqlplus apex_public_user/*your password*@server
应该连接你,你应该能够做到
select * from dual;
- 编辑 -
确保您安装了Oracle的Java并且用于运行ords:
C:\>java -version java
应该提供类似
的内容version "1.8.0_31"
Java(TM) SE Runtime Environment (build 1.8.0_31-b13)
Java HotSpot(TM) 64-Bit Server VM
(build 25.31-b07, mixed mode)