I need help. I have never worked with a context file but I understand paths.The file is the sample phonebook and it does run on localhost. I tried to run from apache and no luck. Your directions tell me where to place context file,but a little unclear to where application resides. Do I move to apachedirectory or keep in tersus-server directory. I am running studio, tersus serverand apache all on Windows XP pro machine. If I could just get a running context file I would be fine from there....
Where my context file is located on apache server
C:\Program Files\Apache Software Foundation\Tomcat 5.5\conf\Catalina\localhost
Where my application is stored
C:\Program Files\Apache Software Foundation\Tomcat 5.5\webapps\phonebook
There are 3 folders database; models; and web; and two files .timestamp and .project
where my tersus server is located and path to application also
***I know, I know...I have app stored in two places...I was trying different things..
C:\tersus-server\tersus-applications\phonebook
This is my context file (I used the configurator):
<Context path="/phonebook" docBase="/tersus-server/" debug="0" privileged="true"> <Valve className="org.apache.catalina.authenticator.BasicAuthenticator" disableProxyCaching="false"/> <Parameter name="trace" value="/tersus-server/tersus-applications/phonebook/work/trace" override="true"/> <Parameter name="repository_root" value="/tersus-server/tersus-applications/phonebook/models"/> <Parameter name="root_system" value="$phonebook/$phonebook"/> <Parameter name="model_libraries" value="/tersus-server/WEB-INF/common.trl"/> <Parameter name="local_web_directories" value="/tersus-server/tersus-applications/phonebook/web;/tersus-server/tersus-applications/phonebook/models"/> <Parameter name="timestamp_file" value="/tersus-server/tersus-applications/phonebook/.timestamp"/> <Parameter name="init_db" value="true"/> <Parameter name="check_db" value="true"/> <Parameter name="dev_mode" value="true"/>
<!-- Setup of the 'Main' DataSource --> <Resource name="jdbc/Main" driverClassName="org.hsqldb.jdbcDriver" maxActive="20" maxIdle="10" maxWait="10000" type="javax.sql.DataSource" username="sa" password="" url="jdbc:hsqldb:file://$/tersus-server/tersus-applications/phonebook/database/$phonebook" validationQuery=""/>
<!-- Authentication setup
If your application does not require authentication (i.e. it does not use the Authorization module), comment out the following Realm element. --> <!-- <Realm className="org.apache.catalina.realm.JDBCRealm" debug="0" driverName="org.hsqldb.jdbcDriver" connectionURL="jdbc:hsqldb:file://$/tersus-server/tersus-applications/phonebook/database/$phonebook" connectionName="sa" connectionPassword="" userTable="Users" userRoleTable="User_Roles" userNameCol="User_ID" userCredCol="Password" roleNameCol="Role"/> -->
</Context>
To use the full functionality of this web site, JavaScript needs to be turned on.
For best results, use the Firefox browser..
Copyright © 2003-2017 - Tersus Software Ltd., All rights reserved. Terms of Use License Graphic design by EmaraDesign