Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » ATG Dynamo 5.6.1 debug in Eclipse 3.0 help!
ATG Dynamo 5.6.1 debug in Eclipse 3.0 help! [message #181457] Thu, 07 October 2004 14:43 Go to next message
Eclipse UserFriend
Originally posted by: paul.kim.healthallies.com

Hello Everyone,

I am trying to get ATG Dynamo 5.6.1 to debug in Eclipse 3.0 but I am having
trouble setting up the environment. I created a java application with a
main.class file that calls atg.nucleus.Nucleus.main(configpath). When I
debug/run this app, get errors like "cannot parse property value
'{atg.dynamo.server.home}/sessionswap" of
'/atg/dynamo/service/j2ee/EJBContainer.instanceStoreDirector y' as a
java.io.File java.lang.IllegalArgumentException: {atg.dynamo.server.home}.

I am assuming this error is thrown because I do have the java_arg of
atg.dynamo.server.home set to c:\atg\dynamo5.6.1\home ?

I tried setting up a JAVA_ARGS variable in the ENVIRONMENT tab in the java
application as:
JAVA_ARGS -Datg.dynamo.server.home=c:/atg/dynamo5.6.1/home

but this doesn't seem to work.

Even though I get more errors and such, I can get my website up and running.
HOWEVER, it seems to not be using my /home/locallib directory as I have made
modifications in there (have jsessionid name changed to sessionid).

Any help would be MUCH appreciated. If anyone has created a successful
main.class file, could you paste it here?

Thank you in advance,

Paul
Re: ATG Dynamo 5.6.1 debug in Eclipse 3.0 help! [message #182624 is a reply to message #181457] Fri, 15 October 2004 06:30 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: vasanthd+newsgroups.gmail.com

Hi Paul,

Here is the setup I am using to debug applications deployed in Dynamo 5.6.1.

In postEnvironment.bat (\ATG\Dynamo5.6.1\home\localconfig) file I added the
following:

set
JAVA_ARGS=-Xdebug -Djava.compiler=NONE -Xbootclasspath:%JAVA_HOME%\jre\lib\r
t.jar;%JAVA_HOME%\lib\tools.jar -Xnoagent -
Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n %JAVA_ARGS%

This is to enable remote debugging. In Eclipse debug options I selected
"Remote Java Application". This works for me.

Hope this helps.

Vasanth
http://www.vasanthdharmaraj.com




"Paul" <paul.kim@healthallies.com> wrote in message
news:ck429o$r24$2@eclipse.org...
> Hello Everyone,
>
> I am trying to get ATG Dynamo 5.6.1 to debug in Eclipse 3.0 but I am
having
> trouble setting up the environment. I created a java application with a
> main.class file that calls atg.nucleus.Nucleus.main(configpath). When I
> debug/run this app, get errors like "cannot parse property value
> '{atg.dynamo.server.home}/sessionswap" of
> '/atg/dynamo/service/j2ee/EJBContainer.instanceStoreDirector y' as a
> java.io.File java.lang.IllegalArgumentException: {atg.dynamo.server.home}.
>
> I am assuming this error is thrown because I do have the java_arg of
> atg.dynamo.server.home set to c:\atg\dynamo5.6.1\home ?
>
> I tried setting up a JAVA_ARGS variable in the ENVIRONMENT tab in the java
> application as:
> JAVA_ARGS -Datg.dynamo.server.home=c:/atg/dynamo5.6.1/home
>
> but this doesn't seem to work.
>
> Even though I get more errors and such, I can get my website up and
running.
> HOWEVER, it seems to not be using my /home/locallib directory as I have
made
> modifications in there (have jsessionid name changed to sessionid).
>
> Any help would be MUCH appreciated. If anyone has created a successful
> main.class file, could you paste it here?
>
> Thank you in advance,
>
> Paul
>
>
Re: ATG Dynamo 5.6.1 debug in Eclipse 3.0 help! [message #183371 is a reply to message #182624] Fri, 22 October 2004 14:59 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: paul.kim.healthallies.com

Thank you Vasanth,

I did find a complete solution. It is at: atg.public.developer.das off the
devnews.atg.com newsgroup. You'll see my post 'ATG Dynamo 5.6.1 debug in
Eclipse 3.0'. Effectively, someone told me that I can add the java_args by
adding it to my main class.
System.setProperty("atg.dynamo.home","c:\\ATG\\Dynamo5.1.1\\home\\ ");
System.setProperty("atg.dynamo.server.home",
"c:\\ATG\\Dynamo5.1.1\\home\\servers\\");
System.setProperty("atg.dynamo.root","c:\\ATG\\Dynamo5.1.1\\ ");

System.setProperty("java.security.policy",
"c:\\ATG\\Dynamo5.1.1\\home\\lib\\java.policy");

System.setProperty("java.protocol.handler.pkgs","com.sun.net.ssl.internal.ww
w.protocol|atg.net.www.protocol");
System.setProperty("java.naming.factory.url.pkgs","atg.jndi.url ");

System.setProperty("java.library.path","c:\\ATG\\Dynamo5.1.1\\DAS\\os_specif
ic_files\\i486-unknown-win32\\ice");

I did find another way to do this:
In the java application ->Arguments->VM arguments

-Datg.dynamo.server.home=c:/atg/dynamo5.6.1/home -Datg.dynamo.root=c:/atg/dy
namo5.6.1 -Djava.security.policy=c:/atg/dynamo5.6.1/home/lib/java.poli cy -Da
tg.dynamo.display= -Djava.protocol.handler.pkgs=atg.net.www.protocol -Djava.
naming.factory.url.pkgs=atg.jndi.url
-Xms128m -Xmx256m

Here is the main class I came up with:


public class Dynamo5Main extends Object {
/** Creates new dynamoDebug */
public Dynamo5Main() {
}
final static private boolean workBench = false;
/**
* The main entry point if this application. It sets up the "CONFIGPATH"
* for Dynamo, and then starts the Nucleus
**/
public static void main(String [] pArgs) throws java.io.IOException
{
String[] configPath;

try
{
// Start the Dynamo Nulceus
configPath=new String[]
{

" c:\\atg\\dynamo5.6.1\\DAS\\config\\config.jar;c:\\ATG\\Dynam o5.6.1\\DAS\\co
nfig\\oca-ldap.jar;c:\\atg\\Dynamo5.6.1\\DAS-UI\\config\\uic onfig.jar;locall
ib;localconfig"
};
atg.nucleus.Nucleus.main(configPath);

// Doesn't work correctly
if (workBench == true)
{
configPath=new String[]
{
"-local ",

" c:\\ATG\\Dynamo5.6.1\\DAS\\config\\config.jar;c:\\ATG\\Dynam o5.6.1\\DAS-UI\
\config\\uiconfig.jar;localconfig"
};

atg.ui.devui.DeveloperToolsApp.main(configPath);
atg.nucleus.Nucleus.main(configPath); // above wouldn't
compile in D5
}

}
catch(Exception e)
{
System.out.println("Exception occurred" + e);
e.printStackTrace();
}
}
}






"Vasanth Dharmaraj" <vasanthd+newsgroups@gmail.com> wrote in message
news:cko8me$oir$1@eclipse.org...
> Hi Paul,
>
> Here is the setup I am using to debug applications deployed in Dynamo
5.6.1.
>
> In postEnvironment.bat (\ATG\Dynamo5.6.1\home\localconfig) file I added
the
> following:
>
> set
>
JAVA_ARGS=-Xdebug -Djava.compiler=NONE -Xbootclasspath:%JAVA_HOME%\jre\lib\r
> t.jar;%JAVA_HOME%\lib\tools.jar -Xnoagent -
> Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n %JAVA_ARGS%
>
> This is to enable remote debugging. In Eclipse debug options I selected
> "Remote Java Application". This works for me.
>
> Hope this helps.
>
> Vasanth
> http://www.vasanthdharmaraj.com
>
>
>
>
> "Paul" <paul.kim@healthallies.com> wrote in message
> news:ck429o$r24$2@eclipse.org...
> > Hello Everyone,
> >
> > I am trying to get ATG Dynamo 5.6.1 to debug in Eclipse 3.0 but I am
> having
> > trouble setting up the environment. I created a java application with a
> > main.class file that calls atg.nucleus.Nucleus.main(configpath). When I
> > debug/run this app, get errors like "cannot parse property value
> > '{atg.dynamo.server.home}/sessionswap" of
> > '/atg/dynamo/service/j2ee/EJBContainer.instanceStoreDirector y' as a
> > java.io.File java.lang.IllegalArgumentException:
{atg.dynamo.server.home}.
> >
> > I am assuming this error is thrown because I do have the java_arg of
> > atg.dynamo.server.home set to c:\atg\dynamo5.6.1\home ?
> >
> > I tried setting up a JAVA_ARGS variable in the ENVIRONMENT tab in the
java
> > application as:
> > JAVA_ARGS -Datg.dynamo.server.home=c:/atg/dynamo5.6.1/home
> >
> > but this doesn't seem to work.
> >
> > Even though I get more errors and such, I can get my website up and
> running.
> > HOWEVER, it seems to not be using my /home/locallib directory as I have
> made
> > modifications in there (have jsessionid name changed to sessionid).
> >
> > Any help would be MUCH appreciated. If anyone has created a successful
> > main.class file, could you paste it here?
> >
> > Thank you in advance,
> >
> > Paul
> >
> >
>
>
Re: ATG Dynamo 5.6.1 debug in Eclipse 3.0 help! [message #528567 is a reply to message #183371] Wed, 21 April 2010 02:01 Go to previous message
Eclipse UserFriend
Hi,

I'm new to ATG. I'm trying to Creating a Nucleus Component. However I'm unable to do that.

Can any one explain me the below steps:
Run <ATG7dir>/home/bin/dynamoEnv to set up the environment of your command
line console.

How to set the environment variable and how to start Nucleus.

Please help me!!!!!!!!!!!!!!!!!!!!!!!

Thanks in advance......

please not my email id: vinodkumarsingh_2000@hotmail.com
Previous Topic:Line wrapping for long field definitions
Next Topic:ATG
Goto Forum:
  


Current Time: Thu Jul 03 20:23:55 EDT 2025

Powered by FUDForum. Page generated in 0.03184 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top