http://git-wip-us.apache.org/repos/asf/incubator-usergrid/blob/f39bc071/stack/rest/catalina_base/lib/usergrid-deployment.properties ---------------------------------------------------------------------- diff --git a/stack/rest/catalina_base/lib/usergrid-deployment.properties b/stack/rest/catalina_base/lib/usergrid-deployment.properties deleted file mode 100644 index daf7324..0000000 --- a/stack/rest/catalina_base/lib/usergrid-deployment.properties +++ /dev/null @@ -1,113 +0,0 @@ -# -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this 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 -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed 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 and limitations -# under the License. -# - -###################################################### -# Minimal Usergrid configuration properties for local Tomcat and Cassandra - -usergrid.test=true - -cassandra.url=localhost:9160 -cassandra.cluster=usergrid -cassandra.keyspace.strategy=org.apache.cassandra.locator.SimpleStrategy -cassandra.keyspace.replication=replication_factor:1 -#cassandra.keyspace.strategy=org.apache.cassandra.locator.NetworkTopologyStrategy -#cassandra.keyspace.replication=us-east:3 - -cassandra.timeout=5000 -cassandra.connections=10 -cassandra.discovery=NONE -#usergrid.read.cl=ONE -#usergrid.write.cl=ONE - -usergrid.notifications.listener.queueName=notifications/queuelistenerv1_31;notifications/queuelistenerv1_32;notifications/queuelistenerv1_33;notifications/queuelistenerv1_34;notifications/queuelistenerv1_35;notifications/queuelistenerv1_36 -usergrid.notifications.listener.maxThreads=0 - - -hystrix.threadpool.graph_user.coreSize=10 -hystrix.threadpool.graph_async.coreSize=10 - -elasticsearch.cluster_name=elasticsearch -#elasticsearch.cluster_name=grindrgw-prod -#elasticsearch.cluster_name=rea1dug001-prod -elasticsearch.index_prefix=usergrid -elasticsearch.hosts=127.0.0.1 -elasticsearch.port=9300 -elasticsearch.number_shards=1 -elasticsearch.number_replicas=0 - - -###################################################### -# Admin and test user setup - -usergrid.sysadmin.login.allowed=true -usergrid.sysadmin.login.name=superuser -usergrid.sysadmin.login.password=superuser -usergrid.sysadmin.login.email=superuser@usergrid.example.com - -usergrid.sysadmin.email=superuser@usergrid.example.com -usergrid.sysadmin.approve.users=false -usergrid.sysadmin.approve.organizations=false - -# Base mailer account - default for all outgoing messages -usergrid.management.mailer=Admin - -usergrid.setup-test-account=true - -usergrid.test-account.app=test-app -usergrid.test-account.organization=test-organization -usergrid.test-account.admin-user.username=test -usergrid.test-account.admin-user.name=Test User -usergrid.test-account.admin-user.email=testuser@usergrid.example.com -usergrid.test-account.admin-user.password=test - -###################################################### -# Auto-confirm and sign-up notifications settings - -usergrid.management.admin_users_require_confirmation=false -usergrid.management.admin_users_require_activation=false - -usergrid.management.organizations_require_activation=false -usergrid.management.notify_sysadmin_of_new_organizations=true -usergrid.management.notify_sysadmin_of_new_admin_users=true - -###################################################### -# URLs - -# Redirect path when request come in for TLD -usergrid.redirect_root=http://localhost:8080/status - -usergrid.view.management.organizations.organization.activate=http://localhost:8080/accounts/welcome -usergrid.view.management.organizations.organization.confirm=http://localhost:8080/accounts/welcome - -usergrid.view.management.users.user.activate=http://localhost:8080/accounts/welcome -usergrid.view.management.users.user.confirm=http://localhost:8080/accounts/welcome - -usergrid.admin.confirmation.url=http://localhost:8080/management/users/%s/confirm -usergrid.user.confirmation.url=http://localhost:8080/%s/%s/users/%s/confirm - -usergrid.organization.activation.url=http://localhost:8080/management/organizations/%s/activate - -usergrid.admin.activation.url=http://localhost:8080/management/users/%s/activate -usergrid.user.activation.url=http://localhost:8080%s/%s/users/%s/activate - -usergrid.admin.resetpw.url=http://localhost:8080/management/users/%s/resetpw -usergrid.user.resetpw.url=http://localhost:8080/%s/%s/users/%s/resetpw - - -#usergrid.metrics.graphite.host= http://git-wip-us.apache.org/repos/asf/incubator-usergrid/blob/f39bc071/stack/rest/catalina_base/webapps/host-manager/META-INF/context.xml ---------------------------------------------------------------------- diff --git a/stack/rest/catalina_base/webapps/host-manager/META-INF/context.xml b/stack/rest/catalina_base/webapps/host-manager/META-INF/context.xml deleted file mode 100644 index 3390e96..0000000 --- a/stack/rest/catalina_base/webapps/host-manager/META-INF/context.xml +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - \ No newline at end of file http://git-wip-us.apache.org/repos/asf/incubator-usergrid/blob/f39bc071/stack/rest/catalina_base/webapps/host-manager/WEB-INF/jsp/401.jsp ---------------------------------------------------------------------- diff --git a/stack/rest/catalina_base/webapps/host-manager/WEB-INF/jsp/401.jsp b/stack/rest/catalina_base/webapps/host-manager/WEB-INF/jsp/401.jsp deleted file mode 100644 index 83c8c6f..0000000 --- a/stack/rest/catalina_base/webapps/host-manager/WEB-INF/jsp/401.jsp +++ /dev/null @@ -1,70 +0,0 @@ -<%-- - Licensed to the Apache Software Foundation (ASF) under one or more - contributor license agreements. See the NOTICE file distributed with - this 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 with - the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed 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 and - limitations under the License. ---%> - - - - 401 Unauthorized - - - -

401 Unauthorized

-

- You are not authorized to view this page. If you have not changed - any configuration files, please examine the file - conf/tomcat-users.xml in your installation. That - file must contain the credentials to let you use this webapp. -

-

- For example, to add the admin-gui role to a user named - tomcat with a password of s3cret, add the following to the - config file listed above. -

-
-<role rolename="admin-gui"/>
-<user username="tomcat" password="s3cret" roles="admin-gui"/>
-
-

- Note that for Tomcat 7 onwards, the roles required to use the host manager - application were changed from the single admin role to the - following two roles. You will need to assign the role(s) required for - the functionality you wish to access. -

- -

- The HTML interface is protected against CSRF but the text interface is not. - To maintain the CSRF protection: -

- - - - http://git-wip-us.apache.org/repos/asf/incubator-usergrid/blob/f39bc071/stack/rest/catalina_base/webapps/host-manager/WEB-INF/jsp/403.jsp ---------------------------------------------------------------------- diff --git a/stack/rest/catalina_base/webapps/host-manager/WEB-INF/jsp/403.jsp b/stack/rest/catalina_base/webapps/host-manager/WEB-INF/jsp/403.jsp deleted file mode 100644 index 2dbb448..0000000 --- a/stack/rest/catalina_base/webapps/host-manager/WEB-INF/jsp/403.jsp +++ /dev/null @@ -1,84 +0,0 @@ -<%-- - Licensed to the Apache Software Foundation (ASF) under one or more - contributor license agreements. See the NOTICE file distributed with - this 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 with - the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed 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 and - limitations under the License. ---%> - - - - 403 Access Denied - - - -

403 Access Denied

-

- You are not authorized to view this page. -

-

- If you have already configured the Host Manager application to allow access - and you have used your browsers back button, used a saved book-mark or - similar then you may have triggered the cross-site request forgery (CSRF) - protection that has been enabled for the HTML interface of the Host Manager - application. You will need to reset this protection by returning to the - main Host Manager page. - Once you return to this page, you will be able to continue using the Host - Manager appliction's HTML interface normally. If you continue to see this - access denied message, check that you have the necessary permissions to - access this application. -

-

If you have not changed - any configuration files, please examine the file - conf/tomcat-users.xml in your installation. That - file must contain the credentials to let you use this webapp. -

-

- For example, to add the admin-gui role to a user named - tomcat with a password of s3cret, add the following to the - config file listed above. -

-
-<role rolename="admin-gui"/>
-<user username="tomcat" password="s3cret" roles="admin-gui"/>
-
-

- Note that for Tomcat 7 onwards, the roles required to use the host manager - application were changed from the single admin role to the - following two roles. You will need to assign the role(s) required for - the functionality you wish to access. -

- -

- The HTML interface is protected against CSRF but the text interface is not. - To maintain the CSRF protection: -

- - - - http://git-wip-us.apache.org/repos/asf/incubator-usergrid/blob/f39bc071/stack/rest/catalina_base/webapps/host-manager/WEB-INF/jsp/404.jsp ---------------------------------------------------------------------- diff --git a/stack/rest/catalina_base/webapps/host-manager/WEB-INF/jsp/404.jsp b/stack/rest/catalina_base/webapps/host-manager/WEB-INF/jsp/404.jsp deleted file mode 100644 index d1b5b0b..0000000 --- a/stack/rest/catalina_base/webapps/host-manager/WEB-INF/jsp/404.jsp +++ /dev/null @@ -1,61 +0,0 @@ -<%-- - Licensed to the Apache Software Foundation (ASF) under one or more - contributor license agreements. See the NOTICE file distributed with - this 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 with - the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed 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 and - limitations under the License. ---%> -<%@ page import="org.apache.catalina.util.RequestUtil" %> - - - - 404 Not found - - - -

404 Not found

-

- The page you tried to access - (<%=RequestUtil.filter((String) request.getAttribute( - "javax.servlet.error.request_uri"))%>) - does not exist. -

-

- The Host Manager application has been re-structured for Tomcat 7 onwards and - some URLs have changed. All URLs used to access the Manager application - should now start with one of the following options: -

- -

- Note that the URL for the text interface has changed from - "<%=request.getContextPath()%>" to - "<%=request.getContextPath()%>/text". -

-

- You probably need to adjust the URL you are using to access the Host Manager - application. However, there is always a chance you have found a bug in the - Host Manager application. If you are sure you have found a bug, and that the - bug has not already been reported, please report it to the Apache Tomcat - team. -

- - http://git-wip-us.apache.org/repos/asf/incubator-usergrid/blob/f39bc071/stack/rest/catalina_base/webapps/host-manager/WEB-INF/web.xml ---------------------------------------------------------------------- diff --git a/stack/rest/catalina_base/webapps/host-manager/WEB-INF/web.xml b/stack/rest/catalina_base/webapps/host-manager/WEB-INF/web.xml deleted file mode 100644 index 30f319b..0000000 --- a/stack/rest/catalina_base/webapps/host-manager/WEB-INF/web.xml +++ /dev/null @@ -1,144 +0,0 @@ - - - - - - Tomcat Host Manager Application - - A scriptable host management web application for the Tomcat Web Server; - Manager lets you view, create and remove virtual hosts. - - - - HostManager - org.apache.catalina.manager.host.HostManagerServlet - - debug - 2 - - - - HTMLHostManager - org.apache.catalina.manager.host.HTMLHostManagerServlet - - debug - 2 - - - - - SetCharacterEncoding - org.apache.catalina.filters.SetCharacterEncodingFilter - - encoding - UTF-8 - - - - - SetCharacterEncoding - /* - - - - CSRF - org.apache.catalina.filters.CsrfPreventionFilter - - entryPoints - /html,/html/,/html/list,/index.jsp - - - - - CSRF - HTMLHostManager - - - - - HostManager - /text/* - - - HTMLHostManager - /html/* - - - - - - HostManager commands - /text/* - - - - admin-script - - - - - HTMLHostManager commands - /html/* - - - - admin-gui - - - - - - BASIC - Tomcat Host Manager Application - - - - - - The role that is required to log in to the Host Manager Application HTML - interface - - admin-gui - - - - The role that is required to log in to the Host Manager Application text - interface - - admin-script - - - - 401 - /WEB-INF/jsp/401.jsp - - - 403 - /WEB-INF/jsp/403.jsp - - - 404 - /WEB-INF/jsp/404.jsp - - - http://git-wip-us.apache.org/repos/asf/incubator-usergrid/blob/f39bc071/stack/rest/catalina_base/webapps/host-manager/images/add.gif ---------------------------------------------------------------------- diff --git a/stack/rest/catalina_base/webapps/host-manager/images/add.gif b/stack/rest/catalina_base/webapps/host-manager/images/add.gif deleted file mode 100644 index 0774d07..0000000 Binary files a/stack/rest/catalina_base/webapps/host-manager/images/add.gif and /dev/null differ http://git-wip-us.apache.org/repos/asf/incubator-usergrid/blob/f39bc071/stack/rest/catalina_base/webapps/host-manager/images/asf-logo.gif ---------------------------------------------------------------------- diff --git a/stack/rest/catalina_base/webapps/host-manager/images/asf-logo.gif b/stack/rest/catalina_base/webapps/host-manager/images/asf-logo.gif deleted file mode 100644 index 22eb9d7..0000000 Binary files a/stack/rest/catalina_base/webapps/host-manager/images/asf-logo.gif and /dev/null differ http://git-wip-us.apache.org/repos/asf/incubator-usergrid/blob/f39bc071/stack/rest/catalina_base/webapps/host-manager/images/code.gif ---------------------------------------------------------------------- diff --git a/stack/rest/catalina_base/webapps/host-manager/images/code.gif b/stack/rest/catalina_base/webapps/host-manager/images/code.gif deleted file mode 100644 index d27307b..0000000 Binary files a/stack/rest/catalina_base/webapps/host-manager/images/code.gif and /dev/null differ http://git-wip-us.apache.org/repos/asf/incubator-usergrid/blob/f39bc071/stack/rest/catalina_base/webapps/host-manager/images/design.gif ---------------------------------------------------------------------- diff --git a/stack/rest/catalina_base/webapps/host-manager/images/design.gif b/stack/rest/catalina_base/webapps/host-manager/images/design.gif deleted file mode 100644 index f5db0a9..0000000 Binary files a/stack/rest/catalina_base/webapps/host-manager/images/design.gif and /dev/null differ http://git-wip-us.apache.org/repos/asf/incubator-usergrid/blob/f39bc071/stack/rest/catalina_base/webapps/host-manager/images/docs.gif ---------------------------------------------------------------------- diff --git a/stack/rest/catalina_base/webapps/host-manager/images/docs.gif b/stack/rest/catalina_base/webapps/host-manager/images/docs.gif deleted file mode 100644 index d64a4a1..0000000 Binary files a/stack/rest/catalina_base/webapps/host-manager/images/docs.gif and /dev/null differ http://git-wip-us.apache.org/repos/asf/incubator-usergrid/blob/f39bc071/stack/rest/catalina_base/webapps/host-manager/images/fix.gif ---------------------------------------------------------------------- diff --git a/stack/rest/catalina_base/webapps/host-manager/images/fix.gif b/stack/rest/catalina_base/webapps/host-manager/images/fix.gif deleted file mode 100644 index d59ad64..0000000 Binary files a/stack/rest/catalina_base/webapps/host-manager/images/fix.gif and /dev/null differ http://git-wip-us.apache.org/repos/asf/incubator-usergrid/blob/f39bc071/stack/rest/catalina_base/webapps/host-manager/images/tomcat.gif ---------------------------------------------------------------------- diff --git a/stack/rest/catalina_base/webapps/host-manager/images/tomcat.gif b/stack/rest/catalina_base/webapps/host-manager/images/tomcat.gif deleted file mode 100644 index 6175673..0000000 Binary files a/stack/rest/catalina_base/webapps/host-manager/images/tomcat.gif and /dev/null differ http://git-wip-us.apache.org/repos/asf/incubator-usergrid/blob/f39bc071/stack/rest/catalina_base/webapps/host-manager/images/update.gif ---------------------------------------------------------------------- diff --git a/stack/rest/catalina_base/webapps/host-manager/images/update.gif b/stack/rest/catalina_base/webapps/host-manager/images/update.gif deleted file mode 100644 index 31e22ab..0000000 Binary files a/stack/rest/catalina_base/webapps/host-manager/images/update.gif and /dev/null differ http://git-wip-us.apache.org/repos/asf/incubator-usergrid/blob/f39bc071/stack/rest/catalina_base/webapps/host-manager/images/void.gif ---------------------------------------------------------------------- diff --git a/stack/rest/catalina_base/webapps/host-manager/images/void.gif b/stack/rest/catalina_base/webapps/host-manager/images/void.gif deleted file mode 100644 index e565824..0000000 Binary files a/stack/rest/catalina_base/webapps/host-manager/images/void.gif and /dev/null differ http://git-wip-us.apache.org/repos/asf/incubator-usergrid/blob/f39bc071/stack/rest/catalina_base/webapps/host-manager/index.jsp ---------------------------------------------------------------------- diff --git a/stack/rest/catalina_base/webapps/host-manager/index.jsp b/stack/rest/catalina_base/webapps/host-manager/index.jsp deleted file mode 100644 index d4816e5..0000000 --- a/stack/rest/catalina_base/webapps/host-manager/index.jsp +++ /dev/null @@ -1,18 +0,0 @@ -<%-- - Licensed to the Apache Software Foundation (ASF) under one or more - contributor license agreements. See the NOTICE file distributed with - this 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 with - the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed 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 and - limitations under the License. ---%> -<% response.sendRedirect(response.encodeRedirectURL(request.getContextPath() + - "/html")); %> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/incubator-usergrid/blob/f39bc071/stack/rest/catalina_base/webapps/host-manager/manager.xml ---------------------------------------------------------------------- diff --git a/stack/rest/catalina_base/webapps/host-manager/manager.xml b/stack/rest/catalina_base/webapps/host-manager/manager.xml deleted file mode 100644 index 250065a..0000000 --- a/stack/rest/catalina_base/webapps/host-manager/manager.xml +++ /dev/null @@ -1,26 +0,0 @@ - - - - - - http://git-wip-us.apache.org/repos/asf/incubator-usergrid/blob/f39bc071/stack/rest/catalina_base/webapps/manager/META-INF/context.xml ---------------------------------------------------------------------- diff --git a/stack/rest/catalina_base/webapps/manager/META-INF/context.xml b/stack/rest/catalina_base/webapps/manager/META-INF/context.xml deleted file mode 100644 index 21d9bac..0000000 --- a/stack/rest/catalina_base/webapps/manager/META-INF/context.xml +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - http://git-wip-us.apache.org/repos/asf/incubator-usergrid/blob/f39bc071/stack/rest/catalina_base/webapps/manager/WEB-INF/jsp/401.jsp ---------------------------------------------------------------------- diff --git a/stack/rest/catalina_base/webapps/manager/WEB-INF/jsp/401.jsp b/stack/rest/catalina_base/webapps/manager/WEB-INF/jsp/401.jsp deleted file mode 100644 index 01f8aa9..0000000 --- a/stack/rest/catalina_base/webapps/manager/WEB-INF/jsp/401.jsp +++ /dev/null @@ -1,79 +0,0 @@ -<%-- - Licensed to the Apache Software Foundation (ASF) under one or more - contributor license agreements. See the NOTICE file distributed with - this 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 with - the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed 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 and - limitations under the License. ---%> - - - - 401 Unauthorized - - - -

401 Unauthorized

-

- You are not authorized to view this page. If you have not changed - any configuration files, please examine the file - conf/tomcat-users.xml in your installation. That - file must contain the credentials to let you use this webapp. -

-

- For example, to add the manager-gui role to a user named - tomcat with a password of s3cret, add the following to the - config file listed above. -

-
-<role rolename="manager-gui"/>
-<user username="tomcat" password="s3cret" roles="manager-gui"/>
-
-

- Note that for Tomcat 7 onwards, the roles required to use the manager - application were changed from the single manager role to the - following four roles. You will need to assign the role(s) required for - the functionality you wish to access. -

- -

- The HTML interface is protected against CSRF but the text and JMX interfaces - are not. To maintain the CSRF protection: -

- -

- For more information - please see the - Manager App HOW-TO. -

- - - http://git-wip-us.apache.org/repos/asf/incubator-usergrid/blob/f39bc071/stack/rest/catalina_base/webapps/manager/WEB-INF/jsp/403.jsp ---------------------------------------------------------------------- diff --git a/stack/rest/catalina_base/webapps/manager/WEB-INF/jsp/403.jsp b/stack/rest/catalina_base/webapps/manager/WEB-INF/jsp/403.jsp deleted file mode 100644 index 43d960f..0000000 --- a/stack/rest/catalina_base/webapps/manager/WEB-INF/jsp/403.jsp +++ /dev/null @@ -1,94 +0,0 @@ -<%-- - Licensed to the Apache Software Foundation (ASF) under one or more - contributor license agreements. See the NOTICE file distributed with - this 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 with - the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed 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 and - limitations under the License. ---%> - - - - 403 Access Denied - - - -

403 Access Denied

-

- You are not authorized to view this page. -

-

- If you have already configured the Manager application to allow access and - you have used your browsers back button, used a saved book-mark or similar - then you may have triggered the cross-site request forgery (CSRF) protection - that has been enabled for the HTML interface of the Manager application. You - will need to reset this protection by returning to the - main Manager page. Once you - return to this page, you will be able to continue using the Manager - appliction's HTML interface normally. If you continue to see this access - denied message, check that you have the necessary permissions to access this - application. -

-

- If you have not changed - any configuration files, please examine the file - conf/tomcat-users.xml in your installation. That - file must contain the credentials to let you use this webapp. -

-

- For example, to add the manager-gui role to a user named - tomcat with a password of s3cret, add the following to the - config file listed above. -

-
-<role rolename="manager-gui"/>
-<user username="tomcat" password="s3cret" roles="manager-gui"/>
-
-

- Note that for Tomcat 7 onwards, the roles required to use the manager - application were changed from the single manager role to the - following four roles. You will need to assign the role(s) required for - the functionality you wish to access. -

- -

- The HTML interface is protected against CSRF but the text and JMX interfaces - are not. To maintain the CSRF protection: -

- -

- For more information - please see the - Manager App HOW-TO. -

- - - http://git-wip-us.apache.org/repos/asf/incubator-usergrid/blob/f39bc071/stack/rest/catalina_base/webapps/manager/WEB-INF/jsp/404.jsp ---------------------------------------------------------------------- diff --git a/stack/rest/catalina_base/webapps/manager/WEB-INF/jsp/404.jsp b/stack/rest/catalina_base/webapps/manager/WEB-INF/jsp/404.jsp deleted file mode 100644 index 86d4f35..0000000 --- a/stack/rest/catalina_base/webapps/manager/WEB-INF/jsp/404.jsp +++ /dev/null @@ -1,62 +0,0 @@ -<%-- - Licensed to the Apache Software Foundation (ASF) under one or more - contributor license agreements. See the NOTICE file distributed with - this 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 with - the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed 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 and - limitations under the License. ---%> -<%@ page import="org.apache.catalina.util.RequestUtil" %> - - - - 404 Not found - - - -

404 Not found

-

- The page you tried to access - (<%=RequestUtil.filter((String) request.getAttribute( - "javax.servlet.error.request_uri"))%>) - does not exist. -

-

- The Manager application has been re-structured for Tomcat 7 onwards and some - of URLs have changed. All URLs used to access the Manager application should - now start with one of the following options: -

- -

- Note that the URL for the text interface has changed from - "<%=request.getContextPath()%>" to - "<%=request.getContextPath()%>/text". -

-

- You probably need to adjust the URL you are using to access the Manager - application. However, there is always a chance you have found a bug in the - Manager application. If you are sure you have found a bug, and that the bug - has not already been reported, please report it to the Apache Tomcat team. -

- - http://git-wip-us.apache.org/repos/asf/incubator-usergrid/blob/f39bc071/stack/rest/catalina_base/webapps/manager/WEB-INF/jsp/sessionDetail.jsp ---------------------------------------------------------------------- diff --git a/stack/rest/catalina_base/webapps/manager/WEB-INF/jsp/sessionDetail.jsp b/stack/rest/catalina_base/webapps/manager/WEB-INF/jsp/sessionDetail.jsp deleted file mode 100644 index 9362dab..0000000 --- a/stack/rest/catalina_base/webapps/manager/WEB-INF/jsp/sessionDetail.jsp +++ /dev/null @@ -1,197 +0,0 @@ - -<%-- - Licensed to the Apache Software Foundation (ASF) under one or more - contributor license agreements. See the NOTICE file distributed with - this 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 with - the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed 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 and - limitations under the License. ---%> -<%@page session="false" contentType="text/html; charset=ISO-8859-1" %> -<%@page import="java.util.Enumeration" %> -<%@page import="javax.servlet.http.HttpSession" %> -<%@page import="org.apache.catalina.Session" %> -<%@page import="org.apache.catalina.manager.JspHelper" %> -<%@page import="org.apache.catalina.util.ContextName" %> - -<%--!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" - "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"--%> - - -<% String path = (String) request.getAttribute("path"); - String version = (String) request.getAttribute("version"); - ContextName cn = new ContextName(path, version); - Session currentSession = (Session)request.getAttribute("currentSession"); - String currentSessionId = null; - HttpSession currentHttpSession = null; - if (currentSession != null) { - currentHttpSession = currentSession.getSession(); - currentSessionId = JspHelper.escapeXml(currentSession.getId()); - } else { - currentSessionId = "Session invalidated"; - } - String submitUrl = JspHelper.escapeXml(response.encodeURL( - ((HttpServletRequest) pageContext.getRequest()).getRequestURI() + - "?path=" + path + "&version=" + version)); -%> - - - - - - - - - - Sessions Administration: details for <%= currentSessionId %> - - -<% if (currentHttpSession == null) { %> -

<%=currentSessionId%>

-<% } else { %> -

Details for Session <%= currentSessionId %>

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Session Id<%= currentSessionId %>
Guessed Locale<%= JspHelper.guessDisplayLocaleFromSession(currentSession) %>
Guessed User<%= JspHelper.guessDisplayUserFromSession(currentSession) %>
Creation Time<%= JspHelper.getDisplayCreationTimeForSession(currentSession) %>
Last Accessed Time<%= JspHelper.getDisplayLastAccessedTimeForSession(currentSession) %>
Session Max Inactive Interval<%= JspHelper.secondsToTimeString(currentSession.getMaxInactiveInterval()) %>
Used Time<%= JspHelper.getDisplayUsedTimeForSession(currentSession) %>
Inactive Time<%= JspHelper.getDisplayInactiveTimeForSession(currentSession) %>
TTL<%= JspHelper.getDisplayTTLForSession(currentSession) %>
- -
-
- - - <% - if ("Primary".equals(request.getParameter("sessionType"))) { - %> - - <% - } - %> -
-
- -
<%= JspHelper.escapeXml(request.getAttribute("error")) %>
-
<%= JspHelper.escapeXml(request.getAttribute("message")) %>
- - - <% int nAttributes = 0; - Enumeration attributeNamesEnumeration = currentHttpSession.getAttributeNames(); - while (attributeNamesEnumeration.hasMoreElements()) { - attributeNamesEnumeration.nextElement(); - ++nAttributes; - } - %> - - - - - - - - - <%--tfoot> - - - - - - <% attributeNamesEnumeration = currentHttpSession.getAttributeNames(); - while (attributeNamesEnumeration.hasMoreElements()) { - String attributeName = (String) attributeNamesEnumeration.nextElement(); - %> - - - - - - <% } // end while %> - -
<%= JspHelper.formatNumber(nAttributes) %> attributes
Remove AttributeAttribute nameAttribute value
- TODO: set Max Inactive Interval on sessions -
-
-
- - - - <% - if ("Primary".equals(request.getParameter("sessionType"))) { - %> - - - <% - } else { - out.print("Primary sessions only"); - } - %> -
-
-
<%= JspHelper.escapeXml(attributeName) %><% Object attributeValue = currentHttpSession.getAttribute(attributeName); %>"><%= JspHelper.escapeXml(attributeValue) %>
-<% } // endif%> - -
-

- -

-
- -<%--div style="display: none;"> -

- Valid HTML 4.01! - Valid XHTML 1.0! - Valid XHTML 1.1! -

- - - - http://git-wip-us.apache.org/repos/asf/incubator-usergrid/blob/f39bc071/stack/rest/catalina_base/webapps/manager/WEB-INF/jsp/sessionsList.jsp ---------------------------------------------------------------------- diff --git a/stack/rest/catalina_base/webapps/manager/WEB-INF/jsp/sessionsList.jsp b/stack/rest/catalina_base/webapps/manager/WEB-INF/jsp/sessionsList.jsp deleted file mode 100644 index 1cbf75e..0000000 --- a/stack/rest/catalina_base/webapps/manager/WEB-INF/jsp/sessionsList.jsp +++ /dev/null @@ -1,172 +0,0 @@ - -<%-- - Licensed to the Apache Software Foundation (ASF) under one or more - contributor license agreements. See the NOTICE file distributed with - this 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 with - the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed 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 and - limitations under the License. ---%> -<%@page session="false" contentType="text/html; charset=ISO-8859-1" %> -<%@page import="java.util.Collection" %> -<%@page import="java.util.Iterator" %> -<%@page import="org.apache.catalina.manager.JspHelper" %> -<%@page import="org.apache.catalina.Session" %> -<%@page import="org.apache.catalina.ha.session.DeltaSession" %> -<%@page import="org.apache.catalina.util.ContextName" %> - - - -<%@page import="org.apache.catalina.manager.DummyProxySession"%> -<% String path = (String) request.getAttribute("path"); - String version = (String) request.getAttribute("version"); - ContextName cn = new ContextName(path, version); - String submitUrl = JspHelper.escapeXml(response.encodeURL( - ((HttpServletRequest) pageContext.getRequest()).getRequestURI() + - "?path=" + path + "&version=" + version)); - Collection activeSessions = (Collection) request.getAttribute("activeSessions"); -%> - - - - - - - - - - Sessions Administration for <%= JspHelper.escapeXml(cn.getDisplayName()) %> - - -

Sessions Administration for <%= JspHelper.escapeXml(cn.getDisplayName()) %>

- -

Tips:

- - -
<%= JspHelper.escapeXml(request.getAttribute("error")) %>
-
<%= JspHelper.escapeXml(request.getAttribute("message")) %>
- -
-
Active HttpSessions informations - - "/> - <% String order = (String) request.getAttribute("order"); - if (order == null || "".equals(order)) { - order = "ASC"; - } - %> - - - <%= JspHelper.formatNumber(activeSessions.size()) %> active Sessions
- - - - - - - - - - - - - - - <% if (activeSessions.size() > 10) { %> - <%-- is the same as --%> - - - - - - - - - - - - - <% } // end if %> - -<% Iterator iter = activeSessions.iterator(); - while (iter.hasNext()) { - Session currentSession = (Session) iter.next(); - String currentSessionId = JspHelper.escapeXml(currentSession.getId()); - String type; - if (currentSession instanceof DeltaSession) { - if (((DeltaSession) currentSession).isPrimarySession()) { - type = "Primary"; - } else { - type = "Backup"; - } - } else if (currentSession instanceof DummyProxySession) { - type = "Proxy"; - } else { - type = "Primary"; - } -%> - - - - - - - - - - - -<% } // end while %> - -
Session IdTypeGuessed LocaleGuessed User nameCreation TimeLast Accessed TimeUsed TimeInactive TimeTTL
Session IdTypeGuessed LocaleGuessed User nameCreation TimeLast Accessed TimeUsed TimeInactive TimeTTL
- <% - if ("Proxy".equals(type)) { - out.print(currentSessionId); - } else { - %> - <%= currentSessionId %> - <% - } - %> - <%= type %><%= JspHelper.guessDisplayLocaleFromSession(currentSession) %><%= JspHelper.guessDisplayUserFromSession(currentSession) %><%= JspHelper.getDisplayCreationTimeForSession(currentSession) %><%= JspHelper.getDisplayLastAccessedTimeForSession(currentSession) %><%= JspHelper.getDisplayUsedTimeForSession(currentSession) %><%= JspHelper.getDisplayInactiveTimeForSession(currentSession) %><%= JspHelper.getDisplayTTLForSession(currentSession) %>
-

- -

-
-
- -
-

- -

-
- -<%--div style="display: none;"> -

- Valid HTML 4.01! - Valid XHTML 1.0! - Valid XHTML 1.1! -

- - - - http://git-wip-us.apache.org/repos/asf/incubator-usergrid/blob/f39bc071/stack/rest/catalina_base/webapps/manager/WEB-INF/web.xml ---------------------------------------------------------------------- diff --git a/stack/rest/catalina_base/webapps/manager/WEB-INF/web.xml b/stack/rest/catalina_base/webapps/manager/WEB-INF/web.xml deleted file mode 100644 index 8fb7728..0000000 --- a/stack/rest/catalina_base/webapps/manager/WEB-INF/web.xml +++ /dev/null @@ -1,209 +0,0 @@ - - - - - - Tomcat Manager Application - - A scriptable management web application for the Tomcat Web Server; - Manager lets you view, load/unload/etc particular web applications. - - - - Manager - org.apache.catalina.manager.ManagerServlet - - debug - 2 - - - - HTMLManager - org.apache.catalina.manager.HTMLManagerServlet - - debug - 2 - - - - - 52428800 - 52428800 - 0 - - - - Status - org.apache.catalina.manager.StatusManagerServlet - - debug - 0 - - - - - JMXProxy - org.apache.catalina.manager.JMXProxyServlet - - - - - Manager - /text/* - - - Status - /status/* - - - JMXProxy - /jmxproxy/* - - - HTMLManager - /html/* - - - - SetCharacterEncoding - org.apache.catalina.filters.SetCharacterEncodingFilter - - encoding - UTF-8 - - - - - SetCharacterEncoding - /* - - - - CSRF - org.apache.catalina.filters.CsrfPreventionFilter - - entryPoints - /html,/html/,/html/list,/index.jsp - - - - - CSRF - HTMLManager - jsp - - - - - - - HTML Manager interface (for humans) - /html/* - - - manager-gui - - - - - Text Manager interface (for scripts) - /text/* - - - manager-script - - - - - JMX Proxy interface - /jmxproxy/* - - - manager-jmx - - - - - Status interface - /status/* - - - manager-gui - manager-script - manager-jmx - manager-status - - - - - - BASIC - Tomcat Manager Application - - - - - - The role that is required to access the HTML Manager pages - - manager-gui - - - - The role that is required to access the text Manager pages - - manager-script - - - - The role that is required to access the HTML JMX Proxy - - manager-jmx - - - - The role that is required to access to the Manager Status pages - - manager-status - - - - 401 - /WEB-INF/jsp/401.jsp - - - 403 - /WEB-INF/jsp/403.jsp - - - 404 - /WEB-INF/jsp/404.jsp - - - http://git-wip-us.apache.org/repos/asf/incubator-usergrid/blob/f39bc071/stack/rest/catalina_base/webapps/manager/images/add.gif ---------------------------------------------------------------------- diff --git a/stack/rest/catalina_base/webapps/manager/images/add.gif b/stack/rest/catalina_base/webapps/manager/images/add.gif deleted file mode 100644 index 0774d07..0000000 Binary files a/stack/rest/catalina_base/webapps/manager/images/add.gif and /dev/null differ http://git-wip-us.apache.org/repos/asf/incubator-usergrid/blob/f39bc071/stack/rest/catalina_base/webapps/manager/images/asf-logo.gif ---------------------------------------------------------------------- diff --git a/stack/rest/catalina_base/webapps/manager/images/asf-logo.gif b/stack/rest/catalina_base/webapps/manager/images/asf-logo.gif deleted file mode 100644 index 22eb9d7..0000000 Binary files a/stack/rest/catalina_base/webapps/manager/images/asf-logo.gif and /dev/null differ http://git-wip-us.apache.org/repos/asf/incubator-usergrid/blob/f39bc071/stack/rest/catalina_base/webapps/manager/images/code.gif ---------------------------------------------------------------------- diff --git a/stack/rest/catalina_base/webapps/manager/images/code.gif b/stack/rest/catalina_base/webapps/manager/images/code.gif deleted file mode 100644 index d27307b..0000000 Binary files a/stack/rest/catalina_base/webapps/manager/images/code.gif and /dev/null differ http://git-wip-us.apache.org/repos/asf/incubator-usergrid/blob/f39bc071/stack/rest/catalina_base/webapps/manager/images/design.gif ---------------------------------------------------------------------- diff --git a/stack/rest/catalina_base/webapps/manager/images/design.gif b/stack/rest/catalina_base/webapps/manager/images/design.gif deleted file mode 100644 index f5db0a9..0000000 Binary files a/stack/rest/catalina_base/webapps/manager/images/design.gif and /dev/null differ http://git-wip-us.apache.org/repos/asf/incubator-usergrid/blob/f39bc071/stack/rest/catalina_base/webapps/manager/images/docs.gif ---------------------------------------------------------------------- diff --git a/stack/rest/catalina_base/webapps/manager/images/docs.gif b/stack/rest/catalina_base/webapps/manager/images/docs.gif deleted file mode 100644 index d64a4a1..0000000 Binary files a/stack/rest/catalina_base/webapps/manager/images/docs.gif and /dev/null differ http://git-wip-us.apache.org/repos/asf/incubator-usergrid/blob/f39bc071/stack/rest/catalina_base/webapps/manager/images/fix.gif ---------------------------------------------------------------------- diff --git a/stack/rest/catalina_base/webapps/manager/images/fix.gif b/stack/rest/catalina_base/webapps/manager/images/fix.gif deleted file mode 100644 index d59ad64..0000000 Binary files a/stack/rest/catalina_base/webapps/manager/images/fix.gif and /dev/null differ http://git-wip-us.apache.org/repos/asf/incubator-usergrid/blob/f39bc071/stack/rest/catalina_base/webapps/manager/images/tomcat.gif ---------------------------------------------------------------------- diff --git a/stack/rest/catalina_base/webapps/manager/images/tomcat.gif b/stack/rest/catalina_base/webapps/manager/images/tomcat.gif deleted file mode 100644 index f2aa6f8..0000000 Binary files a/stack/rest/catalina_base/webapps/manager/images/tomcat.gif and /dev/null differ http://git-wip-us.apache.org/repos/asf/incubator-usergrid/blob/f39bc071/stack/rest/catalina_base/webapps/manager/images/update.gif ---------------------------------------------------------------------- diff --git a/stack/rest/catalina_base/webapps/manager/images/update.gif b/stack/rest/catalina_base/webapps/manager/images/update.gif deleted file mode 100644 index 31e22ab..0000000 Binary files a/stack/rest/catalina_base/webapps/manager/images/update.gif and /dev/null differ http://git-wip-us.apache.org/repos/asf/incubator-usergrid/blob/f39bc071/stack/rest/catalina_base/webapps/manager/images/void.gif ---------------------------------------------------------------------- diff --git a/stack/rest/catalina_base/webapps/manager/images/void.gif b/stack/rest/catalina_base/webapps/manager/images/void.gif deleted file mode 100644 index e565824..0000000 Binary files a/stack/rest/catalina_base/webapps/manager/images/void.gif and /dev/null differ http://git-wip-us.apache.org/repos/asf/incubator-usergrid/blob/f39bc071/stack/rest/catalina_base/webapps/manager/index.jsp ---------------------------------------------------------------------- diff --git a/stack/rest/catalina_base/webapps/manager/index.jsp b/stack/rest/catalina_base/webapps/manager/index.jsp deleted file mode 100644 index d4816e5..0000000 --- a/stack/rest/catalina_base/webapps/manager/index.jsp +++ /dev/null @@ -1,18 +0,0 @@ -<%-- - Licensed to the Apache Software Foundation (ASF) under one or more - contributor license agreements. See the NOTICE file distributed with - this 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 with - the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed 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 and - limitations under the License. ---%> -<% response.sendRedirect(response.encodeRedirectURL(request.getContextPath() + - "/html")); %> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/incubator-usergrid/blob/f39bc071/stack/rest/catalina_base/webapps/manager/status.xsd ---------------------------------------------------------------------- diff --git a/stack/rest/catalina_base/webapps/manager/status.xsd b/stack/rest/catalina_base/webapps/manager/status.xsd deleted file mode 100644 index 5af979d..0000000 --- a/stack/rest/catalina_base/webapps/manager/status.xsd +++ /dev/null @@ -1,84 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - http://git-wip-us.apache.org/repos/asf/incubator-usergrid/blob/f39bc071/stack/rest/catalina_base/webapps/manager/xform.xsl ---------------------------------------------------------------------- diff --git a/stack/rest/catalina_base/webapps/manager/xform.xsl b/stack/rest/catalina_base/webapps/manager/xform.xsl deleted file mode 100644 index b07fcb9..0000000 --- a/stack/rest/catalina_base/webapps/manager/xform.xsl +++ /dev/null @@ -1,125 +0,0 @@ - - - - - - - - - - - - Tomcat Status - - - -
Tomcat Status
- - - - - -
- - - - Memory Pools
- -
-
- - - - - - - - -
JVM:free: total: max:

-
- - - - - - - - - - -
Name: Type: Initial: Committed: Maximum: Used:
-
- - - Connector --
- - - - -
- - - - - - - - -
threadInfomaxThreads: currentThreadCount: currentThreadsBusy:

-
- - - - - - - - - - - -
requestInfo maxTime: processingTime: requestCount: errorCount: bytesReceived: bytesSent:

-
- - - - - - -
StageTimeB SentB RecvClientVHostRequest

-
- - - - - - - - - - ? - - - -
http://git-wip-us.apache.org/repos/asf/incubator-usergrid/blob/f39bc071/stack/rest/catalina_base/webapps/portal ---------------------------------------------------------------------- diff --git a/stack/rest/catalina_base/webapps/portal b/stack/rest/catalina_base/webapps/portal deleted file mode 120000 index b88a900..0000000 --- a/stack/rest/catalina_base/webapps/portal +++ /dev/null @@ -1 +0,0 @@ -../../../../portal/ \ No newline at end of file