merve klug

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

Recent posts by merve klug

I am asking exactly the same question.
Thanks for any idea.
12 years ago
JSF
hi,
problem has been solved.

when i defining a new object with



i was using the constructer



i changed the code with



in a forum it has been told to me to "deep copy" my arraylists
now i see, i must "deep copy" the "member lists" too.

thanks for all your time
13 years ago
hi,
first of all thanks for your time

is it important what Ayristirici.ayristirmaAlgoritmasi(cka) does?

when i want to debug into ayristirmaAlgoritmasi NetBeans show me only the cka and its sub elements.

thus, could the outer arraylist's other element how could be affected?

i am really confused.

in c maybe i can arrive some place out of array but i m in java (

i am going to make a manual debugging like writing system.out.println() between the lines.

thanks again.
13 years ago
hi,
thanks very much for attention
i wll be out for a few hours but i hope i will be see the problem while preparing sscce,
13 years ago
hi,
yes i am debugging and testing after each iteration of the loops.
and arraylists in the arraylist of arraylists are affected even they are the list in the loop in that iteration or not.
13 years ago

I am turkish and my variable names are turkish. i hope it won't be a problem.

here is the code:



as you can see there is an arraylist of arraylists of "cumlekelimesi" objects.

i fill the arraylist of arraylist with a templist: "geciciListe". i reconstruct the geciciListe with "new ArrayList<CumleKelimesi>()" at every step.
i can see that lists are filled with the values i wanted, all of them are different.
but when i try to manipulate the arraylists in te arraylist one by one, all the arraylists are effected.

here is manupulation code:



after the line:



denemeKombinasyonuCumleKelimesiListesiListesi[0]
denemeKombinasyonuCumleKelimesiListesiListesi[1]
denemeKombinasyonuCumleKelimesiListesiListesi[1]
denemeKombinasyonuCumleKelimesiListesiListesi[3]

all have become affected.

please pay attention
"it is not problem" of denemeKombinasyonuCumleKelimesiListesiListesi[i] and cka both affected,

"the problem is all the elements of arraylist are affected".

please share what you think.
thanks in advance.
13 years ago
Hi,
i have to use a web service with some classes and methods.
I automatically generate the web service code using netbeans, but there are some unused classes. I can do everything that i was told without using some classes.

in a main method i can do everything by right click->code insert->web service client code like this:


and use it:



these lines do everything needed to mod operation.
but there are two classes Mod and ModResponse
BUT what do the Mod and ModResponse classes do?
They are here:
Mod.java



ModResponse.java



What should i do with the unused classes; Mod.java and ModResponse.java?
I am wanted to develop a SOA oriented application, so should i use the unused classes to make my app more SOA oriented?
This is my question. Thanks
13 years ago
the problem has been resolved.
i had remembered to add

but had forgotten to add:


sorry for unnecessary content
13 years ago
JSF
hi,
i tried the code that i found in coderanch archive but i am getting error page with the error:

org.apache.jasper.JasperException: java.lang.IllegalArgumentException: Component javax.faces.component.UIViewRoot is no org.apache.myfaces.custom.tree.HtmlTree

i nearly tried codes on this page:

https://coderanch.com/t/212408/JSF/java/work-tree-component#1015178

i have only changed as:



what should i do
thanks
13 years ago
JSF

Misha Ver wrote:Going back it is completely not clear what do you mean "i uploaded my project.war into www and also web-inf directories". If you have war file, what are you doing with web-inf directories. Just step back and go over Tomcat deployment instructions.



i know i must copy my project.war into www. but when it doesn't work i copy my project.war also into web-inf.

i do not do a manual deployment. i "clean and build" in NetBeans ide, after that a project.war appears in project's dist folder. i copy and paste this into my host's www folder.

i do so because when i do this for my early host, it was working.

Ben Souther wrote: Is this a hosted server or one where you installed Tomcat yourself?

Most hosting companies re-configure Tomcat to fit their deployment model.
They also all, as far as I know, run Tomcat behind another web server like Apache HTTPD, which means that the connector mappings would have to be adjusted in order for you to deploy war files there.



no it is a hosted server, and my service provider send me an automatic e mail that tells my jsp configuration is ok. but it is not and i am waiting for a reply today, the first day of the week.

also, if they have a different deployment model what should i do, should i make a deployment manually in all the cases i need to update my project on the server. it seems fatigue to me.

thanks for replies.

14 years ago


error is here

i deleted the url on the pic
it is sth like

http://www.merveklug.com/project

when i was doing the same work on another server it was working. thus my war file is errorless.

there is a point my project is a jsf project. i use tomcat 6 in local but may the problem be about the tomcat version incompatibility with jsf?

thanks for any replies.
14 years ago
hello,
should not it work when i paste my project.war file into the directory named www under my host on a server which is using tomcat?
i connected to my host by using filezilla. there is no problem. i uploaded my project.war into www and also web-inf directories and call it on browser by typing http://mysite.com/project. but it doesnt work.
should i copy and paste all the classes and jsp's one by one into folders named class and lib?
where am i wrong?
thanks in advance.
14 years ago
issue has been resolved. the problem was string list. i used a string array instead of string list so it is ok now.
thanks
14 years ago
JSF


i delete the upper codes and write lines which is below



i can see the contents of lists.

but i get servlet exception and nullpointer exception

log is here:




how can i debug where is the null pointer?

and any idea to solve the issue would be appreciated.

thanks in advance.
14 years ago
JSF
i have learned that i should use converter or map.
now i am trying something about converter.
thanks
14 years ago
JSF