Bahadir Mert Uzan

Greenhorn
+ Follow
since Mar 27, 2009
Merit badge: grant badges
For More
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 Bahadir Mert Uzan

Manning: JavaFX in Action might be a good book to start I think but web examples and courses is quite deep. "In action" books feel like head first
without silly comments ever page.They are quite entertaining sadly not up to date (because Java update something in weekly bases and it
is hard to keep up for any writer).

If you would like to add more books that seem worthy please fill up this for.
14 years ago

David Newton wrote:"Jar modification"? "Deployed" means "what jars are on the classpath when you execute the program."



I deploy them with these libraries attached.
(these are from libraries in Netbeans Spring Framework2.5)
commons-logging-1-1.jar
cglib-2.2.jar
spring2.5.jar

and these 2 that solved the problem

aspectjrt.jar
aspectweaver.jar
14 years ago

Rendi Artawijaya wrote:

David Newton wrote:Looks like you're missing library dependencies.



just add this library : aspectjrt.jar ---> (spring-framework-2.5.6.SEC01\lib\aspectj)

Hope this could help.



Yes I add both aspectjrt.jar and aspectweaver.jar and it works. Strange I thought these would have resided in Spring Libraries that Netbeans have.
Thanks everyone.
About Deployment I don't know the details but netbeans usually do jar modification and other stuff it self. I don't think it does anything fancy.
14 years ago

David Newton wrote:What's "soring-2.5.jar"? In any case, when you say "everything", it'd really be a LOT more useful if you just told us what you're deploying, rather than making us do all the work.



A very simple java application with java classes. Its about 9 simple classes and I am trying to learn AOP. I ll show you how easy the classes are.


and the other class
14 years ago

David Newton wrote:What libraries are you deploying?



Spring Framework 2.5 -
commons-logging-1.1.jar
cglib-2-2.jar
-spring-2.5.jar (sorry it's a little late in here)
alse everything from Spring-framework-2.5.6.Sec01 zip
14 years ago

David Newton wrote:Looks like you're missing library dependencies.



I have both used netbeans 2.5 Spring library, downloaded the zip version with dependencies and add it to my project.
Doesn't solve it. :(
14 years ago
Hello everyone, I am very new to the Spring development and I want to learn in without going through expensive courses.
Because of that I bought a book Manning Spring in Action 2nd Edition. That book being much more understandable than other references
I try to follow every example with Netbeans IDE which supports Spring 2.5 library. Now I am stuck in the 2nd exercise of the first chapter
of the book.Here is the class I hope you are


Try catch is for my self because otherwise it throws a huge number of errors. So far I can catch this error

This is the XML code that should do the trick but it doesn't



I am a person who can understand things properly in their execution. So if you can help me that will be brilliant.
For the full code source code is available in http://www.manning.com/walls3/ and in that source code its chapter 1's knights example.
Once again a simple solution which I can do with Netbeans will be very appreciated.
14 years ago
I am using a mysql connector and its an individual jar in libary folder.
Also I unrared the mysql connector char and put it into classes folder which I really dont want to do that
Is there a way out of this.

When i do the unraring part of connector I got a securty error.
If you can tell me away to solve these problems you basicly solved 80% of them.

these are the security errors.
com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

Last packet sent to the server was 0 ms ago.
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at com.mysql.jdbc.Util.handleNewInstance(Util.java:406)
at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1074)
at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2120)
at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:723)
at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at com.mysql.jdbc.Util.handleNewInstance(Util.java:406)
at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:302)
at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:282)
at java.sql.DriverManager.getConnection(Unknown Source)
at java.sql.DriverManager.getConnection(Unknown Source)
at View.CardApplet.read(CardApplet.java:39)
at View.CardApplet.init(CardApplet.java:27)
at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

Last packet sent to the server was 0 ms ago.
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at com.mysql.jdbc.Util.handleNewInstance(Util.java:406)
at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1074)
at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:335)
at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2043)
... 15 more
Caused by: java.net.SocketException: java.security.AccessControlException: access denied (java.net.SocketPermission 127.0.0.1:3306 connect,resolve)
at com.mysql.jdbc.StandardSocketFactory.unwrapExceptionToProperClassAndThrowIt(StandardSocketFactory.java:404)
at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:265)
at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:284)
... 16 more
14 years ago
Yet another question from me

Here is my applet which runs well with netbeans but fails in a browser.


Basicly it connects to a database and send statement to another class to deal.

My problem when I run it doesn't relaize MySql-connector jar and makes an error

java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at View.CardApplet.read(CardApplet.java:36)
at View.CardApplet.init(CardApplet.java:26)
at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)

How can i force the jar to work? Thank you
14 years ago
Hi there. I am trying hard to create an applet in a servlet base enviorment. Here is my question.

With the help of glassfish I manage to make a connection to a database(basicly Database pooling)
and then I want to connect this to my applet that I will use in one of my web page. Do you have any
tips for that ?

If you can write a simple code or a good tutorial I would be very glad.

Also if you recomend a better way like using Servlets I would very much appreciate.
14 years ago
Thank you very much for the details. I though i was doing that by using different classes. I had my own class that does the scanning but they couldn't do it. Instead I follow server method and let applet read the file and send it to scanner.
14 years ago
Hi there Java Gurus

I am bombing you with questions but I need help

I read a text file using a class called scanner and then build objects using the information(Text is in the same folder with class files)
Then I build a various list to send it into my JPanel.
Then I build an JApplet that holds my panel, when I start the project it runs smoothly but when i put into an html page
scanning class causes an error and cant find the text file.
I understand that this is a security feature of applets but how can I get rid of it.
My applet simply adds panel which uses 4 other objects and swing feautures and nothing more.
Also the web page is just this


Thanks and more thanks if you can send me codes
14 years ago
Hello My name is Mert from UK

I am trying to build an Applet that needs a list inside to run. I have a list that I build through mysql server in ServletContextListener
What i want to do is to get this list and put it into an applet. I know how to get context object but i dont know how to put it into applet.
Also I have no idea where to use applet other that putting JPanels inside them.
My only need is to display dynamic pictures from the list to the web browser and applet seems to
be the easiest of all.
I would very much appreached if you can write up some jsp and applet code, not single one of my examples are worthy to show.

14 years ago