VOS.ODSControllerJSPApiLogin
ODS Controller for JSP Api Login
Note: you should have the users.jsp and users_dsn.jsp (created after installation) file physically located on your machine.
- The implementation uses Java version 1.5 (version 5), so you should run the corresponding Virtuoso executive. You need also to have installed Tomcat version 5.5.x.
- The page name is 'users.jsp'.
- The endpoint URL is http://[cname]:[port]/jsp/users/users.jsp.
- Configuration
- Start Virtuoso executive
- Install Tomcat
- Copy file 'virtjdbc3.jar' into '[Tomcat installation folder]/common/lib'
- Create file with name 'users#jsp.xml' in '[Tomcat installation folder]/conf/Catalina/[cname]/' with content:
<!-- Context configuration file for the ODS-Users Web Application --> <Context docBase="[Enter here the physical location to the users.jsp file]" privileged="true" antiResourceLocking="false" antiJARLocking="false"> </Context>
- Start Tomcat
- Build and install the conductor_dav.vad package
- Setting Virtual Directory:
- Go to http://[cname]:[port]/conductor
- Login as dba user.
- Go to "WebDAV & HTTP"->"HTTP Hosts & Directories" tab.
- If directory link '/jsp/users' exists update it with properties described below or click the "New Directory" link.
- Click the "Type" radio-box and select from the drop-down list the value "Proxy server".
- Click "Next".
- In the shown form:
- For field "Virtual directory path" enter the value: /jsp/users
- For field "Proxy to" enter the value: http://[Tomcat Host]:[Tomcat Port]/users/jsp
- For "VSP User" select from the drop-down list: dba
- Click the "Save changes" button.
- After VAD installing new page is created in folder '/DAV/VAD/wa/users' - 'users_dsn.jsp'. This page contains connection information - cname, user, password.
- Files 'users.jsp' and 'users_dsn.jsp' must downloaded into local file system.
- If some database parameters are changed after installation file 'users_dsn.jsp' must be updated.
Go to your physical location of the 'users_dsn.jsp' file and set the correct values for the connection to the database:
<% String $_dsn = "jdbc:virtuoso://[cname]:[SQL Server port]"; String $_user = "dba"; String $_pass = "dba"; %>
- Install the ods framework_dav.vad package.
- Go to http://[cname]:[port]/jsp/users/users.jsp.