Change ODK as my ROOT application on tomcat6

My production system is ODK-Aggregate-VM-1.4.5.0, it uses Tomcat6 on ubuntu.

In this system ODK is the ROOT application and I want to change this, without rename the ODK war file.

The solution I found was to edit the serve.xml in /conf folder. Within I add the following lines:

When I restart Apache the changes does not take effect, it return Error 404.

I did the same test in another test environment using tomcat6 and ODKAggregate.exe with same result.

Why ODK does not accept, if I am not wrong, this kind of configuration? How can I do it.

Please apreciate any help

I'm pretty sure Tomcat uses the name of the WAR to decide what to call
the folder it deploys into. Either rename your WAR or rename the ODK
WAR.

Yaw

··· -- Need ODK services? http://nafundi.com provides form design, server setup, professional support, and software development for ODK.

On Thu, Jul 2, 2015 at 9:55 AM, antogumba@gmail.com wrote:

My production system is ODK-Aggregate-VM-1.4.5.0, it uses Tomcat6 on ubuntu.

In this system ODK is the ROOT application and I want to change this, without rename the ODK war file.

The solution I found was to edit the serve.xml in /conf folder. Within I add the following lines:

When I restart Apache the changes does not take effect, it return Error 404.

I did the same test in another test environment using tomcat6 and ODKAggregate.exe with same result.

Why ODK does not accept, if I am not wrong, this kind of configuration? How can I do it.

Please apreciate any help

--

Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en


You received this message because you are subscribed to the Google Groups "ODK Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to opendatakit+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

I think you need to edit conf/Catalina/localhost/ROOT.xml

··· On Thursday, 2 July 2015 18:31:01 UTC+1, anto...@gmail.com wrote: > > My production system is ODK-Aggregate-VM-1.4.5.0, it uses Tomcat6 on > ubuntu. > > In this system ODK is the ROOT application and I want to change this, > without rename the ODK war file. > > The solution I found was to edit the serve.xml in /conf folder. Within > I add the following lines: > > reloadable="true"> > > reloadable="true"> > > > When I restart Apache the changes does not take effect, it return Error > 404. > > I did the same test in another test environment using tomcat6 and > ODKAggregate.exe with same result. > > Why ODK does not accept, if I am not wrong, this kind of configuration? > How can I do it. > > Please apreciate any help

I have tried that solution but ODK does not accept it, if I rename de war file I get "You do not have permission for this action. Error: Invalid request".
Is there any place where ODK places his URL?

··· On Thursday, July 2, 2015 at 8:47:06 PM UTC+2, Yaw Anokwa wrote: > I'm pretty sure Tomcat uses the name of the WAR to decide what to call > the folder it deploys into. Either rename your WAR or rename the ODK > WAR. > > Yaw > -- > Need ODK services? http://nafundi.com provides form design, server > setup, professional support, and software development for ODK. > > On Thu, Jul 2, 2015 at 9:55 AM, wrote: > > My production system is ODK-Aggregate-VM-1.4.5.0, it uses Tomcat6 on ubuntu. > > > > In this system ODK is the ROOT application and I want to change this, without rename the ODK war file. > > > > The solution I found was to edit the serve.xml in /conf folder. Within I add the following lines: > > > > > > > > > > > > > > When I restart Apache the changes does not take effect, it return Error 404. > > > > I did the same test in another test environment using tomcat6 and ODKAggregate.exe with same result. > > > > Why ODK does not accept, if I am not wrong, this kind of configuration? How can I do it. > > > > Please apreciate any help > > > > -- > > -- > > Post: opendatakit@googlegroups.com > > Unsubscribe: opendatakit+unsubscribe@googlegroups.com > > Options: http://groups.google.com/group/opendatakit?hl=en > > > > --- > > You received this message because you are subscribed to the Google Groups "ODK Community" group. > > To unsubscribe from this group and stop receiving emails from it, send an email to opendatakit+unsubscribe@googlegroups.com. > > For more options, visit https://groups.google.com/d/optout.

Thank you Fergus I get the following message when I use your solution:

Log:
2015-07-05 23:02:16 Commons Daemon procrun stderr initialized
Jul 05, 2015 11:02:17 PM org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal
performance in production environments was not found on the
java.library.path: C:\Program Files\Apache Software Foundation\Tomcat
6.0\bin;C:\windows\Sun\Java\bin;C:\windows\system32;C:\windows;C:\Program
Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files
(x86)\Common Files\Microsoft Shared\Windows
Live;C:\windows\system32;C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0;C:\Program
Files (x86)\Windows Live\Shared;C:\Program Files
(x86)\Intel\Services\IPT;C:\Program Files\Java\jre7\bin;C:\Program Files
(x86)\Skype\Phone;C:\Program Files (x86)\Bitvise SSH Client;;.
Jul 05, 2015 11:02:17 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Jul 05, 2015 11:02:17 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 761 ms
Jul 05, 2015 11:02:18 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Jul 05, 2015 11:02:18 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.43
Jul 05, 2015 11:02:18 PM org.apache.catalina.startup.HostConfig
deployDescriptor
INFO: Deploying configuration descriptor host-manager.xml
Jul 05, 2015 11:02:18 PM org.apache.catalina.startup.HostConfig
deployDescriptor
INFO: Deploying configuration descriptor manager.xml
Jul 05, 2015 11:02:18 PM org.apache.catalina.startup.HostConfig
deployDescriptor
INFO: Deploying configuration descriptor misauvmmc.xml
Jul 05, 2015 11:02:19 PM org.apache.catalina.startup.HostConfig
deployDescriptor
INFO: Deploying configuration descriptor ROOT.xml
Jul 05, 2015 11:02:19 PM org.apache.catalina.startup.HostConfig
deployDescriptor
WARNING: A docBase C:\Program Files\Apache Software Foundation\Tomcat
6.0\webapps\ODKAggregate inside the host appBase has been specified, and
will be ignored
Jul 05, 2015 11:02:19 PM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive ODKAggregate.war
Jul 05, 2015 11:02:25 PM org.apache.catalina.startup.HostConfig
deployDirectory
INFO: Deploying web application directory docs
Jul 05, 2015 11:02:25 PM org.apache.catalina.startup.HostConfig
deployDirectory
INFO: Deploying web application directory examples
Jul 05, 2015 11:02:26 PM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
Jul 05, 2015 11:02:26 PM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
Jul 05, 2015 11:02:26 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/35 config=null
Jul 05, 2015 11:02:26 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 8274 ms

Abraços

Paunde Junior

··· On 5 July 2015 at 14:31, Fergus Gallagher wrote:

I think you need to edit conf/Catalina/localhost/ROOT.xml

On Thursday, 2 July 2015 18:31:01 UTC+1, anto...@gmail.com wrote:

My production system is ODK-Aggregate-VM-1.4.5.0, it uses Tomcat6 on
ubuntu.

In this system ODK is the ROOT application and I want to change this,
without rename the ODK war file.

The solution I found was to edit the serve.xml in /conf folder. Within
I add the following lines:




When I restart Apache the changes does not take effect, it return Error
404.

I did the same test in another test environment using tomcat6 and
ODKAggregate.exe with same result.

Why ODK does not accept, if I am not wrong, this kind of configuration?
How can I do it.

Please apreciate any help



Hi Yanokwa, I made this change to the server.xml file on ODK VM 1.4.4.0 and
it accepts to change the url of ODK to IPADDRESS/odk, with no errors, but I
cannot put another application to be the root on the system.
Because it does not serves my purposes I will the configuration as it was.

I have one final question, I added a new table to the aggregate schema,
is there any problem?

Abraços

Paunde Junior

··· On 6 July 2015 at 13:21, antonio paunde wrote:

Thank you Fergus for your help,
===========================WINDOWS=========================================
ODK instaled using .exe file
I manage to change the ODKAggregate to be the root application on windows
with this change on the server.xml file, strange is that it was giving an
error before.



And it works fine!!!

================== LINUX==================================
ODK installed using ODK VM 1.4.4.0

ROOT.xml

EXITING WATCHDOG TASK IN TOMCAT
Jul 06, 2015 10:03:03 AM
org.apache.wink.server.internal.servlet.RestServlet info
INFO: The system is using the properties file located at
security.properties named in the propertiesLocation init-param
initialization parameter.
Jul 06, 2015 10:03:03 AM
org.apache.wink.server.internal.servlet.RestServlet info
INFO: The system is using the
org.opendatakit.aggregate.odktables.impl.api.ODKTablesAPIApplication JAX-RS
application class that is named in the javax.ws.rs.Application init-param
initialization parameter.
Jul 06, 2015 10:03:03 AM
org.apache.wink.server.internal.application.ApplicationProcessor info
INFO: The following JAX-RS application has been processed:
org.opendatakit.aggregate.odktables.impl.api.ODKTablesAPIApplication
Jul 06, 2015 10:03:03 AM org.apache.wink.server.internal.log.Resources info
INFO: The server has registered the JAX-RS resource class
org.opendatakit.aggregate.odktables.impl.api.OdkTablesImpl with @Path().
Jul 06, 2015 10:03:03 AM org.apache.wink.server.internal.log.Providers info
INFO: The class
org.opendatakit.aggregate.odktables.entity.serialization.SimpleJSONMessageReaderWriter
was registered as a JAX-RS MessageBodyReader provider for all Java types
and application/json media types.
Jul 06, 2015 10:03:03 AM org.apache.wink.server.internal.log.Providers info
INFO: The class
org.opendatakit.aggregate.odktables.entity.serialization.SimpleXMLMessageReaderWriter
was registered as a JAX-RS MessageBodyReader provider for all Java types
and text/xml media types.
Jul 06, 2015 10:03:03 AM org.apache.wink.server.internal.log.Providers info
INFO: The class
org.opendatakit.aggregate.odktables.entity.serialization.SimpleXMLMessageReaderWriter
was registered as a JAX-RS MessageBodyReader provider for all Java types
and application/xml media types.
Jul 06, 2015 10:03:03 AM org.apache.wink.server.internal.log.Providers info
INFO: The class
org.opendatakit.aggregate.odktables.entity.serialization.SimpleJSONMessageReaderWriter
was registered as a JAX-RS MessageBodyWriter provider for all Java types
and application/json media types.
Jul 06, 2015 10:03:03 AM org.apache.wink.server.internal.log.Providers info
INFO: The class
org.opendatakit.aggregate.odktables.entity.serialization.SimpleXMLMessageReaderWriter
was registered as a JAX-RS MessageBodyWriter provider for all Java types
and text/xml media types.
Jul 06, 2015 10:03:03 AM org.apache.wink.server.internal.log.Providers info
INFO: The class
org.opendatakit.aggregate.odktables.entity.serialization.SimpleXMLMessageReaderWriter
was registered as a JAX-RS MessageBodyWriter provider for all Java types
and application/xml media types.
Jul 06, 2015 10:03:03 AM org.apache.wink.server.internal.log.Providers info
INFO: The class
org.opendatakit.aggregate.odktables.entity.serialization.SimpleHTMLMessageWriter
was registered as a JAX-RS MessageBodyWriter provider for all Java types
and text/* media types.
Jul 06, 2015 10:03:03 AM org.apache.wink.server.internal.log.Providers info
INFO: The class
org.opendatakit.aggregate.odktables.impl.api.ODKTaskLockExceptionJsonMapper
was registered as a JAX-RS ExceptionMapper provider for
org.opendatakit.common.persistence.exception.ODKTaskLockException Java
types.
Jul 06, 2015 10:03:03 AM org.apache.wink.server.internal.log.Providers info
INFO: The class
org.opendatakit.aggregate.odktables.impl.api.ODKTaskLockExceptionApplicationXmlMapper
was registered as a JAX-RS ExceptionMapper provider for
org.opendatakit.common.persistence.exception.ODKTaskLockException Java
types.
Jul 06, 2015 10:03:03 AM org.apache.wink.server.internal.log.Providers info
INFO: The class
org.opendatakit.aggregate.odktables.impl.api.IOExceptionApplicationXmlMapper
was registered as a JAX-RS ExceptionMapper provider for java.io.IOException
Java types.
Jul 06, 2015 10:03:03 AM org.apache.wink.server.internal.log.Providers info
INFO: The class
org.opendatakit.aggregate.odktables.impl.api.ODKDatastoreExceptionTextXmlMapper
was registered as a JAX-RS ExceptionMapper provider for
org.opendatakit.common.persistence.exception.ODKDatastoreException Java
types.
Jul 06, 2015 10:03:03 AM org.apache.wink.server.internal.log.Providers info
INFO: The class
org.opendatakit.aggregate.odktables.impl.api.RuntimeExceptionJsonMapper was
registered as a JAX-RS ExceptionMapper provider for
java.lang.RuntimeException Java types.
Jul 06, 2015 10:03:03 AM org.apache.wink.server.internal.log.Providers info
INFO: The class
org.opendatakit.aggregate.odktables.impl.api.RuntimeExceptionTextXmlMapper
was registered as a JAX-RS ExceptionMapper provider for
java.lang.RuntimeException Java types.
Jul 06, 2015 10:03:03 AM org.apache.wink.server.internal.log.Providers info
INFO: The class
org.opendatakit.aggregate.odktables.impl.api.ODKTablesExceptionJsonMapper
was registered as a JAX-RS ExceptionMapper provider for
org.opendatakit.aggregate.odktables.exception.ODKTablesException Java types.
Jul 06, 2015 10:03:03 AM org.apache.wink.server.internal.log.Providers info
INFO: The class
org.opendatakit.aggregate.odktables.impl.api.ODKTablesExceptionApplicationXmlMapper
was registered as a JAX-RS ExceptionMapper provider for
org.opendatakit.aggregate.odktables.exception.ODKTablesException Java types.
Jul 06, 2015 10:03:03 AM org.apache.wink.server.internal.log.Providers info
INFO: The class
org.opendatakit.aggregate.odktables.impl.api.IOExceptionTextXmlMapper was
registered as a JAX-RS ExceptionMapper provider for java.io.IOException
Java types.
Jul 06, 2015 10:03:03 AM org.apache.wink.server.internal.log.Providers info
INFO: The class
org.opendatakit.aggregate.odktables.impl.api.ODKTaskLockExceptionTextXmlMapper
was registered as a JAX-RS ExceptionMapper provider for
org.opendatakit.common.persistence.exception.ODKTaskLockException Java
types.
Jul 06, 2015 10:03:03 AM org.apache.wink.server.internal.log.Providers info
INFO: The class
org.opendatakit.aggregate.odktables.impl.api.RuntimeExceptionApplicationXmlMapper
was registered as a JAX-RS ExceptionMapper provider for
java.lang.RuntimeException Java types.
Jul 06, 2015 10:03:03 AM org.apache.wink.server.internal.log.Providers info
INFO: The class
org.opendatakit.aggregate.odktables.impl.api.ODKDatastoreExceptionJsonMapper
was registered as a JAX-RS ExceptionMapper provider for
org.opendatakit.common.persistence.exception.ODKDatastoreException Java
types.
Jul 06, 2015 10:03:03 AM org.apache.wink.server.internal.log.Providers info
INFO: The class
org.opendatakit.aggregate.odktables.impl.api.ODKTablesExceptionTextXmlMapper
was registered as a JAX-RS ExceptionMapper provider for
org.opendatakit.aggregate.odktables.exception.ODKTablesException Java types.
Jul 06, 2015 10:03:03 AM org.apache.wink.server.internal.log.Providers info
INFO: The class
org.opendatakit.aggregate.odktables.impl.api.IOExceptionJsonMapper was
registered as a JAX-RS ExceptionMapper provider for java.io.IOException
Java types.
Jul 06, 2015 10:03:03 AM org.apache.wink.server.internal.log.Providers info
INFO: The class
org.opendatakit.aggregate.odktables.impl.api.ODKDatastoreExceptionApplicationXmlMapper
was registered as a JAX-RS ExceptionMapper provider for
org.opendatakit.common.persistence.exception.ODKDatastoreException Java
types.
Jul 06, 2015 10:03:04 AM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-80
Jul 06, 2015 10:03:04 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 11979 ms
Jul 06, 2015 10:03:12 AM
org.opendatakit.common.persistence.engine.mysql.DatastoreImpl assertRelation
INFO: before updateRelation: _security_revisions
Jul 06, 2015 10:03:12 AM
org.opendatakit.aggregate.servlet.OpenIdLoginPageServlet doGet
INFO: Invalidating login session 088BF468C3532FC15364CA98DDBD4293

Shows no error and has no effect on the system, the application URL does
not change

Abraços

Paunde Junior

On 5 July 2015 at 14:31, Fergus Gallagher fergus.gallagher@gmail.com wrote:

I think you need to edit conf/Catalina/localhost/ROOT.xml

On Thursday, 2 July 2015 18:31:01 UTC+1, anto...@gmail.com wrote:

My production system is ODK-Aggregate-VM-1.4.5.0, it uses Tomcat6 on
ubuntu.

In this system ODK is the ROOT application and I want to change this,
without rename the ODK war file.

The solution I found was to edit the serve.xml in /conf folder. Within
I add the following lines:




When I restart Apache the changes does not take effect, it return Error
404.

I did the same test in another test environment using tomcat6 and
ODKAggregate.exe with same result.

Why ODK does not accept, if I am not wrong, this kind of configuration?
How can I do it.

Please apreciate any help

Read your Tomcat logs. What do your logs say?

Yaw

··· -- Need ODK services? http://nafundi.com provides form design, server setup, professional support, and software development for ODK.

On Thu, Jul 2, 2015 at 4:41 PM, antogumba@gmail.com wrote:

I have tried that solution but ODK does not accept it, if I rename de war file I get "You do not have permission for this action. Error: Invalid request".
Is there any place where ODK places his URL?

On Thursday, July 2, 2015 at 8:47:06 PM UTC+2, Yaw Anokwa wrote:

I'm pretty sure Tomcat uses the name of the WAR to decide what to call
the folder it deploys into. Either rename your WAR or rename the ODK
WAR.

Yaw

Need ODK services? http://nafundi.com provides form design, server
setup, professional support, and software development for ODK.

On Thu, Jul 2, 2015 at 9:55 AM, antogumba@gmail.com wrote:

My production system is ODK-Aggregate-VM-1.4.5.0, it uses Tomcat6 on ubuntu.

In this system ODK is the ROOT application and I want to change this, without rename the ODK war file.

The solution I found was to edit the serve.xml in /conf folder. Within I add the following lines:

When I restart Apache the changes does not take effect, it return Error 404.

I did the same test in another test environment using tomcat6 and ODKAggregate.exe with same result.

Why ODK does not accept, if I am not wrong, this kind of configuration? How can I do it.

Please apreciate any help

--

Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en


You received this message because you are subscribed to the Google Groups "ODK Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to opendatakit+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--

Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en


You received this message because you are subscribed to the Google Groups "ODK Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to opendatakit+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

I miss to test the same solution on Linux

Abraços

Paunde Junior

··· On 5 July 2015 at 23:08, antonio paunde wrote:

Thank you Fergus I get the following message when I use your solution:

Log:
2015-07-05 23:02:16 Commons Daemon procrun stderr initialized
Jul 05, 2015 11:02:17 PM org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal
performance in production environments was not found on the
java.library.path: C:\Program Files\Apache Software Foundation\Tomcat
6.0\bin;C:\windows\Sun\Java\bin;C:\windows\system32;C:\windows;C:\Program
Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files
(x86)\Common Files\Microsoft Shared\Windows
Live;C:\windows\system32;C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0;C:\Program
Files (x86)\Windows Live\Shared;C:\Program Files
(x86)\Intel\Services\IPT;C:\Program Files\Java\jre7\bin;C:\Program Files
(x86)\Skype\Phone;C:\Program Files (x86)\Bitvise SSH Client;;.
Jul 05, 2015 11:02:17 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Jul 05, 2015 11:02:17 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 761 ms
Jul 05, 2015 11:02:18 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Jul 05, 2015 11:02:18 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.43
Jul 05, 2015 11:02:18 PM org.apache.catalina.startup.HostConfig
deployDescriptor
INFO: Deploying configuration descriptor host-manager.xml
Jul 05, 2015 11:02:18 PM org.apache.catalina.startup.HostConfig
deployDescriptor
INFO: Deploying configuration descriptor manager.xml
Jul 05, 2015 11:02:18 PM org.apache.catalina.startup.HostConfig
deployDescriptor
INFO: Deploying configuration descriptor misauvmmc.xml
Jul 05, 2015 11:02:19 PM org.apache.catalina.startup.HostConfig
deployDescriptor
INFO: Deploying configuration descriptor ROOT.xml
Jul 05, 2015 11:02:19 PM org.apache.catalina.startup.HostConfig
deployDescriptor
WARNING: A docBase C:\Program Files\Apache Software Foundation\Tomcat
6.0\webapps\ODKAggregate inside the host appBase has been specified, and
will be ignored
Jul 05, 2015 11:02:19 PM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive ODKAggregate.war
Jul 05, 2015 11:02:25 PM org.apache.catalina.startup.HostConfig
deployDirectory
INFO: Deploying web application directory docs
Jul 05, 2015 11:02:25 PM org.apache.catalina.startup.HostConfig
deployDirectory
INFO: Deploying web application directory examples
Jul 05, 2015 11:02:26 PM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
Jul 05, 2015 11:02:26 PM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
Jul 05, 2015 11:02:26 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/35 config=null
Jul 05, 2015 11:02:26 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 8274 ms

Abraços

Paunde Junior

On 5 July 2015 at 14:31, Fergus Gallagher fergus.gallagher@gmail.com wrote:

I think you need to edit conf/Catalina/localhost/ROOT.xml

On Thursday, 2 July 2015 18:31:01 UTC+1, anto...@gmail.com wrote:

My production system is ODK-Aggregate-VM-1.4.5.0, it uses Tomcat6 on
ubuntu.

In this system ODK is the ROOT application and I want to change this,
without rename the ODK war file.

The solution I found was to edit the serve.xml in /conf folder. Within
I add the following lines:




When I restart Apache the changes does not take effect, it return Error
404.

I did the same test in another test environment using tomcat6 and
ODKAggregate.exe with same result.

Why ODK does not accept, if I am not wrong, this kind of configuration?
How can I do it.

Please apreciate any help

I'm afraid this is beyond the level of support that the ODK core team can
provide.

In case there is a confusion of terminology, there are three parts to an
ODK Aggregate url:

ssl-usage+hostname+port / application path / aggregate-sub-path

The ssl-usage+hostname+port are specified in the install wizard. Nothing
you do in the webserver configuration can change them. You must re-run the
install wizard to specify different values. The values you enter are used
to compose the beginning of the URL (e.g., https://myorg.org:8088/)

The application path is configured either by the name of your war file
(e.g., ROOT.war or ODKAggregate.war), for top-level paths, or, if you are
going to nest it in some deeper path structure (e.g.,
http://myorg.org/path/to/where/it/lives/Aggregate.html ), then you need to
configure it via webserver configuration. I am not familiar with the
details of that.

The aggregate-sub-path is the portion that ODK Aggregate manages and
navigates between. This is built-into the application and cannot be
modified without a code change.

··· ------------------- Good luck,

Mitch

On Mon, Jul 6, 2015 at 4:35 AM, antonio paunde antogumba@gmail.com wrote:



Hi Yanokwa, I made this change to the server.xml file on ODK VM 1.4.4.0
and it accepts to change the url of ODK to IPADDRESS/odk, with no errors,
but I cannot put another application to be the root on the system.
Because it does not serves my purposes I will the configuration as it was.

I have one final question, I added a new table to the aggregate schema,
is there any problem?

Abraços

Paunde Junior

On 6 July 2015 at 13:21, antonio paunde antogumba@gmail.com wrote:

Thank you Fergus for your help,

===========================WINDOWS=========================================
ODK instaled using .exe file
I manage to change the ODKAggregate to be the root application on windows
with this change on the server.xml file, strange is that it was giving an
error before.



And it works fine!!!

================== LINUX==================================
ODK installed using ODK VM 1.4.4.0

ROOT.xml

EXITING WATCHDOG TASK IN TOMCAT
Jul 06, 2015 10:03:03 AM
org.apache.wink.server.internal.servlet.RestServlet info
INFO: The system is using the properties file located at
security.properties named in the propertiesLocation init-param
initialization parameter.
Jul 06, 2015 10:03:03 AM
org.apache.wink.server.internal.servlet.RestServlet info
INFO: The system is using the
org.opendatakit.aggregate.odktables.impl.api.ODKTablesAPIApplication JAX-RS
application class that is named in the javax.ws.rs.Application init-param
initialization parameter.
Jul 06, 2015 10:03:03 AM
org.apache.wink.server.internal.application.ApplicationProcessor info
INFO: The following JAX-RS application has been processed:
org.opendatakit.aggregate.odktables.impl.api.ODKTablesAPIApplication
Jul 06, 2015 10:03:03 AM org.apache.wink.server.internal.log.Resources
info
INFO: The server has registered the JAX-RS resource class
org.opendatakit.aggregate.odktables.impl.api.OdkTablesImpl with @Path().
Jul 06, 2015 10:03:03 AM org.apache.wink.server.internal.log.Providers
info
INFO: The class
org.opendatakit.aggregate.odktables.entity.serialization.SimpleJSONMessageReaderWriter
was registered as a JAX-RS MessageBodyReader provider for all Java types
and application/json media types.
Jul 06, 2015 10:03:03 AM org.apache.wink.server.internal.log.Providers
info
INFO: The class
org.opendatakit.aggregate.odktables.entity.serialization.SimpleXMLMessageReaderWriter
was registered as a JAX-RS MessageBodyReader provider for all Java types
and text/xml media types.
Jul 06, 2015 10:03:03 AM org.apache.wink.server.internal.log.Providers
info
INFO: The class
org.opendatakit.aggregate.odktables.entity.serialization.SimpleXMLMessageReaderWriter
was registered as a JAX-RS MessageBodyReader provider for all Java types
and application/xml media types.
Jul 06, 2015 10:03:03 AM org.apache.wink.server.internal.log.Providers
info
INFO: The class
org.opendatakit.aggregate.odktables.entity.serialization.SimpleJSONMessageReaderWriter
was registered as a JAX-RS MessageBodyWriter provider for all Java types
and application/json media types.
Jul 06, 2015 10:03:03 AM org.apache.wink.server.internal.log.Providers
info
INFO: The class
org.opendatakit.aggregate.odktables.entity.serialization.SimpleXMLMessageReaderWriter
was registered as a JAX-RS MessageBodyWriter provider for all Java types
and text/xml media types.
Jul 06, 2015 10:03:03 AM org.apache.wink.server.internal.log.Providers
info
INFO: The class
org.opendatakit.aggregate.odktables.entity.serialization.SimpleXMLMessageReaderWriter
was registered as a JAX-RS MessageBodyWriter provider for all Java types
and application/xml media types.
Jul 06, 2015 10:03:03 AM org.apache.wink.server.internal.log.Providers
info
INFO: The class
org.opendatakit.aggregate.odktables.entity.serialization.SimpleHTMLMessageWriter
was registered as a JAX-RS MessageBodyWriter provider for all Java types
and text/* media types.
Jul 06, 2015 10:03:03 AM org.apache.wink.server.internal.log.Providers
info
INFO: The class
org.opendatakit.aggregate.odktables.impl.api.ODKTaskLockExceptionJsonMapper
was registered as a JAX-RS ExceptionMapper provider for
org.opendatakit.common.persistence.exception.ODKTaskLockException Java
types.
Jul 06, 2015 10:03:03 AM org.apache.wink.server.internal.log.Providers
info
INFO: The class
org.opendatakit.aggregate.odktables.impl.api.ODKTaskLockExceptionApplicationXmlMapper
was registered as a JAX-RS ExceptionMapper provider for
org.opendatakit.common.persistence.exception.ODKTaskLockException Java
types.
Jul 06, 2015 10:03:03 AM org.apache.wink.server.internal.log.Providers
info
INFO: The class
org.opendatakit.aggregate.odktables.impl.api.IOExceptionApplicationXmlMapper
was registered as a JAX-RS ExceptionMapper provider for java.io.IOException
Java types.
Jul 06, 2015 10:03:03 AM org.apache.wink.server.internal.log.Providers
info
INFO: The class
org.opendatakit.aggregate.odktables.impl.api.ODKDatastoreExceptionTextXmlMapper
was registered as a JAX-RS ExceptionMapper provider for
org.opendatakit.common.persistence.exception.ODKDatastoreException Java
types.
Jul 06, 2015 10:03:03 AM org.apache.wink.server.internal.log.Providers
info
INFO: The class
org.opendatakit.aggregate.odktables.impl.api.RuntimeExceptionJsonMapper was
registered as a JAX-RS ExceptionMapper provider for
java.lang.RuntimeException Java types.
Jul 06, 2015 10:03:03 AM org.apache.wink.server.internal.log.Providers
info
INFO: The class
org.opendatakit.aggregate.odktables.impl.api.RuntimeExceptionTextXmlMapper
was registered as a JAX-RS ExceptionMapper provider for
java.lang.RuntimeException Java types.
Jul 06, 2015 10:03:03 AM org.apache.wink.server.internal.log.Providers
info
INFO: The class
org.opendatakit.aggregate.odktables.impl.api.ODKTablesExceptionJsonMapper
was registered as a JAX-RS ExceptionMapper provider for
org.opendatakit.aggregate.odktables.exception.ODKTablesException Java types.
Jul 06, 2015 10:03:03 AM org.apache.wink.server.internal.log.Providers
info
INFO: The class
org.opendatakit.aggregate.odktables.impl.api.ODKTablesExceptionApplicationXmlMapper
was registered as a JAX-RS ExceptionMapper provider for
org.opendatakit.aggregate.odktables.exception.ODKTablesException Java types.
Jul 06, 2015 10:03:03 AM org.apache.wink.server.internal.log.Providers
info
INFO: The class
org.opendatakit.aggregate.odktables.impl.api.IOExceptionTextXmlMapper was
registered as a JAX-RS ExceptionMapper provider for java.io.IOException
Java types.
Jul 06, 2015 10:03:03 AM org.apache.wink.server.internal.log.Providers
info
INFO: The class
org.opendatakit.aggregate.odktables.impl.api.ODKTaskLockExceptionTextXmlMapper
was registered as a JAX-RS ExceptionMapper provider for
org.opendatakit.common.persistence.exception.ODKTaskLockException Java
types.
Jul 06, 2015 10:03:03 AM org.apache.wink.server.internal.log.Providers
info
INFO: The class
org.opendatakit.aggregate.odktables.impl.api.RuntimeExceptionApplicationXmlMapper
was registered as a JAX-RS ExceptionMapper provider for
java.lang.RuntimeException Java types.
Jul 06, 2015 10:03:03 AM org.apache.wink.server.internal.log.Providers
info
INFO: The class
org.opendatakit.aggregate.odktables.impl.api.ODKDatastoreExceptionJsonMapper
was registered as a JAX-RS ExceptionMapper provider for
org.opendatakit.common.persistence.exception.ODKDatastoreException Java
types.
Jul 06, 2015 10:03:03 AM org.apache.wink.server.internal.log.Providers
info
INFO: The class
org.opendatakit.aggregate.odktables.impl.api.ODKTablesExceptionTextXmlMapper
was registered as a JAX-RS ExceptionMapper provider for
org.opendatakit.aggregate.odktables.exception.ODKTablesException Java types.
Jul 06, 2015 10:03:03 AM org.apache.wink.server.internal.log.Providers
info
INFO: The class
org.opendatakit.aggregate.odktables.impl.api.IOExceptionJsonMapper was
registered as a JAX-RS ExceptionMapper provider for java.io.IOException
Java types.
Jul 06, 2015 10:03:03 AM org.apache.wink.server.internal.log.Providers
info
INFO: The class
org.opendatakit.aggregate.odktables.impl.api.ODKDatastoreExceptionApplicationXmlMapper
was registered as a JAX-RS ExceptionMapper provider for
org.opendatakit.common.persistence.exception.ODKDatastoreException Java
types.
Jul 06, 2015 10:03:04 AM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-80
Jul 06, 2015 10:03:04 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 11979 ms
Jul 06, 2015 10:03:12 AM
org.opendatakit.common.persistence.engine.mysql.DatastoreImpl assertRelation
INFO: before updateRelation: _security_revisions
Jul 06, 2015 10:03:12 AM
org.opendatakit.aggregate.servlet.OpenIdLoginPageServlet doGet
INFO: Invalidating login session 088BF468C3532FC15364CA98DDBD4293

Shows no error and has no effect on the system, the application URL does
not change

Abraços

Paunde Junior

On 5 July 2015 at 14:31, Fergus Gallagher fergus.gallagher@gmail.com wrote:

I think you need to edit conf/Catalina/localhost/ROOT.xml

On Thursday, 2 July 2015 18:31:01 UTC+1, anto...@gmail.com wrote:

My production system is ODK-Aggregate-VM-1.4.5.0, it uses Tomcat6 on
ubuntu.

In this system ODK is the ROOT application and I want to change this,
without rename the ODK war file.

The solution I found was to edit the serve.xml in /conf folder. Within
I add the following lines:




When I restart Apache the changes does not take effect, it return Error
404.

I did the same test in another test environment using tomcat6 and
ODKAggregate.exe with same result.

Why ODK does not accept, if I am not wrong, this kind of configuration?
How can I do it.

Please apreciate any help

--

Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en


You received this message because you are subscribed to the Google Groups
"ODK Community" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to opendatakit+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
Mitch Sundt
Software Engineer
University of Washington
mitchellsundt@gmail.com

Thank Mitch!!
I will have to work on network part to solve some of this issues, if possible later I will post the solution.

··· On Monday, July 6, 2015 at 9:11:33 PM UTC+2, Mitch Sundt wrote: > I'm afraid this is beyond the level of support that the ODK core team can provide. > > In case there is a confusion of terminology, there are three parts to an ODK Aggregate url: > > ssl-usage+hostname+port / application path / aggregate-sub-path > > The ssl-usage+hostname+port are specified in the install wizard. Nothing you do in the webserver configuration can change them. You must re-run the install wizard to specify different values. The values you enter are used to compose the beginning of the URL (e.g., https://myorg.org:8088/) > > The application path is configured either by the name of your war file (e.g., ROOT.war or ODKAggregate.war), for top-level paths, or, if you are going to nest it in some deeper path structure (e.g., http://myorg.org/path/to/where/it/lives/Aggregate.html ), then you need to configure it via webserver configuration. I am not familiar with the details of that. > > > The aggregate-sub-path is the portion that ODK Aggregate manages and navigates between. This is built-into the application and cannot be modified without a code change. > > ------------------- > Good luck, > > Mitch > > > > > > > > > > > > > > > > On Mon, Jul 6, 2015 at 4:35 AM, antonio paunde wrote: > > > unpackWARs="true" autoDeploy="false" > xmlValidation="false" xmlNamespaceAware="false"> > > > > > > > > Hi Yanokwa, I made this change to the server.xml file on ODK VM 1.4.4.0 and it accepts to change the url of ODK to IPADDRESS/odk, with no errors, but I cannot put another application to be the root on the system. > Because it does not serves my purposes I will the configuration as it was. > > > I have one final question, I added a new table to the aggregate schema, is there any problem? > > > > > Abraços > > Paunde Junior > > > On 6 July 2015 at 13:21, antonio paunde wrote: > > > > > Thank you Fergus for your help, > ===========================WINDOWS========================================= > ODK instaled using .exe file > I manage to change the ODKAggregate to be the root application on windows with this change on the server.xml file, strange is that it was giving an error before. > > > unpackWARs="true" autoDeploy="false" > xmlValidation="false" xmlNamespaceAware="false"> > > > > > > > > > And it works fine!!! > > > ================== LINUX================================== > ODK installed using ODK VM 1.4.4.0 > > > ROOT.xml > > > > > > EXITING WATCHDOG TASK IN TOMCAT > Jul 06, 2015 10:03:03 AM org.apache.wink.server.internal.servlet.RestServlet info > INFO: The system is using the properties file located at security.properties named in the propertiesLocation init-param initialization parameter. > Jul 06, 2015 10:03:03 AM org.apache.wink.server.internal.servlet.RestServlet info > INFO: The system is using the org.opendatakit.aggregate.odktables.impl.api.ODKTablesAPIApplication JAX-RS application class that is named in the javax.ws.rs.Application init-param initialization parameter. > Jul 06, 2015 10:03:03 AM org.apache.wink.server.internal.application.ApplicationProcessor info > INFO: The following JAX-RS application has been processed: org.opendatakit.aggregate.odktables.impl.api.ODKTablesAPIApplication > Jul 06, 2015 10:03:03 AM org.apache.wink.server.internal.log.Resources info > INFO: The server has registered the JAX-RS resource class org.opendatakit.aggregate.odktables.impl.api.OdkTablesImpl with @Path(). > Jul 06, 2015 10:03:03 AM org.apache.wink.server.internal.log.Providers info > INFO: The class org.opendatakit.aggregate.odktables.entity.serialization.SimpleJSONMessageReaderWriter was registered as a JAX-RS MessageBodyReader provider for all Java types and application/json media types. > Jul 06, 2015 10:03:03 AM org.apache.wink.server.internal.log.Providers info > INFO: The class org.opendatakit.aggregate.odktables.entity.serialization.SimpleXMLMessageReaderWriter was registered as a JAX-RS MessageBodyReader provider for all Java types and text/xml media types. > Jul 06, 2015 10:03:03 AM org.apache.wink.server.internal.log.Providers info > INFO: The class org.opendatakit.aggregate.odktables.entity.serialization.SimpleXMLMessageReaderWriter was registered as a JAX-RS MessageBodyReader provider for all Java types and application/xml media types. > Jul 06, 2015 10:03:03 AM org.apache.wink.server.internal.log.Providers info > INFO: The class org.opendatakit.aggregate.odktables.entity.serialization.SimpleJSONMessageReaderWriter was registered as a JAX-RS MessageBodyWriter provider for all Java types and application/json media types. > Jul 06, 2015 10:03:03 AM org.apache.wink.server.internal.log.Providers info > INFO: The class org.opendatakit.aggregate.odktables.entity.serialization.SimpleXMLMessageReaderWriter was registered as a JAX-RS MessageBodyWriter provider for all Java types and text/xml media types. > Jul 06, 2015 10:03:03 AM org.apache.wink.server.internal.log.Providers info > INFO: The class org.opendatakit.aggregate.odktables.entity.serialization.SimpleXMLMessageReaderWriter was registered as a JAX-RS MessageBodyWriter provider for all Java types and application/xml media types. > Jul 06, 2015 10:03:03 AM org.apache.wink.server.internal.log.Providers info > INFO: The class org.opendatakit.aggregate.odktables.entity.serialization.SimpleHTMLMessageWriter was registered as a JAX-RS MessageBodyWriter provider for all Java types and text/* media types. > Jul 06, 2015 10:03:03 AM org.apache.wink.server.internal.log.Providers info > INFO: The class org.opendatakit.aggregate.odktables.impl.api.ODKTaskLockExceptionJsonMapper was registered as a JAX-RS ExceptionMapper provider for org.opendatakit.common.persistence.exception.ODKTaskLockException Java types. > Jul 06, 2015 10:03:03 AM org.apache.wink.server.internal.log.Providers info > INFO: The class org.opendatakit.aggregate.odktables.impl.api.ODKTaskLockExceptionApplicationXmlMapper was registered as a JAX-RS ExceptionMapper provider for org.opendatakit.common.persistence.exception.ODKTaskLockException Java types. > Jul 06, 2015 10:03:03 AM org.apache.wink.server.internal.log.Providers info > INFO: The class org.opendatakit.aggregate.odktables.impl.api.IOExceptionApplicationXmlMapper was registered as a JAX-RS ExceptionMapper provider for java.io.IOException Java types. > Jul 06, 2015 10:03:03 AM org.apache.wink.server.internal.log.Providers info > INFO: The class org.opendatakit.aggregate.odktables.impl.api.ODKDatastoreExceptionTextXmlMapper was registered as a JAX-RS ExceptionMapper provider for org.opendatakit.common.persistence.exception.ODKDatastoreException Java types. > Jul 06, 2015 10:03:03 AM org.apache.wink.server.internal.log.Providers info > INFO: The class org.opendatakit.aggregate.odktables.impl.api.RuntimeExceptionJsonMapper was registered as a JAX-RS ExceptionMapper provider for java.lang.RuntimeException Java types. > Jul 06, 2015 10:03:03 AM org.apache.wink.server.internal.log.Providers info > INFO: The class org.opendatakit.aggregate.odktables.impl.api.RuntimeExceptionTextXmlMapper was registered as a JAX-RS ExceptionMapper provider for java.lang.RuntimeException Java types. > Jul 06, 2015 10:03:03 AM org.apache.wink.server.internal.log.Providers info > INFO: The class org.opendatakit.aggregate.odktables.impl.api.ODKTablesExceptionJsonMapper was registered as a JAX-RS ExceptionMapper provider for org.opendatakit.aggregate.odktables.exception.ODKTablesException Java types. > Jul 06, 2015 10:03:03 AM org.apache.wink.server.internal.log.Providers info > INFO: The class org.opendatakit.aggregate.odktables.impl.api.ODKTablesExceptionApplicationXmlMapper was registered as a JAX-RS ExceptionMapper provider for org.opendatakit.aggregate.odktables.exception.ODKTablesException Java types. > Jul 06, 2015 10:03:03 AM org.apache.wink.server.internal.log.Providers info > INFO: The class org.opendatakit.aggregate.odktables.impl.api.IOExceptionTextXmlMapper was registered as a JAX-RS ExceptionMapper provider for java.io.IOException Java types. > Jul 06, 2015 10:03:03 AM org.apache.wink.server.internal.log.Providers info > INFO: The class org.opendatakit.aggregate.odktables.impl.api.ODKTaskLockExceptionTextXmlMapper was registered as a JAX-RS ExceptionMapper provider for org.opendatakit.common.persistence.exception.ODKTaskLockException Java types. > Jul 06, 2015 10:03:03 AM org.apache.wink.server.internal.log.Providers info > INFO: The class org.opendatakit.aggregate.odktables.impl.api.RuntimeExceptionApplicationXmlMapper was registered as a JAX-RS ExceptionMapper provider for java.lang.RuntimeException Java types. > Jul 06, 2015 10:03:03 AM org.apache.wink.server.internal.log.Providers info > INFO: The class org.opendatakit.aggregate.odktables.impl.api.ODKDatastoreExceptionJsonMapper was registered as a JAX-RS ExceptionMapper provider for org.opendatakit.common.persistence.exception.ODKDatastoreException Java types. > Jul 06, 2015 10:03:03 AM org.apache.wink.server.internal.log.Providers info > INFO: The class org.opendatakit.aggregate.odktables.impl.api.ODKTablesExceptionTextXmlMapper was registered as a JAX-RS ExceptionMapper provider for org.opendatakit.aggregate.odktables.exception.ODKTablesException Java types. > Jul 06, 2015 10:03:03 AM org.apache.wink.server.internal.log.Providers info > INFO: The class org.opendatakit.aggregate.odktables.impl.api.IOExceptionJsonMapper was registered as a JAX-RS ExceptionMapper provider for java.io.IOException Java types. > Jul 06, 2015 10:03:03 AM org.apache.wink.server.internal.log.Providers info > INFO: The class org.opendatakit.aggregate.odktables.impl.api.ODKDatastoreExceptionApplicationXmlMapper was registered as a JAX-RS ExceptionMapper provider for org.opendatakit.common.persistence.exception.ODKDatastoreException Java types. > Jul 06, 2015 10:03:04 AM org.apache.coyote.http11.Http11Protocol startINFO: Starting Coyote HTTP/1.1 on http-80 > Jul 06, 2015 10:03:04 AM org.apache.catalina.startup.Catalina start > INFO: Server startup in 11979 ms > Jul 06, 2015 10:03:12 AM org.opendatakit.common.persistence.engine.mysql.DatastoreImpl assertRelation > INFO: before updateRelation: _security_revisions > Jul 06, 2015 10:03:12 AM org.opendatakit.aggregate.servlet.OpenIdLoginPageServlet doGet > INFO: Invalidating login session 088BF468C3532FC15364CA98DDBD4293 > > > Shows no error and has no effect on the system, the application URL does not change > > > > > Abraços > > Paunde Junior > > > On 5 July 2015 at 14:31, Fergus Gallagher wrote: > > > > > > I think you need to edit conf/Catalina/localhost/ROOT.xml > > > > > On Thursday, 2 July 2015 18:31:01 UTC+1, anto...@gmail.com wrote:My production system is ODK-Aggregate-VM-1.4.5.0, it uses Tomcat6 on ubuntu. > > > > In this system ODK is the ROOT application and I want to change this, without rename the ODK war file. > > > > The solution I found was to edit the serve.xml in /conf folder. Within I add the following lines: > > > > > > > > > > > > > > When I restart Apache the changes does not take effect, it return Error 404. > > > > I did the same test in another test environment using tomcat6 and ODKAggregate.exe with same result. > > > > Why ODK does not accept, if I am not wrong, this kind of configuration? How can I do it. > > > > Please apreciate any help > > > > > > > > > > -- > > -- > > Post: opend...@googlegroups.com > > Unsubscribe: opendatakit...@googlegroups.com > > Options: http://groups.google.com/group/opendatakit?hl=en > > > > --- > > You received this message because you are subscribed to the Google Groups "ODK Community" group. > > To unsubscribe from this group and stop receiving emails from it, send an email to opendatakit...@googlegroups.com. > > For more options, visit https://groups.google.com/d/optout. > > > > > -- > > Mitch Sundt > Software Engineer > University of Washington > mitche...@gmail.com