Re: Tomcat version 10.0.5 and referenceccdaservice. Getting 404

46 views
Skip to first unread message
Message has been deleted

Dan Brown SITE

unread,
Jun 11, 2021, 12:24:46 PM6/11/21
to Edge Test Tool (ETT)
The highest version of Tomcat we've ever tested is 8.5.66 and the instructions suggest 7.0.53.
The highest version of java we've ever tested is 1.8 (8).
I would suggest that you match these maximums to begin with so that we know we are dealing with the same thing before troubleshooting any further.

Once the above is set up, I would suggest trying the endpoint http://localhost:8080/referenceccdaservice/ui since that is a GET that will display a UI.
On Thursday, June 10, 2021 at 12:48:35 PM UTC-4 lakme....@gmail.com wrote:
I Followed the set up to run the referenceccdaservice on a machine. Before anything els I want to see if the service runs/opens.  GitHub - onc-healthit/reference-ccda-validator: Deployable C-CDA Validator war source code. Use this repository to build and deploy a validator on your local environment. When I run the http://localhost:8080/referenceccdaservice/ on the browser I get a HTTP STATUS 404 ERROR - 
Message The requested resource [/referenceccdaservice/] is not available.

Attached my server and referenceccdaservice files along with screenshot of set up folders and the log file.

This is the  referenceccdaservice.xml:
-<Context reloadable="true">

<Parameter override="true" value="C:\configs_folder\validator_configuration\vocabulary\code_repository" name="vocabulary.localCodeRepositoryDir"/>

<Parameter override="true" value="C:\configs_folder\validator_configuration\vocabulary\valueset_repository" name="vocabulary.localValueSetRepositoryDir"/>

<Parameter override="true" value="C:\configs_folder\VocabularyConfiguration\ccdaReferenceValidatorConfig.xml" name="referenceccda.configFile"/>

<Parameter override="true" value="false" name="referenceccda.isDynamicVocab"/>

<Parameter override="true" value="C:\configs_folder" name="referenceccda.configFolder"/>

<Parameter override="true" value="C:\configs_folder\validator_configuration\scenarios" name="content.scenariosDir"/>

</Context>

The server file:
<?xml version="1.0" encoding="UTF-8"?>

<!--Licensed to the Apache Software Foundation (ASF) under one or morecontributor license agreements. See the NOTICE file distributed withthis work for additional information regarding copyright ownership.The ASF licenses this file to You under the Apache License, Version 2.0(the "License"); you may not use this file except in compliance withthe License. You may obtain a copy of the License athttp://www.apache.org/licenses/LICENSE-2.0Unless required by applicable law or agreed to in writing, softwaredistributed under the License is distributed on an "AS IS" BASIS,WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.See the License for the specific language governing permissions andlimitations under the License. -->

<!-- Note: A "Server" is not itself a "Container", so you may notdefine subcomponents such as "Valves" at this level.Documentation at /docs/config/server.html -->

-<Server shutdown="SHUTDOWN" port="8005">

<Listener className="org.apache.catalina.startup.VersionLoggerListener"/>

<!-- Security listener. Documentation at /docs/config/listeners.html<Listener className="org.apache.catalina.security.SecurityListener" /> -->


<!--APR library loader. Documentation at /docs/apr.html -->


<Listener className="org.apache.catalina.core.AprLifecycleListener" SSLEngine="on"/>

<!-- Prevent memory leaks due to use of particular java/javax APIs-->


<Listener className="org.apache.catalina.core.JreMemoryLeakPreventionListener"/>

<Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener"/>

<Listener className="org.apache.catalina.core.ThreadLocalLeakPreventionListener"/>

<!-- Global JNDI resourcesDocumentation at /docs/jndi-resources-howto.html -->



-<GlobalNamingResources>

<!-- Editable user database that can also be used byUserDatabaseRealm to authenticate users -->


<Resource pathname="conf/tomcat-users.xml" factory="org.apache.catalina.users.MemoryUserDatabaseFactory" description="User database that can be updated and saved" type="org.apache.catalina.UserDatabase" auth="Container" name="UserDatabase"/>

<!--<Resource auth="Container"driverClassName="org.postgresql.Driver"maxActive="100"maxIdle="30"maxWait="10000"name="jdbc/site_scorecard"password="Passw0rd1"type="javax.sql.DataSource"url="jdbc:postgresql://localhost/site_scorecard"username="postgres"/> -->


</GlobalNamingResources>

<!-- A "Service" is a collection of one or more "Connectors" that sharea single "Container" Note: A "Service" is not itself a "Container",so you may not define subcomponents such as "Valves" at this level.Documentation at /docs/config/service.html -->



-<Service name="Catalina">

<!--The connectors can use a shared executor, you can define one or more named thread pools-->


<!--<Executor name="tomcatThreadPool" namePrefix="catalina-exec-"maxThreads="150" minSpareThreads="4"/> -->


<!-- A "Connector" represents an endpoint by which requests are receivedand responses are returned. Documentation at :HTTP Connector: /docs/config/http.htmlAJP Connector: /docs/config/ajp.htmlDefine a non-SSL/TLS HTTP/1.1 Connector on port 8080 -->


<Connector port="8080" redirectPort="8443" connectionTimeout="20000" protocol="HTTP/1.1"/>

<!-- A "Connector" using the shared thread pool-->


<!--<Connector executor="tomcatThreadPool"port="8080" protocol="HTTP/1.1"connectionTimeout="20000"redirectPort="8443" /> -->


<!-- Define an SSL/TLS HTTP/1.1 Connector on port 8443This connector uses the NIO implementation. The defaultSSLImplementation will depend on the presence of the APR/nativelibrary and the useOpenSSL attribute of theAprLifecycleListener.Either JSSE or OpenSSL style configuration may be used regardless ofthe SSLImplementation selected. JSSE style configuration is used below. -->


<!--<Connector port="8443" protocol="org.apache.coyote.http11.Http11NioProtocol"maxThreads="150" SSLEnabled="true"><SSLHostConfig><Certificate certificateKeystoreFile="conf/localhost-rsa.jks"type="RSA" /></SSLHostConfig></Connector> -->


<!-- Define an AJP 1.3 Connector on port 8009 -->


<!--<Connector protocol="AJP/1.3"address="::1"port="8009"redirectPort="8443" /> -->


<!-- An Engine represents the entry point (within Catalina) that processesevery request. The Engine implementation for Tomcat stand aloneanalyzes the HTTP headers included with the request, and passes themon to the appropriate Host (virtual host).Documentation at /docs/config/engine.html -->


<!-- You should set jvmRoute to support load-balancing via AJP ie :<Engine name="Catalina" defaultHost="localhost" jvmRoute="jvm1"> -->



-<Engine name="Catalina" defaultHost="localhost">

<!--For clustering, please take a look at documentation at:/docs/cluster-howto.html (simple how to)/docs/config/cluster.html (reference documentation) -->


<!--<Cluster className="org.apache.catalina.ha.tcp.SimpleTcpCluster"/> -->


<!-- Use the LockOutRealm to prevent attempts to guess user passwordsvia a brute-force attack -->



-<Realm className="org.apache.catalina.realm.LockOutRealm">

<!-- This Realm uses the UserDatabase configured in the global JNDIresources under the key "UserDatabase". Any editsthat are performed against this UserDatabase are immediatelyavailable for use by the Realm. -->


<Realm className="org.apache.catalina.realm.UserDatabaseRealm" resourceName="UserDatabase"/>

</Realm>


-<Host name="localhost" autoDeploy="true" unpackWARs="true" appBase="webapps">

<!-- SingleSignOn valve, share authentication between web applicationsDocumentation at: /docs/config/valve.html -->


<!--<Valve className="org.apache.catalina.authenticator.SingleSignOn" /> -->


<!-- Access log processes all example.Documentation at: /docs/config/valve.htmlNote: The pattern used is equivalent to using pattern="common" -->


<Valve className="org.apache.catalina.valves.AccessLogValve" pattern="%h %l %u %t "%r" %s %b" suffix=".txt" prefix="localhost_access_log" directory="logs"/>

</Host>

</Engine>

</Service>

</Server>
Reply all
Reply to author
Forward
0 new messages