tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 52686] New: Tomcat7w will not run without runas Administrator
Date Thu, 16 Feb 2012 18:24:20 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=52686

             Bug #: 52686
           Summary: Tomcat7w will not run without runas  Administrator
           Product: Tomcat 7
           Version: 7.0.25
          Platform: PC
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Packaging
        AssignedTo: dev@tomcat.apache.org
        ReportedBy: mikebell90@yahoo.com
    Classification: Unclassified


After installing tomcat, one finds the nice little system tray will not load. 

1. The immediate reason is tomcat7w.exe must run as administrator.
2. A MANUAL workaround is for the customer to go to startup, right click,
choose advanced, and select Run as administrator.
3. However, people shouldn't have to do this manually
4. The next way to do things (and the more official way) is to use an
application manifest. 
5. These can be installed manually or embedded. An example might be

<?xml version="1.0" encoding="utf-8" ?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0" >
<assemblyIdentity version="1.0.0.0"
processorArchitecture="X86"
name="tomcat7w"
type="win32" />
<description>Force Tomcat to run as admin for config</description>
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">
<security>
<requestedPrivileges>
<requestedExecutionLevel level="requireAdministrator" uiAccess="true" />
</requestedPrivileges>
</security>
</trustInfo>
</assembly>

6. However, saving this as tomcat7w.exe.manifest will still fail.
7. This is because tomcat7w already includes an embedded manifest, and in these
cases windows ignores the external manifest.

Proposal is to fix the embedded manifest. The current manifest is
 <?xml version="1.0" encoding="UTF-8" standalone="yes" ?> 
- <!-- 
  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.


  --> 
 <assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
  <assemblyIdentity version="3.1.0.0" processorArchitecture="*"
name="Apache.Procrun.Prunmgr" type="win32" /> 
  <description>Apache Procrun Service Manager</description> 
 <dependency>
 <dependentAssembly>
  <assemblyIdentity type="win32" name="Microsoft.Windows.Common-Controls"
version="6.0.0.0" processorArchitecture="*" publicKeyToken="6595b64144ccf1df"
language="*" /> 
  </dependentAssembly>
  </dependency>
  </assembly>

and that should be modified to

 <?xml version="1.0" encoding="UTF-8" standalone="yes" ?> 
 <!-- 
  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.


  --> 
 <assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
  <assemblyIdentity version="3.1.0.0" processorArchitecture="*"
name="Apache.Procrun.Prunmgr" type="win32" /> 
  <description>Apache Procrun Service Manager</description> 
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">
<security>
<requestedPrivileges>
<requestedExecutionLevel level="requireAdministrator" uiAccess="true" />
</requestedPrivileges>
</security>
</trustInfo>
 <dependency>
 <dependentAssembly>
  <assemblyIdentity type="win32" name="Microsoft.Windows.Common-Controls"
version="6.0.0.0" processorArchitecture="*" publicKeyToken="6595b64144ccf1df"
language="*" /> 
  </dependentAssembly>
  </dependency>
  </assembly>

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message