使用Eclipse的WTP Tomcat服务器调试servlet时,在web.xml中指定相对路径?(Specifying a relative path in web.xml when debugging a servlet with Eclipse's WTP Tomcat Server?)
我正在尝试在web.xml文件中指定相对目录。 我基本上希望它读取“web-inf”下面的“data”文件夹,但我尝试过的任何东西似乎都无法工作。
“/ data”转换为根目录中的数据文件夹(我正在使用Windows)。
“data”转换为“C:\ Program Files \ Eclipes \ data”
“$ {CATALINA_HOME} / [etc ...]”似乎也不起作用。
有任何想法吗?
I'm trying to specify a relative directory in the web.xml file. I basically want it to read the "data" folder underneath "web-inf", but nothing I've tried seems to work.
"/data" translates to the data folder in the root directory (I'm using windows).
"data" translates to "C:\Program Files\Eclipes\data"
"${CATALINA_HOME}/[etc...]" doesn't seem to work either.
Any ideas?
原文:https://stackoverflow.com/questions/2599638
最满意答案
看起来像水手。 在苹果审查改变...
我必须删除所有这些框架才能通过
# SDKs # pod 'FBSDKCoreKit' # pod 'Fabric' # pod 'Crashlytics' # pod 'TwitterKit' # pod 'Firebase/Core' # pod 'OneSignal', '~> 2.4.1' # if you upgrade to newer, please also update to newer non-deprecated methods
然而,该应用程序在此之后无法使用......关键在于其中的一种框架或组合
(请注意,只是删除Facebook和Firebase没有帮助)
看起来是由它引起的
# pod 'Fabric' # pod 'Crashlytics'
Looks like smth. in the Apple review changed...
i had to to remove all those frameworks to pass
# SDKs # pod 'FBSDKCoreKit' # pod 'Fabric' # pod 'Crashlytics' # pod 'TwitterKit' # pod 'Firebase/Core' # pod 'OneSignal', '~> 2.4.1' # if you upgrade to newer, please also update to newer non-deprecated methods
however the app is unusable after that... the key is in one of those frameworks, or combination
(note, just removing Facebook and Firebase didnt helped)
Looks like it is caused by
# pod 'Fabric' # pod 'Crashlytics'
Looks like a temp issue https://forums.developer.apple.com/thread/101367
相关问答
更多-
如何告诉Xcode我的info.plist和.pch文件是哪里(How to tell Xcode where my info.plist and .pch files are)[2022-05-28]
我知道这个答案是回答和关闭的,但是我将在这里添加我的发现,因为它与Xcode 4.2有些不同: 选择你的项目 在中间窗格的左侧,在“目标”下选择您的应用程序 选择“构建设置”选项卡 搜索以下关键字:“info.plist”和“pch” 在这一点上,应该很清楚哪些是你需要修改的。 点击“验证设置”,你就完成了。 Found it. It was in the settings for the Target. Choose Target in the Groups and Files pane on the l ... -
您应该使用InfoPlist.strings文件来定位Info.plist值。 要执行此操作,请转到File->New->File ,在iOS Resource选项卡下选择Strings File ,将其命名为InfoPlist ,然后创建。 打开并插入要本地化的Info.plist值,如: "NSLocationWhenInUseUsageDescription" = "Description of this"; 现在您可以使用翻译本地化InfoPlist.strings文件。 祝你好运! 编辑: 选择 ...
-
理论上是的,虽然我不认为.pch是最好的地方。 我建议将此宏放在您在.pch中导入的Macros.h或类似机制中 #define USE_SOME_RESOURCE ([[[[NSBundle mainBundle] infoDictionary] objectForKey:@"UseSomeResource"] boolValue]) 有关.pch的更多信息,请点击此处 值得注意的是,这仍然会在运行时确定值,而不是在编译时。 如果您希望它在编译时运行,您可能需要编写一个脚本作为构建阶段的一部分,该脚本将 ...
-
试试这个:选择/打开有问题的Info.plist,然后从菜单中执行 查看>属性列表类型> iPhone Info.plist Try this: select/open the Info.plist in question, and then from the menu, do View > Property List Type > iPhone Info.plist
-
我今天遇到了同样的问题,我花了差不多一整天来解决它。 我在stackoverflow上阅读了很多与此相关的问题,发现无论你给Info.Plist文件命名的是什么(比如InfoTarget1.plist),当它构建时,它会转换为产品内部的标准“Info.plist”。 令人惊讶的是,相应的InfoPlist.strings文件(使用自定义名称,例如InfoTarget1Plist.strings)不会发生这种情况。 解决这个问题的方法是创建一个InfoPlist.strings并将其本地化为所需的语言。 这对 ...
-
问题解决了。 我的manager在viewDidLoad()方法内声明为local var,但它应该是一个类级别的属性。 在将manager声明从viewDidLoad()移出后,我的应用程序工作。 不确定manager.requestWhenInUseAuthorization()究竟是如何在幕后工作的,以及为什么在viewDidLoad()定义的manager无法正常工作。 希望知道这些细节的人能够启发我。 Problem solved. My manager was declared as local ...
-
看起来像水手。 在苹果审查改变... 我必须删除所有这些框架才能通过 # SDKs # pod 'FBSDKCoreKit' # pod 'Fabric' # pod 'Crashlytics' # pod 'TwitterKit' # pod 'Firebase/Core' # pod 'OneSignal', '~> 2.4.1' # if you upgrade to newer, please also update to newer non-deprecated methods 然而,该应用程序 ...
-
我通过配置插件的xml ios部分来包含密钥及其各自的值,然后将它们包含在.plist文件中。 I got them to stay by configuring the plugin's xml ios section to include the keys and their respective values then including them in the .plist file.
-
我想到了。 我做错了是用文本编辑器编辑java / pack200。 我最终使用了十六进制编辑器,并在打包之前将“net.java.openjdk.cmd”的包标识符值编辑为唯一的包标识符。 新的包标识符必须与旧标识符的字符长度相同,否则它将无法用于编码。 I figured it out. What I was doing wrong was editing java/pack200 with a text editor. I ended up using a hex editor and edited ...
-
你不能。 您只能从CMake编辑一些Info.plist属性。 在这里显示 但是您可以提供自己的Info.plist模板,以便在CMake中的OSX Bundles中使用。 这是我使用的代码: function(osxBundle bundleName subDirList dependList) processTarget("${bundleName}" APPLE_BUNDLE "${subDirList}" "${dependList}") # Info.plist configu ...