`
YOUNG918
  • 浏览: 184642 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论
文章列表

HttpClient

    博客分类:
  • java
From http://www.blogjava.net/Alpha/archive/2007/01/22/95216.html HttpClient 学习整理 HttpClient 是我最近想研究的东西,以前想过的一些应用没能有很好的实现,发现这个开源项目之后就有点眉目了,令人头痛的cookie问题还是有办法解决滴 ...
ANT BUILD MEMORY ERROR:   [clientgen] The system is out of resources. [clientgen] Consult the following stack trace for details. [clientgen] java.lang.OutOfMemoryError: Java heap space   FIX: -Xms768m -Xmx1024m -XX:PermSize=256m -XX:MaxPermSize=256m  
ORA-12514: TNS:listener does not currently know of service requested in connect descriptor 修改\oracle\product\11.1.0\db_1\network\admin\listener.ora文件 加上     SID_LIST_LISTENER = (SID_LIST = (SID_DESC = (SID_NAME = 你的数据库名称) (ORACLE_HOME = D:\oracle\product\10.1.0\db_1) ...
weblogic:weblogic8.1 数据库:MySql5.0 java:java1.4 1.配置jndi 现在先将weblogic的环境搭建好。先找到自己建立的工程下修改。如我是mydomian工程名。在下面可以找到startweblogic.cmd,编辑此文件找到Set classpath=,为weblogic添加MySql的jar路径。最好放在最前面 set CLASSPATH=C\:mysql.jar;%WEBLOGIC_CLASSPATH%;%POINTBASE_CLASSPATH%;%JAVA_HOME%jrelibt.jar;%WL_HOME%serverli ...
EJB 层基本搞定,以前测试 EJB 也都是写一个 application 测试的,都没问题。 昨天把 WEB 层框架做好开始写代码,但怪事就来了。打开 JSP 就出现下面的错误 type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception javax.servlet.ServletException: javax/ejb/EJBObject          ...
weblogic.management.ManagementException: [Management:141266]Parsing Failure in config.xml: javax.xml.namespace.QName; local class incompatible: stream classdesc serialVersionUID = 4418622981026545151, local class serialVersionUID = -9120448754896609940 at weblogic.management.provider.intern ...
debug: http://docs.codehaus.org/display/JETTY/Debugging+with+the+Maven+Jetty+Plugin+inside+Eclipse Debugging with the Maven Jetty Plugin in Eclipse Step 1 Go to the Run/External Tools/External Tools ..." menu item on the "Run" menu bar. Select "Program" and click th ...
from:  http://bandaidprogramming.blogspot.com/2008/03/maven-webapps-debug-with-eclipse-and.html   I like using Maven. I also like using Step-Trace-Debugging. So here is what I do to accomplish this using Tomcat, Maven and Eclipse. Required: Eclipse Sysdeo Tomcat Plugin http://www.eclipseplug ...
修改pom.xml,添加如下配置:   <build> <plugins> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>tomcat-maven-plugin</artifactId> <version>1.0</version> <configuration> ...
pom.xml中<build>下添加如下代码:   <build> <plugins> <plugin> <groupId>org.codehaus.cargo</groupId> <artifactId>cargo-maven2-plugin</artifactId> ...
Tomcat6.0配置SSL 一、为了节约时间,我这里就只根据我的配置过程进行描述,读者根据各自情况自己分析。 1、在命令行中进入%CATALINA_HOME%/bin目录下执行以下命令: (1)%CATALINA_HOME%/bin> keytool -genkey -alias tomcat -keyalg RSA -keypass changeit -storepass changeit -keystore server.keystore -validity 3600 此时会在%TOMCAT_HOME%/bin下生成server.keystore 文 ...
create or replace procedure GetRecords(name_out out varchar2,age_in in varchar2) as     begin       select NAME into name_out from test where AGE = age_in;     end;        create or replace procedure insertRecord(UserID in varchar2, UserName in varchar2,UserAge in va ...
事务处理是所有大型数据库产品的一个关键问题,各数据库厂商都在这个方面花费了很大精力,不同的事务处理方式会导致数据库性能和功能上的巨大差异。 事务处理也是数据库管理员与数据库应用程序开发人员必须深刻理解 ...
原文地址:http://www.21jn.net/html/85/n-285.html Servlet监听器用于监听一些重要事件的发生,监听器对象可以在事情发生前、发生后可以做一些必要的处理。 接口: 目前Servlet2.4和JSP2.0总共有8个监听器接口和6个Event类,其中HttpSessionAttributeListener与 HttpSessionBindingListener 皆使用HttpSessionBindingEvent;HttpSessionListener和 HttpSessionActivationListener则都使用HttpSessionEv ...
方式一: 四舍五入 double   f   =   111231.5585; BigDecimal   b   =   new   BigDecimal(f); double   f1   =   b.setScale(2,   BigDecimal.ROUND_HALF_UP).doubleValue(); 保留两位小数 方式二: java.text.DecimalFormat   df   =new   java.text.DecimalFormat(”#.00″); df.format(你要格式化的数字); 例:new java.text.DecimalForm ...
Global site tag (gtag.js) - Google Analytics