简体   繁体   English

创建新项目时,Eclipse中未显示Spring MVC选项(版本-Kepler 4.3)?

[英]Spring MVC option not showing in Eclipse While Creating New Project (version - Kepler 4.3)?

I have try to create new spring MVC project. 我已经尝试创建新的Spring MVC项目。 File -> New -> Spring Project After that i got this window : File-> New-> Spring Project之后,我得到了这个窗口:

新春计划

but i didnot get the option Spring MVC project. 但是我没有选择Spring MVC项目。 The below error i got in my Error log section. 我在“错误日志”部分中遇到了以下错误。 My firewall is also off only. 我的防火墙也仅关闭。


ERROR LOG: eclipse.buildId=4.3.0.M20130911-1000 java.version=1.7.0-ea java.vendor=Sun Microsystems Inc. BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US Framework arguments: -product org.eclipse.epp.package.jee.product Command-line arguments: -os win32 -ws win32 -arch x86 -product org.eclipse.epp.package.jee.product Warning Sun Dec 15 11:13:40 IST 2013 Connection to https://raw.github.com/SpringSource/spring-data-gemfire-sts-templates/master/builds/descriptor.xml failed on sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target. 错误日志: eclipse.buildId = 4.3.0.M20130911-1000 java.version = 1.7.0-ea java.vendor = Sun Microsystems Inc.BootLoader常数:OS = win32,ARCH = x86,WS = win32,NL = en_US Framework参数:-product org.eclipse.epp.package.jee.product命令行参数:-os win32 -ws win32 -arch x86 -product org.eclipse.epp.package.jee.product警告Sun Dec 15 11:13: 40 IST 2013在sun.security.validator.ValidatorException上与https://raw.github.com/SpringSource/spring-data-gemfire-sts-templates/master/builds/descriptor.xml的连接失败:PKIX路径构建失败:sun .security.provider.certpath.SunCertPathBuilderException:无法找到到请求目标的有效证书路径。 Retry attempt 0 started javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target at sun.security.ssl.Alerts.getSSLException(Unknown Source) at sun.security.ssl.SSLSocketImpl.fatal(Unknown Source) at sun.security.ssl.Handshaker.fatalSE(Unknown Source) at sun.security.ssl.Handshaker.fatalSE(Unknown Source) at sun.security.ssl.ClientHandshaker.serverCertificate(Unknown Source) at sun.security.ssl.ClientHandshaker.processMessage(Unknown Source) at sun.security.ssl.Handshaker.processLoop(Unknown Source) at sun.security.ssl.Handshaker.process_record(Unknown Source) at sun.security.ssl.SSLSocketImpl.readRecord(Unknown Source) at sun.security.ssl.SSLSocketImpl.performInitialHandshake(Unknown Source) at sun.security.ssl.SSLSocketImpl.writeRecord(Unknown Source) at sun.security.ssl.AppOutputStream.write(Unknown Source) at org.ap 重试尝试0已启动javax.net.ssl.SSLHandshakeException:sun.security.validator.ValidatorException:PKIX路径构建失败:sun.security.provider.certpath.SunCertPathBuilderException:无法在sun.security.ssl上找到到请求目标的有效证书路径。 .sun.security.ssl上的.Alerts.getSSLException(未知源).sun.security.ssl.Handshaker.fatalSE(未知源)处的sun.security.ssl.Handshaker.fatalSE(未知源)在sun.security.ssl.Handshaker.processLoop(未知源)处的sun.security.ssl.ClientHandshaker.processMessage(未知源)处的sun.security.ssl.ClientHandshaker.serverCertificate(未知源) sun.security.ssl.SSLSocketImpl.readRecord(未知源)处的.process_record(未知源)sun.security.ssl.SSLSocketImpl.writeRecord(未知源)处的sun.security.ssl.SSLSocketImpl.performInitialHandshake(未知源)处org.ap上的.security.ssl.AppOutputStream.write(未知源) ache.http.impl.io.AbstractSessionOutputBuffer.flushBuffer(AbstractSessionOutputBuffer.java:147) at org.apache.http.impl.io.AbstractSessionOutputBuffer.flush(AbstractSessionOutputBuffer.java:154) at org.apache.http.impl.AbstractHttpClientConnection.doFlush(AbstractHttpClientConnection.java:278) at org.apache.http.impl.AbstractHttpClientConnection.flush(AbstractHttpClientConnection.java:283) at org.apache.http.impl.conn.AbstractClientConnAdapter.flush(AbstractClientConnAdapter.java:197) at org.apache.http.protocol.HttpRequestExecutor.doSendRequest(HttpRequestExecutor.java:260) at org.apache.http.protocol.HttpRequestExecutor.execute(HttpRequestExecutor.java:125) at org.apache.http.impl.client.DefaultRequestDirector.tryExecute(DefaultRequestDirector.java:715) at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:520) at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:906) at org.apache.http.impl.client.AbstractHttpClient.ex org.apache.http.impl.io.AbstractSessionOutputBuffer.flush(AbstractSessionOutputBuffer.java:154)上的ache.http.impl.io.AbstractSessionOutputBuffer.flushBuffer(AbstractSessionOutputBuffer.java:147)在org.apache.http.impl.AbstractHttpClientConnection处org上的org.apache.http.impl.AbstractHttpClientConnection.flush(AbstractHttpClientConnection.java:283)的doFlush(AbstractHttpClientConnection.java:278)org的org.apache.http.impl.conn.AbstractClientConnAdapter.flush(AbstractClientConnAdapter.java:197) org.apache.http.protocol.HttpRequestExecutor.execute(HttpRequestExecutor.java:125)上的.apache.http.protocol.HttpRequestExecutor.doSendRequest(HttpRequestExecutor.java:260)org.apache.http.impl.client.DefaultRequestDirector.tryExecute (DefaultRequestDirector.java:715)在org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:520)在org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:906) org.apache.http.impl.client.AbstractHttpClient.ex ecute(AbstractHttpClient.java:805) at org.eclipse.ecf.provider.filetransfer.httpclient4.HttpClientRetrieveFileTransfer.performConnect(HttpClientRetrieveFileTransfer.java:1074) at org.eclipse.ecf.provider.filetransfer.httpclient4.HttpClientRetrieveFileTransfer.openStreams(HttpClientRetrieveFileTransfer.java:621) at org.eclipse.ecf.provider.filetransfer.retrieve.AbstractRetrieveFileTransfer.sendRetrieveRequest(AbstractRetrieveFileTransfer.java:879) at org.eclipse.ecf.provider.filetransfer.retrieve.AbstractRetrieveFileTransfer.sendRetrieveRequest(AbstractRetrieveFileTransfer.java:570) at org.eclipse.ecf.provider.filetransfer.retrieve.MultiProtocolRetrieveAdapter.sendRetrieveRequest(MultiProtocolRetrieveAdapter.java:106) at org.eclipse.equinox.internal.p2.transport.ecf.FileReader.sendRetrieveRequest(FileReader.java:422) at org.eclipse.equinox.internal.p2.transport.ecf.FileReader.read(FileReader.java:273) at org.eclipse.equinox.internal.p2.transport.ecf.RepositoryTransport.stream(Repository 在org.eclipse.ecf.provider.filetransfer.httpclient4.HttpClientRetrieveFileTransfer.performConnect(HttpClientRetrieveFileTransfer.java:1074)处的ecute(AbstractHttpClient.java:805)在org.eclipse.ecf.provider.filetransfer.httpclient4.HttpClientRetrieveFileTransfer.openStreams(HttpClient4。 java:621)在org.eclipse.ecf.provider.filetransfer.retrieve.AbstractRetrieveFileTransfer.sendRetrieveRequest(AbstractRetrieveFileTransfer.java在org.eclipse.equinox.internal.p2.transport.ecf.FileReader.sendRetrieveRequest(FileReader.java:422)在org.eclipse.ecf.provider.filetransfer.retrieve.MultiProtocolRetrieveAdapter.sendRetrieveRequest(MultiProtocolRetrieveAdapter.java:106) org.eclipse.equinox.internal.p2.transport.ecf.RepositoryTransport.stream(Repository.eclipse.equinox.internal.p2.transport.ecf.FileReader.read(FileReader.java:273) Transport.java:172) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.springsource.ide.eclipse.commons.internal.core.net.P2TransportService.stream(P2TransportService.java:139) at org.springsource.ide.eclipse.commons.core.HttpUtil.stream(HttpUtil.java:165) at org.springsource.ide.eclipse.commons.content.core.ContentManager.readFromUrl(ContentManager.java:326) at org.springsource.ide.eclipse.commons.content.core.ContentManager.refresh(ContentManager.java:387) at org.springframework.ide.eclipse.wizard.template.DownloadDescriptorJob.run(DownloadDescriptorJob.java:42) at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121) Caused by: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException Transport.java:172),位于sun.reflect.NativeMethodAccessorImpl.invoke0(本地方法),位于sun.reflect.NativeMethodAccessorImpl.invoke(未知源),位于sun.reflect.DelegatingMethodAccessorImpl.invoke(未知源),位于java.lang.reflect.Method org.springsource.ide.eclipse.commons.internal.core.net.P2TransportService.stream(P2TransportService.java:139)上的.invoke(未知源),org.springsource.ide.eclipse.commons.core.HttpUtil.stream( org.springsource.ide.eclipse.commons.content.core.ContentManager.readFromUrl(ContentManager.java:326)上的HttpUtil.java:165)org.springsource.ide.eclipse.commons.content.core.ContentManager.refresh( org.springframework.ide.eclipse.wizard.template.DownloadDescriptorJob.run(DownloadDescriptorJob.java:42)上的ContentManager.java:387)org.eclipse.jface.operation.ModalContext $ ModalContextThread.run(ModalContext.java:121)上的DownloadDescriptorJob.run(DownloadDescriptorJob.java:42)引起原因:sun.security.validator.ValidatorException:PKIX路径构建失败:sun.security.provider.certpath.SunCertPathBuilderException : unable to find valid certification path to requested target at sun.security.validator.PKIXValidator.doBuild(Unknown Source) at sun.security.validator.PKIXValidator.engineValidate(Unknown Source) at sun.security.validator.Validator.validate(Unknown Source) at sun.security.ssl.X509TrustManagerImpl.validate(Unknown Source) at sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(Unknown Source) at sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(Unknown Source) ... 37 more Caused by: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target at sun.security.provider.certpath.SunCertPathBuilder.engineBuild(Unknown Source) at java.security.cert.CertPathBuilder.build(Unknown Source) ... 43 more :无法在sun.security.validator.PKIXValidator.engineValidate(未知源)的sun.security.validator.PKIXValidator.doBuild(未知源)处找到指向请求目标的有效证书路径(未知源) Source)位于sun.security.ssl.X509TrustManagerImpl.validate(未知源),位于sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(未知源),位于sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(未知源)... 37更多原因创建人:sun.security.provider.certpath.SunCertPathBuilderException:无法在java.security.cert.CertPathBuilder.build上的sun.security.provider.certpath.SunCertPathBuilder.engineBuild(Unknown Source)处找到到请求目标的有效证书路径。 )...另外43个

MY Eclise Preferences Settings: 我的Eclise首选项设置: 在此处输入图片说明

This could be related to a bug in sts if you are behind an NTLM proxy like me. 如果您像我这样的NTLM代理,这可能与sts中的错误有关。

https://issuetracker.springsource.com/browse/STS-3647 https://issuetracker.springsource.com/browse/STS-3647

  1. From sts dashboard in Eclipse choose the Install Extension option . 在Eclipse的sts仪表板中, 选择Install Extension选项
  2. Check the Show Installed box on the top right side of the screen. 选中屏幕右上方的“显示已安装”框。
  3. Check the Spring IDE box and install it. 选中Spring IDE框并安装。
  4. Restart Eclipse and you are ready to go 重新启动Eclipse,就可以开始了

What worked for me was to: 对我有用的是:

  1. Switch to Spring perspective. 切换到Spring透视图。
  2. File -> New -> Spring Project 文件->新建-> Spring项目
  3. Now I see the 'Spring MVC Project option'. 现在,我看到“ Spring MVC项目选项”。

Using Eclipse Luna with Spring IDE 3.6 plugin. 将Eclipse Luna与Spring IDE 3.6插件结合使用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM