asirob civokviz

Greenhorn
+ Follow
since Jun 12, 2004
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 asirob civokviz

I found it!!!

problem was here


sort="natural" caused ClassCastException... I guess that is because I used HashSet and it can not be sorted?!!

Now it works...

thanks everyone for their effort
ok,
here is a mapping for JCatFile (problematic class and mapping):



Here is corresponding java file




and here is when it reports exception (excerpt):



thanks in advance...
well you should make catalina.sh executable (if on *nix this is not done automatically).

well if you got ClassNotFoundException then you sure did not set CLASSPATH correctly
18 years ago
Thank you Patrick for your quick response but unfortunately that is not the problem because, as I already wrote, I do everything by the book (tutorial) so I did use Set instead of HashSet

If I understood correctly I can do following (has to do with AbstrFile class previously explained:

how AbstrFile is created is not important and assume
that session is an instance of Hibernate session


and all AbstrFile instances will be saved to database???
There is no need to save each one but it is sufficient to save parent???
This is how I do this in my code. And I did cascade all operations.

thanks again
I am newbie with Hibernate and I am doing pretty much everything by the book

I have this class

public class AbstrFile{

... other fields ...
HashSet files = new HashSet();

... methods ....
}

This is a kind of representation of File in file system and every
file can have many children (placed in "files" field).

But when I try to do

session.save(AbstrFile f) // of course this is just pseudo code I got
this:

any ideas???


Do not save images in database if that is not absolutely necessary!!!
It is much better (IMHO) to save images in file system and only paths to
them in database!!

regards...
hi,

I just read resin's license and not sure if I can use it as
any other GPL software!!! I am pretty much confused so can
anyone help me with terms of use!

thnx
18 years ago
hi everyone...

i use JNDI to read some configuration variables... but problem is
that sometimes it works but sometimes it does not (without reconfiguring
tomcat in between). I use 5.5.7 on java 1.5.0_02 (and I tried this on
Windows and Linux).

Here is definition in application's web.xml file:

<env-entry>
<env-entry-name>uri</env-entry-name>
<env-entry-value>jdbc:mysql://localhost:3306/webadmin</env-entry-value>
<env-entry-type>java.lang.String</env-entry-type>
</env-entry>

I try to read it with:

Context initCtx = new InitialContext();
Context envCtx = (Context) initCtx.lookup("java:comp/env");
uri = (String)envCtx.lookup("uri");

sometimes it is ok... but sometimes I got next message:

Name java:comp is not bound in this Context

I do not know if this is some misconfiguration or what?
any ideas?

thnx
18 years ago
Hi everyone...

I need to use blowfish in some project of mine.. but I can not find
any examples on using it with Java....

can anyone share some experiences or links with me....


greetings
18 years ago
well it simply means that they can not longer distribute jmx libary.
You need to download it yourself and copy that .jar file!!!

Regards


www.cnt.co.yu
19 years ago
well,
I am not sure about ASP on Tomcat but I bet you can find out is that possible on the net! I can answer on second part of your question:
yes your code will be portable if you move to another os. That was the whole idea about Java (standardization)!!!

greetings
19 years ago
sorry,
just saw what I said... My mistake
19 years ago
it is possible but problem is that you run two different applications and
every in it's own JVM instance!!! So classical singleto pattern wouldnot
work. You should try to find some pattern which is "network aware". Think
I saw some article on this a month ago at http://www.theserverside.com

search
19 years ago
$CATALINA_HOME/conf/web.xml

go to the end of file!

You will see welcome-file-list section...

pick what to add and what to delete....
In your case just add new <welcome-file>login.jsp</welcome-file>

enjoy...
19 years ago
really? what is it?

tibco == tomcat ???
19 years ago