小编use*_*805的帖子

Maven错误:"更新Maven项目"

我已经使用Maven和Spring安装了Eclipse 32位EE但是当我使用Maven创建新项目时,我不断收到以下错误消息:

An internal error occurred during: "Updating Maven Project".
loader constraint violation: loader 
(instance of org/eclipse/osgi/internal/baseadaptor/DefaultClassLoader) 
previously initiated loading for a different type with name 
"org/apache/maven/project/MavenProject"
Run Code Online (Sandbox Code Playgroud)

谢谢您的帮助

eclipse spring maven

6
推荐指数
1
解决办法
4155
查看次数

错误:找不到与给定名称匹配的资源(在'title'处,值为'@ string/menu_settings')

我正在从"hello to android"一书中练习"数独".我看到有些人和我有同样的问题,但我无法解决.我已经删除了三次这个项目,并从头开始重新创建,但我在下面仍然收到相同的错误消息,即使我正在从书中复制/粘贴.

W/ResourceType( 8592): Bad XML block: header size 29806 or total size 538970658 is larger than data size 0
    C:\java\Sudoku\res\layout\activity_main.xml:6: error: Error: No resource found that matches the given name (at 'text' with value '@string/hello_world').
C:\java\Sudoku\res\menu\activity_main.xml:2: error: Error: No resource found that matches the given name (at 'title' with value '@string/menu_settings').
Run Code Online (Sandbox Code Playgroud)

书中有代码Sudokuv1/res/layout/main1.xml:

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent" >
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/main_title" />
<Button
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/continue_label" />
<Button
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/new_game_label" /> …
Run Code Online (Sandbox Code Playgroud)

java eclipse string android

5
推荐指数
1
解决办法
1万
查看次数

E185:找不到配色方案“solarized.vim”

我在 Xubuntu 上安装了 vim,并使用了 Solarized 方案颜色。在我安装 Pathogen 之前它工作正常。现在,当我在终端中盯着 Vim 时,不断收到以下错误消息:

处理 /usr/share/vim/vimrc 时检测到错误:第 42 行:E185:找不到配色方案 'solarized.vim'

实际上,尽管出现此错误消息,配色方案仍在运行。

下面是树状结构和 .vimrc 文件。

/home/marc/.vim/
/home/marc/.vim/autoload/
/home/marc/.vim/autoload/pathogen.vim

/home/marc/.vim/bundle/
/home/marc/.vim/bundle/solarized/
/home/marc/.vim/bundle/solarized/colors/solarized.vim

/home/marc/.vim/bundle/vim-sensible/
/home/marc/.vim/bundle/vim-sensible/.git/
/home/marc/.vim/bundle/vim-sensible/plugin/sensible.vim
Run Code Online (Sandbox Code Playgroud)

感谢您的帮助。

.vimrc 文件

call pathogen#infect()


set nocompatible


syntax on
filetype plugin indent on


set title                 

set number                
set ruler                
set wrap                  

set scrolloff=3            


set ignorecase            
set smartcase             

set incsearch             

set hlsearch              


set visualbell            
set noerrorbells          


set backspace=indent,eol,start


set hidden






let g:solarized_termcolors=256
"let g:solarized_visibility="high"
"let g:solarized_contrast ="high"
set t_Co=16
set background=dark
colorscheme …
Run Code Online (Sandbox Code Playgroud)

linux vim ubuntu colors

1
推荐指数
1
解决办法
7268
查看次数

服务器Tomcat v7.0无法启动

我正在尝试更新 xml.file 但 Tomcat 不断与 Eclipse Kepler 崩溃 我已经在 2 台不同的 pc 和 Tomcat 7 上尝试过,但我一直收到相同的错误消息。我已经卸载并重新安装了 Eclipse 和 Tomcat,但还是一样。xml文件中存在导致机器崩溃的代码。我有 1 个文件名为 index.jsp,另外 1 个文件名为 login.jsp

我试图用 /loginpage 用斜杠替换 url-pattern loginpage 但我得到了同样的错误。

在更新前工作的代码下方:

<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"  xmlns="http://java.sun.com/xml/ns/javaee" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee  http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID" version="2.5">
<display-name>Deployment</display-name>
<welcome-file-list>
<welcome-file>index.html</welcome-file>
<welcome-file>index.htm</welcome-file>
<welcome-file>index.jsp</welcome-file>
<welcome-file>default.html</welcome-file>
<welcome-file>default.htm</welcome-file>
<welcome-file>default.jsp</welcome-file>
</welcome-file-list>
<servlet>
<servlet-name>Hello</servlet-name>
<servlet-class>demo.Hello</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>Hello</servlet-name>
<url-pattern>/HelloTest</url-pattern>
</servlet-mapping>
Run Code Online (Sandbox Code Playgroud)

在更新后不起作用的代码下方:

<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID" version="2.5">
<display-name>Deployment</display-name>
<welcome-file-list>

<welcome-file>index.html</welcome-file>
<welcome-file>index.htm</welcome-file>
<welcome-file>index.jsp</welcome-file>
<welcome-file>default.html</welcome-file>
<welcome-file>default.htm</welcome-file>
<welcome-file>default.jsp</welcome-file>
</welcome-file-list>

<servlet> …
Run Code Online (Sandbox Code Playgroud)

eclipse jsp tomcat

0
推荐指数
1
解决办法
9303
查看次数

标签 统计

eclipse ×3

android ×1

colors ×1

java ×1

jsp ×1

linux ×1

maven ×1

spring ×1

string ×1

tomcat ×1

ubuntu ×1

vim ×1