Ola pessoal,
Estou seguindo um tutorial (<a href="http://www.objectlearn.com/support/docs/cmp.jsp">http://www.objectlearn.com/support/docs/cmp.jsp</a>) para criar meu primeiro EJB-CMP. Ao rodar o cliente recebi a seguinte mensagem:
log4j:ERROR Failed to create directory structure: /log
log4j:ERROR setFile(null,false) call failed.
java.io.FileNotFoundException: /log/boot.log (No such file or directory)
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.<init>(FileOutputStream.java:179)
at java.io.FileOutputStream.<init>(FileOutputStream.java:102)
at org.apache.log4j.FileAppender.setFile(FileAppender.java:272)
Percebi que ele esta criando os logs em “/log”, onde mudo isso, dessa forma posso espicificar um path adequado.
2)Apenas para rodar, acabei criando o /log. Ao executar novamente o cliente, recebi a seguinte mensagem, esta por sinal nao tenho ideia do que pode ser:
java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
java.rmi.ServerException: EJBException:; nested exception is:
javax.ejb.EJBException: null; CausedByException is:
A CMP field that is a member of the primary key can only be set in ejbCreate [EJB 2.0 Spec. 10.3.5].
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:292)
…
Obrigado desde ja, qq ajuda sera bem-vinda
Daniel