草庐IT

javax.sound.sampled

全部标签

java.lang.NoSuchMethodError : javax. persistence.OneToMany.orphanRemoval()Z

我收到这个错误:java.lang.NoSuchMethodError:javax.persistence.OneToMany.orphanRemoval()Z这些是我的类路径中的jar:com.sun.faces/jsf-api/jars/jsf-api-2.0.0.jarcom.sun.faces/jsf-impl/jars/jsf-impl-2.0.0.jarorg.apache.myfaces.orchestra/myfaces-orchestra-core20/jars/myfaces-orchestra-core20-1.5-SNAPSHOT.jarcommons-lang

java - 异常 "javax.servlet.jsp.JspException: Broken pipe"表示什么?

我收到以下错误:javax.servlet.jsp.JspException:Brokenpipe现在我看到了关于套接字异常的问题/答案,但这个错误来自不同的包。非常感谢任何帮助。顺便说一句,我在strutsweb应用程序WeblogicNode日志中看到了很多这样的错误,我认为这与最终用户在页面重新加载/执行下一步之前关闭他们的web浏览器有关(数据库事务需要相当多的时间)需要一点时间来执行,从30秒到4分钟不等)。 最佳答案 Iamthinkingthatithastodowithendusersclosingtheirwebb

java - gwt 在你的类路径上测试 : unable to find sample. gwt.xml

我正在为我的应用程序运行gwt测试,这就像一场噩梦,一个接一个地遇到问题,不确定哪里出了问题。首先,我创建了一个虚拟测试用例:publicclassListItemTestextendsGWTTestCase{/***Specifiesamoduletousewhenrunningthistestcase.Thereturned*modulemustincludethesourceforthisclass.**@seecom.google.gwt.junit.client.GWTTestCase#getModuleName()*/@OverridepublicStringgetModu

java - 在 javax.scripting javascript 环境中导入 map

我在javax.scripting映射实现中看到了一些奇怪的行为。在线示例显示了一个example添加到js环境中的列表:ScriptEngineManagermgr=newScriptEngineManager();ScriptEnginejsEngine=mgr.getEngineByName("JavaScript");ListnamesList=newArrayList();namesList.add("Jill");namesList.add("Bob");namesList.add("Laureen");namesList.add("Ed");jsEngine.put("n

java.lang.ClassNotFoundException : javax. servlet.ServletContainerInitializer 异常

我正在编写一些servlet,它们都运行良好Tomcat运行时没有任何问题。然后我编写了一个使用JERSEY的类文件,当我尝试运行它时,Tomcat无法启动。我在Eclipse中安装了Web开发工具插件,每次我点击编译我都会得到java.lang.ClassNotFoundException:javax.servlet.ServletContainerInitializer这是控制台的输出May08,20124:51:36PMorg.apache.catalina.core.AprLifecycleListenerinitINFO:TheAPRbasedApacheTomcatNati

java - 是 javax.naming.InitialContext ThreadSafe

目前,我正在使用以下代码查找普通POJO类的EJB3无状态sessionbean。(我们在JEE5中,所以我们不能在正常的POJO类中注入(inject)无状态sessionBean,我必须使用查找)importjavax.naming.Context;importjavax.naming.InitialContext;importjavax.naming.NamingException;importorg.apache.log4j.Logger;publicObjectgetEJB(StringjndiName){logger.debug("WEBSPHEREEJBLookup:"+

javax.mail.MessagingException : Could not connect to SMTP host: localhost, 端口:25

我在发送电子邮件时遇到问题。javax.mail.SendFailedException:Sendingfailed;nestedexceptionis:javax.mail.MessagingException:CouldnotconnecttoSMTPhost:localhost,port:25;nestedexceptionis:java.net.ConnectException:Connectionrefused:connectatjavax.mail.Transport.send0(Transport.java:219)atjavax.mail.Transport.send(

java - ReSTLet javax.net.ssl.SSLHandshakeException : null cert chain

我正在本地测试客户端和服务器之间的SSL通信。所以我使用OpenSSL命令生成了证书。在cacert文件中添加了此证书。还生成了.p12文件。我在服务器和客户端使用相同的.p12文件。这是服务器代码Serverserver=component.getServers().add(Protocol.HTTPS,port);Seriesparams=server.getContext().getParameters();params.add("keystorePath",".p12filepath");params.add("keystoreType","PKCS12");params.ad

java - "package javax.xml.soap is declared in module java.xml.ws, which is not in the module graph"

所以我在WorkingSoapclientexample获取了SOAP示例,将其放入文件SOAPClientSAAJ.java,并尝试编译它(Debian上的Openjdk9):t@h~/javatest>javacSOAPClientSAAJ.javaSOAPClientSAAJ.java:1:error:packagejavax.xml.soapisnotvisibleimportjavax.xml.soap.*;^(packagejavax.xml.soapisdeclaredinmodulejava.xml.ws,whichisnotinthemodulegraph)1erro

java - 将 javax.xml.ws.Endpoint 与 HTTPS 结合使用

我正在从事一个控制建筑物中的光和暖气的项目。后端(用Java编写)将在MacMini上运行,应该可以通过SOAP访问。我想将这个项目的复杂性保持在最低限度,因为我不希望每个使用它的人都必须设置一个应用程序服务器。所以到目前为止,我一直在使用javax.xml.ws.Endpoint:Endpointendpoint=Endpoint.create(frontendInterface);Stringuri="http://"+config.getHost()+":"+config.getPort()+config.getPath();endpoint.publish(uri);这工作出奇