When catching Java exceptions, we usually want to print the stack trace. Sometimes we also want the detailed message to be used in business related logic. e.g. sending the detailed exception message by email. So we need to convert the result of e.printStackTrace() to string: private static String getStackTrace(Exception e) { StringWriter stringWriter= ...
server { listen 80; server_name nginx.org www.nginx.org; root /data/www; location / { ...
Error - java.lang.NoClassDefFoundError: javax/xml/ws/WebServiceRef was thrown when running my web application on myeclipse based on Resin 3.1. It is due to a MyEclipse (I am using My Eclipse 5.5.0 GA) defect. http://www.myeclipseide.com/index.php?name=PNphpBB2&file=viewtopic&t=21403&start=0&postdays=0&postorder=asc&highlight= Workaround: add them under the jar files under lib folder in the boot configuration of Resin in MyEclipse. Also there is ...
There was error thrown when accessing Java web application using Tiles in Resin environment. We came across java.lang.ArrayIndexOutOfBoundsException when using Resin 4.0.8. The root cause is a defect from Resin 4.0.8. (http://bugs.caucho.com/view.php?id=4104) . The solution is upgrade the Resin to version 4.0.9
I came across this issue when executing one unit test. From the log info, it seems that this class is not found in activation.jar. Yes, this class is not there. But the root cause is - the reference of javaee.jar in myeclipse. After removing the reference to JavaEE 5 package ...
We can use the normal java way to generate RSA key. (for security reason, we'd better generate 2048 bytes RSA key) But the problem is the most popular way to store RSA key is keeping them as DER format. You can get some detailed info below: http://www.cryptosys.net/pki/rsakeyformats.html Also if you want the java code ...
Error message: commit -m "commit message." files RA layer request failed svn: Commit failed (details follow): svn: PROPFIND request failed on '/repo/path/!svn/vcc/default' svn: PROPFIND of '/repo/path/!svn/vcc/default': Could not read status line: connection was closed by server. (http://example.com) How to fix? Looking at my SVN configurations I could only find the JavaHL option, no SVNKit available.
System Requirements For this installation I used the following: Windows Server 2003 Enterprise Edition Internet Information Services (IIS) 6.0 Sun Java Runtime JRE 5.0 Update 2 Apache Jakarta Tomcat version 5.5.9 The JK Tomcat Web Server Connectors 1. Install the JDK and Tomcat and set the environment variable. 2. Configure JK Download JK from http://archive.apache.org/dist/tomcat/tomcat-connectors/jk/binaries/win32/jk-1.2.14/isapi_redirect-1.2.14.exe Setup the file. (It’s better that ...
The following procedure is recommended for enhancing the overall IBM Cognos Now! network performance. Note: This procedure requires restarting the JBoss application server. Steps In the \server\default\deploy\jbossweb-tomcat50.sar directory, locate and open the server.xml file. Locate the block listed under the <!-- A HTTP/1.1 Connector on ...
Get the Physical Data Model 1. Menu Operation File, Reverse Engineer , Database, New Phycial Data Model 2. Connection Add a connect to the target database 3. Choose tables to generate the models Generate the Java Code 1. Menu Operation Tools , Generate Object-Oriented Model, Detail, O/R Mapping, Enable Transformations, Extended Model Definitions, O/R Mapping, Hibernate To be continued.