首页
\
问答
\
Eclipse 4.2(Juno)在Tomcat 7中无法使用所选类型创建服务器(Eclipse 4.2 (Juno) 'Cannot create a server using the selected type' in Tomcat 7)
Eclipse 4.2(Juno)在Tomcat 7中无法使用所选类型创建服务器(Eclipse 4.2 (Juno) 'Cannot create a server using the selected type' in Tomcat 7)
我已经安装:
- 日食小丑
- java-6-openjdk-i386(在Eclipse中选择为默认JRE)
- 的java -7-的openjdk-I386
当我尝试在Eclipse中添加一个新的服务器Tomcat7时,我得到这个消息
“无法使用所选类型创建服务器”
我不能继续。 添加Tomcat6服务器没问题。
我读这个问题,但没有工作类似的问题
I have installed:
- eclipse juno
- java-6-openjdk-i386 (selected as default JRE in Eclipse)
- java-7-openjdk-i386
When I try to add a new server Tomcat7 in Eclipse I get this message
'Cannot create a server using the selected type'
and I can not continue. No problem adding Tomcat6 server.
I read this question but it didn't worked Similar Question
原文:https://stackoverflow.com/questions/13423593
更新时间:2023-05-30 20:05
最满意答案
表达你的扩展是公开的而不是其所有成员更清楚:
身高:
public extension Foo { func bar() { ... } func baz() { ... } func qux() { ... } }
过度
extension Foo { public func bar() { ... } public func baz() { ... } public func qux() { ... } }
It's clearer to express that your extension is public, rather than all its members:
Prefer:
public extension Foo { func bar() { ... } func baz() { ... } func qux() { ... } }
over
extension Foo { public func bar() { ... } public func baz() { ... } public func qux() { ... } }
相关问答
更多-
电脑二级考试 是考access 还是VPF[2022-06-08]
access -
表达你的扩展是公开的而不是其所有成员更清楚: 身高: public extension Foo { func bar() { ... } func baz() { ... } func qux() { ... } } 过度 extension Foo { public func bar() { ... } public func baz() { ... } public func qux() { ... } } It's clearer to expres ...
-
更新12.2016 HTML现在是SwiftLint中的有效报告格式 原始答案 文档没有说明HTML中的报告,也许您错误地将此工具误认为是http://tailor.sh中的Tailor工具? 报告格式选项(在.swiftlint.yml中指定)是:记者:“xcode”#report type(xcode,json,csv,checkstyle,junit) UPDATE 12.2016 HTML is now valid reporter format in SwiftLint Original Answ ...
-
如何从xcode卸载swiftlint,或关闭其警告(How to uninstall swiftlint from xcode, or to turn its warnings off)[2023-05-31]
如果您希望有可能控制禁用/启用哪个规则,并为给定规则设置警告和错误的阈值,只需在项目目录中创建一个.swiftlint.yml文件... 看看这篇文章: https://swifting.io/blog/2016/03/29/11-swiftlint/ If you want to have a possibility to control which rule is disabled/enabled and to set thresholds for warnings and errors for a g ... -
缩短行数: message: NSLocalizedString( ["\nYou will be requested to Use %@ to Sign In. ", "%@ doesn't share any information about you. The ", "permission is required to post your Live Video."].joined() ) 或更好,使用vacawama的多线解决方案: let message = "" ...
-
非法指令:4“$ {PODS_ROOT} / SwiftLint / swiftlint”(Illegal instruction: 4 “${PODS_ROOT}/SwiftLint/swiftlint”)[2024-03-01]
SwiftLint 0.18.x引入了重大改变。 他们用薯类取代YamlSwift 。 Yams比YamlSwift更严格地解释YAML,因此,如果您的.swiftlint.yml配置以前与SwiftLint一起使用,但并不完全符合YAML 1.2标准 ,则需要修复这些验证错误。 在你的(我的)情况下,每个映射条目(用冒号表示)需要在它自己的行上: large_tuple: warning: 3 type_name: max_length: warning: 42 variable_name: m ... -
Xcode共享运行脚本在工作区中的项目之间构建阶段(Xcode share run script build phase between projects in a workspace)[2022-10-05]
我找到了一个解决方案,但它是特定于SwiftLint的解决方案,而不是任何运行脚本。 我的解决方案似乎工作得很好,就是选择我通常构建的目标,只为该目标设置运行脚本,但是让运行脚本指定--path为一个目录。 由于SwiftLint在所有子目录中递归运行,因此工作正常: swiftlint lint --path "$SRCROOT"/.. I found a solution, but it is a solution specific to SwiftLint, not any run script. M ... -
swiftlint开放式支撑规则(swiftlint open brace rule)[2023-07-13]
你的(\S+.*\{)正则表达式匹配任何不是空白的字符(一个或多个reptitions - \S+ ),然后是除了linebreak之外的任何字符( 包括非空格 - 这是你的问题的根本原因),以及{ 。 你可以用 \S[ \t]+\{ 请参阅正则表达式演示 。 细节 : \S - 任何非空白字符 [ \t]+ - 一个或多个( + ) 水平 whitesapces(可以用[\t\p{Zs}]+替换,其中\p{Zs}匹配所有水平Unicode空格而没有选项卡)。 \{ - 文字{符号。 Your (\S+. ... -
如何识别是否使用swiftlint规则创建错误/警告(How to identify if the error/warning is created with swiftlint rules)[2022-07-25]
这很容易。 [下面的蓝色部分不是来自swiftlint,其余部分来自它。] 它说“Shell脚本调用警告” 在消息的末尾,它为您提供在括号内触发的规则 (function_body_length) 我只是寻找以parens结尾的消息。 It's easy. [The blue part below is NOT from swiftlint, and the rest below it IS.] It says "Shell Script Invocation Warning" At the end of ... -
当你在Cocoapod项目中时,你需要在Podspec中编写你的项目对SwiftLint的依赖,而不仅仅是添加它: Pod::Spec.new do |spec| ... spec.dependency 'SwiftLint' end Just wanted to mention that this was solved. The issue is that the boilerplate xcconfig files have header search paths encoded in them ...