Error building my first EJB

I am trying to build my first EJB. However, everytime I giev the "ant build" command, I get an erro saying "Validation Problems Were Found". This is the only error i get and Not any syntax errors. Does this have something to do with my remote, local and Home interfaces, the Bean Class or Client, OR is it my build. xml file that has some error in it.

Looks like your ejb-jar.xml is not correct (check the element
<enterprise-beans>). You may post this file so that I can take a look at it.
--Sathish
<Waqar Ahmad> wrote in message news:[email protected]...
Thanks for replying. Here is the build.xml file and the error output that
I get when I execute the ant command. My BEAN here is called
<b>SecuirtyEJB.java</b> and all the files including this BEAN are in a
foler named SecuritySystem. Now, here is the build.xml file:
<?xml version="1.0" encoding="ISO-8859-1"?>
<project name="ejb20-basic-SecuritySystem" default="all" basedir=".">
<!-- set global properties for this build -->
<property environment="env"/>
<property file="../../../../../examples.properties"/>
<property name="build.compiler" value="${compiler}"/>
<property name="source" value="${basedir}"/>
<property name="bean.ear" value="ejb20StatelessEar"/>
<property name="dist" value="${source}/${bean.ear}"/>
<property name="ejb.name" value="ejb20StatelessEjb"/>
<property name="package"
value="examples/ejb/ejb20/basic/SecuritySystem"/>
<property name="ejb.client.jar"
value="ejb20_basic_SecuritySystem_client.jar"/>
<target name="all" depends="build, deploy"/>
<target name="build" depends="clean,
prepare.example,
build.ear,
compile.client"/>
<target name="clean">
<delete dir="${dist}" failonerror="false"/>
<delete dir="${examples.build.dir}/${bean.ear}" failonerror="false"/>
<delete dir="${client.classes.dir}/${package}" failonerror="false"/>
<delete dir="${client.classes.dir}/${ejb.client.jar}"
failonerror="false"/>
</target>
<!-- prepare directories for split directory deployment -->
<target name="prepare.example"
description="Prepare the example for compilation and deployment.">
<mkdir dir="${dist}"/>
<mkdir dir="${dist}/META-INF"/>
<mkdir dir="${dist}/${ejb.name}"/>
<mkdir dir="${dist}/${ejb.name}/${package}"/>
<antcall target="copy.files"/>
</target>
<!-- copy files for split directory deployment -->
<target name="copy.files"
description="Copy example files to distribution structure.">
<copy todir="${dist}/META-INF">
<fileset dir="${source}">
<include name="*application.xml"/>
</fileset>
</copy>
<copy todir="${dist}/${ejb.name}/${package}">
<fileset dir="${source}">
<include name="*.java"/>
<exclude name="Client.java"/>
</fileset>
</copy>
<!-- rename bean to .ejb so that wlcompile
can recognize its to be EJBGen'd -->
<copy file="${source}/SecurityEJB.java"
tofile="${dist}/${ejb.name}/${package}/SecurityEJB.ejb"/>
</target>
<!-- compile EAR for split directory deployment -->
<target name="build.ear">
<wlcompile srcdir="${dist}" destdir="${examples.build.dir}/${bean.ear}"
includes="${ejb.name}">
<ejbgen source="${sourceVersion}"/>
<javac deprecation="${deprecation}" />
<javac debug="${debug}" />
</wlcompile>
<wlappc source="${examples.build.dir}/${bean.ear}"
debug="${debug}" deprecation="${deprecation}"/>
</target>
<!-- deploy split directory application -->
<target name="deploy"
description="Deploy ear to WebLogic on ${wls.hostname}:${wls.port}.">
<wldeploy
user="${wls.username}"
password="${wls.password}"
adminurl="t3://${wls.hostname}:${wls.port}"
debug="true"
action="deploy"
source="${examples.build.dir}/${bean.ear}"
failonerror="${failondeploy}"/>
</target>
<!-- package the application a J2EE formatted exploded ear -->
<target name="package.exploded.ear">
<wlpackage srcdir="${dist}" destdir="${examples.build.dir}/${bean.ear}"
toDir="${dist}" />
</target>
<!-- compile example client -->
<target name="compile.client" description="Compile client.">
<!--
http://bugs.bea.com/WebClarify/CREdit?CR=CR199960
<move file="${user.dir}/${ejb.client.jar}"
tofile="${client.classes.dir}/${ejb.client.jar}"
failonerror="false"/>
-->
<copy file="${user.dir}/${ejb.client.jar}"
tofile="${client.classes.dir}/${ejb.client.jar}"/>
<delete file="${user.dir}/${ejb.client.jar}"/>
<javac srcdir="${source}" destdir="${client.classes.dir}"
deprecation="${deprecation}" debug="${debug}"
classpath="${ex.classpath};${client.classes.dir}/${ejb.client.jar}"
includes="Client.java"/>
</target>
<!-- Run the example -->
<target name="run">
<java classname="examples.ejb.ejb20.basic.SecuritySystem.Client"
fork="yes" failonerror="true">
<arg value="t3://${wls.hostname}:${wls.port}"/>
<classpath>
<pathelement
path="${ex.classpath};${client.classes.dir}/${ejb.client.jar}"/>
</classpath>
</java>
</target>
</project>
Here is the output that I am getting:
build.ear:
[ejbgen] EJBGen 9.0
[ejbgen] Creating
C:\bea\weblogic90\samples\server\examples\build\ejb20State
lessEar\ejb20StatelessEjb\\ejb-jar.xml
[ejbgen] Creating
C:\bea\weblogic90\samples\server\examples\build\ejb20State
lessEar\ejb20StatelessEjb\\weblogic-ejb-jar.xml
[ejbgen] Creating
C:\bea\weblogic90\samples\server\examples\build\ejb20State
lessEar\ejb20StatelessEjb\ejbgen-build.xml
[move] Moving 2 files to
C:\bea\weblogic90\samples\server\examples\build\ej
b20StatelessEar\ejb20StatelessEjb\META-INF
[javac] Compiling 1 source file to
C:\bea\weblogic90\samples\server\examples
\build\ejb20StatelessEar\ejb20StatelessEjb
[javac] Compiling 5 source files to
C:\bea\weblogic90\samples\server\example
s\build\ejb20StatelessEar\ejb20StatelessEjb
[wlappc] <Oct 28, 2005 8:51:48 PM EDT> <Info> <J2EE> <BEA-160186>
<Compiling
EAR module 'ejb20StatelessEjb'>
[wlappc] <Oct 28, 2005 8:51:49 PM EDT> <Error> <J2EE> <BEA-160187>
<weblogic.
appc failed to compile your application. Recompile with the -verbose
option for
more details. Please see the error message(s) below.>
<b>BUILD FAILED</b>
C:\bea\weblogic90\samples\server\examples\src\examples\ejb\ejb20\basic\SecurityS
ystem\build.xml:68: weblogic.utils.compiler.ToolFailureException:
<b>VALIDATION PROBLEMS WERE FOUND</b>
C:\bea\weblogic90\samples\server\examples\src\examples\ejb\ejb20\basic\Securit
ySystem\ejb20StatelessEar\ejb20StatelessEjb\META-INF\ejb-jar.xml:13:6:13:6:
prob
lem: cvc-complex-type.2.4c: Expected elements
'session@http://java.sun.com/xml/n
s/j2ee entity@http://java.sun.com/xml/ns/j2ee
message-driven@http://java.sun.com
/xml/ns/j2ee' before the end of the content in element
enterprise-beans@http://j
ava.sun.com/xml/ns/j2ee:<C:\bea\weblogic90\samples\server\examples\src\examples\
ejb\ejb20\basic\SecuritySystem\ejb20StatelessEar\ejb20StatelessEjb/META-INF/ejb-
jar.xml:13:6>
Total time: 2 minutes 8 seconds
C:\bea\weblogic90\samples\server\examples\src\examples\ejb\ejb20\basic\SecurityS
ystem>
This is the part of the output whee the error message appears and I think
this is the one you want. Hope you can figure out what the problem is here
coz as I said, this is my first EJB program. Thanks

Similar Messages

  • Thank you,there is a error in my FIRST EJB,can you help me?

    This in a servlet:
    public int getNo()
    TestSessionEJB test = new TestSessionEJB();
    return test.getNo();
    This in a TestSessionEJB class�F
    package test;
    import javax.naming.*;
    import javax.rmi.PortableRemoteObject;
    public class TestSessionEJB {
    private TestSessionHome testSessionHome = null;
    public TestSessionEJB() {
    try {
    Context ctx = new InitialContext();
    Object ref = ctx.lookup("TestSession");
    testSessionHome = (TestSessionHome) PortableRemoteObject.narrow(ref, TestSessionHome.class);
    catch(Exception e) {
    e.printStackTrace();
    public TestSessionHome getHome() {
    return testSessionHome;
    public int getNo()
    TestSession test = null;
    int li_rtn = 0;
    try
    this.getHome();
    test = testSessionHome.create();
    li_rtn = test.getNo();
    catch(Exception e)
    return li_rtn;
    Not use bas4.5,is there any error?Thanks a lot.

    I don't think you know the first thing about EJBs. I think you better go back and read a book or two first before attempting to write an EJB. Mastering EJBs or Professional EJB are both good books. You are not even close to writing your first EJB.

  • Hot Deploy Error - Build your first Portal

    The following is the error I got when I tried to hot deploy a portal in EBCC for
    welogic 7.0:
    "Not found" error occurred when connecting to server. Please go to Connection
    Settings and check service names.
    Any help on that will be greatly appreciated?
    Thanks,
    Rita

    Rita,
    Is you server running? This means that an HTTP 404 was returned when trying
    to access the DataSyncServlet. Check your server name, port, application
    name etc. under the Connection Settings.
    If you want to verify the URL you can just hit it with a web browser. It
    should look something like:
    http://locahost:7501/p13nAppDataSync/DataSyncServlet (for an application
    called 'p13n')
    Sincerely,
    Daniel Selman
    "Rita" <[email protected]> wrote in message
    news:3d3ef190$[email protected]..
    >
    The following is the error I got when I tried to hot deploy a portal inEBCC for
    welogic 7.0:
    "Not found" error occurred when connecting to server. Please go toConnection
    Settings and check service names.
    Any help on that will be greatly appreciated?
    Thanks,
    Rita

  • First ejb

    hi everyone
    I am deploying my first EJB in weblogic 5.1 .When i try to load the jar
    file in weblogic's EJB deployer.I am getting the following errors.
    org.xml.sax.SAXParseException: Element "session" requires additional
    elements.
    at com.sun.xml.parser.Parser.error(Parser.java:2775)
    at
    com.sun.xml.parser.ValidatingParser$ChildrenValidator.done(ValidatingParser.
    java:322)
    at com.sun.xml.parser.Parser.maybeElement(Parser.java:1411)
    at com.sun.xml.parser.Parser.content(Parser.java:1498)
    at com.sun.xml.parser.Parser.maybeElement(Parser.java:1399)
    at com.sun.xml.parser.Parser.content(Parser.java:1498)
    at com.sun.xml.parser.Parser.maybeElement(Parser.java:1399)
    at com.sun.xml.parser.Parser.parseInternal(Parser.java:491)
    at com.sun.xml.parser.Parser.parse(Parser.java:283)
    at weblogic.xml.dom.SunDOMParser.getDocument(SunDOMParser.java:69)
    at weblogic.xml.dom.DOMParser.getDocument(DOMParser.java:102)
    at
    weblogic.ejb.deployment.dd.DescriptorLoader.<init>(DescriptorLoader.java:151
    at
    weblogic.ejb.ui.deployer.DeployerFrame.loadDeploymentUnit(DeployerFrame.java
    :1123)
    at
    weblogic.ejb.ui.deployer.AbstractProjectRootNode.loadDeploymentUnit(Abstract
    ProjectRootNode.java:161)
    at
    weblogic.ejb.ui.deployer.DeployerProjectRootNode.load(DeployerProjectRootNod
    e.java:120)
    at
    weblogic.ejb.ui.deployer.DeployerProjectRootNode.load(DeployerProjectRootNod
    e.java:101)
    at
    weblogic.ejb.ui.deployer.ProjectLoaderWorker$LoaderThread.run(ProjectLoaderW
    orker.java, Compiled Code)
    --------------- nested within: ------------------
    Received SAXParseException from Sun Parser at line 13, column -1:
    org.xml.sax.SAXParseException: Element "session" requires additional
    elements.
    at weblogic.xml.dom.SunDOMParser.getDocument(SunDOMParser.java:72)
    at weblogic.xml.dom.DOMParser.getDocument(DOMParser.java:102)
    at
    weblogic.ejb.deployment.dd.DescriptorLoader.<init>(DescriptorLoader.java:151
    at
    weblogic.ejb.ui.deployer.DeployerFrame.loadDeploymentUnit(DeployerFrame.java
    :1123)
    at
    weblogic.ejb.ui.deployer.AbstractProjectRootNode.loadDeploymentUnit(Abstract
    ProjectRootNode.java:161)
    at
    weblogic.ejb.ui.deployer.DeployerProjectRootNode.load(DeployerProjectRootNod
    e.java:120)
    at
    weblogic.ejb.ui.deployer.DeployerProjectRootNode.load(DeployerProjectRootNod
    e.java:101)
    at
    weblogic.ejb.ui.deployer.ProjectLoaderWorker$LoaderThread.run(ProjectLoaderW
    orker.java, Compiled Code)
    Unable to parse: null
    Failed to load C:\weblogic\examples\divya\session.jar
    Here are my java files
    1)home interface----------
    package examples.divya;
    import javax.ejb.*;
    import java.rmi.RemoteException;
    public interface HelloHome extends EJBHome{
    Hello create() throws RemoteException, CreateException;
    2)remote interface---------
    package examples.divya;
    import javax.ejb.*;
    import java.rmi.RemoteException;
    import java.rmi.Remote;
    public interface Hello extends EJBObject{
    public String hello() throws java.rmi.RemoteException;
    3)bean class-----
    package examples.divya;
    import javax.ejb.*;
    public class HelloBean implements SessionBean{
    public void ejbCreate(){
    System.out.println("ejbCreate()");
    public void ejbRemove(){
    System.out.println("ejbRemove()");
    public void ejbActivate(){
    System.out.println("ejbActivate()");
    public void ejbPassivate(){
    System.out.println("ejbPassivate()");
    public void setSessionContext(SessionContext ctx){
    System.out.println("setSessionContext()");
    public String hello(){
    System.out.println("hello()");
    return "Hello, World";
    xml file is-----
    <?xml version="1.0"?>
    <!DOCTYPE ejb-jar PUBLIC '-//Sun Microsystems, Inc.//DTD Enterprise
    JavaBeans 1.1//EN' 'http://java.sun.com/j2ee/dtds/ejb-jar_1_1.dtd'>
    <ejb-jar>
    <enterprise-beans>
    <session>
    <ejb-name>divya</ejb-name>
    <home>examples.divya.HelloHome</home>
    <remote>examples.divya.Hello</remote>
    <ejb-class>examples.divya.HelloBean</ejb-class>
    <session-type>Stateless</session-type>
    </session>
    </enterprise-beans>
    <assembly-descriptor>
    <container-transaction>
    <method>
    <ejb-name>divya</ejb-name>
    <method-intf>Remote</method-intf>
    <method-name>*</method-name>
    </method>
    <trans-attribute>Required</trans-attribute>
    </container-transaction>
    </assembly-descriptor>
    </ejb-jar>
    please help.....thanks in advance
    divya

    Luca -
    I assume you are building EJBs using the older 2.1 specification? If so, you'll need to declare the name of your bean in a deployment descriptor. But if you are creating new EJBs, you might want to use EJB 3.0 instead - then you can just use the EntityManager to get hold of resources like other EJBs with no deployment descriptor needed. Regardless of the version you're developing, this article addresses the old way and the new way:
    http://www.onjava.com/pub/a/onjava/2006/01/04/dependency-injection-java-ee-5.html
    I found this linked from our EJB3 page, which has loads of information for EJB newbies:
    http://www.oracle.com/technology/tech/java/ejb30.html
    Hope this helps,
    Lynn Munsinger
    JDeveloper Product Management

  • JDev 11g update 1 base edition on windows: error building default domain

    Hi all,
    (refer to [url http://forums.oracle.com/forums/thread.jspa?messageID=3168105]here for original post)
    I'm posting this again with some more information. When downloading the Studio Edition (Base - no JDK) version of JDeveloper 11g update 1, an error occurs upon first (and each subsequent) startup of JDeveloper (error details below).
    Tests that I have done:
    1). Install using JDK 6 u 11 - JDK did not show up automatically in the installer, had to browse to find it and select it. Running using 6u11, 6u10, and 6u7 (deleting the system directory after each try) - error occurs.
    2). Install using JDK 6 u7 - JDK was automatically found by the installer. Running using 6u7, 6u11, and 6u10 (deleting the system directory after each try) - error occurs
    These errors do not occur when using the Windows installer. For information: my machine is Windows 2008 Server Standard 32-bit. An update - I just tried this on a Vista 64-bit laptop (running Sun 32-bit JDK 6u10) and did not have the problem. Ergo, this seems to be an issue with the JDK and detecting Windows 2008 as a Windows platform (or possibly with whatever mechanism JDev/WLS is using to detect the OS platform). I'll do more research on that and update if I find anything.
    One more update: I didn't find any issues reported like this related to Windows 2008, but I did one more test: install and run JDeveloper using:
    java version "1.6.0_05"                                                        
    Java(TM) SE Runtime Environment (build 1.6.0_05-b13)                           
    BEA JRockit(R) (build R27.6.0-50_o-100423-1.6.0_05-20080626-2105-windows-ia32, compiled mode)                                                                   The issue does not occur using this JDK. So to summarize, installing JDev 11g update 1 Studio edition, base installer using any of the SUN JDK's on Windows 2008 gives this problem. Using the windows installer or JRockit Mission Control JVM - no problems.
    Finally, one last update - the error is related to the JVM that is used to install, not the one used to run JDeveloper (via editing jdev.conf) - the offending JDK is in wlserver_10.3\common\bin\commEnv.cmd. Seems like a no-no to have one JDK running JDev and another running the integrated WLS, though. Quite a pity, as JDev starts up pretty slowly using JRockit Mission Control.
    JRockit Realtime seems to be a bit faster... sigh - now to remove the 72 extra JDK's on my laptop ;)
    My going forward plan: use the Windows installer. Wish I never installed Windows Server 2008.
    Now for the error details; the log shows:
    ERROR:  An error occurred while building the default domain.
    Please see this log file for more details:
    C:\o\jdev11\jdeveloper\system\system11.1.1.0.31.51.88\o.j2ee.adrs\CreateDefaultDomain.logThe aforementioned log file shows:
    Default domain will be created:
    C:\o\jdev11\jdeveloper\system\system11.1.1.0.31.51.88\DefaultDomain
    C:\o\jdev11\wlserver_10.3\common\bin\wlst.cmd "C:\o\jdev11\jdeveloper\system\system11.1.1.0.31.51.88\o.j2ee.adrs\CreateDefaultDomain.py"
    Process started
    wlst >
    wlst > CLASSPATH=c:\o\jdev11\patch_wls1030\profiles\default\sys_manifest_classpath\weblogic_patch.jar;c:\o\jdev11\patch_jdev1111\profiles\default\sys_manifest_classpath\weblogic_patch.jar;c:\o\jdev11\patch_cie660\profiles\default\sys_manifest_classpath\weblogic_patch.jar;C:\Java\JDK16~1.0_1\lib\tools.jar;C:\o\jdev11\WLSERV~1.3\server\lib\weblogic_sp.jar;C:\o\jdev11\WLSERV~1.3\server\lib\weblogic.jar;c:\o\jdev11\modules\features\weblogic.server.modules_10.3.0.0.jar;C:\o\jdev11\WLSERV~1.3\server\lib\webservices.jar;c:\o\jdev11\modules\ORGAPA~1.5/lib/ant-all.jar;c:\o\jdev11\modules\NETSFA~1.0_1/lib/ant-contrib.jar;
    wlst >
    wlst > PATH=c:\o\jdev11\patch_wls1030\profiles\default\native;c:\o\jdev11\patch_jdev1111\profiles\default\native;c:\o\jdev11\patch_cie660\profiles\default\native;C:\o\jdev11\WLSERV~1.3\server\native\win\32;C:\o\jdev11\WLSERV~1.3\server\bin;c:\o\jdev11\modules\ORGAPA~1.5\bin;C:\Java\JDK16~1.0_1\jre\bin;C:\Java\JDK16~1.0_1\bin;c:\o\db11\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Program Files\Microsoft SQL Server\100\Tools\Binn\;C:\Program Files\Microsoft SQL Server\100\DTS\Binn\;C:\Program Files\Microsoft SQL Server\100\Tools\Binn\VSShell\Common7\IDE\;C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\PrivateAssemblies\;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Subversion\bin;c:\o\wfc\bin;c:\o\wfc\jre\1.4.2\bin\client;c:\o\wfc\jre\1.4.2\bin;C:\Program Files\Common Files\Roxio Shared\DLLShared\;C:\Program Files\Common Files\Roxio Shared\9.0\DLLShared\;c:\o\odp;c:\o\odp\bin;c:\java\apache-ant-1.7.1\bin;C:\Program Files\Plazmic CDK 4.6\bin;c:\o\db11\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Program Files\Microsoft SQL Server\100\Tools\Binn\;C:\Program Files\Microsoft SQL Server\100\DTS\Binn\;C:\Program Files\Microsoft SQL Server\100\Tools\Binn\VSShell\Common7\IDE\;C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\PrivateAssemblies\;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Subversion\bin;c:\o\wfc\bin;c:\o\wfc\jre\1.4.2\bin\client;c:\o\wfc\jre\1.4.2\bin;C:\Program Files\Common Files\Roxio Shared\DLLShared\;C:\Program Files\Common Files\Roxio Shared\9.0\DLLShared\;c:\o\odp;c:\o\odp\bin;C:\o\jdev11\WLSERV~1.3\server\native\win\32\oci920_8
    wlst >
    wlst > Your environment has been set.
    wlst >
    wlst > CLASSPATH=c:\o\jdev11\patch_wls1030\profiles\default\sys_manifest_classpath\weblogic_patch.jar;c:\o\jdev11\patch_jdev1111\profiles\default\sys_manifest_classpath\weblogic_patch.jar;c:\o\jdev11\patch_cie660\profiles\default\sys_manifest_classpath\weblogic_patch.jar;C:\Java\JDK16~1.0_1\lib\tools.jar;C:\o\jdev11\WLSERV~1.3\server\lib\weblogic_sp.jar;C:\o\jdev11\WLSERV~1.3\server\lib\weblogic.jar;c:\o\jdev11\modules\features\weblogic.server.modules_10.3.0.0.jar;C:\o\jdev11\WLSERV~1.3\server\lib\webservices.jar;c:\o\jdev11\modules\ORGAPA~1.5/lib/ant-all.jar;c:\o\jdev11\modules\NETSFA~1.0_1/lib/ant-contrib.jar;;C:\o\jdev11\WLSERV~1.3\common\eval\pointbase\lib\pbembedded57.jar;C:\o\jdev11\WLSERV~1.3\common\eval\pointbase\lib\pbtools57.jar;C:\o\jdev11\WLSERV~1.3\common\eval\pointbase\lib\pbclient57.jar
    wlst >
    wlst > Initializing WebLogic Scripting Tool (WLST) ...
    wlst >
    wlst > Jython scans all the jar files it can find at first startup. Depending on the system, this process may take a few minutes to complete, and WLST may not return a prompt right away.
    wlst >
    wlst > Welcome to WebLogic Server Administration Scripting Shell
    wlst >
    wlst > Type help() for help on available commands
    wlst >
    wlst > Creating Default Domain
    wlst > Reading template: /C:/o/jdev11/wlserver_10.3/common/templates/domains/wls.jar
    wlst > Setting Name to 'DefaultServer'
    wlst > Setting ListenAddress to ''
    wlst > Setting ListenPort to 7101
    wlst > Setting domain password.
    wlst > Failed to get environment, environ will be empty: (0, 'Failed to execute command ([\'sh\', \'-c\', \'env\']): java.io.IOException: Cannot run program "sh": CreateProcess error=2, The system cannot find the file specified')
    wlst > Problem invoking WLST - Traceback (innermost last):
    wlst >   File "C:\o\jdev11\jdeveloper\system\system11.1.1.0.31.51.88\o.j2ee.adrs\CreateDefaultDomain.py", line 50, in ?
    wlst >   File "Lib/javaos.py", line 137, in __getitem__
    wlst >   File "Lib/UserDict.py", line 14, in __getitem__
    wlst > KeyError: DOMAIN_PASSWORD
    wlst >
    Elapsed time:  40920 msAs noted in the original post - it seems that the WebLogic scripting tool is assuming a Unix-type host.
    Best,
    John

    Hi all,
    (refer to [url http://forums.oracle.com/forums/thread.jspa?messageID=3168105]here for original post)
    I'm posting this again with some more information. When downloading the Studio Edition (Base - no JDK) version of JDeveloper 11g update 1, an error occurs upon first (and each subsequent) startup of JDeveloper (error details below).
    Tests that I have done:
    1). Install using JDK 6 u 11 - JDK did not show up automatically in the installer, had to browse to find it and select it. Running using 6u11, 6u10, and 6u7 (deleting the system directory after each try) - error occurs.
    2). Install using JDK 6 u7 - JDK was automatically found by the installer. Running using 6u7, 6u11, and 6u10 (deleting the system directory after each try) - error occurs
    These errors do not occur when using the Windows installer. For information: my machine is Windows 2008 Server Standard 32-bit. An update - I just tried this on a Vista 64-bit laptop (running Sun 32-bit JDK 6u10) and did not have the problem. Ergo, this seems to be an issue with the JDK and detecting Windows 2008 as a Windows platform (or possibly with whatever mechanism JDev/WLS is using to detect the OS platform). I'll do more research on that and update if I find anything.
    One more update: I didn't find any issues reported like this related to Windows 2008, but I did one more test: install and run JDeveloper using:
    java version "1.6.0_05"                                                        
    Java(TM) SE Runtime Environment (build 1.6.0_05-b13)                           
    BEA JRockit(R) (build R27.6.0-50_o-100423-1.6.0_05-20080626-2105-windows-ia32, compiled mode)                                                                   The issue does not occur using this JDK. So to summarize, installing JDev 11g update 1 Studio edition, base installer using any of the SUN JDK's on Windows 2008 gives this problem. Using the windows installer or JRockit Mission Control JVM - no problems.
    Finally, one last update - the error is related to the JVM that is used to install, not the one used to run JDeveloper (via editing jdev.conf) - the offending JDK is in wlserver_10.3\common\bin\commEnv.cmd. Seems like a no-no to have one JDK running JDev and another running the integrated WLS, though. Quite a pity, as JDev starts up pretty slowly using JRockit Mission Control.
    JRockit Realtime seems to be a bit faster... sigh - now to remove the 72 extra JDK's on my laptop ;)
    My going forward plan: use the Windows installer. Wish I never installed Windows Server 2008.
    Now for the error details; the log shows:
    ERROR:  An error occurred while building the default domain.
    Please see this log file for more details:
    C:\o\jdev11\jdeveloper\system\system11.1.1.0.31.51.88\o.j2ee.adrs\CreateDefaultDomain.logThe aforementioned log file shows:
    Default domain will be created:
    C:\o\jdev11\jdeveloper\system\system11.1.1.0.31.51.88\DefaultDomain
    C:\o\jdev11\wlserver_10.3\common\bin\wlst.cmd "C:\o\jdev11\jdeveloper\system\system11.1.1.0.31.51.88\o.j2ee.adrs\CreateDefaultDomain.py"
    Process started
    wlst >
    wlst > CLASSPATH=c:\o\jdev11\patch_wls1030\profiles\default\sys_manifest_classpath\weblogic_patch.jar;c:\o\jdev11\patch_jdev1111\profiles\default\sys_manifest_classpath\weblogic_patch.jar;c:\o\jdev11\patch_cie660\profiles\default\sys_manifest_classpath\weblogic_patch.jar;C:\Java\JDK16~1.0_1\lib\tools.jar;C:\o\jdev11\WLSERV~1.3\server\lib\weblogic_sp.jar;C:\o\jdev11\WLSERV~1.3\server\lib\weblogic.jar;c:\o\jdev11\modules\features\weblogic.server.modules_10.3.0.0.jar;C:\o\jdev11\WLSERV~1.3\server\lib\webservices.jar;c:\o\jdev11\modules\ORGAPA~1.5/lib/ant-all.jar;c:\o\jdev11\modules\NETSFA~1.0_1/lib/ant-contrib.jar;
    wlst >
    wlst > PATH=c:\o\jdev11\patch_wls1030\profiles\default\native;c:\o\jdev11\patch_jdev1111\profiles\default\native;c:\o\jdev11\patch_cie660\profiles\default\native;C:\o\jdev11\WLSERV~1.3\server\native\win\32;C:\o\jdev11\WLSERV~1.3\server\bin;c:\o\jdev11\modules\ORGAPA~1.5\bin;C:\Java\JDK16~1.0_1\jre\bin;C:\Java\JDK16~1.0_1\bin;c:\o\db11\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Program Files\Microsoft SQL Server\100\Tools\Binn\;C:\Program Files\Microsoft SQL Server\100\DTS\Binn\;C:\Program Files\Microsoft SQL Server\100\Tools\Binn\VSShell\Common7\IDE\;C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\PrivateAssemblies\;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Subversion\bin;c:\o\wfc\bin;c:\o\wfc\jre\1.4.2\bin\client;c:\o\wfc\jre\1.4.2\bin;C:\Program Files\Common Files\Roxio Shared\DLLShared\;C:\Program Files\Common Files\Roxio Shared\9.0\DLLShared\;c:\o\odp;c:\o\odp\bin;c:\java\apache-ant-1.7.1\bin;C:\Program Files\Plazmic CDK 4.6\bin;c:\o\db11\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Program Files\Microsoft SQL Server\100\Tools\Binn\;C:\Program Files\Microsoft SQL Server\100\DTS\Binn\;C:\Program Files\Microsoft SQL Server\100\Tools\Binn\VSShell\Common7\IDE\;C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\PrivateAssemblies\;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Subversion\bin;c:\o\wfc\bin;c:\o\wfc\jre\1.4.2\bin\client;c:\o\wfc\jre\1.4.2\bin;C:\Program Files\Common Files\Roxio Shared\DLLShared\;C:\Program Files\Common Files\Roxio Shared\9.0\DLLShared\;c:\o\odp;c:\o\odp\bin;C:\o\jdev11\WLSERV~1.3\server\native\win\32\oci920_8
    wlst >
    wlst > Your environment has been set.
    wlst >
    wlst > CLASSPATH=c:\o\jdev11\patch_wls1030\profiles\default\sys_manifest_classpath\weblogic_patch.jar;c:\o\jdev11\patch_jdev1111\profiles\default\sys_manifest_classpath\weblogic_patch.jar;c:\o\jdev11\patch_cie660\profiles\default\sys_manifest_classpath\weblogic_patch.jar;C:\Java\JDK16~1.0_1\lib\tools.jar;C:\o\jdev11\WLSERV~1.3\server\lib\weblogic_sp.jar;C:\o\jdev11\WLSERV~1.3\server\lib\weblogic.jar;c:\o\jdev11\modules\features\weblogic.server.modules_10.3.0.0.jar;C:\o\jdev11\WLSERV~1.3\server\lib\webservices.jar;c:\o\jdev11\modules\ORGAPA~1.5/lib/ant-all.jar;c:\o\jdev11\modules\NETSFA~1.0_1/lib/ant-contrib.jar;;C:\o\jdev11\WLSERV~1.3\common\eval\pointbase\lib\pbembedded57.jar;C:\o\jdev11\WLSERV~1.3\common\eval\pointbase\lib\pbtools57.jar;C:\o\jdev11\WLSERV~1.3\common\eval\pointbase\lib\pbclient57.jar
    wlst >
    wlst > Initializing WebLogic Scripting Tool (WLST) ...
    wlst >
    wlst > Jython scans all the jar files it can find at first startup. Depending on the system, this process may take a few minutes to complete, and WLST may not return a prompt right away.
    wlst >
    wlst > Welcome to WebLogic Server Administration Scripting Shell
    wlst >
    wlst > Type help() for help on available commands
    wlst >
    wlst > Creating Default Domain
    wlst > Reading template: /C:/o/jdev11/wlserver_10.3/common/templates/domains/wls.jar
    wlst > Setting Name to 'DefaultServer'
    wlst > Setting ListenAddress to ''
    wlst > Setting ListenPort to 7101
    wlst > Setting domain password.
    wlst > Failed to get environment, environ will be empty: (0, 'Failed to execute command ([\'sh\', \'-c\', \'env\']): java.io.IOException: Cannot run program "sh": CreateProcess error=2, The system cannot find the file specified')
    wlst > Problem invoking WLST - Traceback (innermost last):
    wlst >   File "C:\o\jdev11\jdeveloper\system\system11.1.1.0.31.51.88\o.j2ee.adrs\CreateDefaultDomain.py", line 50, in ?
    wlst >   File "Lib/javaos.py", line 137, in __getitem__
    wlst >   File "Lib/UserDict.py", line 14, in __getitem__
    wlst > KeyError: DOMAIN_PASSWORD
    wlst >
    Elapsed time:  40920 msAs noted in the original post - it seems that the WebLogic scripting tool is assuming a Unix-type host.
    Best,
    John

  • Mapping LDAP Role in Building Your First Process with Oracle BPM 11g

    I'm working on "Building Your First Process with Oracle BPM 11g" I'm at the end of step where assigns user for the requester. The problem is in identity lookup, "Realm" is empty for Remote_WLServer.
    Servers are up and running. Demo user community has been loaded - I can see the list of users and groups in the administration server under myrealm. We haven't done much since SOA suite 11g installation. I'm probably the first one who uses this. I wonder we have a missing set up? Can you me what's missing? Appreciate your help in advance.

    I get this error message when I clicked gear icon.
    "Server exception is : Connection refused from server"
    Here is the result of testing Remove_WLServer connection. Does this cause the issue?
    Testing JSR-160 Runtime ... failed.
    Cannot establish connection.
    Testing JSR-160 DomainRuntime ... skipped.
    Testing JSR-88 ... skipped.
    Testing JSR-88-LOCAL ... skipped.
    Testing JNDI ... skipped.
    Testing JSR-160 Edit ... skipped.
    Testing HTTP ... success.
    Testing Server MBeans Model ... skipped.
    Testing HTTP Authentication ... success.
    2 of 9 tests successful.
    I have installed JDeveloper 9i, 10g, and 11g in my laptop. SOA is installed on linux.

  • Error building gnomad2, missing libraries?

    Hello!
    Im trying to build the new version of gnomad2, which is a GTK based app for interacting with the Creative zen jukebox I have. I have been using version 2.6.3 for a while, and today they released a new version, 2.7.0. I have build the previous versions of gnomad2 without problems, but when I try to build the 2.7.0, make fails:
    gnomad2.c: In function `scan_jukebox':
    gnomad2.c:264: error: `GNOME_STOCK_BUTTON_CANCEL' undeclared (first use in this function)
    gnomad2.c:264: error: (Each undeclared identifier is reported only once
    gnomad2.c:264: error: for each function it appears in.)
    gnomad2.c:265: warning: assignment makes pointer from integer without a cast
    gnomad2.c:270: error: invalid type argument of `->'
    gnomad2.c:274: error: invalid type argument of `->'
    gnomad2.c: In function `set_jukeboxowner_dialog':
    gnomad2.c:311: error: `GNOME_STOCK_BUTTON_OK' undeclared (first use in this function)
    gnomad2.c:312: error: `GNOME_STOCK_BUTTON_CANCEL' undeclared (first use in this function)
    gnomad2.c:313: warning: assignment makes pointer from integer without a cast
    gnomad2.c:324: error: invalid type argument of `->'
    gnomad2.c:330: error: invalid type argument of `->'
    gnomad2.c: In function `main':
    gnomad2.c:360: error: `GnomeProgram' undeclared (first use in this function)
    gnomad2.c:360: error: `gnomad' undeclared (first use in this function)
    gnomad2.c:389: error: `LIBGNOMEUI_MODULE' undeclared (first use in this function)
    gnomad2.c:390: error: `GNOME_PARAM_POPT_TABLE' undeclared (first use in this function)
    gnomad2.c:391: error: `GNOME_PROGRAM_STANDARD_PROPERTIES' undeclared (first use in this function)
    gnomad2.c:413: warning: assignment makes pointer from integer without a cast
    make[1]: *** [gnomad2.o] Error 1
    make[1]: Leaving directory `/home/krigun/downloads/gnomad2/src/gnomad2-2.7.0/src'
    make: *** [all-recursive] Error 1
    ==> ERROR: Build Failed. Aborting...
    I have checked, I have all the dependecies listed below, but I do not have Gnome installed, I only use KDE.
    Gnomad dependencies:
    Gnomad +
    |
    +- GTK+-2.0 (incl GDK, GLIB)
    |
    +- libgnomeui
    |
    +- libnjb +
    | |
    | +- libusb (optional on *BSD)
    |
    +- libid3tag
    |
    +- GNOME 2.0
    and the PKGBUILD:
    pkgname=gnomad2
    pkgver=2.7.0
    pkgrel=1
    pkgdesc="gnomad2"
    license="GPL"
    depends=('libnjb')
    source=($pkgname-$pkgver.tar.gz)
    #md5sums=('84d738840d7bc56a468f53444a0ec206')
    build() {
    cd $startdir/src/$pkgname-$pkgver
    ./configure --prefix=/usr/bin
    make || return 1
    make DESTDIR=$startdir/pkg install
    Does anybody know what these errors are about? Im not too familiar with the Gnome libraries.. Do I have to install Gnome to be able to make the package?

    you want add this into pacmans path
    Server = ftp://ftp.archlinux.org/tur/hapy
    then
    pacman -S gnomad2
    its so much easier
    but if your current like if you ran pacman -Suy after oct 1 i belive
    then it probably wont work
    mine did till the new upgrades
    ive not been able to build it from source like your doing ive tried many times
    i read some where in the read me files bout jsut adding  modprobe njbfs then mount it like
    a mass storage device im gonna try looking into that today
    i also posted ? to the forum on this

  • Error building PKG grub-reiser4

    helo,
       I have this error building makepkg in grub-reiser4 aur package
    makepkg
    ./PKGBUILD: line 12: syntax error near unexpected token `)'
    ./PKGBUILD: line 12: `           '4876f193005df5fca8ca9647729d1e23')'
    ==> Making package: grub 0.97-2 (Sun Dec 10 08:48:50 CET 2006)
    ==> Checking Runtime Dependencies...
    ==> Checking Buildtime Dependencies...
    ==> Retrieving Sources...
    ==>     Using local copy of grub-0.97-reiser4-20050808.tar.gz
    ==>     Found menu.lst in build dir
    ==>     Found install-grub in build dir
    ==> WARNING: MD5sums are missing or incomplete.  Cannot verify source integrity.
    ==> Extracting Sources...
    ==>     tar --use-compress-program=gzip -xf grub-0.97-reiser4-20050808.tar.gz
    ==> Starting build()...
    /usr/bin/makepkg: line 637: build: command not found
    ==> ERROR: Build Failed.  Aborting...
    what is ?
    thankyou

    thankyou and sorry for my error
    but when installed I run:
    grub-install /dev/hda
        GNU GRUB  version 0.97  (640K lower / 3072K upper memory)
    [ Minimal BASH-like line editing is supported.  For the first word, TAB
       lists possible command completions.  Anywhere else TAB lists the possible
       completions of a device/filename. ]
    grub> root (hd1,4)
    Filesystem type is reiserfs, partition type 0x83
    grub> setup  --stage2=/boot/grub/stage2 --prefix=/boot/grub (hd0)
    Checking if "/boot/grub/stage1" exists... yes
    Checking if "/boot/grub/stage2" exists... yes
    Checking if "/boot/grub/reiserfs_stage1_5" exists... yes
    Running "embed /boot/grub/reiserfs_stage1_5 (hd0)"...  18 sectors are embedded.
    succeeded
    Running "install --stage2=/boot/grub/stage2 /boot/grub/stage1 d (hd0) (hd0)1+18 p (hd1,4)/boot/grub/stage /boot/grub/menu.lst"... failed
    Error 15: File not found
    grub> quit
    this I view in my /boot/grub
    default        iso9660_stage1_5  minix_stage1_5     stage2_eltorito
    device.map     jfs_stage1_5      reiser4_stage1_5   ufs2_stage1_5
    e2fs_stage1_5  menu.lst          reiserfs_stage1_5  vstafs_stage1_5
    fat_stage1_5   menu.lst.old      stage1             xfs_stage1_5
    ffs_stage1_5   menu.lst.pacnew   stage2

  • Stuck In the Mud with First EJB

    I am using the apress 'Beginning Java EE, from Novice to Professional' book. In its first EJB example it attempts to create am extremely simple stateless session bean. There are two classes and a remote interface as follows;
    package beans;
    import javax.ejb.Remote;
    @Remote
    public interface SimpleSession
    public String getEchoString(String clientString);
    package beans;
    import javax.ejb.Stateless;
    @Stateless
    public class SimpleSessionBean implements SimpleSession {
    public String getEchoString(String clientString) {
    return clientString + " - from session bean";
    package client;
    import beans.SimpleSession;
    import javax.naming.InitialContext;
    public class SimpleSessionClient {
    public static void main(String[] args) throws Exception
    InitialContext ctx = new InitialContext();
    SimpleSession simpleSession
    = (SimpleSession) ctx.lookup(SimpleSession.class.getName());
    for (int i = 0; i < args.length; i++) {
    String returnedString = simpleSession.getEchoString(args);
    System.out.println("sent string: " + args[i] +
    ", received string: " + returnedString);
    The directory structure is;
    SimpleSessionApp
    |-beans
    |-SimpleSession
    |-SimpleSessionBean
    |-client
    |-SimpleSessionClientThe tells you to add the following to your classpath;
    set CLASSPATH=.;C:\jboss\lib\concurrent.jar;
    C:\jboss\lib\jboss-common.jar;
    c:\jboss\client\jboss-j2ee.jar;
    c:\jboss\lib\commons-httpclient.jar;
    C:\jboss\server\all\lib\jboss.jar;
    C:\jboss\server\all\lib\jboss-remoting.jar;
    C:\jboss\server\all\lib\jboss-transaction.jar;
    C:\jboss\server\all\lib\jnpserver.jar;
    C:\jboss\server\all\deploy\ejb3.deployer\jboss-ejb3.jar;
    C:\jboss\server\all\deploy\ejb3.deployer\jboss-ejb3x.jar;
    C:\jboss\server\all\deploy\jboss-aop.deployer\
    jboss-aop.jar;
    C:\jboss\server\all\deploy\jboss-aop.deployer\
    jboss-aspect-library.jar
    The next step is to compile the java source  code;
    javac -d . client/*.java
    javac -d . beans/*.javaAfter this you create an ejb3 jar;
    jar cf SimpleSessionApp.ejb3 beans\*.javaAnd deploy this jar to your jboss deploy directory while jboss is running. Once this is done you run the client with the following arguments and switches while inside the client directory of SimpleSessionApp;
    java
    -Djava.naming.factory.initial=
    org.jnp.interfaces.NamingContextFactory
    -Djava.naming.factory.url.pkgs=
    org.jboss.naming:org.jnp.interfaces
    -Djava.naming.provider.url=
    localhost client.SimpleSessionClient
    Now is the time for all good men
    After having done all of this I get the following error
    +Exception in thread "main" java.lang.NoSuchMethodError: main+
    why is this? This is my first attempt at creating an ejb and I'm totally lost. Any help would be appreciated.
    Edited by: Jazman on Feb 19, 2008 2:42 PM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    if you turn the computer off and turn it back on while you hold down the mouse key that should get the disc out.

  • Error building pkg wepdecrypt

    Hello,
    I am trying to build the pkg wepdecrypt from AUR using ABS. All the dependancies are installed, but during the makepkg I get the following error :
    wepclient.c: In function 'server_connection':
    wepclient.c:121: warning: pointer targets in passing argument 1 of 'inet_addr' differ in signedness
    wepclient.c:123: warning: pointer targets in passing argument 1 of 'gethostbyname' differ in signedness
    gcc -march=i686 -O2 -pipe -c -D__LINUX_WLAN__ -D__I386__ -o md5_digest.o md5_digest.c
    gcc  -o wepdecrypt wepdecrypt.o rc4.o wepfilter.o log.o
            modes.o misc.o md5_digest.o  wepserver.o wepclient.o verify.o keygen.o localkeygen.o -lcrypto -lz -lpcap
    gcc: log.omodes.o: No such file or directory
    make[1]: *** [wepdecrypt] Error 1
    make[1]: Leaving directory `/var/abs/local/wepdecrypt/src/wepdecrypt-0.7/src'
    make: *** [all] Error 2
    ==> ERROR: Build Failed.  Aborting...
    This is the PKGBUILD:
    # Contributor: phloyd <phloyd>
    pkgname=wepdecrypt
    pkgver=0.7
    pkgrel="1"
    pkgdesc="Enhanced version of WepAttack a tool for breaking 802.11 WEP keys"
    url="http://wepdecrypt.sourceforge.net/"
    license="GPL"
    makedepends=('gcc' 'make')
    depends=('bash' 'zlib' 'openssl' 'libpcap' 'fltk')
    source=(http://dl.sourceforge.net/sourceforge/$pkgname/WepDecrypt-$pkgver.tar.gz)
    backup=('etc/wepdecrypt.conf')
    md5sums=('72576cec9af9486bf64124b7aaa79f31')
    sha1sums=('304c14db012392509d3b84d3e8d6c39e8b586fff')
    build() {
      cd $startdir/src/$pkgname-$pkgver
      ./configure
      make || return 1
    INSTDIR=/usr/bin
    mkdir -p $startdir/pkg/$INSTDIR
    mkdir -p $startdir/pkg/etc
    mkdir -p $startdir/pkg/usr/man/man1/
        install -m 755 src/wepdecrypt       $startdir/pkg/$INSTDIR
        install -m 755 run/wepdecrypt_word  $startdir/pkg/$INSTDIR
        install -m 755 run/wepdecrypt_inc   $startdir/pkg/$INSTDIR
        install -m 644 conf/wepdecrypt.conf $startdir/pkg/etc
        install -m 644 doc/wepdecrypt.1.gz  $startdir/pkg/usr/man/man1/
    I would appreciate if someone tries and tell me whats missing or what i am doing wrong....
    Tx,
    B

    thankyou and sorry for my error
    but when installed I run:
    grub-install /dev/hda
        GNU GRUB  version 0.97  (640K lower / 3072K upper memory)
    [ Minimal BASH-like line editing is supported.  For the first word, TAB
       lists possible command completions.  Anywhere else TAB lists the possible
       completions of a device/filename. ]
    grub> root (hd1,4)
    Filesystem type is reiserfs, partition type 0x83
    grub> setup  --stage2=/boot/grub/stage2 --prefix=/boot/grub (hd0)
    Checking if "/boot/grub/stage1" exists... yes
    Checking if "/boot/grub/stage2" exists... yes
    Checking if "/boot/grub/reiserfs_stage1_5" exists... yes
    Running "embed /boot/grub/reiserfs_stage1_5 (hd0)"...  18 sectors are embedded.
    succeeded
    Running "install --stage2=/boot/grub/stage2 /boot/grub/stage1 d (hd0) (hd0)1+18 p (hd1,4)/boot/grub/stage /boot/grub/menu.lst"... failed
    Error 15: File not found
    grub> quit
    this I view in my /boot/grub
    default        iso9660_stage1_5  minix_stage1_5     stage2_eltorito
    device.map     jfs_stage1_5      reiser4_stage1_5   ufs2_stage1_5
    e2fs_stage1_5  menu.lst          reiserfs_stage1_5  vstafs_stage1_5
    fat_stage1_5   menu.lst.old      stage1             xfs_stage1_5
    ffs_stage1_5   menu.lst.pacnew   stage2

  • Error building jack [FIXED]

    I'm trying to build jack-audio-connection-kit from source to enable support for freebob, but the build keeps failing with undefined references because its looking for libFLAC.so.7
    I have flac-1.1.4-1 installed. 
    Here's the relevant output from 'make':
    /usr/bin/ld: warning: libFLAC.so.7, needed by /usr/lib/gcc/x86_64-unknown-linux-gnu/4.1.2/../../../../lib/libsndfile.so, not found (try using -rpath or -rpath-link)
    /usr/lib/gcc/x86_64-unknown-linux-gnu/4.1.2/../../../../lib/libsndfile.so: undefined reference to `FLAC__seekable_stream_encoder_set_seek_callback'
    /usr/lib/gcc/x86_64-unknown-linux-gnu/4.1.2/../../../../lib/libsndfile.so: undefined reference to `FLAC__seekable_stream_encoder_process_interleaved'
    /usr/lib/gcc/x86_64-unknown-linux-gnu/4.1.2/../../../../lib/libsndfile.so: undefined reference to `FLAC__seekable_stream_encoder_get_resolved_state_string'
    /usr/lib/gcc/x86_64-unknown-linux-gnu/4.1.2/../../../../lib/libsndfile.so: undefined reference to `FLAC__seekable_stream_encoder_set_write_callback'
    /usr/lib/gcc/x86_64-unknown-linux-gnu/4.1.2/../../../../lib/libsndfile.so: undefined reference to `FLAC__seekable_stream_encoder_delete'
    /usr/lib/gcc/x86_64-unknown-linux-gnu/4.1.2/../../../../lib/libsndfile.so: undefined reference to `FLAC__seekable_stream_decoder_process_single'
    /usr/lib/gcc/x86_64-unknown-linux-gnu/4.1.2/../../../../lib/libsndfile.so: undefined reference to `FLAC__seekable_stream_decoder_set_client_data'
    /usr/lib/gcc/x86_64-unknown-linux-gnu/4.1.2/../../../../lib/libsndfile.so: undefined reference to `FLAC__seekable_stream_decoder_get_decode_position'
    /usr/lib/gcc/x86_64-unknown-linux-gnu/4.1.2/../../../../lib/libsndfile.so: undefined reference to `FLAC__seekable_stream_decoder_set_write_callback'
    /usr/lib/gcc/x86_64-unknown-linux-gnu/4.1.2/../../../../lib/libsndfile.so: undefined reference to `FLAC__seekable_stream_decoder_set_error_callback'
    /usr/lib/gcc/x86_64-unknown-linux-gnu/4.1.2/../../../../lib/libsndfile.so: undefined reference to `FLAC__seekable_stream_encoder_init'
    /usr/lib/gcc/x86_64-unknown-linux-gnu/4.1.2/../../../../lib/libsndfile.so: undefined reference to `FLAC__StreamDecoderErrorStatusString'
    /usr/lib/gcc/x86_64-unknown-linux-gnu/4.1.2/../../../../lib/libsndfile.so: undefined reference to `FLAC__seekable_stream_encoder_set_client_data'
    /usr/lib/gcc/x86_64-unknown-linux-gnu/4.1.2/../../../../lib/libsndfile.so: undefined reference to `FLAC__seekable_stream_decoder_set_metadata_callback'
    /usr/lib/gcc/x86_64-unknown-linux-gnu/4.1.2/../../../../lib/libsndfile.so: undefined reference to `FLAC__seekable_stream_encoder_set_sample_rate'
    /usr/lib/gcc/x86_64-unknown-linux-gnu/4.1.2/../../../../lib/libsndfile.so: undefined reference to `FLAC__seekable_stream_decoder_finish'
    /usr/lib/gcc/x86_64-unknown-linux-gnu/4.1.2/../../../../lib/libsndfile.so: undefined reference to `FLAC__seekable_stream_decoder_set_eof_callback'
    /usr/lib/gcc/x86_64-unknown-linux-gnu/4.1.2/../../../../lib/libsndfile.so: undefined reference to `FLAC__seekable_stream_decoder_init'
    /usr/lib/gcc/x86_64-unknown-linux-gnu/4.1.2/../../../../lib/libsndfile.so: undefined reference to `FLAC__seekable_stream_decoder_set_length_callback'
    /usr/lib/gcc/x86_64-unknown-linux-gnu/4.1.2/../../../../lib/libsndfile.so: undefined reference to `FLAC__seekable_stream_encoder_set_bits_per_sample'
    /usr/lib/gcc/x86_64-unknown-linux-gnu/4.1.2/../../../../lib/libsndfile.so: undefined reference to `FLAC__seekable_stream_decoder_new'
    /usr/lib/gcc/x86_64-unknown-linux-gnu/4.1.2/../../../../lib/libsndfile.so: undefined reference to `FLAC__seekable_stream_decoder_set_seek_callback'
    /usr/lib/gcc/x86_64-unknown-linux-gnu/4.1.2/../../../../lib/libsndfile.so: undefined reference to `FLAC__seekable_stream_decoder_set_tell_callback'
    /usr/lib/gcc/x86_64-unknown-linux-gnu/4.1.2/../../../../lib/libsndfile.so: undefined reference to `FLAC__seekable_stream_decoder_set_read_callback'
    /usr/lib/gcc/x86_64-unknown-linux-gnu/4.1.2/../../../../lib/libsndfile.so: undefined reference to `FLAC__seekable_stream_encoder_set_channels'
    /usr/lib/gcc/x86_64-unknown-linux-gnu/4.1.2/../../../../lib/libsndfile.so: undefined reference to `FLAC__seekable_stream_encoder_finish'
    /usr/lib/gcc/x86_64-unknown-linux-gnu/4.1.2/../../../../lib/libsndfile.so: undefined reference to `FLAC__seekable_stream_decoder_seek_absolute'
    /usr/lib/gcc/x86_64-unknown-linux-gnu/4.1.2/../../../../lib/libsndfile.so: undefined reference to `FLAC__seekable_stream_encoder_new'
    /usr/lib/gcc/x86_64-unknown-linux-gnu/4.1.2/../../../../lib/libsndfile.so: undefined reference to `FLAC__seekable_stream_encoder_set_tell_callback'
    /usr/lib/gcc/x86_64-unknown-linux-gnu/4.1.2/../../../../lib/libsndfile.so: undefined reference to `FLAC__seekable_stream_decoder_process_until_end_of_metadata'
    /usr/lib/gcc/x86_64-unknown-linux-gnu/4.1.2/../../../../lib/libsndfile.so: undefined reference to `FLAC__seekable_stream_decoder_get_state'
    /usr/lib/gcc/x86_64-unknown-linux-gnu/4.1.2/../../../../lib/libsndfile.so: undefined reference to `FLAC__seekable_stream_decoder_delete'
    collect2: ld returned 1 exit status
    make[2]: *** [jackrec] Error 1
    make[2]: Leaving directory `/var/abs/local/jack-audio-connection-kit-svn/src/jack/example-clients'
    make[1]: *** [all-recursive] Error 1
    make[1]: Leaving directory `/var/abs/local/jack-audio-connection-kit-svn/src/jack'
    make: *** [all] Error 2
    ==> ERROR: Build Failed. Aborting...
    I have libFLAC.so.8, and I've tried symlinking it to libFLAC.so.7, but no luck.  That kills the first warning line, but everything else is the same.
    Any ideas?
    Last edited by brucebertrand (2007-03-21 05:56:18)

    well...looks like I didn't have libsndfile installed.

  • [SOLVED]Building in a Clean Chroot error: Build failed, check ~/build

    Hello everyone
    I am trying to build qt4 and qtwebkit in clean chroot but when I run makechrootpkg (according to DeveloperWiki:Building in a Clean Chroot) I get an error message:
    $ sudo makechrootpkg -c -r /home/zuargo/chroot/
    ==> Creating clean working copy...done
    ==> ERROR: Build failed, check /home/zuargo/chroot/zuargo/build
    As you see chroot directory is contained in my home folder.
    I have checked /home/zuargo/chroot/zuargo/build and I see just the PKGBUILD and another random file (it depends on the package to build). No useful information.
    I have made twice the chroot directory and in both times I get the same error.
    Does somebody have any idea on how to solve this trouble or how to get information related to the error?
    Thanks in advance
    Last edited by zuargo (2013-04-19 14:12:53)

    Thank you
    I have new information.
    Searching for information on the forum (this one) I have found this thread: https://bbs.archlinux.org/viewtopic.php?pid=1260353
    The user that started the topic, had (or have) a very similar issue. At the first post, he says has fixed the problem by downgrading the package devtools to the version 20120720. So then, I did the same thing.
    I had installed devtools 20130408 and in the cache of Pacman, I have the version 20130127, 20130122, 20121115, 20121027, 20121013, 20120720 of this package. I have downgraded to all these versions of devtools, one by one. In some cases, after downgrading and by creating the chroot directory I got errors, either with the package systemd or with the package filesystem. In the first case, the error did not affect the creation fo the chroot directory. In the second case (with filesystem), creating the directory was not successful, getting an error message (see below).
    I proceed to list each devtool package (its version) and the error I have got, when I tried to create the chroot directory:
    > devtools-20120720-1-any.pkg.tar.xz
    systemd's error:
    ( 38/130) installing systemd                                               [##########################################] 100%
    Initializing machine ID from random generator.
    ln -s '/usr/lib/systemd/system/[email protected]' '/etc/systemd/system/getty.target.wants/[email protected]'
    :: Append 'init=/usr/lib/systemd/systemd' to your kernel command line in your
       bootloader to replace sysvinit with systemd, or install systemd-sysvcompat
    Also an error with lacale-gen:
    chroot: failed to run command '/usr/sbin/locale-gen': No such file or directory
    Creating chroot directory successful
    No error by building packages with makechrootpkg into the chroot directory.
    > devtools-20121013-1-any.pkg.tar.xz
    filesystem's error:
    (  4/130) installing filesystem                                            [##########################################] 100%
    error: could not rename /home/zuargo/chroot/root/etc/resolv.conf to /home/zuargo/chroot/root/etc/resolv.conf.pacorig (Device or resource busy)
    error: problem occurred while installing filesystem
    error: could not commit transaction
    error: failed to commit transaction (transaction aborted)
    Errors occurred, no packages were upgraded.
    ==> ERROR: Failed to install packages to new root
    ==> ERROR: Failed to install all packages
    Creating chroot directory was not successful
    > devtools-20121027-1-any.pkg.tar.xz
    filesystem's error:
    (  4/130) installing filesystem                                            [##########################################] 100%
    error: could not rename /home/zuargo/chroot/root/etc/resolv.conf to /home/zuargo/chroot/root/etc/resolv.conf.pacorig (Device or resource busy)
    error: problem occurred while installing filesystem
    error: could not commit transaction
    error: failed to commit transaction (transaction aborted)
    Errors occurred, no packages were upgraded.
    ==> ERROR: Failed to install packages to new root
    ==> ERROR: Failed to install all packages
    Creating chroot directory was not successful
    > devtools-20121115-1-any.pkg.tar.xz
    filesystem's error:
    (  4/130) installing filesystem                                            [##########################################] 100%
    error: could not rename /home/zuargo/chroot/root/etc/resolv.conf to /home/zuargo/chroot/root/etc/resolv.conf.pacorig (Device or resource busy)
    error: problem occurred while installing filesystem
    error: could not commit transaction
    error: failed to commit transaction (transaction aborted)
    Errors occurred, no packages were upgraded.
    ==> ERROR: Failed to install packages to new root
    ==> ERROR: Failed to install all packages
    Creating chroot directory was not successful
    > devtools-20130122-1-any.pkg.tar.xz
    systemd's error:
    ( 38/130) installing systemd                                               [##########################################] 100%
    Initializing machine ID from random generator.
    ln -s '/usr/lib/systemd/system/[email protected]' '/etc/systemd/system/getty.target.wants/[email protected]'
    :: Append 'init=/usr/lib/systemd/systemd' to your kernel command line in your
       bootloader to replace sysvinit with systemd, or install systemd-sysvcompat
    Error by building packages with makechrootpkg into the chroot directory:
    ==> Creating clean working copy...done
    ==> ERROR: Build failed, check /home/zuargo/chroot/zuargo/build
    > devtools-20130127-1-any.pkg.tar.xz
    systemd's error:
    ( 38/130) installing systemd                                               [##########################################] 100%
    Initializing machine ID from random generator.
    ln -s '/usr/lib/systemd/system/[email protected]' '/etc/systemd/system/getty.target.wants/[email protected]'
    :: Append 'init=/usr/lib/systemd/systemd' to your kernel command line in your
       bootloader to replace sysvinit with systemd, or install systemd-sysvcompat
    Error by building packages with makechrootpkg into the chroot directory:
    ==> Creating clean working copy...done
    ==> ERROR: Build failed, check /home/zuargo/chroot/zuargo/build
    > devtools-20130408-1-any.pkg.tar.xz
    systemd's error:
    ( 38/130) installing systemd                                               [##########################################] 100%
    Initializing machine ID from random generator.
    ln -s '/usr/lib/systemd/system/[email protected]' '/etc/systemd/system/getty.target.wants/[email protected]'
    :: Append 'init=/usr/lib/systemd/systemd' to your kernel command line in your
       bootloader to replace sysvinit with systemd, or install systemd-sysvcompat
    Error by building packages with makechrootpkg into the chroot directory:
    ==> Creating clean working copy...done
    ==> ERROR: Build failed, check /home/zuargo/chroot/zuargo/build
    As see, the only one package that allows me to build into chroot directory with no errors is devtools-20120720.
    Now I can build packages into a clean chroot directory. But I can't update devtools.

  • [SOLVED] Error building vanilla kernel for PS3

    I installed all the base packages for ArchPPC and have chrooted into it. I downloaded/uncompressed kernel 2.6.24 from kernel.org and ran `cp arch/powerpc/configs/ps3_defconfig .config`. The first time, I went straight to make after that. That gave me the error "linux-2.6.24/scripts/gcc-version.sh: line 26: printf: #: invalid number". So I ran pacman -Sy gcc3, then edited my Makefile setting HOSTCC=gcc-3.3, HOSTCXX=g++-3.3, and CC=gcc-3.3.
    Now when I run make (after doing make clean) the first error I get is:
    include/asm/mmu-hash64.h:437: error: `SID_SHIFT' undeclared (first use in this function)
    Any ideas?
    Last edited by Erroneous (2008-03-07 21:51:51)

    You need a ppc64 cross-compiler to build a ps3 kernel. You can use the crosstool pkgbuilds from here: http://kth5.telekommunisten.net/archlinux/crosstools/
    All you need to do is to replace the 32 bit ppc targets with powerpc64-unknown-linux-gnu and it should build fine.

  • First EJB problem:  HTTP 404 NOT FOUND

    I was running the first EJB example(Coverter) in J2EE Tutorial. My HTTP port is 4848.
    I can deploy the application at localhost:4848, and I can connect to http://localhost:4848/asadmin/
    The context root for web client is /converter.
    But when I try to connect http://localhost:4848/converter, It gave me HTTP 404 NOT FOUND error.
    Why?

    Now I know.
    Admin Port is 4848. Http Port is 4421.

  • Weblogic 10.3 First EJB bean invocation is throwing NameNotFoundException

    I'm gettting the below error, during the first invocation of the EJB session bean in weblogic 10.3. Please help on this.
    org.springframework.remoting.RemoteLookupFailureException: Failed to locate remote EJB [TestSessionBean]; nested exception is javax.naming.NameNotFoundException: Unable to resolve 'TestSessionBean'. Resolved '' [Root exception is javax.naming.NameNotFoundException: Unable to resolve 'TestSessionBean'. Resolved '']; remaining name 'TestSessionBean'
    Caused by: javax.naming.NameNotFoundException: Unable to resolve 'TestSessionBean'. Resolved '' [Root exception is javax.naming.NameNotFoundException: Unable to resolve 'TestSessionBean'. Resolved '']; remaining name 'TestSessionBean'
    at weblogic.rjvm.ResponseImpl.unmarshalReturn(ResponseImpl.java:234)
    at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:348)
    at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:259)
    at weblogic.jndi.internal.ServerNamingNode_1030_WLStub.lookup(Unknown Source)
    at weblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:392)
    at weblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:380)
    at javax.naming.InitialContext.lookup(InitialContext.java:392)
    at org.springframework.jndi.JndiTemplate$1.doInContext(JndiTemplate.java:123)
    at org.springframework.jndi.JndiTemplate.execute(JndiTemplate.java:85)
    at org.springframework.jndi.JndiTemplate.lookup(JndiTemplate.java:121)
    at org.springframework.jndi.JndiTemplate.lookup(JndiTemplate.java:146)
    at org.springframework.jndi.JndiLocatorSupport.lookup(JndiLocatorSupport.java:91)
    at org.springframework.jndi.JndiObjectLocator.lookup(JndiObjectLocator.java:105)
    at org.springframework.ejb.access.AbstractRemoteSlsbInvokerInterceptor.lookup(AbstractRemoteSlsbInvokerInterceptor.java:92)
    at org.springframework.ejb.access.AbstractSlsbInvokerInterceptor.getHome(AbstractSlsbInvokerInterceptor.java:147)
    at org.springframework.ejb.access.AbstractSlsbInvokerInterceptor.create(AbstractSlsbInvokerInterceptor.java:171)
    at org.springframework.ejb.access.AbstractRemoteSlsbInvokerInterceptor.newSessionBeanInstance(AbstractRemoteSlsbInvokerInterceptor.java:205)
    at org.springframework.ejb.access.SimpleRemoteSlsbInvokerInterceptor.getSessionBeanInstance(SimpleRemoteSlsbInvokerInterceptor.java:108)
    at org.springframework.ejb.access.SimpleRemoteSlsbInvokerInterceptor.doInvoke(SimpleRemoteSlsbInvokerInterceptor.java:74)
    at org.springframework.ejb.access.AbstractRemoteSlsbInvokerInterceptor.invoke(AbstractRemoteSlsbInvokerInterceptor.java:119)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:161)
    at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
    at $Proxy60.loadMyData(Unknown Source)
    at com.test.MyController.formBackingObject(MyController.java:74)
    at org.springframework.web.servlet.mvc.AbstractFormController.getErrorsForNewForm(AbstractFormController.java:343)
    at org.springframework.web.servlet.mvc.AbstractFormController.showNewForm(AbstractFormController.java:323)
    at org.springframework.web.servlet.mvc.AbstractFormController.handleRequestInternal(AbstractFormController.java:263)
    at org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153)
    at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:48)
    at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:819)
    at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:754)
    at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:399)
    at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:354)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
    at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
    at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:77)
    at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:77)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(Unknown Source)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(Unknown Source)
    at weblogic.servlet.internal.WebAppServletContext.securedExecute(Unknown Source)
    at weblogic.servlet.internal.WebAppServletContext.execute(Unknown Source)
    at weblogic.servlet.internal.ServletRequestImpl.run(Unknown Source)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    Caused by: javax.naming.NameNotFoundException: Unable to resolve 'TestSessionBean'. Resolved ''
    at weblogic.jndi.internal.BasicNamingNode.newNameNotFoundException(BasicNamingNode.java:1139)
    at weblogic.jndi.internal.BasicNamingNode.lookupHere(BasicNamingNode.java:252)
    at weblogic.jndi.internal.ServerNamingNode.lookupHere(ServerNamingNode.java:182)
    at weblogic.jndi.internal.BasicNamingNode.lookup(BasicNamingNode.java:206)
    at weblogic.jndi.internal.RootNamingNode_WLSkel.invoke(Unknown Source)
    at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:589)
    at weblogic.rmi.cluster.ClusterableServerRef.invoke(ClusterableServerRef.java:230)
    at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:477)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
    at weblogic.security.service.SecurityManager.runAs(Unknown Source)
    at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:473)
    at weblogic.rmi.internal.wls.WLSExecuteRequest.run(WLSExecuteRequest.java:118)
    ... 2 more
    Edited by: 940874 on Jun 15, 2012 4:34 AM

    ur prob has been resolved? I want to the resolution becoz m facing the same error for setting up proxy for RSS Feeds.
    pls let me know the fix,
    thanks, ripan

Maybe you are looking for

  • Airport issues not addressed here

    Hey. Not only is my airport not working (even after updates), but my computer doesn't even recognise the airport! I don't have it available when trying to set up my preferances. Apple care was nice, but they said the only thing I could do would be to

  • Creating Sales Employee Report in Business One 8.82

    Hi, Can someone provide me the query to create a Sales Report sorted by Sales Employee and Business Partner. The report contains the following columns: Sales Employee, Business Partner Name and Acct Number, Sale for Current Month (or month provide in

  • Macbook Pro - iPad compatibility?

    As I mentioned in an earlier post (like 3 minutes ago in fact), my sister got hereself a nice shiny new Macbook Pro. I have a nice shiny iPad and I was wondering, since they both have bluetooth and all, is there a way for the two to communicate? I'm

  • Does Partitions take up database storage space

    Thanks in advance. I have tables with partitions that do not have data stored in them yet, does partitions without data stored in them take up database storage? How do you measure the storage used by a tables partitions that do not have data stored i

  • Dashboard widgets disappear at launch

    When my son launches Dashboard on his account, he gets a blank screen (no widgets). All the widgets we try to re-install from there startup correctly, then crash and disappear before content appears in them. Any idea what is going on? I have always h