Hakan Erdogan

Greenhorn
+ Follow
since Jun 30, 2006
jroller.com
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Hakan Erdogan

congratulations, perfect score
10 years ago
Your browser may not support applets, left sidebar of the web console is an applet. Just check the browser compatibality.
10 years ago
Here is the fastest solution:
Merge two login modules into one application-policy and mark their flag as sufficient.

10 years ago
- Make sure your jboss runs on localhost and your rmi port is 1099 (default values)
- Make sure you add jboss client jars in your classpath, if you have standalone application, if it runs on a jboss server no need to add extra jars into your classpath.

If you use -b parameter while starting server (e.g. run.sh -b 192.168.12.16) then use env.setProperty(Context.PROVIDER_URL, "192.168.12.16:1099");

Here is the example:

Properties env = new Properties();
env.setProperty(Context.INITIAL_CONTEXT_FACTORY, "org.jnp.interfaces.NamingContextFactory");
env.setProperty(Context.URL_PKG_PREFIXES, "org.jboss.naming");
env.setProperty(Context.PROVIDER_URL, "localhost:1099");

try {
   InitialContext context = new InitialContext(env);
   HelloWorldRemote helloWorldRemote = (HelloWorldRemote) context.lookup("HelloWorld/remote");
   helloWorldRemote.sayHello("Guest");
} catch (NamingException e) {
   e.printStackTrace();
}
10 years ago
try {
   JarFile jarFile = new JarFile("C:\\log4j.jar");
   Enumeration<JarEntry> enumeration = jarFile.entries();
   while (enumeration.hasMoreElements()) {
      JarEntry jarEntry = (JarEntry) enumeration.nextElement();
      System.out.println(jarEntry.getName()+" "+jarEntry.getSize()+" Bytes");
   }
} catch (IOException e) {
   e.printStackTrace();
}



META-INF/MANIFEST.MF 631 Bytes
META-INF/ 0 Bytes
org/ 0 Bytes
org/apache/ 0 Bytes
org/apache/log4j/ 0 Bytes
org/apache/log4j/Appender.class 676 Bytes
org/apache/log4j/AppenderSkeleton.class 3619 Bytes
org/apache/log4j/AsyncAppender$DiscardSummary.class 1604 Bytes
org/apache/log4j/AsyncAppender$Dispatcher.class 2487 Bytes
...
10 years ago
I've released the Beta version of the plugin.

http://sourceforge.net/projects/jsfidgenerator
12 years ago
JSF
Recently I needed such a plugin because my jsf output was about 15 MB. It was an HTML output format report, and since the runtime generated ids are so long such as id="form:j_id_jsp_1683309375_39:1:j_id_jsp_1683309375_53:0:j_id_jsp_1683309375_54"
the report file was 15 MB. Actually I began to use a reporting tool (jasperreports) after that. Anyway since there isn't any plugin and one of my friend and I decided to write one. It's coming soon, and hosted by sourceforge.

https://sourceforge.net/projects/jsfidgenerator/
12 years ago
JSF
Thanks all,

I studied approximately 2 hours for 20 days using the book that i have mentioned before. After i have finished the book, i did some mock exams(whizlabs).Whizlabs exams are more difficult than SCJP exam. You can find plenty of them on the web. I recommend you, just believe it and study systematical and divide chapters per day and conquer them.

good luck.
14 years ago
You should change one of the ports.

Navigate through <BEA_HOME>\user_projects\domains\YOUR_DOMAIN directory and open "config.xml" file.

Find the ...ListenPort="7001" Name="portalServer"... in the 5th row and replace the ListenPort="8000" or whatever you want.
14 years ago
I recommend everyone two perfect resources:

First one is the "Sun Certified Programmer & Developer for Java 2 Study Guide" (Exam 310-035 & 310-027) by Kathy Sierra, Bert Bates and the second one is the whizlabs' exam simulators (http://www.whizlabs.com/scjp/scjp-1.4-details.html)

Regards.
14 years ago