-
1. Re: Using uuidKeyGeneratorFactory in JSP failes
raphead Oct 29, 2003 1:20 AM (in response to raphead)Nobody a clue?!
-
2. Re: Using uuidKeyGeneratorFactory in JSP failes
jonlee Oct 29, 2003 5:46 AM (in response to raphead)org.jboss.ejb.plugins.keygenerator.KeyGenerator
org.jboss.ejb.plugins.keygenerator.uuid.UUIDKeyGenerator
public class UUIDKeyGenerator
implements KeyGenerator
It is part of the server branch of the source. The full implmentation is packed in jboss.jar. The KeyGenerator interface and factory can be found the the JBoss clients. Since we are not really sure what your intent is, you will either need to provide more information or look at the source areas we have provided and go from there.
Hope it helps. -
3. Re: Using uuidKeyGeneratorFactory in JSP failes
raphead Oct 29, 2003 8:41 AM (in response to raphead)Hi and thanks for the reply!
That helped because now I know which KeyGenerator is generated here. I only had uuid-key-generator.sar as a reference of packages and so on.
Straight forward I imported 'org.jboss.ejb.plugins.keygenerator.*' additionally but I keep getting:
-------------------------------------------------------------------------
[javac] Compiling 1 source file
[javac] C:\JAVA_APPS\jboss\server\default\work\MainEngine\localhost\myweb\index_jsp.java:297: cannot resolve symbol
[javac] symbol : variable KeyGenerator
[javac] location: class org.apache.jsp.index_jsp
[javac] KeyGenerator = uuidKeyGeneratorFactory.getKeyGenerator();
[javac] ^
[javac] 1 error
---------------------------------------------------------------------------
So does it mean all libs in .../server/default/lib
Are not visible by the application?
However, I only need a UUID keygenerator and as JBOSS includes one, why should I bring in another one.
Maybe my way of trying to do this is not the appropriate one?!
Thx -
4. Re: Using uuidKeyGeneratorFactory in JSP failes
jonlee Oct 29, 2003 4:08 PM (in response to raphead)You need to declare an instance of the object I think.
KeyGenerator myKeyGenerator = uuidKeyGeneratorFactory.getKeyGenerator(); -
5. Re: Using uuidKeyGeneratorFactory in JSP failes
raphead Oct 30, 2003 1:41 AM (in response to raphead)Hi Jon,
You were 100% right... incompetent user error :)
I'm not yet really used to Java
Many Thanks