Where is my C:\Sun\Appserver folder??

Hi all. I'm new to java and java ee. I installed java ee 5 SDK with application server PE 9 and the tutorial. The example of hello1 works fine. However, I got the error message when I was trying to build other examples.
"BUILD FAILED
E:\Java\javaeetutorial5\examples\bp-project\command-line-ant-tasks.xml:89: C:\Sun\AppServer not found."
I do not have that folder on my machine. Everything installed is in C:\Program Files\Sun\SDK\ and the path variable is set automaticlly as C:\Program Files\Sun\SDK\bin
What's wrong? Do I need to install something else to make other examples in the tutorial work? Thank you.

Do you mean set the variable name as "java.home" and the value as the AppServer path? The only appserver fold in the java ee 5 sdk is "C:\Program Files\Sun\SDK\addons\jbi\appserver". I set it as the value of java.home and it's not working.
I have the sun application server which was installed with SDK. Should I install another appserver separately?

Similar Messages

  • The sun-appserv-admin task doesn't support

    Help! - this is driving me nuts! I am trying to build the bookstore example and get this error on asant steps that involve the admin-command-common target (such as "asant deploy-war").
    I am running Studio Creator with SunAppServer8 under it. The command looks right. If I remove the passwordfile line from the admin-command-common target, I get the same error on another attribute in the command.
    The password file exists where it should and contains valid information, including the correct password.
    I have run this same bookstore example build on another workstation and it worked, but on that box, there was an instance of SunAppserver 7 (not under Studio Creator). That build was successful so I assume this is a configuration issue, but I don't know what it is. I am attaching the error and the listprops. If anyone knows what is wrong I sure would appreciate your help
    Thanks!
    Robert Hill
    C:\j2eetutorial14\examples\web\bookstore1>asant deploy-war
    Buildfile: build.xml
    deploy-war:
    admin_command_common:
    [echo] Doing admin task deploy bookstore1.war
    BUILD FAILED
    file:C:/j2eetutorial14/examples/common/targets.xml:36: The <sun-appserv-admin> t
    ask doesn't support the "passwordfile" attribute.
    Total time: 1 second
    C:\j2eetutorial14\examples\web\bookstore1>
    C:\j2eetutorial14\examples\web\bookstore>asant listprops
    Buildfile: build.xml
    listprops:
    [echo] Path information
    [echo] j2ee.home = C:/Sun/Creator/SunAppServer8
    [echo] j2ee.tutorial.home = C:/j2eetutorial14
    [echo] j2ee.home = C:/Sun/Creator/SunAppServer8
    [echo] env.Path = .;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem
    ;C:\Program Files\ATI Technologies\ATI Control Panel;C:\Program Files\Common Fil
    es\Adaptec Shared\System;c:\Program Files\Microsoft SQL Server\90\Tools\Binn\;c:
    \j2sdk1.4.2_06\bin;C:\Sun\Creator\SunAppServer8\bin;C:\j2sdk1.4.2_06
    [echo] env.PATH = ${env.PATH}
    [echo] Classpath information
    [echo] classpath = C:\j2sdk1.4.2_06
    [echo] Admin information
    [echo] admin.password =
    [echo] admin.password.file = C:/j2eetutorial14/examples/common/admin-passwo
    rd.txt
    [echo] admin.host = localhost
    [echo] admin.user = admin
    [echo] admin.port = 14848
    [echo] https.port = 18181
    [echo] Domain information
    [echo] domain.resources = "domain.resources"
    [echo] domain.resources.port = 18080
    [echo] Database information
    [echo] db.root = C:/Sun/Creator/SunAppServer8/pointbase
    [echo] db.driver = com.pointbase.jdbc.jdbcUniversalDriver
    [echo] db.host = localhost
    [echo] db.port = 19092
    [echo] db.sid = sun-appserv-samples
    [echo] db.url = jdbc:pointbase:server://localhost:19092/sun-appserv-samples
    [echo] db.user = pbpublic
    [echo] db.pwd = pbpublic
    [echo] url.prop = DatabaseName
    [echo] ds.class = com.pointbase.jdbc.jdbcDataSource
    [echo] db.jvmargs = -ms16m -mx32m
    BUILD SUCCESSFUL
    Total time: 1 second
    C:\j2eetutorial14\examples\web\bookstore>
    clipped from targets.xml
    <target name="admin_command_common">
    <echo message="Doing admin task ${admin.command}"/>
    <sun-appserv-admin
    command="${admin.command}"
    user="${admin.user}"
    passwordfile="${admin.password.file}"
    host="${admin.host}"
    port="${admin.port}"
    asinstalldir="${j2ee.home}" />
    </target>

    Dude!
    Try this.
    change that target I was talkin about to
    <target name="admin_command_common">
         <property file="${j2ee.home}/j2eetutorial14/examples/common/admin-password.txt"/>
    <echo message="Doing admin task ${admin.command} with password"/>
    <sun-appserv-admin
    command="${admin.command}"
    user="${admin.user}"
    password="${AS_ADMIN_PASSWORD}"
    host="${admin.host}"
    port="${admin.port}"
    />
    </target>
    Reason?
    well, the blinkin 'asinstalldir' attrib is ... optional!
    The build succeeds and deploys the war.
    C:\java\Sun\Appserver\j2eetutorial14\examples\web\bookstore1>asant deploy-war
    Buildfile: build.xml
    deploy-war:
    admin_command_common:
    [echo] Doing admin task deploy bookstore1.war with password
    [sun-appserv-admin] Executing: deploy port 4848 host localhost --password ad
    min123 --user admin bookstore1.war
    [sun-appserv-admin] Command deploy executed successfully.
    BUILD SUCCESSFUL
    Total time: 7 seconds

  • Configuring CDSSO on Sun appserver 7 (update 8)

    Guys,
    I have the following senario
    Sun Appserver 7_08
    Policy Agent 2.1.1
    Windows XP Profesional.
    Tried an application and the policy in a single domain scenario. The so called filter mode was configured 'ALL'. I this scenario, the SJS Acess Manager and Poicy Agent where working fine.
    Agent log
    [Sunday, January 15, 2006 5:48:36 PM GMT+01:00] [AQIC5wM2LY4SfcyVFwe/R26ZBXn84qASkWoeXrU87VOC1SI=@AAJTSQACMDE=#]
    Access to http://frege.afrikaring.net:80/test/everyone/ allowed for user uid=wdoorn,ou=People,o=demo,dc=afrikaring,dc=net
    After that I changed the domain of the appserver machine. Change the AMAgent.proverties as well to create a cross domain situation. I created new policies in the SJS Access Manager (new resource with hostname). This resulted in the fact that the authentication was failing. The agent log tells us the following.
    Access to http://java.domain3.nl:80/test/everyone/ denied for user UNKNOWN [Sunday, January 15, 2006 9:55:54 PM GMT+01:00] [null]
    Even if the user is logged in to SJS access Manager first.
    My questions is whether CDSSO is working in combination with appserver 7 (update 8) and Policy Agent 2.1.1 on Windows XP Professional OS.
    Thanks in advance for any help,
    Elger

    Have you already set the debug and had a look into the agent�s debug log.
    Have you put the "cdssoredirecturi" into the notenforced-list?

  • Eclipse: Ant: sun-appserv-deploy, not working, help please.

    Hello,
    Trying to use Eclipse: Ant to deploy using the build.xml to localhost. I have the following target in my Ant build.xml file, but it's not picking up the <sun-appserv-deploy> tag.
    I have the following file is the Ant classpath:
    C:\Sun\studio5u1_se\appserver7\lib\ant\lib\jakarta-ant-1.4.1-optional.jar.
    I'm not asking for Eclipse configuration or Ant help, but what .jar file(s) do I need and where do they have to be for Ant to recognize the <sun-appserv-deploy> tag?

    The sun-appserv-deploy tasks are defined in the sun-appserv-ant.jar (which I think is in C:\Sun\studio5u1_se\appserver7\lib on your machine).
    Check the ant documentation for instructions on integrating tasks into your environment.
    vbk

  • Deploying to Sun AppServer PE 8.1 (build b41-fcs) with an Oracle database

    Hello,
    I'm trying to deploy an application to Sun AppServer PE 8.1(an external server, not the embedded one).
    I already know that the direct deployment preview feature doesn't work with 8.1:
    http://swforum.sun.com/jive/thread.jspa?forumID=123&threadID=50572
    So I tried the export war method, and correctly configured the resource ref with the deployment tool. The deployment itself worked fine, but I can't access the database.
    The oracle drivers, from their web site don't work, I get the following exception:
    [#|2005-01-25T20:33:48.642+0000|SEVERE|sun-appserver-pe8.1|javax.enterprise.system.container.web|_ThreadID=19;|WebModule[/smwebinterface]userView Initialization Failure
    javax.faces.FacesException: java.sql.SQLException: JDBC driver does not support PreparedStatement.getMetaData()
    (...)I also tried to use the JSC bundled drivers as explained in
    http://devservices.sun.com/premium/jscreator/standard/learning/tutorials/appserver7.html
    and I got the following exception:
    [#|2005-01-25T19:44:56.236+0000|WARNING|sun-appserver-pe8.1|javax.enterprise.system.stream.err|_ThreadID=15;|JdbcRowSetXImpl (prepare): [sunm][Oracle JDBC Driver]This driver is locked for use with embedded applications.|#]
    [#|2005-01-25T19:44:56.252+0000|SEVERE|sun-appserver-pe8.1|javax.enterprise.system.container.web|_ThreadID=15;|WebModule[/smwebinterface]userView Initialization Failure
    javax.faces.FacesException: java.sql.SQLException: [sunm][Oracle JDBC Driver]This driver is locked for use with embedded applications.
         at com.sun.jsfcl.data.RowSetDataModel.synchronize(RowSetDataModel.java:1197)
         at com.sun.jsfcl.data.RowSetDataModel.connect(RowSetDataModel.java:962)
         at
    Caused by: java.sql.SQLException: [sunm][Oracle JDBC Driver]This driver is locked for use with embedded applications.
         at com.sun.sql.jdbc.base.BaseExceptions.createException(Unknown Source)
         at com.sun.sql.jdbc.base.BaseExceptions.getException(Unknown Source)
         at com.sun.sql.jdbc.base.BaseConnection.prepareStatement(Unknown Source)
         at com.sun.gjc.spi.ConnectionHolder.prepareStatement(ConnectionHolder.java:407)
         at com.sun.sql.rowset.JdbcRowSetXImpl.prepare(JdbcRowSetXImpl.java:560)
         at com.sun.sql.rowset.JdbcRowSetXImpl.getMetaData(JdbcRowSetXImpl.java:1005)
         at com.sun.jsfcl.data.RowSetDataModel.synchronize(RowSetDataModel.java:1172)
         ... 92 more
    |#]It appears that these drivers are somehow locked to JSC and cannot be used in production servers, despite what the tutorial says ....
    Has anybody dealt with this issue before? Can someone help me with this?
    Thanx,
    Pedro Pires

    Oracle drivers have that limitation - that's one reason why we ship with our own drivers for accessing oracle.
    For trying to use the JSC bundled drivers in 8.1 - there's license restrictions (read $$$) involved with using JSC bundled drivers and "other" app servers. It this case, 8.1 PE (emphasis on the PE) is classified as an "other".
    Buying 8.1 (i.e., non PE), or waiting for JSC to bundle 8.1, seem to be your options if 8.1 is required.

  • Sun AppServer 9.0 Update 1 on Solaris not supporting form-based auth

    Ok, I installed Appserver 9 on a Solaris box and then started up the default domain1. When I point the browser to http://localhost:4848 I am not pointed to the login page for the admingui, it just bypasses the authentication and I am allowed to perform all admin actions without logging in. I then deployed a custom web application that uses form-based authentication that works correctly on Sun Appserver 8.1. However it behaves the same way as the admingui application (I am not presented with a login page). After setting some of the log levels to FINEST and looking at the logs it appears that when these requests are coming in they are not matching any constraint (but the constraints are defined in the web.xml). Installing Appserver 9 on a win2k box does not have this issue. Has anyone else seen this problem? Is there some security setting that is not turned on by default from the solaris install????

    Ok if anyone is interested I was able to fix my problem. It looks like the issue is the version of java used with Appserver 9 on Solaris. The latest version of java i have on the machine is Java 1.5.0_06, but everytime I try to install the Appserver with this version it hangs at 39% into the installation. The next latest version of Java i have on the machine is 1.5.0_02, so that is the version I was using to install and the install works perfectly. However, after the install the form-based authentication does not work with this version of Java on Solaris.
    They way I fixed this was to modify the asenv.conf file in the Appserver_Install dirrectory to point to the Java 1.5.0_06 installation and started the domain, now the form-based authentication is working as expected.
    I guess my question now is does anyone know why I can't install the server with Java 1.5.0_06? But it looks like I need that version to actually run things correctly.

  • Sun AppServer can't start

    Hi everybody.
    I hope this is the right forum to post this question. If not, I'm sorry. My problem is: I've just downloaded and installed J2EE SDK and when I try to run Sun AppServer, I get this error message from Java Virtual Machine Launcher saying "Can not find the main class".
    Has anybody encountered this kind of problem? I would be greatfull for any hint, since this is very frustrating.
    TIA
    P.S. I'm running windowsXP, if that might be relevant.

    I seem to have exactly the same problem. Also running XP professional.
    Just downloaded and installed J2EE 1.4
    < j2eesdk-1_4-dr-windows-eval.exe >
    and when I try to start < Start Default Domain > I get the message "Could not find the main class. Program will exit" from the Java Virtual Machine Launcher.
    The command prompt window shows the following text
    Starting Domain domain1, please wait.
    Log redirected to C:\Sun\AppServer\domains\domain1\logs\server.log.
    Timeout waiting for domain domain1 to go to starting state.
    CLI156 Could not start the domain domain1.
    Press any key to continue . . .
    and the log files shows a zero length, and appears blank/empty when you examin it.
    Any comments welcome, thanks Joe Cullity

  • Can't PING a Datasource from  Sun AppServer 1.4

    posted February 25, 2004 06:49 PM
    Hi all!
    I am trying to create a datasoure in Sun AppServer 1.4 Developer Release. To connect to MySQL
    After download and installed the mysql-connector, I created a connection pool in the appserver called mySQLconPool with the following settings:
    Datasource Classname: com.mysql.jdbc.jdbc2.optional.MysqlConnectionPoolDataSource
    Additional Properties
    serverName: 127.0.0.1
    databaseName:test
    port:3306
    user:Admin
    password:admin
    I added the mysql-connector jar file path to the app server> JVM Settings> Classpath sufix.
    The problem is that if I try to PING the connection I get the following error:
    quote:
    An error has occurred.
    Operation 'pingConnectionPool' failed in 'resources' Config Mbean. Target exception message: Error getting connection from the EIS
    What am I doing wrong? Am I missing something?
    Please if any of you can help me I will appreciate!!!!!!
    Thanks in advance,
    JOSEL

    Hi aagore:
    First thank you for replying. Here you have a snippet you domain.xml:
    <jdbc-connection-pool connection-validation-method="auto-commit" datasource-classname="com.mysql.jdbc.jdbc2.optional.MysqlConnectionPoolDataSource" fail-all-connections="false" idle-timeout-in-seconds="300" is-connection-validation-required="false" is-isolation-level-guaranteed="false" max-pool-size="32" max-wait-time-in-millis="60000" name="mySQLconPool" pool-resize-quantity="2" steady-pool-size="8">
    <property name="url" value="jdbc:mysql://127.0.0.1:3306/sss"/>
    <property name="user" value="Admin"/>
    <property name="port" value="3306"/>
    <property name="databaseName" value="sss"/>
    <property name="password" value="admin"/>
    <property name="serverName" value="127.0.0.1"/>
    </jdbc-connection-pool>
    </resources>
    JOSEL

  • How to setup ORB in sun appserver 8?

    Dear All,
    I would like to try to use a deployed EJB from a remote server, but do not know how to do.
    Suppose there are 2 machines, that are PC A and PC B. I would like the EJB to be deployed on the sub appserver 8 on the PC A, and the bean to be able to be accessed by a client on PC B.
    Does anyone know any tutorial on doing this?
    I know that there is some settings about ORB in sun appserver 8, but do not have any idea on how to set it.
    Henry Cheung

    Have you looked at the Developer's Guide? Specifically, the section on developing clients.
    http://docs.sun.com/source/819-0079/dgacc.html

  • Sun Appserver V9.0 Facing following error while starting server

    C:/Sun/AppServer/jdk\bin\java
    -client
    -Xmx512m
    -XX:NewRatio=2
    -Dcom.sun.aas.defaultLogFile=C:/Sun/AppServer/domains/domain1/logs/server.log
    -Djava.endorsed.dirs=C:/Sun/AppServer/lib/endorsed
    -Djava.security.policy=C:/Sun/AppServer/domains/domain1/config/server.policy
    -Djava.security.auth.login.config=C:/Sun/AppServer/domains/domain1/config/login.conf
    -Dsun.rmi.dgc.server.gcInterval=3600000
    -Dsun.rmi.dgc.client.gcInterval=3600000
    -Djavax.net.ssl.keyStore=C:/Sun/AppServer/domains/domain1/config/keystore.jks
    -Djavax.net.ssl.trustStore=C:/Sun/AppServer/domains/domain1/config/cacerts.jks
    -Djava.ext.dirs=C:/Sun/AppServer/jdk/jre/lib/ext;C:/Sun/AppServer/domains/domain1/lib/ext;C:/Sun/AppServer/javadb/lib
    -Djdbc.drivers=org.apache.derby.jdbc.ClientDriver
    -Djavax.management.builder.initial=com.sun.enterprise.admin.server.core.jmx.AppServerMBeanServerBuilder
    -Dcom.sun.enterprise.config.config_environment_factory_class=com.sun.enterprise.config.serverbeans.AppserverConfigEnvironmentFactory
    -Dcom.sun.enterprise.taglibs=appserv-jstl.jar,jsf-impl.jar
    -Dcom.sun.enterprise.taglisteners=jsf-impl.jar
    -Djavax.xml.parsers.DocumentBuilderFactory=com.sun.org.apache.xerces. \internal.jaxp.DocumentBuilderFactoryImpl
    -Dcom.sun.aas.classloader.optionalOverrideableChain=appserv-ws.jar,commons-logging.jar,commons-launcher.jar
    -Dcom.sun.aas.classloader.appserverChainJars=admin-cli.jar,admin-cli-ee.jar,dbschema.jar,j2ee-svc.jar
    -Dcom.sun.aas.classloader.serverClassPath.ee=%HADB_HOME%/lib/hadbjdbc4.jar,C:/Sun/AppServer/lib/SUNWjdmk/5.1/lib/jdmkrt.jar,%HADB_HOME%/lib/dbstate.jar,%HADB_HOME%/lib/hadbm.jar,%HADB_HOME%/lib/hadbmgt.jar,C:/Sun/AppServer/lib/SUNWmfwk/lib/mfwk_instrum_tk.jar
    -Dcom.sun.aas.configName=server-config
    -Ddomain.name=domain1
    -Djmx.invoke.getters=true
    -Dcom.sun.aas.promptForIdentity=true
    -Dcom.sun.aas.classloader.optionalOverrideableChain.ee=
    -Dcom.sun.aas.instanceRoot=C:/Sun/AppServer/domains/domain1
    -Dcom.sun.aas.domainName=domain1
    -Dcom.sun.aas.classloader.sharedChainJars=javaee.jar,C:/Sun/AppServer/jdk/lib/tools.jar,install/applications/jmsra/imqjmsra.jar,commons-launcher.jar,C:/Sun/AppServer/imq/lib/jaxm-api.jar,C:/Sun/AppServer/imq/lib/fscontext.jar,C:/Sun/AppServer/imq/lib/imqbroker.jar,C:/Sun/AppServer/imq/lib/imqjmx.jar,C:/Sun/AppServer/imq/lib/imqxm.jar,C:/Sun/AppServer/lib/ant/lib/ant.jar,appserv-ws.jar,mail.jar,jsf-api.jar,jsf-impl.jar,appserv-jstl.jar,appserv-env.jar,jmxremote_optional.jar,C:/Sun/AppServer/lib/SUNWjdmk/5.1/lib/jdmkrt.jar,commons-logging.jar,activation.jar,appserv-rt.jar,appserv-admin.jar,appserv-cmp.jar
    -Dcom.sun.aas.classloader.sharedChainJars.ee=appserv-se.jar,appserv-ee.jar,%HADB_HOME%/lib/dbstate.jar,%HADB_HOME%/lib/hadbjdbc4.jar,jgroups-all.jar,C:/Sun/AppServer/lib/SUNWmfwk/lib/mfwk_instrum_tk.jar
    -Djava.util.logging.manager=com.sun.enterprise.server.logging.ServerLogManager
    -Dcom.sun.enterprise.overrideablejavaxpackages=javax.xml.bind,javax.help,javax.portlet
    -Dcom.sun.aas.classloader.serverClassPath=C:/Sun/AppServer/lib/install/applications/jmsra/imqjmsra.jar,C:/Sun/AppServer/imq/lib/jaxm-api.jar,C:/Sun/AppServer/imq/lib/fscontext.jar,C:/Sun/AppServer/imq/lib/imqbroker.jar,C:/Sun/AppServer/imq/lib/imqjmx.jar,C:/Sun/AppServer/lib/ant/lib/ant.jar,C:/Sun/AppServer/lib/SUNWjdmk/5.1/lib/jdmkrt.jar
    -Dcom.sun.aas.classloader.appserverChainJars.ee=
    -Dcom.sun.aas.configRoot=C:/Sun/AppServer/config
    -Djava.library.path=C:\Sun\AppServer\lib;C:\Sun\AppServer\lib;C:\Sun\AppServer\jdk\bin;.;C:\SYSROOT\system32;C:\SYSROOT;C:\Sun\AppServer\lib;C:\Sun\AppServer\bin;C:\Sun\AppServer\bin;C:\Sun\AppServer\bin;C:\SYSROOT\system32;C:\SYSROOT;C:\SYSROOT\System32\Wbem;C:\PROGRA~1\CA\ETRUST~1;D:\j2sdk1.4.2_05\bin;D:\Program Files\python;C:\PROGRA~1\ABSOLU~1;C:\PROGRA~1\CA\SHARED~1\SCANEN~1;C:\Sun142\AppServer\bin
    -Dcom.sun.aas.instanceName=server
    -Dcom.sun.aas.processLauncher=SE
    -Dcom.sun.aas.installRoot=C:/Sun/AppServer
    -Dcom.sun.aas.ClassPathPrefix=
    -Dcom.sun.aas.ClassPathSuffix=;C:\Sun\AppServer\addons\amserver\amclientsdk.jar;C:\Sun\AppServer\addons\amserver\amwebServiceProvider.jar;C:\Sun\AppServer\addons\amserver
    -Dcom.sun.aas.ServerClassPath=
    -cp
    ;C:/Sun/AppServer/lib/appserv-launch.jar
    com.sun.enterprise.server.PELaunch
    start|#]
    [#|2006-09-15T11:02:35.125+0530|INFO|sun-appserver-pe9.0|javax.enterprise.system.core|_ThreadID=10;_ThreadName=main;|Starting Sun Java System Application Server Platform Edition 9.0 (build b48) ...|#]
    [#|2006-09-15T11:02:35.390+0530|WARNING|sun-appserver-pe9.0|javax.enterprise.system.stream.err|_ThreadID=10;_ThreadName=main;|java.lang.reflect.InvocationTargetException
         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 com.sun.enterprise.server.PELaunch.main(PELaunch.java:272)
    Caused by: javax.xml.parsers.FactoryConfigurationError: Provider com.sun.org.apache.xerces. \internal.jaxp.DocumentBuilderFactoryImpl could not be instantiated: java.lang.NullPointerException
         at javax.xml.parsers.DocumentBuilderFactory.newInstance(DocumentBuilderFactory.java:104)
         at org.netbeans.modules.schema2beans.GraphManager.createXmlDocument(GraphManager.java:404)
         at org.netbeans.modules.schema2beans.BaseBean.createGraph(BaseBean.java:2172)
         at com.sun.enterprise.config.impl.ConfigContextImpl.refresh(ConfigContextImpl.java:363)
         at com.sun.enterprise.config.impl.ConfigContextImpl.refresh(ConfigContextImpl.java:468)
         at com.sun.enterprise.config.impl.ConfigContextImpl.getRootConfigBean(ConfigContextImpl.java:259)
         at com.sun.enterprise.config.ConfigBeansFactory.getConfigBeanByXPath(ConfigBeansFactory.java:85)
         at com.sun.enterprise.config.serverbeans.ServerBeansFactory.getServerBean(ServerBeansFactory.java:104)
         at com.sun.enterprise.config.serverbeans.ServerBeansFactory.getConfigModel(ServerBeansFactory.java:77)
         at com.sun.enterprise.config.serverbeans.ServerBeansFactory.getConfigBean(ServerBeansFactory.java:115)
         at com.sun.enterprise.server.logging.ModuleToLoggerNameMapper.getMatchedModuleLoggerName(ModuleToLoggerNameMapper.java:191)
         at com.sun.enterprise.server.logging.BaseLogManager.addLogger(BaseLogManager.java:156)
         at java.util.logging.Logger.getLogger(Logger.java:232)
         at sun.rmi.runtime.Log$LoggerLogFactory.createLog(Log.java:154)
         at sun.rmi.runtime.Log.getLog(Log.java:121)
         at sun.rmi.server.Util.<clinit>(Util.java:51)
         at sun.rmi.server.UnicastRef.<clinit>(UnicastRef.java:33)
         at java.rmi.server.RemoteServer.<clinit>(RemoteServer.java:97)
         at com.sun.enterprise.admin.server.core.channel.AdminChannel.createServerObject(AdminChannel.java:234)
         at com.sun.enterprise.admin.server.core.channel.AdminChannel.createRMIChannel(AdminChannel.java:92)
         at com.sun.enterprise.admin.server.core.AdminChannelLifecycle.onInitialization(AdminChannelLifecycle.java:61)
         at com.sun.enterprise.server.ss.ASLazyKernel.initializeAdminService(ASLazyKernel.java:181)
         at com.sun.enterprise.server.ss.ASLazyKernel.startASSocketServices(ASLazyKernel.java:80)
         at com.sun.enterprise.server.ondemand.OnDemandServer.onInitialization(OnDemandServer.java:84)
         at com.sun.enterprise.server.PEMain.run(PEMain.java:316)
         at com.sun.enterprise.server.PEMain.main(PEMain.java:260)
         ... 5 more
    |#]
    recursive call into SystemOutandErrhandler
    java.lang.RuntimeException: recursivecall
         at com.sun.enterprise.server.logging.SystemOutandErrHandler$LoggingByteArrayOutputStream.flush(SystemOutandErrHandler.java:346)
         at java.io.PrintStream.write(PrintStream.java:414)
         at com.sun.enterprise.server.logging.SystemOutandErrHandler$LoggingPrintStream.write(SystemOutandErrHandler.java:280)
         at sun.nio.cs.StreamEncoder$CharsetSE.writeBytes(StreamEncoder.java:336)
         at sun.nio.cs.StreamEncoder$CharsetSE.implFlushBuffer(StreamEncoder.java:404)
         at sun.nio.cs.StreamEncoder.flushBuffer(StreamEncoder.java:115)
         at java.io.OutputStreamWriter.flushBuffer(OutputStreamWriter.java:169)
         at java.io.PrintStream.write(PrintStream.java:459)
         at java.io.PrintStream.print(PrintStream.java:602)
         at com.sun.enterprise.server.logging.SystemOutandErrHandler$LoggingPrintStream.print(SystemOutandErrHandler.java:192)
         at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:985)
         at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:978)
         at java.lang.Thread.dispatchUncaughtException(Thread.java:1778)

    By Sun Appserver v9.0, you mean GlassFish. I did not have any problem is deploying Creator 2U1 project to Glass Fish. See my blog on this
    http://blogs.sun.com/winston/entry/deploying_to_glassfish
    - Winston

  • SUN AppServer PE 8.2 with Hibernate security problems

    All,
    I have an EAR (EJB + WEB) successfully deployed and working on JBoss 4.0.3SP1, IBM WebSphere, BEA Weblogic. I am currently trying to deploy it on SUN AppServer PE 8.2 and am running into lots of security issues.
    So far I had to add the following to my /home/sandeepk/apps/SUNWappserver/domains/domain1/config/server.policy file:
    grant {
    // Permission for allowing Hibernate read/write from it's configuration files.
         permission java.util.PropertyPermission "*", "read,write";
    // Permission for cglib part of Hibernate framework
    permission java.lang.RuntimePermission "getProtectionDomain";
    permission java.lang.reflect.ReflectPermission "suppressAccessChecks";
         // Permissions to get Apache Axis to work
    permission java.lang.RuntimePermission "createClassLoader";
         permission java.lang.RuntimePermission "getClassLoader";
    grant codeBase "file:${com.sun.aas.installRoot}/domains/domain1/applications/j2ee-modules/-" {
    permission java.security.AllPermission;
    The above additions resolved Apache Axis and Hibernate SessionFactory security issues but I still get the following Exception which I am not able to figure out how to resolve.
    javax.ejb.EJBException
    at com.sun.ejb.containers.BaseContainer.processSystemException(BaseContainer.java:2807)
    at com.sun.ejb.containers.BaseContainer.completeNewTx(BaseContainer.java:2713)
    at com.sun.ejb.containers.BaseContainer.postInvokeTx(BaseContainer.java:2521)
    at com.sun.ejb.containers.BaseContainer.postInvoke(BaseContainer.java:819)
    at com.sun.ejb.containers.EJBObjectInvocationHandler.invoke(EJBObjectInvocationHandler.java:160)
    at $Proxy174.findHelpScreenObjectsNoGuid(Unknown Source)
    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 com.sun.corba.ee.impl.presentation.rmi.StubInvocationHandlerImpl.invoke(Unknown Source)
    at com.sun.corba.ee.impl.presentation.rmi.bcel.BCELStubBase.invoke(Unknown Source)
    at com.adminserver.dal._HelpScreenFacadeRemote_DynamicStub.findHelpScreenObjectsNoGuid(_HelpScreenFacadeRemote_DynamicStub.java)
    at com.adminserver.utl.HibernateInitUtl.init(HibernateInitUtl.java:43)
    at javax.servlet.GenericServlet.init(GenericServlet.java:261)
    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.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:249)
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
    at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:282)
    at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:165)
    at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:118)
    at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1093)
    at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:931)
    at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4183)
    at org.apache.catalina.core.StandardContext.start(StandardContext.java:4536)
    at com.sun.enterprise.web.WebModule.start(WebModule.java:241)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1086)
    at org.apache.catalina.core.StandardHost.start(StandardHost.java:847)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1086)
    at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:483)
    at org.apache.catalina.startup.Embedded.start(Embedded.java:894)
    at com.sun.enterprise.web.WebContainer.start(WebContainer.java:741)
    at com.sun.enterprise.web.PEWebContainer.startInstance(PEWebContainer.java:515)
    at com.sun.enterprise.web.PEWebContainerLifecycle.onStartup(PEWebContainerLifecycle.java:54)
    at com.sun.enterprise.server.ApplicationServer.onStartup(ApplicationServer.java:300)
    at com.sun.enterprise.server.PEMain.run(PEMain.java:294)
    at com.sun.enterprise.server.PEMain.main(PEMain.java:220)
    Caused by: java.lang.IllegalStateException: Operation not allowed
    at com.sun.ejb.containers.PMTransactionManagerImpl.suspend(PMTransactionManagerImpl.java:91)
    at org.hibernate.cache.TreeCache.suspend(TreeCache.java:101)
    at org.hibernate.cache.TreeCache.put(TreeCache.java:71)
    at org.hibernate.cache.TransactionalCache.put(TransactionalCache.java:50)
    at org.hibernate.engine.TwoPhaseLoad.initializeEntity(TwoPhaseLoad.java:126)
    at org.hibernate.loader.Loader.initializeEntitiesAndCollections(Loader.java:530)
    at org.hibernate.loader.Loader.doQuery(Loader.java:436)
    at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:218)
    at org.hibernate.loader.Loader.doList(Loader.java:1593)
    at org.hibernate.loader.Loader.list(Loader.java:1577)
    at org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:395)
    at org.hibernate.hql.ast.QueryTranslatorImpl.list(QueryTranslatorImpl.java:271)
    at org.hibernate.impl.SessionImpl.list(SessionImpl.java:844)
    at org.hibernate.impl.QueryImpl.list(QueryImpl.java:74)
    at com.adminserver.dal.HelpScreenFacadeEJB.findHelpScreenObjectsNoGuid(HelpScreenFacadeEJB.java:112)
    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 com.sun.enterprise.security.SecurityUtil$2.run(SecurityUtil.java:153)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sun.enterprise.security.application.EJBSecurityManager.doAsPrivileged(EJBSecurityManager.java:957)
    at com.sun.enterprise.security.SecurityUtil.invoke(SecurityUtil.java:158)
    at com.sun.ejb.containers.EJBObjectInvocationHandler.invoke(EJBObjectInvocationHandler.java:151)
    ... 36 more
    Any ideas?
    --Sandeep Khanna                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    My guess is that the hibernate code is assuming there's a fully-functional transaction manager available at "java:pm/TransactionManager". The J2EE SDK codebase has an internal TM available there but it doesn't support all TM operations, which is why it throws an exception during suspend(). The spec doesn't require that anything be available at java:pm/TransactionManager. There was a requirement for it in an early version of the EJB 2.0 spec but it was removed along with the other container/persistence-manager pluggability contracts in the final release of EJB 2.0.

  • Sun-appserv-deploy cutom Ant task

    Hi
    I wanted to use sun-appserv-deploy custom ant task in my build file to deploy an archive. But the file attribute requires EXISTING file which is constantly being deleted and recreated during development...
        <taskdef name="sun-appserv-deploy" classname="org.apache.tools.ant.taskdefs.optional.sun.appserv.DeployTask">
            <classpath refid="j2ee.classpath"/>   
        </taskdef>
        <sun-appserv-deploy
          file="webapp1.war"
          contextroot="/webapp1"
          name="webapp1WAR
          force="true"
          precompilejsp="false"
          verify="false"
          upload="true"
          user="admin"
          passwordfile="${passwordfile}"
          host="localhost"
          port="4848"
          asinstalldir="${j2ee.home}"/>
    Unless the "webapp1.war" exists the enitre build.xml file invalidates (in eclipse)
    How do I use this custom task during my development time (obviously when I run clean the WAR file is removed which invalidates my build.xml)
    Is there a workaround for this?
    Thanks
    Z...

    You have to include an additional attribute in the task:
    <sun-appserv-deploy ... generatermistubs="true" />Edited by: sjfischli on May 15, 2008 8:54 AM

  • Sun-appserv-deploy task fails

    Hi There,
    I am trying to deploy an EJB module into the Sun Application Server 8 using ANT scripts.
    The given below is the script, I use.
    <taskdef name="sun-appserv-deploy"
    classname="org.apache.tools.ant.taskdefs.optional.sun.appserv.DeployTask">
    <classpath>
    <pathelement location="${appSerLib}/sun-appserv-ant.jar"/>
    </classpath>
    </taskdef>
    <target name="doDeploy">
    <sun-appserv-deploy file="${destDir}/${ejbJarName}" name="SampleEjb"
    force="true" type="ejb" verify="false" user="admin" password="#infy123"
    host="localhost" port="4848" generatermistubs="true" asinstalldir="${appServer}"/>
    </target>
    The build fails throwing the below error
    A Sun Java System Application Server 8 admin CLI class could not be found (com.sun.enterprise.cli.framework.InputsAndOutputs). Use the asinstalldir attribute, set the asinstall.dir property, or add the appropriate JARs to the classpath.
    See the script I have mentioned the asinstalldir attribute in the sun-appserv-deploy.
    Need help to resolve it.
    ..Thiruppathy.R

    Use the 'asant' command to run your script rather than 'ant'. This will set up the required environment variables to allow the task to execute.
    Cheers
    Spencer

  • How obtain the serial generated by a Entity CMP+Informix+Sun Appserver 8.2

    I am using a data base of informix, my doubt is as I can obtain the serial generated by a Entity CMP deployed in Sun Appserver 8.2 , after of insert to informix data base ? .
    thanks for your help.

    Help me!!!
    Thanks.
    Smile

  • Where is Smart Sharpen CS3 Settings folder located on the computer?

    Where is Smart Sharpen CS3 Settings folder located on the computer?
    Filter>Sharpen>Smart Sharpen
    Settings>Save a Copy of Settings.
    I once created and saved many custom settings on my old computer.
    They would appear in the drop down Setting menu.
    My question is, where is the Smart Sharpen Settings folder located on the computer?
    I did do a Forum Search Smart Sharpen but results did not yield any info on where custom settings are stored.
    Thank you in advance.
    Kathryn
    Mac OSX version 10.4.11

    Kathryn...
    I remember this exact subject coming up a year ago or more, and at that time I did some experimentation and some digging. Up until you asked your question, I had forgotten I ferreted this out before.
    Back then, I created and saved a Smart Sharpen preset, and I named it
    drogueflute
    so I could find it again.
    Just this morning, I did the same thing (because I had forgotten that I did it before), and named the preset
    whelkvines
    , again, so I could find it easily. Imagine my surprise when I first dropped that presets menu in the Smart Sharpen dialogue, and saw
    drogueflute
    staring back at me! The memories of doing this same thing before all came flooding back.
    OK...so I saved out the preset I named
    whelkvines
    I found references to the two custom settings I saved out of the Smart Sharpen dialogue box. They are buried deep within the code for Photoshop's settings.
    For me (and I'll generally assume for most users) these are stored in the Preferences folder...
    ../Users/
    youruseraccountname
    /Library/Preferences/Adobe Photoshop CS2 Settings/Adobe Photoshop CS2 Prefs.psp
    Sooooo, if you want to import these presets, you'll need to find the "Adobe Photoshop
    [version name Prefs.psp" file on your old computer that contained your custom Smart Sharpen presets and put it in its proper place on your new system, replacing the preferences (.psp) file you're currently working from.
    Be warned that if the Prefs file on your old computer is from an ancient version of Photoshop, it may not work for a newer version on your new system.
    Make sure you keep your current Prefs file handy (move it to your desktop, for example) so you can replace it if something breaks in a really bad way. Or, you could just reset ALL of your current Photoshop preferences by following the instructions presented in the FAQ section of this forum.

Maybe you are looking for

  • 3D Carousel

    Hi everyone, Please help. I have script for a 3d Carousel everything works. But I want to get the images to stay facing the front. I can change most things but am having trouble with getting the images front facing. The property y.rotation I need to

  • Mails need to be Triggerd when clients Fails authentication

    CISCO 4404 ALERTS TO BE GENERATED(mail has to be triggerred) WHEN WLAN CLIENT AUTHENTICATION FAILS. Is there are any options on WCS to enable Authentication Failure on WCS. I have already Enabled 1.Client authentication failure Alarm and Authenticati

  • .pic files will not open

    I use Snow Leopard and have a bunch of .pic files. I believe they were photos taken with and old Apple Camera back in 1997. Can anyone help me open them? Thanks

  • Publishing makes random changes on site

    i did a website in "modern frames". i created my own menues (simple text that i use with the hyperlink function), colors, photos, .... when i publish the site even to a folder on the same computer it makes random changes of colors, any picture can ap

  • Troubles with Tribbles! ... er I mean Trouble with JMF

    Recently downloaded JMF and updated my classpath for both JMFHOME=C:\JMF2.1.1 CLASSPATH=%JMFHOME%\lib\jmf.jar;.;%CLASSPATH%But, my Eclipse IDE does not want to recognise the javax.media library... any ideas?