Snmp programming...

I want to write a simple network management application which can grab the statistics from Cisco router using SNMP.
Any body have any experience writing such program?
Which pogramming languages should I use? C++/VB,..?

There is an extremely popular freeware already available to do this:
http://oss.oetiker.ch/mrtg/

Similar Messages

  • Snmp program in eclipse 3.2 WTP ...?

    hi,
    i have to develop snmp program. i am using java 1.5 and eclipse 3.2 WTP. i already have package for javax.management.* , and i have to do coding with that.
    But java 1.5 is using JMX. and eclipse is also using that. i import javax.management package in eclipse, but for snmp coding it is using com.sun.jmx.snmp.* not my imported pacakge java.management.snmp.* .
    so, how i can use my package javax.management in eclipse ?
    (javax.management has sub package snmp, monitor, relation, etc. )
    its urgent, pls help me...
    thanks in advance.

    [First hit looks promising...|http://www.google.com/search?hl=en&q=eclipse+java+tutorial&btnG=Google+Search]

  • How to Java SNMP Programming

    Hello all,
    I'm new to SNMP and I am trying to create an SNMP agent using JAVA to monitor my applications, I'm looking for tutorials on SNMP java programming and code samples, any suggestions/guiding/advising is welcomed.
    Regards,
    Hussam Galal

    I'm not new to SNMP, and I wouldn't attempt to write an agent in Java. You need access to low level information in the system, which Java is unable to get. A subagent is an easier task, you could look at using the the Agent X subagent protocol. Many agents support this. There is an AgentX implementation written in Java.
    Here's a self contained class that logs traps received from a Linksys router. It knows the format of the trap and doesn't use the MIB, it only deals with the bits of BER that it needs. To go further you would need to write a MIB compiler and a BER interpreter.
    import java.io.*;
    import java.net.*;
    import java.text.*;
    import java.util.*;
    public class LinksysTrap extends Thread
         DatagramSocket dgSocket = null;
         Thread recvThread = null;
         boolean running = false;
         String filefmt;
         String enterprise;
         String fname="";
         File outfile=null;
         FileWriter outWrite = null;
         SimpleDateFormat stf = new SimpleDateFormat("yyyy/MM/dd HH:mm:ss");
         SimpleDateFormat sdf;
         // the packet
         byte [] data = new byte[32768];
         int ofs, end;               // values for packet
         // current token
         int tlen, ttype, tofs;     // values for current token
         // trap fields
         int ver;
         String comm;
         String ent;
         String ipa;
         int gtt, stt, tt;
         String oid;
         String val;
         LinksysTrap(String e, String p)
              enterprise = e;
              filefmt = p;
              sdf = new SimpleDateFormat(filefmt);
         private boolean startup(int port)
              try
                   dgSocket = new DatagramSocket(port);
                   System.out.println("bound to port="+port);
                   if(openFile(new Date()))
                        running = true;
                        this.start();
                   else dgSocket.close();
              catch(IOException e){e.printStackTrace(); running = false;}
              return running;
         public void run()
              doRecv();
         private void doRecv()
              DatagramPacket pkt = new DatagramPacket(data,32768);
              while(running)
                   try
                        dgSocket.receive(pkt);
                        end = pkt.getLength();
                        ofs = 0;
                        // System.out.println("packet received from:"+pkt.getAddress()+" port="+pkt.getPort()
                        // +" length="+end);
                        decode();
                   catch(IOException e){e.printStackTrace(); running = false;}
              dgSocket.close();
         static public void main(String [] args)
              int port = 162;
              String ent ="1.3.6.14.1152.21.2.2.1";
              String filefmt="'traps'yyyyMM'.csv'";
              for(int i = 0; i<args.length; i++)
                   String arg = args;
                   if(arg.length() > 2)
                        char c0 = arg.charAt(0);
                        if(c0 == '-')
                             char c1 = arg.charAt(1);
                             arg = arg.substring(2);
                             switch(c1)
                                  case 'p':          // port
                                       try{port = new Integer(arg).intValue();}
                                       catch(NumberFormatException exc){badCmd();}
                                       break;
                                  case 'e':          // enterprise
                                       ent = arg;
                                       break;
                                  case 'f':          // file prefix
                                       filefmt = arg;
                                       break;
                                  default:
                                       badCmd();
                                       break;
                        }else badCmd();
                   }else badCmd();
              LinksysTrap st = new LinksysTrap(ent, filefmt);
              if(!st.startup(port))System.exit(0);
         private static void badCmd()
              System.out.println("LinksysTrap -pport -eenterprise -ffilenameformat");
              System.out.println(" default -p162 -e1.3.6.14.1152.21.2.2.1 -f'traps'yyyyMM'.csv'");
              System.exit(0);
         private void decode()
              try
                   getSeq(0x30);               // packet
                   ver = getInt(0x02);          // version
                   comm = getString();          // community
                   getSeq(0xa4);               // trap pdu
                   ent = getOID();               // enterprise
                   if(! ent.equals(enterprise))
                        System.out.println("trap ignored from enterprise="+ent);
                        return;
                   ipa = getIPA();               // ip address
                   gtt = getInt(0x02);          // generic trap type
                   stt = getInt(0x02);          // specific trap type
                   tt = getInt(0x43);          // time up
                   getSeq(0x30);               // varbind list
                   getSeq(0x30);               // varbind
                   oid = getOID();               // trap oid
                   val = getString();          // trap value
              catch (IllegalArgumentException e)
                   System.out.println("decoding error ofs="+ofs);
                   display(data,0,end);
                   e.printStackTrace();
              // System.out.println("trap received from enterprise="+ent);
              // System.out.println(" val="+val);
              record(val);
         private boolean openFile(Date dt)
              String fn = sdf.format(dt);
              if(!fn.equals(fname))
                   if(outWrite != null)
                        try{outWrite.close();}      // close output writer
                        catch(IOException ce){ce.printStackTrace();}
                        finally {outWrite = null;}
                   fname = fn;
                   System.out.println("Opening file="+fname);
                   outfile = new File(fname);
                   try
                        outWrite = new FileWriter(fname,true);
                        if(0 == outfile.length())
                             outWrite.write("Timestamp,Direction,Source Address,Source Port,Destination Address,Destination Port\n");
                             outWrite.flush();
                   catch (IOException e)
                        e.printStackTrace();
                        if(outWrite != null)
                             try{outWrite.close();}catch(Exception ce){}
                             outWrite= null;
              return outWrite != null;
         private void record(String val)
              Date dt = new Date();
              String ts = stf.format(dt);
              if(openFile(dt))
                   String cs="";
                   int i = 0;
                   int j = 0;
                   int z = val.length();
                   if(val.charAt(0) == '@')i = 1;
                   while(i < z)
                        if(' '==val.charAt(i))i++;
                        else
                             j = val.indexOf(' ',i);
                             if(j == -1)j = z;
                             cs += ","+val.substring(i,j);
                             i=j+1;
                   if(cs.charAt(cs.length()-1) != '\n')cs+='\n';
                   cs = ts+cs;
                   System.out.println("cs="+cs);
                   try
                        outWrite.write(cs);
                        outWrite.flush();
                   catch(IOException we){we.printStackTrace();}
              else running = false;
         private void getSeq(int type)
         {getHeader(type);}
         // get an integer, this should deal with sign but doesn't yet ********* TBD
         private int getInt(int type)
              getHeader(type);
              int len = tlen;
              int r = 0;
              while(0 < len--)r = (256*r)+getUByte();
              return r;
         private String getString()
              getHeader(0x04);
              String s = new String(data, tofs, tlen);
              ofs+=tlen;
              return s;
         private String getOID()
              String s = "";
              getHeader(0x06);
              int i = getUByte();          // get first byte
              if(i >= 40){s = "1."; i -=40;}
              s += (i+".");
              int len = tlen-1;
              while(0 < len--)
                   i = getUByte();
                   s+=i;
                   if(i>1)s+=".";
              return s;
         private String getIPA()
              String s = "";
              getHeader(0x40);
              int i;
              int len = tlen;
              while(0 < len--)
                   i = getUByte();
                   s+=i;
                   if(i>1)s+=".";
              return s;
         // get token header
         private void getHeader(int type)
              int i,n;
              ttype = getUByte();     // token type
              if(type != 0 && type != ttype)
                   System.out.println("ofs="+ofs+" ttype="+ttype);
                   throw new IllegalArgumentException("invalid type");
              n = getUByte();
              if(n >= 128)
                   i = n-128;
                   n = 0;
                   while(0 < i--)n=(n*256)+getUByte();
              tofs = ofs;
              tlen = n;
              // System.out.println("tofs="+tofs+ " tlen="+tlen+" ttype="+ttype);
         // get an unsigned byte from data
         private int getUByte()
              if(ofs >= end)throw new IllegalArgumentException("data too short");
              int b = data[ofs++];
              if(b < 0)b+=256;
              return b;
         private static final String HexValue[]={"0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F"};
         public static void display(byte[]ba, int ofs, int len)
              int dlen;
              String dstr;
              while(len>0)
                   if(len < 16)
                        dlen = len;
                        char[] c48 = new char[48];
                        java.util.Arrays.fill(c48, ' ');
                        String fill48 = String.valueOf(c48);
                        dstr = fill48.substring(0,3*(16-dlen));
                   else
                        dlen = 16;
                        dstr = "";
                   dstr = tohex4(ofs)+": "+atohex(ba,ofs,dlen)+dstr+": "+atochar(ba,ofs,dlen);
                   System.out.println(dstr);
                   ofs+=dlen;
                   len-=dlen;
         public static String atochar(byte[]ba, int ofs, int len)
              String s="";
         char ch;
         byte b;
         for(int i=ofs;i<(ofs+len);i++)
         b = ba[i];
         if(b < 32 || b >126)ch = '.';
                   else ch = (char)b;
                   s+=ch;
    return s;
    public static String atohex(byte[]ba, int ofs, int len)
    String s="";
    for(int i=ofs;i<(ofs+len);i++)
    s += (tohex2(ba[i])+" ");
    return s;
    public static String tohex2(int b)
              int i = b;
              if(i<0)i+=256;
    return HexValue[i/16]+HexValue[i%16];
    public static String tohex4(int i)
              if(i<0)i+=32768;
              i = i%32768;
    return tohex2(i/256)+tohex2(i%256);

  • How to get started with SNMP.. please help me

    I am completely new in SNMP but I really really want to learn it so please help me :)
    I have tried to type snmpget and snmpwalk  in the prompt with some proper device �and OID information and I get some information back (do not really understand the return massages though).
    But I would like to make a manager program in java that calls some network-clients and report the return messages. I would like to use snmp4j (is this a good choice?).
    If somebody have some piece of simple code that sets up a manager- client snmp program, I would be so happy to see it.
    Thanks a lot in advance.
    (If anyone knows some good tutorials or anything that can help me get started I will also appreciate this)

    try using Delete Messages Once Read or write ur own module for achieving the same or use SAP Connect for acheiving the same..if ur intention is to just read mails..!

  • I cannot add SNMP legacy agent to SunMC

    Hi there,
    I have problems with adding my SNMP legacy agent to SunMC, I would appreciate any suggestions/solutions.
    I wrote a SNMP agent using SNMP4j. It works well when stand alone. Then I try to add it to SunMC as a legacy agent. I followed the steps listed in the document "Sun Management Center 3.6.1 Installation and configuration Guide":
    1, I modify the file "/var/opt/SUNWsymon/cfg/subagent-registry-d.x"; the main part that I I added is,
    type = legacy
    persist = false
    snmpPort = "4650"
    startCommand = "java -cp /profilium/SNMP4j/lib/log4j-1.2.9.jar:/profilium/SNMP4j/target/classes:/profilium/snmp-exercise snmpexercise.SnmpSend"
    pollInterval = 60
    pollHoldoff = 60
    oidTrees = 1.3.6.1.4.1.23460
    snmpVersi = SNMPv2c
    securityLevel = noauth
    securityName = public
    I think in the modification, the tricky part is the 'startCommand'. I use the java command to start my agent, as it works at the Unix command line.
    2, then I stop and restart Sun MC to make the changes effective.
    The SunMC doesn't complain anything when I restart it. ~But~, after I reopen the SunMC console, I don't see anything added there. Everything looks the same as before.
    Is there anything wrong with what I did? Or, I have to configure more things in the SunMC?
    Thank you for advices.
    Xinxin

    If I want to integrate my application into SunMC, ie
    get/set SNMP parameters and receive traps, do I need
    to hardcode all OID in the module?
    Ideally, I would write a module that would proxy all
    SNMP traffic to the manager server which would then
    make it available to the console. This only
    information I would give the module is the port
    number to connect to and the port number to receive
    traps. Is this possible?It doesn't quite work like that. Even if you have SunMC proxy snmp requests for your other snmp process... it won't be displayed in the Console. Basically all you're gaining is the ability to send all snmp traffic to a single port (SunMC's) and it passes along those requests on your behalf. I'd say that's not too popular a solution.
    A better way to do things is to write a "module" for SunMC, and that module would know the OIDs in your manager that you're interested in. That way your data would show up properly in the Console, and you'd get access to all of SunMC's other features for "free" (i.e. setting alarms on thresholds, sending email, running scripts when bad things happen, a history of alarms in the SunMC database, and the ability to graph/report your values over time from the SunMC PRM addon).
    A module is the official way of registering your other snmp process. So it depends on what you want to do... do you want SunMC to just manage the SNMP traffic for you... or do you want all the alarming/trending/graphing GUI features as well?
    If you're not too sure about building a module you can have Halcyon build that part for you (we probably only need the MIB for your SNMP program/device). We're very good at it since we've been building SunMC modules for years :)
    http://www.halcyoninc.com/products/a-z.php
    Regards,
    [email protected]
    http://www.HalcyonInc.com

  • Configure vpn 3030 snmp for cisco works 2000

    vpn 3030 snmp error in cisco works 2000
    I want to monitor vpn3030 through vpn monitor,so do some config on vpn3030:
    1)Configuration | System | Management Protocols | SNMP
    enabled port 161
    2)Configuration | System | Management Protocols | SNMP Communities
    public
    3)Administration | Access Rights | Administrators | Modify Properties
    snmp modify config
    I can telent & http vpn3030,but when I run test in in cisco works 2000(server
    configuration|diagnostics|connectivity tools|management station to device)
    it said:
    Interface Status Test Results
    172.16.8.1 DOWN SNMPR failed
    sent: 5 recvd: 0 min: 0 max: 0 avg: 0 timeout: 2 size: 91 protocol: snmp_get port: 161
    SNMPW failed
    sent: 0 recvd: 0 min: 0 max: 0 avg: 0 timeout: 2 size: 0 protocol: snmp_set port: 161
    about my vpn3030
    Monitoring | System Status Thursday, 10 October 2002 16:40:16
    VPN Concentrator Type: 3030
    Bootcode Rev: Cisco Systems, Inc./VPN 3000 Concentrator Series Version 2.5.Rel Jun 21 2000
    18:57:52
    Software Rev: Cisco Systems, Inc./VPN 3000 Concentrator Series Version 3.0.2.Rel Apr 05 2001
    20:50:58
    Up For: 6d 0:04:27
    Up Since: 10/04/2002 16:35:49
    RAM Size: 128 MB
    There is only a 6509 between cisco works 2000 server and vpn3030,and no restrictions on tcp/ip
    flow.
    Please help me .thanks in advance.

    I test it in cw2000 cdone.
    This is really a strange question.
    the cw2000 server ip address is 10.8.1.122
    the vpn3030 's ip address is 172.16.8.1
    between them is a 6509, ip address is 10.8.1.201
    when I test connectivity between cw2000 server and 6509, everything is good,snmp is ok.
    when i test connectivity between cw2000 server and vpn3030, everything is good,except snmp is not response,while use third party snmp program,snmp status is ok!
    when I change the cw2000 server's ip address to 172.16.8.3 and connect it directly to vpn3030,test connectivity between cw2000 server and vpn3030 ,everything is good,snmp is ok.

  • Exercise 2.9

    Several people have the same / similar problem connecting to the Service... see my reply:
    I also get the error: "WSDLException: faultCode=OTHER_ERROR: Unable to resolve imported document at ..." My company is behind a firewall and I checked I am using the correct proxy from IT support. They advised me to try CITRIX (which I will not do as it involves installing the Flash Builder Trial and it would be disappear with the next logon) and otherwise contact Adobe. Could it be that Adobe needs to modify their crossdomain file?  PLEASE ADVISE

    If I want to integrate my application into SunMC, ie
    get/set SNMP parameters and receive traps, do I need
    to hardcode all OID in the module?
    Ideally, I would write a module that would proxy all
    SNMP traffic to the manager server which would then
    make it available to the console. This only
    information I would give the module is the port
    number to connect to and the port number to receive
    traps. Is this possible?It doesn't quite work like that. Even if you have SunMC proxy snmp requests for your other snmp process... it won't be displayed in the Console. Basically all you're gaining is the ability to send all snmp traffic to a single port (SunMC's) and it passes along those requests on your behalf. I'd say that's not too popular a solution.
    A better way to do things is to write a "module" for SunMC, and that module would know the OIDs in your manager that you're interested in. That way your data would show up properly in the Console, and you'd get access to all of SunMC's other features for "free" (i.e. setting alarms on thresholds, sending email, running scripts when bad things happen, a history of alarms in the SunMC database, and the ability to graph/report your values over time from the SunMC PRM addon).
    A module is the official way of registering your other snmp process. So it depends on what you want to do... do you want SunMC to just manage the SNMP traffic for you... or do you want all the alarming/trending/graphing GUI features as well?
    If you're not too sure about building a module you can have Halcyon build that part for you (we probably only need the MIB for your SNMP program/device). We're very good at it since we've been building SunMC modules for years :)
    http://www.halcyoninc.com/products/a-z.php
    Regards,
    [email protected]
    http://www.HalcyonInc.com

  • Programing in java using snmp

    hi
    i am new to snmp so plz bear with me actually i am trying to build a network monitoring system using snmp.how do i go abt it.how do i start?my application will be running on the server and i have made a database in sql which i hav connected using jdbc and now i want to retrieve data from the managed computers i want the object ids of the managed computers and i want to use snmp commands like get() but i am unable to do so as i dont know the required packages which i need to import i would appreciate if someone can provide with some code snippets or any other related information
    thanks

    STOP CROSS POSTING THIS QUESTION
    http://forum.java.sun.com/thread.jspa?threadID=703014

  • Tell how to deployee the EJB 3.0 program in JBoss(netbean5.5 IDE)

    my error when i compile
    ===============================================================================
    JBoss Bootstrap Environment
    JBOSS_HOME: C:\Program Files\jboss-4.0.5.GA\bin\\..
    JAVA: C:\Program Files\Java\jdk1.5.0_11\bin\java
    JAVA_OPTS: -Dhttp.proxyHost= -Dhttp.proxyPort= -Dhttp.nonProxyHosts="localhost|127.0.0.1|abc" -Dhttps.proxyHost= -Dhttps.proxyPort= -Dprogram.name=run.bat -server -Xms128m -Xmx512m -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000
    CLASSPATH: C:\Program Files\Java\jdk1.5.0_11\lib\tools.jar;C:\Program Files\jboss-4.0.5.GA\bin\\run.jar
    ===============================================================================
    10:33:12,406 INFO [Server] Starting JBoss (MX MicroKernel)...
    10:33:12,406 INFO [Server] Release ID: JBoss [Zion] 4.0.5.GA (build: CVSTag=Branch_4_0 date=200610162339)
    10:33:12,406 INFO [Server] Home Dir: C:\Program Files\jboss-4.0.5.GA
    10:33:12,406 INFO [Server] Home URL: file:/C:/Program Files/jboss-4.0.5.GA/
    10:33:12,406 INFO [Server] Patch URL: null
    10:33:12,406 INFO [Server] Server Name: Orchids
    10:33:12,406 INFO [Server] Server Home Dir: C:\Program Files\jboss-4.0.5.GA\server\Orchids
    10:33:12,406 INFO [Server] Server Home URL: file:/C:/Program Files/jboss-4.0.5.GA/server/Orchids/
    10:33:12,468 INFO [Server] Server Log Dir: C:\Program Files\jboss-4.0.5.GA\server\Orchids\log
    10:33:12,468 INFO [Server] Server Temp Dir: C:\Program Files\jboss-4.0.5.GA\server\Orchids\tmp
    10:33:12,468 INFO [Server] Root Deployment Filename: jboss-service.xml
    10:33:13,593 INFO [ServerInfo] Java version: 1.5.0_11,Sun Microsystems Inc.
    10:33:13,593 INFO [ServerInfo] Java VM: Java HotSpot(TM) Server VM 1.5.0_11-b03,Sun Microsystems Inc.
    10:33:13,593 INFO [ServerInfo] OS-System: Windows XP 5.1,x86
    10:33:15,796 INFO [Server] Core system initialized
    10:33:25,250 INFO [WebService] Using RMI server codebase: http://abc:8083/
    10:33:25,500 INFO [Log4jService$URLWatchTimerTask] Configuring from URL: resource:log4j.xml
    10:33:35,703 INFO [SocketServerInvoker] Invoker started for locator: InvokerLocator [socket://192.168.1.22:3873/]
    10:33:49,796 INFO [ServiceEndpointManager] WebServices: jbossws-1.0.3.SP1 (date=200609291417)
    10:33:52,031 INFO [SnmpAgentService] SNMP agent going active
    10:33:54,312 INFO [CorbaNamingService] Naming: [IOR:000000000000002B49444C3A6F6D672E6F72672F436F734E616D696E672F4E616D696E67436F6E746578744578743A312E3000000000000200000000000000E8000102000000000D3139322E3136382E312E323200000DC8000000114A426F73732F4E616D696E672F726F6F74000000000000050000000000000008000000004A414300000000010000001C00000000000100010000000105010001000101090000000105010001000000210000006000000000000000010000000000000024000000200000007E00000000000000010000000D3139322E3136382E312E323200000DC900400000000000000000001004010008060667810201010100000000000000000000000000000000000000000000002000000004000000000000001F0000000400000003000000010000002000000000000000020000002000000004000000000000001F0000000400000003]
    10:33:54,812 INFO [CorbaTransactionService] TransactionFactory: [IOR:000000000000003049444C3A6F72672F6A626F73732F746D2F69696F702F5472616E73616374696F6E466163746F72794578743A312E30000000000200000000000000E8000102000000000D3139322E3136382E312E323200000DC8000000144A426F73732F5472616E73616374696F6E732F46000000050000000000000008000000004A414300000000010000001C00000000000100010000000105010001000101090000000105010001000000210000006000000000000000010000000000000024000000200000007E00000000000000010000000D3139322E3136382E312E323200000DC900400000000000000000001004010008060667810201010100000000000000000000000000000000000000000000002000000004000000000000001F0000000400000003000000010000002000000000000000020000002000000004000000000000001F0000000400000003]
    10:33:56,312 INFO [Embedded] Catalina naming disabled
    10:33:56,406 INFO [ClusterRuleSetFactory] Unable to find a cluster rule set in the classpath. Will load the default rule set.
    10:33:56,406 INFO [ClusterRuleSetFactory] Unable to find a cluster rule set in the classpath. Will load the default rule set.
    10:33:57,796 INFO [Http11BaseProtocol] Initializing Coyote HTTP/1.1 on http-0.0.0.0-8080
    10:33:57,796 INFO [Catalina] Initialization processed in 1390 ms
    10:33:57,796 INFO [StandardService] Starting service jboss.web
    10:33:57,812 INFO [StandardEngine] Starting Servlet Engine: Apache Tomcat/5.5.20
    10:33:57,875 INFO [StandardHost] XML validation disabled
    10:33:57,906 INFO [Catalina] Server startup in 110 ms
    10:33:58,281 INFO [TomcatDeployer] deploy, ctxPath=/invoker, warUrl=.../deploy/http-invoker.sar/invoker.war/
    10:33:59,312 INFO [WebappLoader] Dual registration of jndi stream handler: factory already defined
    10:34:00,906 INFO [TomcatDeployer] deploy, ctxPath=/, warUrl=.../deploy/jbossweb-tomcat55.sar/ROOT.war/
    10:34:01,218 INFO [TomcatDeployer] deploy, ctxPath=/jbossws, warUrl=.../tmp/deploy/tmp61906jbossws-context-exp.war/
    10:34:02,578 INFO [TomcatDeployer] deploy, ctxPath=/jbossmq-httpil, warUrl=.../deploy/jms/jbossmq-httpil.sar/jbossmq-httpil.war/
    10:34:05,984 INFO [TomcatDeployer] deploy, ctxPath=/web-console, warUrl=.../deploy/management/console-mgr.sar/web-console.war/
    10:34:07,968 INFO [MailService] Mail Service bound to java:/Mail
    10:34:08,453 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-ha-local-jdbc.rar
    10:34:08,671 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-ha-xa-jdbc.rar
    10:34:08,781 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-local-jdbc.rar
    10:34:08,937 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-xa-jdbc.rar
    10:34:09,109 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jms/jms-ra.rar
    10:34:09,187 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/mail-ra.rar
    10:34:09,312 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/quartz-ra.rar
    10:34:09,359 INFO [QuartzResourceAdapter] start quartz!!!
    10:34:09,468 INFO [SimpleThreadPool] Job execution threads will use class loader of thread: main
    10:34:09,578 INFO [QuartzScheduler] Quartz Scheduler v.1.5.2 created.
    10:34:09,578 INFO [RAMJobStore] RAMJobStore initialized.
    10:34:09,593 INFO [StdSchedulerFactory] Quartz scheduler 'DefaultQuartzScheduler' initialized from default resource file in Quartz package: 'quartz.properties'
    10:34:09,718 INFO [StdSchedulerFactory] Quartz scheduler version: 1.5.2
    10:34:09,718 INFO [QuartzScheduler] Scheduler DefaultQuartzScheduler_$_NON_CLUSTERED started.
    10:34:11,812 INFO [WrapperDataSourceService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=DefaultDS' to JNDI name 'java:DefaultDS'
    10:34:12,359 INFO [A] Bound to JNDI name: queue/A
    10:34:12,359 INFO Bound to JNDI name: queue/B
    10:34:12,375 INFO [C] Bound to JNDI name: queue/C
    10:34:12,375 INFO [D] Bound to JNDI name: queue/D
    10:34:12,375 INFO [ex] Bound to JNDI name: queue/ex
    10:34:12,406 INFO [testTopic] Bound to JNDI name: topic/testTopic
    10:34:12,406 INFO [securedTopic] Bound to JNDI name: topic/securedTopic
    10:34:12,406 INFO [testDurableTopic] Bound to JNDI name: topic/testDurableTopic
    10:34:12,406 INFO [testQueue] Bound to JNDI name: queue/testQueue
    10:34:12,921 INFO [UILServerILService] JBossMQ UIL service available at : /0.0.0.0:8093
    10:34:13,000 INFO [DLQ] Bound to JNDI name: queue/DLQ
    10:34:14,734 INFO [WrapperDataSourceService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=ven' to JNDI name 'java:ven'
    10:34:14,796 INFO [WrapperDataSourceService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=ven1' to JNDI name 'java:ven1'
    10:34:14,859 INFO [WrapperDataSourceService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=newJNDI' to JNDI name 'java:newJNDI'
    10:34:14,906 INFO [WrapperDataSourceService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=mySqlDS' to JNDI name 'java:mySqlDS'
    10:34:14,937 INFO [WrapperDataSourceService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=venkat' to JNDI name 'java:venkat'
    10:34:15,687 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=ConnectionFactoryBinding,name=JmsXA' to JNDI name 'java:JmsXA'
    10:34:15,750 ERROR [MainDeployer] Could not initialise deployment: file:/C:/Program Files/jboss-4.0.5.GA/server/Orchids/deploy/mysql-ds.xml
    org.jboss.deployment.DeploymentException: Could not parse dd; - nested throwable: (org.xml.sax.SAXParseException: The element type "local-tx-datasource" must be terminated by the matching end-tag "</local-tx-datasource>".)
    at org.jboss.deployment.XSLSubDeployer.findDd(XSLSubDeployer.java:231)
    at org.jboss.deployment.XSLSubDeployer.init(XSLSubDeployer.java:161)
    at org.jboss.deployment.MainDeployer.init(MainDeployer.java:872)
    at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:809)
    at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
    at sun.reflect.GeneratedMethodAccessor19.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
    at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
    at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
    at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
    at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
    at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
    at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
    at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
    at $Proxy8.deploy(Unknown Source)
    at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
    at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634)
    at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
    at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:336)
    at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
    at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
    at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
    at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
    at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
    at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
    at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
    at $Proxy0.start(Unknown Source)
    at org.jboss.system.ServiceController.start(ServiceController.java:417)
    at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
    at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
    at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
    at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
    at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
    at $Proxy4.start(Unknown Source)
    at org.jboss.deployment.SARDeployer.start(SARDeployer.java:302)
    at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
    at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
    at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
    at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:766)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
    at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
    at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
    at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
    at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
    at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
    at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
    at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
    at $Proxy5.deploy(Unknown Source)
    at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)
    at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
    at org.jboss.Main.boot(Main.java:200)
    at org.jboss.Main$1.run(Main.java:490)
    at java.lang.Thread.run(Thread.java:595)
    Caused by: org.xml.sax.SAXParseException: The element type "local-tx-datasource" must be terminated by the matching end-tag "</local-tx-datasource>".
    at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
    at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
    at javax.xml.parsers.DocumentBuilder.parse(Unknown Source)
    at org.jboss.deployment.XSLSubDeployer.findDd(XSLSubDeployer.java:227)
    ... 68 more
    10:34:16,812 INFO [Ejb3Deployment] EJB3 deployment time took: 859
    10:34:16,828 INFO [JmxKernelAbstraction] installing MBean: persistence.units:jar=EJB3.jar,unitName=EJB3PU with dependencies:
    10:34:16,828 INFO [JmxKernelAbstraction]      jboss.jca:name=ven1,service=DataSourceBinding
    10:34:17,031 WARN [ServiceController] Problem starting service persistence.units:jar=EJB3.jar,unitName=EJB3PU
    javax.naming.NameNotFoundException: ven1 not bound
    at org.jnp.server.NamingServer.getBinding(NamingServer.java:529)
    at org.jnp.server.NamingServer.getBinding(NamingServer.java:537)
    at org.jnp.server.NamingServer.getObject(NamingServer.java:543)
    at org.jnp.server.NamingServer.lookup(NamingServer.java:296)
    at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:625)
    at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:587)
    at javax.naming.InitialContext.lookup(InitialContext.java:351)
    at org.jboss.ejb3.entity.PersistenceUnitDeployment.start(PersistenceUnitDeployment.java:240)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.jboss.ejb3.ServiceDelegateWrapper.startService(ServiceDelegateWrapper.java:102)
    at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
    at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
    at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
    at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
    at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
    at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
    at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
    at $Proxy0.start(Unknown Source)
    at org.jboss.system.ServiceController.start(ServiceController.java:417)
    at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
    at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
    at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
    at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
    at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
    at $Proxy56.start(Unknown Source)
    at org.jboss.ejb3.JmxKernelAbstraction.install(JmxKernelAbstraction.java:96)
    at org.jboss.ejb3.Ejb3Deployment.startPersistenceUnits(Ejb3Deployment.java:467)
    at org.jboss.ejb3.Ejb3Deployment.start(Ejb3Deployment.java:317)
    at org.jboss.ejb3.Ejb3Module.startService(Ejb3Module.java:91)
    at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
    at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
    at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
    at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
    at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
    at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
    at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
    at $Proxy0.start(Unknown Source)
    at org.jboss.system.ServiceController.start(ServiceController.java:417)
    at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
    at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
    at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
    at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
    at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
    at $Proxy28.start(Unknown Source)
    at org.jboss.ejb3.EJB3Deployer.start(EJB3Deployer.java:449)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
    at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
    at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
    at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
    at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
    at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:97)
    at org.jboss.system.InterceptorServiceMBeanSupport.invokeNext(InterceptorServiceMBeanSupport.java:238)
    at org.jboss.ws.integration.jboss.DeployerInterceptor.start(DeployerInterceptor.java:92)
    at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.start(SubDeployerInterceptorSupport.java:188)
    at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:95)
    at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
    at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
    at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
    at $Proxy29.start(Unknown Source)
    at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
    at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
    at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
    at sun.reflect.GeneratedMethodAccessor19.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
    at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
    at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
    at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
    at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
    at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
    at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
    at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
    at $Proxy8.deploy(Unknown Source)
    at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
    at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634)
    at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
    at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:336)
    at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
    at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
    at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
    at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
    at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
    at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
    at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
    at $Proxy0.start(Unknown Source)
    at org.jboss.system.ServiceController.start(ServiceController.java:417)
    at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
    at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
    at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
    at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
    at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
    at $Proxy4.start(Unknown Source)
    at org.jboss.deployment.SARDeployer.start(SARDeployer.java:302)
    at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
    at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
    at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
    at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:766)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
    at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
    at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
    at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
    at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
    at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
    at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
    at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
    at $Proxy5.deploy(Unknown Source)
    at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)
    at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
    at org.jboss.Main.boot(Main.java:200)
    at org.jboss.Main$1.run(Main.java:490)
    at java.lang.Thread.run(Thread.java:595)
    10:34:18,062 INFO [JmxKernelAbstraction] installing MBean: jboss.j2ee:jar=EJB3.jar,name=TestFacade,service=EJB3 with dependencies:
    10:34:18,062 INFO [JmxKernelAbstraction]      persistence.units:jar=EJB3.jar,unitName=EJB3PU
    10:34:18,062 INFO [EJB3Deployer] Deployed: file:/C:/Program Files/jboss-4.0.5.GA/server/Orchids/deploy/EJB3.jar
    10:34:18,296 INFO [Ejb3Deployment] EJB3 deployment time took: 46
    10:34:18,296 INFO [JmxKernelAbstraction] installing MBean: persistence.units:jar=EJBModule1.jar,unitName=EJBModule1PU with dependencies:
    10:34:18,437 INFO [JmxKernelAbstraction]      jboss.jca:name=newJNDI,service=DataSourceBinding
    10:34:18,453 WARN [ServiceController] Problem starting service persistence.units:jar=EJBModule1.jar,unitName=EJBModule1PU
    javax.naming.NameNotFoundException: newJNDI not bound
    at org.jnp.server.NamingServer.getBinding(NamingServer.java:529)
    at org.jnp.server.NamingServer.getBinding(NamingServer.java:537)
    at org.jnp.server.NamingServer.getObject(NamingServer.java:543)
    at org.jnp.server.NamingServer.lookup(NamingServer.java:296)
    at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:625)
    at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:587)
    at javax.naming.InitialContext.lookup(InitialContext.java:351)
    at org.jboss.ejb3.entity.PersistenceUnitDeployment.start(PersistenceUnitDeployment.java:240)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.jboss.ejb3.ServiceDelegateWrapper.startService(ServiceDelegateWrapper.java:102)
    at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
    at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
    at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
    at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
    at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
    at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
    at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
    at $Proxy0.start(Unknown Source)
    at org.jboss.system.ServiceController.start(ServiceController.java:417)
    at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:

    my error when i compile
    ===============================================================================
    JBoss Bootstrap Environment
    JBOSS_HOME: C:\Program Files\jboss-4.0.5.GA\bin\\..
    JAVA: C:\Program Files\Java\jdk1.5.0_11\bin\java
    JAVA_OPTS: -Dhttp.proxyHost= -Dhttp.proxyPort= -Dhttp.nonProxyHosts="localhost|127.0.0.1|abc" -Dhttps.proxyHost= -Dhttps.proxyPort= -Dprogram.name=run.bat -server -Xms128m -Xmx512m -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000
    CLASSPATH: C:\Program Files\Java\jdk1.5.0_11\lib\tools.jar;C:\Program Files\jboss-4.0.5.GA\bin\\run.jar
    ===============================================================================
    10:33:12,406 INFO [Server] Starting JBoss (MX MicroKernel)...
    10:33:12,406 INFO [Server] Release ID: JBoss [Zion] 4.0.5.GA (build: CVSTag=Branch_4_0 date=200610162339)
    10:33:12,406 INFO [Server] Home Dir: C:\Program Files\jboss-4.0.5.GA
    10:33:12,406 INFO [Server] Home URL: file:/C:/Program Files/jboss-4.0.5.GA/
    10:33:12,406 INFO [Server] Patch URL: null
    10:33:12,406 INFO [Server] Server Name: Orchids
    10:33:12,406 INFO [Server] Server Home Dir: C:\Program Files\jboss-4.0.5.GA\server\Orchids
    10:33:12,406 INFO [Server] Server Home URL: file:/C:/Program Files/jboss-4.0.5.GA/server/Orchids/
    10:33:12,468 INFO [Server] Server Log Dir: C:\Program Files\jboss-4.0.5.GA\server\Orchids\log
    10:33:12,468 INFO [Server] Server Temp Dir: C:\Program Files\jboss-4.0.5.GA\server\Orchids\tmp
    10:33:12,468 INFO [Server] Root Deployment Filename: jboss-service.xml
    10:33:13,593 INFO [ServerInfo] Java version: 1.5.0_11,Sun Microsystems Inc.
    10:33:13,593 INFO [ServerInfo] Java VM: Java HotSpot(TM) Server VM 1.5.0_11-b03,Sun Microsystems Inc.
    10:33:13,593 INFO [ServerInfo] OS-System: Windows XP 5.1,x86
    10:33:15,796 INFO [Server] Core system initialized
    10:33:25,250 INFO [WebService] Using RMI server codebase: http://abc:8083/
    10:33:25,500 INFO [Log4jService$URLWatchTimerTask] Configuring from URL: resource:log4j.xml
    10:33:35,703 INFO [SocketServerInvoker] Invoker started for locator: InvokerLocator [socket://192.168.1.22:3873/]
    10:33:49,796 INFO [ServiceEndpointManager] WebServices: jbossws-1.0.3.SP1 (date=200609291417)
    10:33:52,031 INFO [SnmpAgentService] SNMP agent going active
    10:33:54,312 INFO [CorbaNamingService] Naming: [IOR:000000000000002B49444C3A6F6D672E6F72672F436F734E616D696E672F4E616D696E67436F6E746578744578743A312E3000000000000200000000000000E8000102000000000D3139322E3136382E312E323200000DC8000000114A426F73732F4E616D696E672F726F6F74000000000000050000000000000008000000004A414300000000010000001C00000000000100010000000105010001000101090000000105010001000000210000006000000000000000010000000000000024000000200000007E00000000000000010000000D3139322E3136382E312E323200000DC900400000000000000000001004010008060667810201010100000000000000000000000000000000000000000000002000000004000000000000001F0000000400000003000000010000002000000000000000020000002000000004000000000000001F0000000400000003]
    10:33:54,812 INFO [CorbaTransactionService] TransactionFactory: [IOR:000000000000003049444C3A6F72672F6A626F73732F746D2F69696F702F5472616E73616374696F6E466163746F72794578743A312E30000000000200000000000000E8000102000000000D3139322E3136382E312E323200000DC8000000144A426F73732F5472616E73616374696F6E732F46000000050000000000000008000000004A414300000000010000001C00000000000100010000000105010001000101090000000105010001000000210000006000000000000000010000000000000024000000200000007E00000000000000010000000D3139322E3136382E312E323200000DC900400000000000000000001004010008060667810201010100000000000000000000000000000000000000000000002000000004000000000000001F0000000400000003000000010000002000000000000000020000002000000004000000000000001F0000000400000003]
    10:33:56,312 INFO [Embedded] Catalina naming disabled
    10:33:56,406 INFO [ClusterRuleSetFactory] Unable to find a cluster rule set in the classpath. Will load the default rule set.
    10:33:56,406 INFO [ClusterRuleSetFactory] Unable to find a cluster rule set in the classpath. Will load the default rule set.
    10:33:57,796 INFO [Http11BaseProtocol] Initializing Coyote HTTP/1.1 on http-0.0.0.0-8080
    10:33:57,796 INFO [Catalina] Initialization processed in 1390 ms
    10:33:57,796 INFO [StandardService] Starting service jboss.web
    10:33:57,812 INFO [StandardEngine] Starting Servlet Engine: Apache Tomcat/5.5.20
    10:33:57,875 INFO [StandardHost] XML validation disabled
    10:33:57,906 INFO [Catalina] Server startup in 110 ms
    10:33:58,281 INFO [TomcatDeployer] deploy, ctxPath=/invoker, warUrl=.../deploy/http-invoker.sar/invoker.war/
    10:33:59,312 INFO [WebappLoader] Dual registration of jndi stream handler: factory already defined
    10:34:00,906 INFO [TomcatDeployer] deploy, ctxPath=/, warUrl=.../deploy/jbossweb-tomcat55.sar/ROOT.war/
    10:34:01,218 INFO [TomcatDeployer] deploy, ctxPath=/jbossws, warUrl=.../tmp/deploy/tmp61906jbossws-context-exp.war/
    10:34:02,578 INFO [TomcatDeployer] deploy, ctxPath=/jbossmq-httpil, warUrl=.../deploy/jms/jbossmq-httpil.sar/jbossmq-httpil.war/
    10:34:05,984 INFO [TomcatDeployer] deploy, ctxPath=/web-console, warUrl=.../deploy/management/console-mgr.sar/web-console.war/
    10:34:07,968 INFO [MailService] Mail Service bound to java:/Mail
    10:34:08,453 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-ha-local-jdbc.rar
    10:34:08,671 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-ha-xa-jdbc.rar
    10:34:08,781 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-local-jdbc.rar
    10:34:08,937 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-xa-jdbc.rar
    10:34:09,109 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jms/jms-ra.rar
    10:34:09,187 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/mail-ra.rar
    10:34:09,312 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/quartz-ra.rar
    10:34:09,359 INFO [QuartzResourceAdapter] start quartz!!!
    10:34:09,468 INFO [SimpleThreadPool] Job execution threads will use class loader of thread: main
    10:34:09,578 INFO [QuartzScheduler] Quartz Scheduler v.1.5.2 created.
    10:34:09,578 INFO [RAMJobStore] RAMJobStore initialized.
    10:34:09,593 INFO [StdSchedulerFactory] Quartz scheduler 'DefaultQuartzScheduler' initialized from default resource file in Quartz package: 'quartz.properties'
    10:34:09,718 INFO [StdSchedulerFactory] Quartz scheduler version: 1.5.2
    10:34:09,718 INFO [QuartzScheduler] Scheduler DefaultQuartzScheduler_$_NON_CLUSTERED started.
    10:34:11,812 INFO [WrapperDataSourceService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=DefaultDS' to JNDI name 'java:DefaultDS'
    10:34:12,359 INFO [A] Bound to JNDI name: queue/A
    10:34:12,359 INFO Bound to JNDI name: queue/B
    10:34:12,375 INFO [C] Bound to JNDI name: queue/C
    10:34:12,375 INFO [D] Bound to JNDI name: queue/D
    10:34:12,375 INFO [ex] Bound to JNDI name: queue/ex
    10:34:12,406 INFO [testTopic] Bound to JNDI name: topic/testTopic
    10:34:12,406 INFO [securedTopic] Bound to JNDI name: topic/securedTopic
    10:34:12,406 INFO [testDurableTopic] Bound to JNDI name: topic/testDurableTopic
    10:34:12,406 INFO [testQueue] Bound to JNDI name: queue/testQueue
    10:34:12,921 INFO [UILServerILService] JBossMQ UIL service available at : /0.0.0.0:8093
    10:34:13,000 INFO [DLQ] Bound to JNDI name: queue/DLQ
    10:34:14,734 INFO [WrapperDataSourceService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=ven' to JNDI name 'java:ven'
    10:34:14,796 INFO [WrapperDataSourceService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=ven1' to JNDI name 'java:ven1'
    10:34:14,859 INFO [WrapperDataSourceService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=newJNDI' to JNDI name 'java:newJNDI'
    10:34:14,906 INFO [WrapperDataSourceService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=mySqlDS' to JNDI name 'java:mySqlDS'
    10:34:14,937 INFO [WrapperDataSourceService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=venkat' to JNDI name 'java:venkat'
    10:34:15,687 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=ConnectionFactoryBinding,name=JmsXA' to JNDI name 'java:JmsXA'
    10:34:15,750 ERROR [MainDeployer] Could not initialise deployment: file:/C:/Program Files/jboss-4.0.5.GA/server/Orchids/deploy/mysql-ds.xml
    org.jboss.deployment.DeploymentException: Could not parse dd; - nested throwable: (org.xml.sax.SAXParseException: The element type "local-tx-datasource" must be terminated by the matching end-tag "</local-tx-datasource>".)
    at org.jboss.deployment.XSLSubDeployer.findDd(XSLSubDeployer.java:231)
    at org.jboss.deployment.XSLSubDeployer.init(XSLSubDeployer.java:161)
    at org.jboss.deployment.MainDeployer.init(MainDeployer.java:872)
    at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:809)
    at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
    at sun.reflect.GeneratedMethodAccessor19.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
    at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
    at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
    at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
    at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
    at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
    at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
    at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
    at $Proxy8.deploy(Unknown Source)
    at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
    at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634)
    at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
    at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:336)
    at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
    at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
    at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
    at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
    at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
    at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
    at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
    at $Proxy0.start(Unknown Source)
    at org.jboss.system.ServiceController.start(ServiceController.java:417)
    at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
    at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
    at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
    at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
    at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
    at $Proxy4.start(Unknown Source)
    at org.jboss.deployment.SARDeployer.start(SARDeployer.java:302)
    at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
    at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
    at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
    at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:766)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
    at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
    at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
    at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
    at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
    at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
    at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
    at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
    at $Proxy5.deploy(Unknown Source)
    at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)
    at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
    at org.jboss.Main.boot(Main.java:200)
    at org.jboss.Main$1.run(Main.java:490)
    at java.lang.Thread.run(Thread.java:595)
    Caused by: org.xml.sax.SAXParseException: The element type "local-tx-datasource" must be terminated by the matching end-tag "</local-tx-datasource>".
    at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
    at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
    at javax.xml.parsers.DocumentBuilder.parse(Unknown Source)
    at org.jboss.deployment.XSLSubDeployer.findDd(XSLSubDeployer.java:227)
    ... 68 more
    10:34:16,812 INFO [Ejb3Deployment] EJB3 deployment time took: 859
    10:34:16,828 INFO [JmxKernelAbstraction] installing MBean: persistence.units:jar=EJB3.jar,unitName=EJB3PU with dependencies:
    10:34:16,828 INFO [JmxKernelAbstraction]      jboss.jca:name=ven1,service=DataSourceBinding
    10:34:17,031 WARN [ServiceController] Problem starting service persistence.units:jar=EJB3.jar,unitName=EJB3PU
    javax.naming.NameNotFoundException: ven1 not bound
    at org.jnp.server.NamingServer.getBinding(NamingServer.java:529)
    at org.jnp.server.NamingServer.getBinding(NamingServer.java:537)
    at org.jnp.server.NamingServer.getObject(NamingServer.java:543)
    at org.jnp.server.NamingServer.lookup(NamingServer.java:296)
    at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:625)
    at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:587)
    at javax.naming.InitialContext.lookup(InitialContext.java:351)
    at org.jboss.ejb3.entity.PersistenceUnitDeployment.start(PersistenceUnitDeployment.java:240)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.jboss.ejb3.ServiceDelegateWrapper.startService(ServiceDelegateWrapper.java:102)
    at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
    at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
    at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
    at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
    at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
    at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
    at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
    at $Proxy0.start(Unknown Source)
    at org.jboss.system.ServiceController.start(ServiceController.java:417)
    at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
    at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
    at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
    at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
    at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
    at $Proxy56.start(Unknown Source)
    at org.jboss.ejb3.JmxKernelAbstraction.install(JmxKernelAbstraction.java:96)
    at org.jboss.ejb3.Ejb3Deployment.startPersistenceUnits(Ejb3Deployment.java:467)
    at org.jboss.ejb3.Ejb3Deployment.start(Ejb3Deployment.java:317)
    at org.jboss.ejb3.Ejb3Module.startService(Ejb3Module.java:91)
    at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
    at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
    at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
    at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
    at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
    at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
    at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
    at $Proxy0.start(Unknown Source)
    at org.jboss.system.ServiceController.start(ServiceController.java:417)
    at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
    at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
    at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
    at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
    at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
    at $Proxy28.start(Unknown Source)
    at org.jboss.ejb3.EJB3Deployer.start(EJB3Deployer.java:449)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
    at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
    at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
    at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
    at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
    at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:97)
    at org.jboss.system.InterceptorServiceMBeanSupport.invokeNext(InterceptorServiceMBeanSupport.java:238)
    at org.jboss.ws.integration.jboss.DeployerInterceptor.start(DeployerInterceptor.java:92)
    at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.start(SubDeployerInterceptorSupport.java:188)
    at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:95)
    at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
    at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
    at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
    at $Proxy29.start(Unknown Source)
    at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
    at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
    at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
    at sun.reflect.GeneratedMethodAccessor19.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
    at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
    at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
    at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
    at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
    at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
    at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
    at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
    at $Proxy8.deploy(Unknown Source)
    at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
    at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634)
    at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
    at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:336)
    at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
    at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
    at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
    at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
    at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
    at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
    at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
    at $Proxy0.start(Unknown Source)
    at org.jboss.system.ServiceController.start(ServiceController.java:417)
    at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
    at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
    at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
    at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
    at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
    at $Proxy4.start(Unknown Source)
    at org.jboss.deployment.SARDeployer.start(SARDeployer.java:302)
    at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
    at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
    at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
    at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:766)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
    at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
    at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
    at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
    at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
    at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
    at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
    at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
    at $Proxy5.deploy(Unknown Source)
    at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)
    at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
    at org.jboss.Main.boot(Main.java:200)
    at org.jboss.Main$1.run(Main.java:490)
    at java.lang.Thread.run(Thread.java:595)
    10:34:18,062 INFO [JmxKernelAbstraction] installing MBean: jboss.j2ee:jar=EJB3.jar,name=TestFacade,service=EJB3 with dependencies:
    10:34:18,062 INFO [JmxKernelAbstraction]      persistence.units:jar=EJB3.jar,unitName=EJB3PU
    10:34:18,062 INFO [EJB3Deployer] Deployed: file:/C:/Program Files/jboss-4.0.5.GA/server/Orchids/deploy/EJB3.jar
    10:34:18,296 INFO [Ejb3Deployment] EJB3 deployment time took: 46
    10:34:18,296 INFO [JmxKernelAbstraction] installing MBean: persistence.units:jar=EJBModule1.jar,unitName=EJBModule1PU with dependencies:
    10:34:18,437 INFO [JmxKernelAbstraction]      jboss.jca:name=newJNDI,service=DataSourceBinding
    10:34:18,453 WARN [ServiceController] Problem starting service persistence.units:jar=EJBModule1.jar,unitName=EJBModule1PU
    javax.naming.NameNotFoundException: newJNDI not bound
    at org.jnp.server.NamingServer.getBinding(NamingServer.java:529)
    at org.jnp.server.NamingServer.getBinding(NamingServer.java:537)
    at org.jnp.server.NamingServer.getObject(NamingServer.java:543)
    at org.jnp.server.NamingServer.lookup(NamingServer.java:296)
    at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:625)
    at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:587)
    at javax.naming.InitialContext.lookup(InitialContext.java:351)
    at org.jboss.ejb3.entity.PersistenceUnitDeployment.start(PersistenceUnitDeployment.java:240)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.jboss.ejb3.ServiceDelegateWrapper.startService(ServiceDelegateWrapper.java:102)
    at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
    at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
    at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
    at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
    at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
    at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
    at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
    at $Proxy0.start(Unknown Source)
    at org.jboss.system.ServiceController.start(ServiceController.java:417)
    at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:

  • How do I control my program?

    Hi,
    The program below works fine, except the control is all out of whack. I would like to control the program flow from the main method. Hence call the getSNMP() and store the result of fixResponseString() to a global variable.
    But I keep on receiving error when I try to accomplish this. The error is snmp4j.java:67: non-static method fixResponseString(java.lang.String) cannot be referenced from a static context. This is probably very common on here, but I need help to separate my program so it is all controlled from the main method.
    Cheers,
    import org.snmp4j.*;
    import org.snmp4j.PDU;
    import org.snmp4j.asn1.*;
    import org.snmp4j.event.*;
    import org.snmp4j.log.*;
    import org.snmp4j.mp.*;
    import org.snmp4j.security.*;
    import org.snmp4j.smi.*;
    import org.snmp4j.smi.UdpAddress;
    import org.snmp4j.tools.console .*;
    import org.snmp4j.transport.*;
    import org.snmp4j.util.*;
    public class snmp4j{
         public static void main( String [] args ) throws Exception  {
              getSNMP();
         //Retrieves the SNMP variables based on the string OID and stringAddress
         static void getSNMP() throws Exception {
              String stringOID = "1.3.6.1.2.1.1.5.0";
              String stringAddress = "10.31.9.41/161";
              // Target address
              Address targetAddress = new UdpAddress (stringAddress);
              OID targetOID         = new OID(stringOID);
              *  1. PDU and Communityaddress
            *     PDU instance
              PDU requestPDU  = new PDU();
              requestPDU.add(new VariableBinding(targetOID)); // sysName
              requestPDU.setType(PDU.GET);
              // Comunity Target
              CommunityTarget target = new CommunityTarget();
              target.setCommunity(new OctetString("liepsi73"));
              target.setAddress(targetAddress);
              target.setTimeout(500);           // set timeout to 500 milliseconds -> 2*500ms = 1s total timeout
              target.setVersion(SnmpConstants.version1);
              *  2. Classes for SNMP message sending (command generation)
              *  3. Classes for SNMP message dispatching (command responding)
              TransportMapping transport = new DefaultUdpTransportMapping();
              Snmp snmp = new Snmp(transport);
              transport.listen();
              ResponseEvent response = snmp.send(requestPDU, target);
              if (response.getResponse() == null) {
                   System.out.println("Request timed out");
              } else {
                   // dump response PDU
                   // print the response and call the fixResponseMethod
                   //SNMPresult = (response.getResponse().toString());
                   System.out.println(response.getResponse().toString());
                   fixResponseString(response.getResponse().toString());
         // Manipulated the output of the retrieved snmp message.
         static void fixResponseString(String s) {
              s = s.substring(72); // remove everything before "VBS["
              int i = s.indexOf("="); // remove everything before "="
              s = s.substring(i+2); // remove "= "
              int length = s.length(); // get the length
              s = s.substring(0, length-2); // remove last two characters
              System.out.println(s);
    }

    See these existing forum posts.
    http://onesearch.sun.com/search/onesearch/index.jsp?charset=utf-8&col=developer-forums&qt=cannot+be+referenced+from+a+static+context&rt=true&cs=false&y=8&x=6
    Had you searched, you would have had an answer an hour ago.

  • Can't get SNMP working

    I've turned on SNMP in Server Admin and the snmpd (daemon) is running as verifed in Activity Monitor. The snmpd.conf file is located at /usr/share/snmp and everything looks as it should. But, I can not access the snmp data from a client. When I use InterMapper I get the error "NO SNMPv1response" error. I did a port scan on port 161 and it's not showing. However I have an Airport Extreme on the same network and it is providing SNMP data to InterMapper, so I assume my router isn't blocking port 161 on the LAN. To test this I removed the host and client from the router and connected them to a hub- still no SNMP data.
    I must be missing something because it should work the way I have it setup. Any help is appreciated.
    Thanks!

    Thanks Camelot you got me pointed in the right direction... that snmpconf file. I've now got SNMP working and Intermapper see's the data. Here is what I did (in case anyone else runs into this):
    1) Delete all your previous snmpconf files. Look in the root of your user folder- if there is one there delete it. Then use Terminal and go to /usr/share/snmp/ and delete that one too.
    2)Still in Terminal, run
    sudo /usr/bin/snmpconf -i
    Hint: I was following the instructions here <http:docs.info.apple.com/article.html?artnum=107012> which was good up until you get to the "You will then see a series of text menus. Make these choices in this order:" Instead of doing those suggested settings, here is what I entered:
    I can create the following types of configuration files for you.
    Select the file type you wish to create:
    (you can create more than one as you run this program)
    1: snmpd.conf
    2: snmptrapd.conf
    3: snmp.conf
    Other options: quit
    Select File: 1
    The configuration information which can be put into snmpd.conf is divided
    into sections. Select a configuration section for snmpd.conf
    that you wish to create:
    1: Access Control Setup
    2: Extending the Agent
    3: Monitor Various Aspects of the Running Host
    4: Agent Operating Mode
    5: System Information Setup
    6: Trap Destinations
    Other options: finished
    Select section: 5
    Section: System Information Setup
    Description:
    This section defines some of the information reported in
    the "system" mib group in the mibII tree.
    Select from:
    1: The [typically physical] location of the system.
    2: The contact information for the administrator
    3: The proper value for the sysServices object.
    Other options: finished, list
    Select section: 1
    Configuring: syslocation
    Description:
    The [typically physical] location of the system.
    arguments: location_string
    The location of the system: <ENTER YOUR TEXT HERE-NO SPACE>
    Finished Output: syslocation <THE TEXT YOU ENTERED WILL SHOW HERE>
    Section: System Information Setup
    Description:
    This section defines some of the information reported in
    the "system" mib group in the mibII tree.
    Select from:
    1: The [typically physical] location of the system.
    2: The contact information for the administrator
    3: The proper value for the sysServices object.
    Other options: finished, list
    Select section: f
    The configuration information which can be put into snmpd.conf is divided
    into sections. Select a configuration section for snmpd.conf
    that you wish to create:
    1: Access Control Setup
    2: Extending the Agent
    3: Monitor Various Aspects of the Running Host
    4: Agent Operating Mode
    5: System Information Setup
    6: Trap Destinations
    Select section: 1
    Section: Access Control Setup
    Description:
    This section defines who is allowed to talk to your running
    snmp agent.
    Select from:
    1: a SNMPv3 read-write user
    2: a SNMPv3 read-only user
    3: a SNMPv1/SNMPv2c read-only access community name
    4: a SNMPv1/SNMPv2c read-write access community name
    Other options: finished, list
    Select section: 3
    Configuring: rocommunity
    Description:
    a SNMPv1/SNMPv2c read-only access community name
    arguments: community [default|hostname|network/bits] [oid]
    The community name to add read-only access for: public <MOST AGENTS USE "PUBLIC" AS A DEFAULT- LIKE INTERMAPPER>
    The hostname or network address to accept this community name from [RETURN for all]:
    The OID that this community should be restricted to [RETURN for no-restriction]:
    Finished Output: rocommunity public
    Section: Access Control Setup
    Description:
    This section defines who is allowed to talk to your running
    snmp agent.
    Select from:
    1: a SNMPv3 read-write user
    2: a SNMPv3 read-only user
    3: a SNMPv1/SNMPv2c read-only access community name
    4: a SNMPv1/SNMPv2c read-write access community name
    Other options: finished, list
    Select section: f
    The configuration information which can be put into snmpd.conf is divided
    into sections. Select a configuration section for snmpd.conf
    that you wish to create:
    1: Access Control Setup
    2: Extending the Agent
    3: Monitor Various Aspects of the Running Host
    4: Agent Operating Mode
    5: System Information Setup
    6: Trap Destinations
    Other options: finished
    Select section: 4
    Section: Agent Operating Mode
    Description:
    This section defines how the agent will operate when it
    is running.
    Select from:
    1: Should the agent operate as a master agent or not.
    2: The system user that the agent runs as.
    3: The system group that the agent runs as.
    4: The IP address and port number that the agent will listen on.
    Other options: finished, list
    Select section: 1
    Configuring: master
    Description:
    Should the agent operate as a master agent or not.
    Currently, the only supported master agent type for this token
    is "agentx".
    arguments: (on|yes|agentx|all|off|no)
    Should the agent run as a AgentX master agent?:
    invalid answer! It must match this regular expression: ^(on|yes|agentx|all|off|no)$
    Should the agent run as a AgentX master agent?: y <THIS IS CRITICAL>
    invalid answer! It must match this regular expression: ^(on|yes|agentx|all|off|no)$
    Should the agent run as a AgentX master agent?: yes
    Finished Output: master yes
    Section: Agent Operating Mode
    Description:
    This section defines how the agent will operate when it
    is running.
    Select from:
    1: Should the agent operate as a master agent or not.
    2: The system user that the agent runs as.
    3: The system group that the agent runs as.
    4: The IP address and port number that the agent will listen on.
    Other options: finished, list
    Select section: 4
    Configuring: agentaddress
    Description:
    The IP address and port number that the agent will listen on.
    By default the agent listens to any and all traffic from any
    interface on the default SNMP port (161). This allows you to
    specify which address, interface, transport type and port(s) that you
    want the agent to listen on. Multiple definitions of this token
    are concatenated together (using ':'s).
    arguments: [transport:]port[@interface/address],...
    Enter the port numbers, etc that you want the agent to listen to:
    Finished Output: agentaddress
    Section: Agent Operating Mode
    Description:
    This section defines how the agent will operate when it
    is running.
    Select from:
    1: Should the agent operate as a master agent or not.
    2: The system user that the agent runs as.
    3: The system group that the agent runs as.
    4: The IP address and port number that the agent will listen on.
    Other options: finished, list
    Select section: f
    The configuration information which can be put into snmpd.conf is divided
    into sections. Select a configuration section for snmpd.conf
    that you wish to create:
    1: Access Control Setup
    2: Extending the Agent
    3: Monitor Various Aspects of the Running Host
    4: Agent Operating Mode
    5: System Information Setup
    6: Trap Destinations
    Other options: finished
    Select section: f
    I can create the following types of configuration files for you.
    Select the file type you wish to create:
    (you can create more than one as you run this program)
    1: snmpd.conf
    2: snmptrapd.conf
    3: snmp.conf
    Other options: quit
    Select File: q
    The following files were created:
    snmpd.conf installed in /usr/share/snmp
    *If these steps are wrong please feel free to correct me.

  • Getting No Reply from SNMP Request to Windows 2012 Server

    SNMP Community string has been properly configured using Properties against SNMP Service in the list of services under Computer Management/Services and Applications/Services.  SNMP Service was properly installed using Add Roles and Features.  The
    server and the client were both rebooted (restarted).  As near as I can tell (Norton is in control of the firewall on the client) the firewall on both computers has been disabled.  The program that I am using has worked in the past against Windows
    2008 with SNMP Service configured and against motion picture theater projectors.  What else can I try?
    MARK D ROCKMAN

    Hi,
    Type netstat –an at a command prompt, and then press
    ENTER. To confirm that the SNMP service uses the correct User Datagram Protocol (UDP) ports:
    UDP port 161 for general SNMP messages.
    UDP port 162 for SNMP trap messages.
    If these ports are being used by another service, you can change the settings by modifying the local services file on the agent. The services file is located in the
    %systemroot%\System32\Drivers\Etc folder.
    If you find another service or program that binds to UDP port 161, stop the automatic startup of that service or program.
    It is just a suggestion that SNMP is deprecated for Windows Server 2012. Instead, use the Common Information Model (CIM), which is supported by the WS-Management web services protocol and implemented as Windows Remote Management.
    Best Regards,
    Eve Wang
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • Writing SNMP Manager using SNMP4J

    Hello,
    I am writing a SNMP Manager that is supposed to do the following:
    (1) Send snmp commands to snmp-agents, and handle thier response.
    (2) receive snmp traps from snmp-agents.
    I am using SNMP4J software package for writing the snmp manager.
    I would like to use a SINGLE Snmp object (SNMP4J object) , both
    for sending a snmp command and for receiving snmp traps.
    SO far, I have written two separate programs:
    *** Program 1:
    ** The first program only listens for Snmp trap-PDUs.
    ** Its main code is as follows:
         // configure Snmp object
         UdpAddress address = new UdpAddress("127.0.0.1/1990");
         TransportMapping transport = new DefaultUdpTransportMapping(address);
         Snmp snmp = new Snmp(transport);
         transport.listen();
         // handle received traps here
         CommandResponder trapPrinter = new CommandResponder() {
              public synchronized void processPdu(CommandResponderEvent e) {
                   PDU command = e.getPdu();
                   if (command != null) {
                        System.out.println(command.toString());
         snmp.addCommandResponder(trapPrinter);
    *** Program 2:
    ** The second program sends GET PDUs, and its main code is as follows:
         // configure Snmp object
         UdpAddress targetAddress = new UdpAddress("127.0.0.1/1985");
         CommunityTarget target = new CommunityTarget();
         target.setCommunity(new OctetString("public"));
         target.setAddress(targetAddress);
         target.setRetries(2);
         target.setTimeout(10000); // was 1000 !!!
         target.setVersion(SnmpConstants.version1);
         Snmp snmp = new Snmp(new DefaultUdpTransportMapping());
         snmp.listen();
         // prepare the PDU for sending
         PDU command = new PDU();
         command.setType(PDU.GET);
         command.add(new VariableBinding(new OID("1.3.6.1.4.1.1331.11.5.1.0")));
         // now send the PDU
         ResponseEvent responseEvent = snmp.send(pdu, target);
         if (responseEvent != null)
              // response has arrived. handle it
         else
              System.out.println("null response received...");
    I would like to unite these two programs into one, however, I cannot seem to
    properly allocate one Snmp object to handle both the sending and receiving of PDUs.
    I run two threads: thread-1 that does the listening for snmp traps,
    and thread-2 which in charge of sending get/set PDUs.
    I allocate the Snmp object in one place as follows:
         TransportMapping transport = new DefaultUdpTransportMapping(new UdpAddress("127.0.0.1/1990"));
         Snmp snmp = new Snmp(transport);
         snmp.listen();
    and I transfer it to both threads to be used there.
    However, thread-2 sometimes fails to send PDUs using snmp.send(...);
    What am I doing wrong?
    Can anyone guide me as for how I should allocate the Snmp object so
    it is good for both sending PDUs, and for receving traps?
    Thanks,
    Nefi

    Hello,
    I am writing a SNMP Manager that is supposed to do the following:
    (1) Send snmp commands to snmp-agents, and handle thier response.
    (2) receive snmp traps from snmp-agents.
    I am using SNMP4J software package for writing the snmp manager.
    I would like to use a SINGLE Snmp object (SNMP4J object) , both
    for sending a snmp command and for receiving snmp traps.
    SO far, I have written two separate programs:
    *** Program 1:
    ** The first program only listens for Snmp trap-PDUs.
    ** Its main code is as follows:
         // configure Snmp object
         UdpAddress address = new UdpAddress("127.0.0.1/1990");
         TransportMapping transport = new DefaultUdpTransportMapping(address);
         Snmp snmp = new Snmp(transport);
         transport.listen();
         // handle received traps here
         CommandResponder trapPrinter = new CommandResponder() {
              public synchronized void processPdu(CommandResponderEvent e) {
                   PDU command = e.getPdu();
                   if (command != null) {
                        System.out.println(command.toString());
         snmp.addCommandResponder(trapPrinter);
    *** Program 2:
    ** The second program sends GET PDUs, and its main code is as follows:
         // configure Snmp object
         UdpAddress targetAddress = new UdpAddress("127.0.0.1/1985");
         CommunityTarget target = new CommunityTarget();
         target.setCommunity(new OctetString("public"));
         target.setAddress(targetAddress);
         target.setRetries(2);
         target.setTimeout(10000); // was 1000 !!!
         target.setVersion(SnmpConstants.version1);
         Snmp snmp = new Snmp(new DefaultUdpTransportMapping());
         snmp.listen();
         // prepare the PDU for sending
         PDU command = new PDU();
         command.setType(PDU.GET);
         command.add(new VariableBinding(new OID("1.3.6.1.4.1.1331.11.5.1.0")));
         // now send the PDU
         ResponseEvent responseEvent = snmp.send(pdu, target);
         if (responseEvent != null)
              // response has arrived. handle it
         else
              System.out.println("null response received...");
    I would like to unite these two programs into one, however, I cannot seem to
    properly allocate one Snmp object to handle both the sending and receiving of PDUs.
    I run two threads: thread-1 that does the listening for snmp traps,
    and thread-2 which in charge of sending get/set PDUs.
    I allocate the Snmp object in one place as follows:
         TransportMapping transport = new DefaultUdpTransportMapping(new UdpAddress("127.0.0.1/1990"));
         Snmp snmp = new Snmp(transport);
         snmp.listen();
    and I transfer it to both threads to be used there.
    However, thread-2 sometimes fails to send PDUs using snmp.send(...);
    What am I doing wrong?
    Can anyone guide me as for how I should allocate the Snmp object so
    it is good for both sending PDUs, and for receving traps?
    Thanks,
    Nefi

  • Beta Refresh Release Now Available!  Sun Cluster 3.2 Beta Program

    The Sun Cluster 3.2 Release team is pleased to announce a Beta Refresh release. This release is based on our latest and greatest build of Sun Cluster 3.2, build 70, which is close to the final Revenue Release build of the product.
    To apply for the Sun Cluster 3.2 Beta program, please visit:
    https://feedbackprograms.sun.com/callout/default.html?callid=%7B11B4E37C-D608-433B-AF69-07F6CD714AA1%7D
    or contact Eric Redmond <[email protected]>.
    New Features in Sun Cluster 3.2
    Ease of use
    * New Sun Cluster Object Oriented Command Set
    * Oracle RAC 10g improved integration and administration
    * Agent configuration wizards
    * Resources monitoring suspend
    * Flexible private interconnect IP address scheme
    Availability
    * Extended flexibility for fencing protocol
    * Disk path failure handling
    * Quorum Server
    * Cluster support for SMF services
    Flexibility
    * Solaris Container expanded support
    * HA ZFS
    * HDS TrueCopy campus cluster
    * Veritas Flashsnap Fast Mirror Resynchronization 4.1 and 5.0 option support
    * Multi-terabyte disk and EFI label support
    * Veritas Volume Replicator 5.0 support
    * Veritas Volume Manager 4.1 support on x86 platform
    * Veritas Storage Foundation 5.0 File System and Volume Manager
    OAMP
    * Live upgrade
    * Dual partition software swap (aka quantum leap)
    * Optional GUI installation
    * SNMP event MIB
    * Command logging
    * Workload system resource monitoring
    Note: Veritas 5.0 features are not supported with SC 3.2 Beta.
    Sun Cluster 3.2 beta supports the following Data Services
    * Apache (shipped with the Solaris OS)
    * DNS
    * NFS V3
    * Java Enterprise System 2005Q4: Application Server, Web Server, Message Queue, HADB

    Without speculating on the release date of Sun Cluster 3.x or even its feature list, I would like to understand what risk Sun would take when Sun Cluster would support ZFS as a failover filesystem? Once ZFS is part of Solaris 10, I am sure customers will want to use it in clustered environments.
    BTW: this means that even Veritas will have to do something about ZFS!!!
    If VCS is a much better option, it would be interesting to understand what features are missing from Sun Cluster to make it really competitive.
    Thanks
    Hartmut

  • How to configure SNMP on DMS or DMP?

    for the first, English is not my mother tounge, so I may write a lot of mistake of my words.
    One of my customer want to infomation of DMP that is down or up with SNMP tool.
    I had download the tool named 'SNMP TESTER' and test with DMP, and DMS.
    But the DMP has no SNMP configure set module or command. Only DMM has one sections of it's administrator - settings.
    I changed the DMM setting like this
    Queries
    Query Operations : Enabled
    Read Community : public
    Notifications
    Notification Operations : Enabled
    Hostname or IP Address : 172.16.100.143
    Port : 162
    Trap Community : public
    ==========================================================
    and my SNMP tester settings below.
    Host name or address : 172.16.100.251
    Community name : public
    and these are logs of fail to test.
    2012-11-07 17:27:04 - Starting SNMP test...
    2012-11-07 17:27:04 - Connecting to
    [email protected]
    2012-11-07 17:27:05 - ERROR: Unable to complete the test.
    2012-11-07 17:27:05 - ERROR: Data is incorrect (13)
    2012-11-07 17:27:05 - [SNMP status] .1.3.6.1.2.1.1.1.0, .1.3.6.1.2.1.1.5.0, .1.3.6.1.2.1.4.1.0: No such name (#1)
    ==========================================================
    My SNMP tester installed PC IP : 172.16.100.143
    DMM : 172.16.100.251(Version 5.2)
    DMP 4400 : 172.16.100.85 (UP status)
    The SNMP service looks enabled. In fact, I'm not sure it's configure is right and working.
    I'm not close to SNMP. So, I hope your experts will show me greatful kindness.
    just two thing that the customer wants is simple.
    OID number status 2 code and show them to within SNMP Tester. (UP & Down  2 status OID code needed)
    How can I test the SNMP service is working and Showing the status of DMP within SNMP Tester?
    P.S I attached the SNMP Tester program for your testing.

    Hi Rafik, here is a basic snmp v1/v2 configuration
    snmp-server server
    snmp-server community test1234 rw view DefaultSuper
    This is basically wide open to anyone who knows the password. This should be enough to get you started then you can tweak additional options as you go. Give this a test, see if you can do what you're trying to do then modify this sample to work for your security needs.
    -Tom
    Please mark answered for helpful posts

Maybe you are looking for

  • HT4623 i no longer have video capability on my ipad mini after downloading ios7. has anyone else had this problem?

    i no longer have video capability on my ipad mini after downloading ios7. has anyone else had this problem?

  • Cannot run form twice in 10g form builder

    i cannot run the form twice in 10g developer suite it will show the source code in html as below <html> <head> ORACLE FORMS.</head> <body onload="document.pform.submit();" > <form name="pform" action="http://salmana.asry.com:8891/forms90/f90servlet"

  • External interface memory leak?

    Hello, I am embedding the flash player inside a Visual C++ application. My program uses the external interface extensively. The external interface is called several times a second ( ~20 fps ) each time a ~1k XML string is passed to the flash player.

  • Strange jdbc problem

    I had a very strange problem when i connect oracle database. i had only use "select * from table" but it can't work. the exception information there has no table or view .but if i put it into object browser and it can execute well.or if i change the

  • Can see wireless network, excellent signal, yet no internet..​..Help!!

    I have a wireless network that has been working fine for the last couple years.  About a month ago, I ran into this issue:  my laptops all see my network, register excellent signal, yet I can't do anything, access internet, my work VPN, etc.  I had u