[AM7.1][NetBeans 5.5] Default configuration
Hi all,
I have some problem with (I mean) the configuration of Access Manager 7.1 provided with NetBeans 5.5... For example : I install basically NetBeans, run the Application Server, edit the index.html into the docroot and set the following code :
<%@page import="com.sun.identity.idm.*, com.iplanet.sso.*,java.util.*" %>
<%
SSOToken token =null;
try
{
SSOTokenManager m = SSOTokenManager.getInstance();
SSOToken t = m.createSSOToken(request);
if (t !=null && m.isValidToken(t))
{
token = t;
}
}
catch (Exception e)
{
}
if (token ==null)
{
response.sendRedirect("http://localhost:8080/amserver/UI/Login?goto=http://localhost:8080");
return;
}
AMIdentity ami =new AMIdentity(token);
%>
Welcome here : <%= ami.getName()+" ("+ami.getType().getName()+")" %>
Happy news, all works very well ! Now I delete the AccessManager folder into C:\Documents and Settings\user\AccessManager so when I go back on the http://localhost:8080/amserver I get the configure.jsp page to config AM7.1 ! I set the config (for example, I set www.amserver.com in place of localhost and C:\Sun\AmData for the AccessManager repository), okay it is configured and when I go on the console, all is fine !
Now, when I go back on the index into the docroot (so I type http://www.amserver.com:8080), I'm redirected to AM (okay !), I log and come back on the index.jps. And at this state, the following line throws an error :
AMIdentity ami =new AMIdentity(token);
It says me that a class is not found :( And it worked very well using the default configuration !!! So I mean it is some properties to change into the ApplicationServer or into the AMConfig.properties but what ? Do you have an idea ?
Best regards
@++
null
null
# 1
Hi,
I pushed my tests a little bit more : I reconfigure the amserver and set the same path for the configuration flat files (C:\Sun\AppServer\domains\domain1\config\amflatfiledir) and with a realm of dc=sun,dc=com but the problem is still the same. It must be a configuration to set into AMServer but which one ? Does anybody know ?
Here is more about the error into the amSMS debug file :
ERROR: ServiceManager::isRealmEnabled unable to initialize
com.sun.identity.security.AMSecurityPropertiesException: AdminTokenAction: FATAL ERROR: Cannot obtain Application SSO token.
Check AMConfig.properties for the following properties
com.sun.identity.agents.app.username
com.iplanet.am.service.password
Thanks & best regards
@++
ps. The class not found that I mentionned before was related to a false path configuration into the domain.xml => corrected !
# 5
Wherever you extract the agent, you'll have a structure similar to SUNWamwl/reloc/j2ee_agents/am_wl81_agent/ etcetera.
Under this, in bin, you have a utility named agentadmin. Navigate to that directory, and hit ./agentadmin --listAgents etc to see agents. Similarly, other options are available (just run ./agentadmin without any arguments). For each agent profile, under the above mentioned directory, you will have directories such as agent_001, agent_002 and so on...In these, in the config directory, lies your AMAgent.properties...
What do you mean when you say that you used the default credentials amadmin / admin123... I mean, where did you enter these credentials?
Thanks again...
Ankush
# 6
Hi & Thanks for the reply,
In ordrer to change the credentials, I delete the AM configuration file under C:\Documents & Settings\user\AccessManager. Then when I go back on http://localhost:8080/amserver I get the configure.jsp and here I can enter a password for AmAdmin.
Another problem I have is that my domain is no more on localhost but on www.wsp.com for example. And when I launch the Calendar sample by calling http://www.wsp.com:8080/CalendarClient, there is an agent (I mean) that redirects me to http://localhost:8080/amserver/UI/Login... I don't even found the j2ee-agents folder under my C:\Sun\AppServer folder... Do you know where it is on windows ?
Best regards
@++