Re: "Variable contained illegal space" Error on CMP Bean deploy????
This was due to having a custom primary key class and specifying both and in the ejb-jar.xml Once I removed the , it deployed without a problem. Mike - Original Message - From: "Mike Shoemaker" <[EMAIL PROTECTED]> To: "Orion-Interest" <[EMAIL PROTECTED]> Sent: Thursday, May 02, 2002 8:19 AM Subject: "Variable contained illegal space" Error on CMP Bean deploy > Anyone run into this error? What does it mean? > > Thanks > Mike > >
RE: Unsubscription and autoreplies
NEITHER ONE OF THOSE WORK!!! I HAVE BEEN TRYING FOR WEEKS TO GET OFF THIS LIST! -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Magnus Rydin Sent: Thursday, May 02, 2002 12:30 AM To: Orion-Interest Subject: Unsubscription and autoreplies Please use the unsubscribe function at our site for unsubscription or send a mail to [EMAIL PROTECTED] with a body of "unsubscribe" to unsubscribe, do not bother the readers of this list with unsubscribe requests. Please turn off auto-reply functionality for messages sent from this list if you are using your mail-clients auto-reply functionality. There is no standard header to identify an auto-reply by, and therefore its hard for us to scan for such messages successfully (besided the varity of words used in subject by different clients, there is also varity amongst different locale versions of these clients and so on). With regards, Magnus Rydin
Re: "Variable contained illegal space" Error on CMP Bean deploy????
Mike - I've never come across this error, but perhaps if you provide more information (maybe your ejb-jar.xml) we can take a look. Cheers Ray Mike Shoemaker <[EMAIL PROTECTED]> wrote: Anyone run into this error? What does it mean? ThanksMikeDo You Yahoo!? Yahoo! Health - your guide to health and wellness
Re: what is LDAP ???
a tutorial http://java.sun.com/products/jndi/tutorial/ldap/models/v2.html and a ldap programming in Java http://developer.java.sun.com/developer/Books/ldap/ HTH Pino At 16.37 02/05/2002, gusl wrote: >Hi all, >What is LDAP ??? How to use iplanet directory server ??? >Who know some articles or links about that ???
RE: how to shutdown orion app server?
You can shut it down by binding the the ApplicationServerAdministrator. /* * OrionServerAdmin.java * * Created on May 1, 2002, 10:55 PM */ package com.objectparadigms.util.admin; import com.objectparadigms.util.exception.InitializationException; import com.evermind.server.administration.ApplicationServerAdministrator;import java.rmi.RemoteException;import java.util.Arrays;import java.util.List;import java.util.Properties;import javax.naming.Context;import javax.naming.InitialContext;import javax.rmi.PortableRemoteObject; /** * * @author Michael C. Han * @version $Revision: 1.1 $ */public class OrionServerAdmin { private static final String _ORION_CTX_FACTORY = "com.evermind.server.rmi.RMIInitialContextFactory"; private ApplicationServerAdministrator _admin; private static final String _HOST_PARAM = "-h"; private static final String _PORT_PARAM = "-p"; private static final String _USERNAME_PARAM = "-u"; private static final String _PASSWORD_PARAM = "-pwd"; private static final String _ACTION_PARAM = "-action"; private static final String _STOP_ACTION = "stop"; private static final String _RESTART_ACTION = "restart"; private static String _getParam(String paramKey, List paramsList) { int index = paramsList.indexOf(paramKey); if (index == -1) { showUsage(); } return (String)paramsList.get(index + 1); } private static void showUsage() { System.out.println("Usage: OrionServerAdmin -h " + "-p -u -pwd " + " -action "); System.exit(1); } public static final void main(String[] args) { if (args.length != 10) { showUsage(); } List argsList = Arrays.asList(args); String host = _getParam(_HOST_PARAM, argsList); String port = _getParam(_PORT_PARAM, argsList); String userName = _getParam(_USERNAME_PARAM, argsList); String password = _getParam(_PASSWORD_PARAM, argsList); String action = _getParam(_ACTION_PARAM, argsList); try { OrionServerAdmin svrAdmin = new OrionServerAdmin(host, port, userName, password); if (action.equals(_RESTART_ACTION)) { svrAdmin.restart(); } else if (action.equals(_STOP_ACTION)) { svrAdmin.stop(); } else { showUsage(); } } catch (Exception e) { e.printStackTrace(); } } /** Creates new OrionServerAdmin */ public OrionServerAdmin(String host, String port, String userName, String password) throws InitializationException { Properties props = new Properties(); props.setProperty(Context.INITIAL_CONTEXT_FACTORY, _ORION_CTX_FACTORY); String url = "ormi://" + host + ":" + port; props.setProperty(Context.PROVIDER_URL, url); props.setProperty(Context.SECURITY_PRINCIPAL, userName); props.setProperty(Context.SECURITY_CREDENTIALS, password); try { Context initialCtx = new InitialContext(props); Object obj = initialCtx.lookup("java:comp/ServerAdministrator"); _admin = (ApplicationServerAdministrator) PortableRemoteObject.narrow(obj, ApplicationServerAdministrator.class); } catch (Exception e) { throw new InitializationException(e.toString()); } } public void stop() throws RemoteException { _admin.shutdown("localhost", true); } public void restart() throws RemoteException { _admin.restart("localhost"); } } -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of marsSent: Wednesday, May 01, 2002 9:02 PMTo: Orion-InterestSubject: Re: how to shutdown orion app server? use the follow command killall -15 java - Original Message - From: gusl To: Orion-Interest Sent: Sunday, April 28, 2002 11:25 AM Subject: how to shutdown orion app server? Hi all, I want to know how to shutdown orion app server ??? Use kill ???(under linux)
SV: Remove me
Please use the unsubscribe function at our site for unsubscription or send a mail to [EMAIL PROTECTED] with a body of "unsubscribe" to unsubscribe, do not bother the readers of this list with unsubscribe requests. > -Ursprungligt meddelande- > Från: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]] För rajender anand > Skickat: den 2 maj 2002 14:35 > Till: Orion-Interest > Ämne: Remove me > > > Please remove me from the orion interest list > > thanks > rajender anand > _ > Click below to visit monsterindia.com and review jobs in India or > Abroad > http://monsterindia.rediff.com/jobs >
"Variable contained illegal space" Error on CMP Bean deploy????
Anyone run into this error? What does it mean? Thanks Mike
Remove me
Please remove me from the orion interest list thanks rajender anand _ Click below to visit monsterindia.com and review jobs in India or Abroad http://monsterindia.rediff.com/jobs
SV: Initial context problem.
Hi Alex, Thanks - i got an answer from Scott that solved the problem. I did not want to burden the list so i did not send reply to the list, as i do now. No the code is not the correct code, but pseudo real code - that is a bit copy-paste and a bit of editing. It was only ment to be informative. Heh and no the code in the catch block is not there. I just pasted it so simulate/explain the problem. Next time (if a such arises) ill be sure to paste correct code :) cheers Jesper -Oprindelig meddelelse- Fra: Alex Paransky [mailto:[EMAIL PROTECTED]] Sendt: 1. maj 2002 17:06 Til: Orion-Interest Emne: RE: Initial context problem. Not sure if the code you pasted is correct, however, you are missing a "new" keyword in front of the InitialContext(). Also, in your second try/catch block you are missing a call to new InitialContext(). I might be picky, but the source code you posted is not at all the source code that you are using (unless are you using a strange version of the Java Complier). Can you isolate your problem into a small piece of code that works, and try to post again? Thanks. -AP_ http://www.alexparansky.com Java/J2EE Architect/Consultant http://www.myprofiles.com/member/profile/apara_personal -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Jesper Rasmussen Sent: Wednesday, May 01, 2002 3:10 AM To: Orion-Interest Subject: Initial context problem. Hi all, Im trying to make an application which askes for the login and password to connect to the application deployed on 1.5.4 orion server. It works fine if i specify the correct login(admin). However if I uses some wrong cridentials(admin1) i get an exception which also is fine. HOWEVER when i try to login again, without restarting the application) using the correct info I still get the old exception (javax.naming.AuthenticationException: Invalid username/password for beansApp (admin1)). If i close the app and login again with the correct it works fine. to me it seems like the enviroment i pass to the constructor of InitialContext is ignored the second time. I have tried to use close() to no avail. Does anyone have a clue?? Thanks! cheers JEsper --more or less the code that cause the bug! server="ormi://127.0.0.1/beansApp"; login="admin1"; password="123"; env = new java.util.Hashtable(); env.put("java.naming.provider.url",server); env.put("java.naming.factory.initial","com.evermind.server.ApplicationCl ientInitialContextFactory"); env.put("java.naming.security.principal",login); env.put("java.naming.security.credentials",password); InitialContext initial; try { initial = InitialContext(env); catch(NamingException e) { try { login="admin"; env = new java.util.Hashtable(); env.put("java.naming.provider.url",server); env.put("java.naming.factory.initial","com.evermind.server.ApplicationCl ientInitialContextFactory"); env.put("java.naming.security.principal",login); env.put("java.naming.security.credentials",password); } catch(NamingException ex) { //ACK. chould not get here!!! }
what is LDAP ???
Hi all, What is LDAP ??? How to use iplanet directory server ??? Who know some articles or links about that ???