Eko Harmawan

Greenhorn
+ Follow
since Apr 17, 2009
Merit badge: grant badges
For More
Indonesia
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Eko Harmawan

Thanks everyone, finally i manage to run the Tomcat. , but there's something bothering me, the command line saying there's some Tomcat action can't be done because the port is used. Despite the action can't be executed, the tomcat running succesfully. Here is the message, please tell me what the action that can't be done. and how to fix it.

20 Mei 09 10:38:34 org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal performanc
e in production environments was not found on the java.library.path: C:\Program
Files\Java\jdk1.6.0\bin;.;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows
;C:\Program Files\Java\jdk1.6.0\bin;C:\Windows\system32;C:\Windows;C:\Windows\Sy
stem32\Wbem;C:\Program Files\ASUS Security Center\ASUS Security Protect Manager\
bin
20 Mei 09 10:38:34 org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8081
20 Mei 09 10:38:34 org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 369 ms
20 Mei 09 10:38:34 org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
20 Mei 09 10:38:34 org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.18
20 Mei 09 10:38:35 org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8081
20 Mei 09 10:38:35 org.apache.jk.common.ChannelSocket init
INFO: Port busy 8009 java.net.BindException: Address already in use: JVM_Bind

20 Mei 09 10:38:35 org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8010
20 Mei 09 10:38:35 org.apache.jk.server.JkMain start
INFO: Jk running ID=1 time=1/23 config=null
20 Mei 09 10:38:35 org.apache.catalina.startup.Catalina start
INFO: Server startup in 595 ms
15 years ago
Oww...That's complicated file...which value that i should change to 8081???
15 years ago
I'm using service installation. Ok, I'll try to change it. Thanks Ulf. I'm totally newbie with JSP and this Tomcat.
15 years ago
It'll be a good material for learning Cory
15 years ago
I'm downloaded tomcat 6.0.18, i extracted it to my disk, and try to start it with startup.bat through my command prompt. It can't be started, and printed exception that telling me the port 8080 is being used. I download the instalation service from tomcat homepage, and running it to install it(to the same directory),but this time with port 8081. Still it not working and telling the same exception. This is the exception

19 Mei 09 21:13:15 org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jdk1.6.0\bin;.;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\Program Files\Java\jdk1.6.0\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Program Files\ASUS Security Center\ASUS Security Protect Manager\bin
19 Mei 09 21:13:15 org.apache.coyote.http11.Http11Protocol init
SEVERE: Error initializing endpoint
java.net.BindException: Address already in use: JVM_Bind<null>:8080
at org.apache.tomcat.util.net.JIoEndpoint.init(JIoEndpoint.java:502)
at org.apache.coyote.http11.Http11Protocol.init(Http11Protocol.java:176)
at org.apache.catalina.connector.Connector.initialize(Connector.java:1058)
at org.apache.catalina.core.StandardService.initialize(StandardService.java:677)
at org.apache.catalina.core.StandardServer.initialize(StandardServer.java:795)
at org.apache.catalina.startup.Catalina.load(Catalina.java:530)
at org.apache.catalina.startup.Catalina.load(Catalina.java:550)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:260)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:412)
...(continued)

Please tell me why and how to solve this problem. Thankyou.
15 years ago
to David Marco: Thank you for the info, did Sun have the list objective for SCWCD just like SCJP. Please tell me where to find it. Thanks.
15 years ago
To Meghna Bhardwaj
1) Not really, but there's some of them.
2)Yes they really tell you how much question you should choose
3)yes, Dnd and multiple choice. In fact multiple choice is easier because the number of slot you have to fill matches with the options given
4)Do ExamLab by Devaka Cooray. It's the best Mock exam.
15 years ago
Passed SCJP with 86%

Whew java fellow in javaranch, i passed SCJP 6.0 with 86% (62 correct from 72), with the following

Declaration 91%
Flow Control 81%
API content 90%
Concurrency 87%
OO Concepts 90%
Collections/Generics 100%
Fundamentals 63%

Well, not bad for 5 weeks of hard work.

My problem lies in Fundamental which scored only 63%. I really got shocked when i found this section only scored this low, because
usually in Devaka Exam Lab, the Fundamental is the highest score, in the final Exam Lab i get 88%. And the Collection
section get 100% while in Devaka's Exam Lab it's only 54%. Is the Fundamentals area is the triciest part??. I thought i can score above 90%,
because on the final Exam Lab i managed to get 69%. Is SCWCD divided in this sections too?? is SCWCD have the same trickiness as SCJP??

Thanks to Javaranch admins, this forum is a great help for self study material. And to rancher that has been answer my question.
Thanks to Kathy Sierra and Bert Bates for your book. It's really rock. I started my study with this book a couple weeks ago. Did you guys wrote a book for SCWCD
Thanks to Devaka Cooray for The Exam Lab 6.0, It's really hard and challenging. Do you plan on to create for the SCWCD version. I'll be your number one customer.

And my next Sun certification is SCWCD. Do any rancher know what is the great book to begin with? Ah, yes, before that I also
need to prepare my TOEFL so that i can continue my class. Do rancher know any "ranch" that is as great as this ranch for TOEFL prep or link to TOEFL Mock Exam??
15 years ago
Thank you for your for prompt response, but there's some concept that i need to make sure.

1)In Line 21 the statement
A[] aa2=(A[])ra1;
is not givin error. That statement attempt to cast Array to other type of array. But the ra1 is an array of runnable.
and in line 21 it tryin to cast an array to other type of array which is not in the same hierarchy type. So, the it a cast to a class type not an interface(array tipe which is object).

2)It still not makin any sense to me. In line 24, the statement doing a cast to array type not to interface type, isn't it?
It should be an error, at least that what i think right now.

Please help me to understand this really new stuff for me.
I took Devaka exam test 2, in question 69 drag and drop which asked me to decide which code compiles and which is not. This is the code


It confuses me why there's a cast that i think it should be compile error but it doesn't. For example why the statement
Runnable r1=(Runnable)a;
is not giving compiler error. I think it should because A is not Runnable then the compiler should compiler for that incompatibility.


The second question, is based from that code that has been modified a little. this is the code

The class C is not declared as a final class. and the code
ra1=(Runnable[]) ca;
is not giving compiler error.

Please explain to me why this two happen. And if it mentioned in K&B book, please mention to me, I might miss it. Thank you very much
thank you devaka. Your exam lab is the best . Your question is insanely hard, but it's really fun. In the first test, I only score 43%.